diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 35f658da..f4509264 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,3 @@ -Pull Request **Are you a current Fivetran customer?** diff --git a/.github/workflows/check_docs.yml b/.github/workflows/check_docs.yml new file mode 100644 index 00000000..5db0fc85 --- /dev/null +++ b/.github/workflows/check_docs.yml @@ -0,0 +1,35 @@ +name: 'check docs' +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + changed-files: + runs-on: ubuntu-latest + name: test changed-files + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v29.0.4 + with: + files: docs/** + + - name: Check to see if docs folder hasn't changed + if: steps.changed-files.outputs.any_changed == 'false' + run: | + echo "Docs have not been regenerated." + exit 1 + + - name: Check if docs folder has changed + if: steps.changed-files.outputs.any_changed == 'true' + run: | + echo "Docs have been regenerated!" + exit 0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b45c3b8..18baa476 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# dbt_quickbooks v0.5.3 +## Bug Fixes +- The `int_quickbooks__bill_payment_double_entry`, `int_quickbooks__credit_memo_double_entry`, `int_quickbooks__deposit_double_entry`, and `int_quickbooks__payment_double_entry` models perform a cross join on the `stg_quickbooks__accounts` model for the respective debit/credit account. However, if this cross join includes more than one record, it will result in duplicates. An additional filter to remove sub accounts has been added to ensure the output of the models do not have duplicates. ([#49](https://github.com/fivetran/dbt_quickbooks/pull/49)) + +## Under the Hood +- A GitHub workflow has been added to ensure the dbt docs are regenerated before each merge to the `main` release branch. ([#49](https://github.com/fivetran/dbt_quickbooks/pull/49)) # dbt_quickbooks v0.5.2 ## Bug Fixes - Within the `v0.5.1` release, the `transaction_id` field was erroneously removed from the `quickbooks__general_ledger` model. This field has since been added back. ([#46](https://github.com/fivetran/dbt_quickbooks/pull/46)) diff --git a/dbt_project.yml b/dbt_project.yml index e21c1c82..67755df2 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'quickbooks' -version: '0.5.2' +version: '0.5.3' require-dbt-version: [">=1.0.0", "<2.0.0"] diff --git a/docs/catalog.json b/docs/catalog.json index b53a0c9f..1a1a5721 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.0.4", "generated_at": "2022-09-15T13:54:36.570850Z", "invocation_id": "e8973a95-30ac-4e8b-a6a7-466b90c9adfd", "env": {}}, "nodes": {"seed.quickbooks_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_memo_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_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_source_integration_tests_quickbooks", "name": "int_quickbooks__account_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "character varying", "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}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 9, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "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}, "description": {"type": "integer", "index": 13, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 14, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 15, "name": "updated_at", "comment": null}, "classification": {"type": "text", "index": 16, "name": "classification", "comment": null}, "multiplier": {"type": "integer", "index": 17, "name": "multiplier", "comment": null}, "financial_statement_helper": {"type": "text", "index": 18, "name": "financial_statement_helper", "comment": null}, "transaction_type": {"type": "text", "index": 19, "name": "transaction_type", "comment": null}, "adjusted_balance": {"type": "integer", "index": 20, "name": "adjusted_balance", "comment": null}, "parent_account_number": {"type": "character varying", "index": 21, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 22, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__bill_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__bill_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "character varying", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "department_id": {"type": "integer", "index": 4, "name": "department_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "payable_account_id": {"type": "character varying", "index": 6, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 7, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 8, "name": "current_balance", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "date", "index": 10, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "date", "index": 11, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "bigint", "index": 12, "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_payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__bill_payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__bill_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__bill_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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__credit_memo_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__credit_memo_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__credit_memo_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__credit_memo_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "item_id": {"type": "character varying", "index": 6, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 7, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 8, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 10, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 12, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 13, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 14, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 16, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 17, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__deposit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__deposit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__deposit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "bigint", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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_source_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": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "numeric(28,6)", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "numeric(28,6)", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 10, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 11, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 12, "name": "account_sub_type", "comment": null}, "class_id": {"type": "bigint", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 15, "name": "department_name", "comment": null}, "customer_id": {"type": "character varying", "index": 16, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 17, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 18, "name": "customer_website", "comment": null}, "vendor_id": {"type": "character varying", "index": 19, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 20, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 21, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 23, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 24, "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_source_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_balances", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 5, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 6, "name": "parent_account_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}, "account_class": {"type": "text", "index": 9, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 10, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 11, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 12, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 13, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "double precision", "index": 14, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "double precision", "index": 15, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "double precision", "index": 16, "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_source_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 5, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 6, "name": "parent_account_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}, "account_class": {"type": "text", "index": 9, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 10, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 11, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 12, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 13, "name": "period_last_day", "comment": null}, "period_index": {"type": "bigint", "index": 14, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__invoice_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__invoice_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__invoice_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "character varying", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "estimate_id": {"type": "character varying", "index": 4, "name": "estimate_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 6, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "character varying", "index": 7, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 8, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 9, "name": "delivery_type", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 11, "name": "current_balance", "comment": null}, "estimate_total_amount": {"type": "double precision", "index": 12, "name": "estimate_total_amount", "comment": null}, "estimate_status": {"type": "text", "index": 13, "name": "estimate_status", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 15, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 16, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "double precision", "index": 17, "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_source_integration_tests_quickbooks", "name": "int_quickbooks__invoice_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "item_id": {"type": "character varying", "index": 6, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 7, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 8, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 10, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 12, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 13, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 14, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 16, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 17, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__journal_entry_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__journal_entry_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__journal_entry_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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__payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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_source_integration_tests_quickbooks", "name": "int_quickbooks__purchase_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__purchase_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__purchase_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__refund_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__refund_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__refund_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "item_id": {"type": "character varying", "index": 6, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 7, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 8, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 10, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 12, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 13, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 14, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 16, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 17, "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_source_integration_tests_quickbooks", "name": "int_quickbooks__retained_earnings", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 5, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "character varying", "index": 6, "name": "parent_account_name", "comment": null}, "account_type": {"type": "character varying", "index": 7, "name": "account_type", "comment": null}, "account_sub_type": {"type": "character varying", "index": 8, "name": "account_sub_type", "comment": null}, "account_class": {"type": "character varying", "index": 9, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "character varying", "index": 10, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 11, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 12, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 13, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "double precision", "index": 14, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "double precision", "index": 15, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "double precision", "index": 16, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__sales_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__sales_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__sales_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "item_id": {"type": "character varying", "index": 6, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 7, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 8, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 10, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 12, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 13, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 14, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 16, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 17, "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_source_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": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 10, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 11, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 12, "name": "account_sub_type", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 15, "name": "department_name", "comment": null}, "customer_id": {"type": "character varying", "index": 16, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 17, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 18, "name": "customer_website", "comment": null}, "vendor_id": {"type": "character varying", "index": 19, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 20, "name": "vendor_name", "comment": null}, "billable_status": {"type": "character varying", "index": 21, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 23, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 24, "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__transfer_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__transfer_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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_source_integration_tests_quickbooks", "name": "int_quickbooks__vendor_credit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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.int_quickbooks__vendor_credit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks", "name": "int_quickbooks__vendor_credit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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_source_integration_tests_quickbooks", "name": "quickbooks__ap_ar_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "character varying", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "estimate_id": {"type": "character varying", "index": 4, "name": "estimate_id", "comment": null}, "department_name": {"type": "text", "index": 5, "name": "department_name", "comment": null}, "transaction_with": {"type": "text", "index": 6, "name": "transaction_with", "comment": null}, "customer_vendor_name": {"type": "text", "index": 7, "name": "customer_vendor_name", "comment": null}, "customer_vendor_balance": {"type": "integer", "index": 8, "name": "customer_vendor_balance", "comment": null}, "customer_vendor_address_city": {"type": "text", "index": 9, "name": "customer_vendor_address_city", "comment": null}, "customer_vendor_address_country": {"type": "text", "index": 10, "name": "customer_vendor_address_country", "comment": null}, "customer_vendor_address_line": {"type": "text", "index": 11, "name": "customer_vendor_address_line", "comment": null}, "customer_vendor_website": {"type": "integer", "index": 12, "name": "customer_vendor_website", "comment": null}, "delivery_type": {"type": "character varying", "index": 13, "name": "delivery_type", "comment": null}, "estimate_status": {"type": "character varying", "index": 14, "name": "estimate_status", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "estimate_amount": {"type": "double precision", "index": 16, "name": "estimate_amount", "comment": null}, "current_balance": {"type": "integer", "index": 17, "name": "current_balance", "comment": null}, "total_current_payment": {"type": "double precision", "index": 18, "name": "total_current_payment", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 19, "name": "due_date", "comment": null}, "is_overdue": {"type": "boolean", "index": 20, "name": "is_overdue", "comment": null}, "days_overdue": {"type": "integer", "index": 21, "name": "days_overdue", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 22, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 23, "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_source_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}, "account_class": {"type": "text", "index": 2, "name": "account_class", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 4, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 5, "name": "parent_account_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}, "account_number": {"type": "character varying", "index": 8, "name": "account_number", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 10, "name": "account_name", "comment": null}, "amount": {"type": "double precision", "index": 11, "name": "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": "analysis.quickbooks.quickbooks__balance_sheet"}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_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": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 10, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 11, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 12, "name": "account_sub_type", "comment": null}, "class_id": {"type": "bigint", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 15, "name": "department_name", "comment": null}, "customer_id": {"type": "character varying", "index": 16, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 17, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 18, "name": "customer_website", "comment": null}, "vendor_id": {"type": "character varying", "index": 19, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 20, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 21, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 23, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 24, "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_source_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": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "transaction_index": {"type": "bigint", "index": 3, "name": "transaction_index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 8, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 9, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 10, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 11, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 12, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 13, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 14, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 15, "name": "account_sub_type", "comment": null}, "financial_statement_helper": {"type": "text", "index": 16, "name": "financial_statement_helper", "comment": null}, "account_current_balance": {"type": "integer", "index": 17, "name": "account_current_balance", "comment": null}, "account_class": {"type": "text", "index": 18, "name": "account_class", "comment": null}, "transaction_type": {"type": "text", "index": 19, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 20, "name": "transaction_source", "comment": null}, "account_transaction_type": {"type": "text", "index": 21, "name": "account_transaction_type", "comment": null}, "adjusted_amount": {"type": "double precision", "index": 22, "name": "adjusted_amount", "comment": null}, "running_balance": {"type": "double precision", "index": 23, "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_source_integration_tests_quickbooks", "name": "quickbooks__general_ledger_by_period", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 5, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 6, "name": "parent_account_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}, "account_class": {"type": "text", "index": 9, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 10, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 11, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 12, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 13, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "double precision", "index": 14, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "double precision", "index": 15, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "double precision", "index": 16, "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.quickbooks__general_ledger_by_period"}, "model.quickbooks.quickbooks__profit_and_loss": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_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}, "account_class": {"type": "text", "index": 2, "name": "account_class", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 4, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 5, "name": "parent_account_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}, "account_number": {"type": "character varying", "index": 8, "name": "account_number", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 10, "name": "account_name", "comment": null}, "amount": {"type": "double precision", "index": 11, "name": "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__profit_and_loss"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "character varying", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "integer", "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": "character varying", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "character varying", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "character varying", "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}, "amount": {"type": "integer", "index": 11, "name": "amount", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}}, "stats": {"has_stats": {"id": "has_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "character varying", "index": 3, "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"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "character varying", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "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": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "character varying", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "character varying", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "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"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "character varying", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "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": "integer", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "character varying", "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": "character varying", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 6, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 7, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "character varying", "index": 8, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 9, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "character varying", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "character varying", "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": "character varying", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "character varying", "index": 7, "name": "deposit_customer_id", "comment": null}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "character varying", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "integer", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "character varying", "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": "integer", "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": "integer", "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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "character varying", "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}, "_fivetran_deleted": {"type": "boolean", "index": 15, "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": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "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": "character varying", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "integer", "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": "integer", "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": "character varying", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "character varying", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "character varying", "index": 16, "name": "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__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "integer", "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": "character varying", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "character varying", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "character varying", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "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_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "character varying", "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": "character varying", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "character varying", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "character varying", "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": "character varying", "index": 13, "name": "parent_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__item"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "character varying", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "character varying", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "character varying", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "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": "character varying", "index": 11, "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"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "character varying", "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": "character varying", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "character varying", "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": "character varying", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "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": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "character varying", "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": "character varying", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "character varying", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "character varying", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "character varying", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "character varying", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "integer", "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": "character varying", "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": "character varying", "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": "character varying", "index": 10, "name": "item_expense_customer_id", "comment": null}, "amount": {"type": "integer", "index": 11, "name": "amount", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "character varying", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "integer", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "character varying", "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": "character varying", "index": 5, "name": "discount_account_id", "comment": null}, "sales_item_account_id": {"type": "character varying", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 7, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 8, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 9, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "character varying", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "character varying", "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": "character varying", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "character varying", "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": "character varying", "index": 5, "name": "discount_account_id", "comment": null}, "sales_item_account_id": {"type": "character varying", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 7, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 8, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 10, "name": "sales_item_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__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "character varying", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "character varying", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "character varying", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "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": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "character varying", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "character varying", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "character varying", "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": "integer", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "character varying", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "character varying", "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": "integer", "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}}, "stats": {"has_stats": {"id": "has_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_source_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_source_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_source_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": {}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.2.1", "generated_at": "2022-09-26T18:30:59.276845Z", "invocation_id": "29c3414a-29e8-4c65-badf-9218a48ef0b9", "env": {}}, "nodes": {"seed.quickbooks_integration_tests.account_data": {"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": "seed.quickbooks_integration_tests.account_data"}, "seed.quickbooks_integration_tests.address_data": {"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": "seed.quickbooks_integration_tests.address_data"}, "seed.quickbooks_integration_tests.bill_data": {"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": "seed.quickbooks_integration_tests.bill_data"}, "seed.quickbooks_integration_tests.bill_line_data": {"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": "seed.quickbooks_integration_tests.bill_line_data"}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"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": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_integration_tests.bill_payment_data": {"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": "seed.quickbooks_integration_tests.bill_payment_data"}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"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": "seed.quickbooks_integration_tests.bill_payment_line_data"}, "seed.quickbooks_integration_tests.bundle_data": {"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": "seed.quickbooks_integration_tests.bundle_data"}, "seed.quickbooks_integration_tests.bundle_item_data": {"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": "seed.quickbooks_integration_tests.bundle_item_data"}, "seed.quickbooks_integration_tests.credit_memo_data": {"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": "seed.quickbooks_integration_tests.credit_memo_data"}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"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": "seed.quickbooks_integration_tests.credit_memo_line_data"}, "seed.quickbooks_integration_tests.customer_data": {"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": "seed.quickbooks_integration_tests.customer_data"}, "seed.quickbooks_integration_tests.department_data": {"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": "seed.quickbooks_integration_tests.department_data"}, "seed.quickbooks_integration_tests.deposit_data": {"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": "seed.quickbooks_integration_tests.deposit_data"}, "seed.quickbooks_integration_tests.deposit_line_data": {"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": "seed.quickbooks_integration_tests.deposit_line_data"}, "seed.quickbooks_integration_tests.estimate_data": {"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": "seed.quickbooks_integration_tests.estimate_data"}, "seed.quickbooks_integration_tests.estimate_line_data": {"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": "seed.quickbooks_integration_tests.estimate_line_data"}, "seed.quickbooks_integration_tests.invoice_data": {"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": "seed.quickbooks_integration_tests.invoice_data"}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"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": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_integration_tests.invoice_line_data": {"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": "seed.quickbooks_integration_tests.invoice_line_data"}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"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": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_integration_tests.item_data": {"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": "seed.quickbooks_integration_tests.item_data"}, "seed.quickbooks_integration_tests.journal_entry_data": {"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": "seed.quickbooks_integration_tests.journal_entry_data"}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"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": "seed.quickbooks_integration_tests.journal_entry_line_data"}, "seed.quickbooks_integration_tests.payment_data": {"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": "seed.quickbooks_integration_tests.payment_data"}, "seed.quickbooks_integration_tests.payment_line_data": {"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": "seed.quickbooks_integration_tests.payment_line_data"}, "seed.quickbooks_integration_tests.purchase_data": {"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": "seed.quickbooks_integration_tests.purchase_data"}, "seed.quickbooks_integration_tests.purchase_line_data": {"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": "seed.quickbooks_integration_tests.purchase_line_data"}, "seed.quickbooks_integration_tests.purchase_order_data": {"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": "seed.quickbooks_integration_tests.purchase_order_data"}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"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": "seed.quickbooks_integration_tests.purchase_order_line_data"}, "seed.quickbooks_integration_tests.refund_receipt_data": {"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": "seed.quickbooks_integration_tests.refund_receipt_data"}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"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": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_integration_tests.sales_receipt_data": {"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": "seed.quickbooks_integration_tests.sales_receipt_data"}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"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": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_integration_tests.transfer_data": {"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": "seed.quickbooks_integration_tests.transfer_data"}, "seed.quickbooks_integration_tests.vendor_credit_data": {"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": "seed.quickbooks_integration_tests.vendor_credit_data"}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"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": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_integration_tests.vendor_data": {"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": "seed.quickbooks_integration_tests.vendor_data"}, "model.quickbooks.int_quickbooks__account_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__account_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "character varying", "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}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 9, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "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}, "description": {"type": "integer", "index": 13, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 14, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 15, "name": "updated_at", "comment": null}, "classification": {"type": "text", "index": 16, "name": "classification", "comment": null}, "multiplier": {"type": "integer", "index": 17, "name": "multiplier", "comment": null}, "financial_statement_helper": {"type": "text", "index": 18, "name": "financial_statement_helper", "comment": null}, "transaction_type": {"type": "text", "index": 19, "name": "transaction_type", "comment": null}, "adjusted_balance": {"type": "integer", "index": 20, "name": "adjusted_balance", "comment": null}, "parent_account_number": {"type": "character varying", "index": 21, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 22, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__bill_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__bill_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "character varying", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "department_id": {"type": "integer", "index": 4, "name": "department_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "payable_account_id": {"type": "character varying", "index": 6, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 7, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 8, "name": "current_balance", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "date", "index": 10, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "date", "index": 11, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "bigint", "index": 12, "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_payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__bill_payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__bill_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__bill_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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__credit_memo_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__credit_memo_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__credit_memo_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__credit_memo_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "item_id": {"type": "character varying", "index": 6, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 7, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 8, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 10, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 12, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 13, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 14, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 16, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 17, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__deposit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__deposit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__deposit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "bigint", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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_integrations_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": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "numeric(28,6)", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "numeric(28,6)", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 10, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 11, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 12, "name": "account_sub_type", "comment": null}, "class_id": {"type": "bigint", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 15, "name": "department_name", "comment": null}, "customer_id": {"type": "character varying", "index": 16, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 17, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 18, "name": "customer_website", "comment": null}, "vendor_id": {"type": "character varying", "index": 19, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 20, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 21, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 23, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 24, "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_integrations_tests_quickbooks", "name": "int_quickbooks__general_ledger_balances", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 5, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 6, "name": "parent_account_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}, "account_class": {"type": "text", "index": 9, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 10, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 11, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 12, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 13, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "double precision", "index": 14, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "double precision", "index": 15, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "double precision", "index": 16, "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_integrations_tests_quickbooks", "name": "int_quickbooks__general_ledger_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 5, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 6, "name": "parent_account_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}, "account_class": {"type": "text", "index": 9, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 10, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 11, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 12, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 13, "name": "period_last_day", "comment": null}, "period_index": {"type": "bigint", "index": 14, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__invoice_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__invoice_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__invoice_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "character varying", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "estimate_id": {"type": "character varying", "index": 4, "name": "estimate_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 6, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "character varying", "index": 7, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 8, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 9, "name": "delivery_type", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 11, "name": "current_balance", "comment": null}, "estimate_total_amount": {"type": "double precision", "index": 12, "name": "estimate_total_amount", "comment": null}, "estimate_status": {"type": "text", "index": 13, "name": "estimate_status", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 15, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 16, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "double precision", "index": 17, "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_integrations_tests_quickbooks", "name": "int_quickbooks__invoice_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "item_id": {"type": "character varying", "index": 6, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 7, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 8, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 10, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 12, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 13, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 14, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 16, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 17, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__journal_entry_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__journal_entry_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__journal_entry_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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__payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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_integrations_tests_quickbooks", "name": "int_quickbooks__purchase_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__purchase_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__purchase_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__refund_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__refund_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__refund_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "item_id": {"type": "character varying", "index": 6, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 7, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 8, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 10, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 12, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 13, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 14, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 16, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 17, "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_integrations_tests_quickbooks", "name": "int_quickbooks__retained_earnings", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 5, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "character varying", "index": 6, "name": "parent_account_name", "comment": null}, "account_type": {"type": "character varying", "index": 7, "name": "account_type", "comment": null}, "account_sub_type": {"type": "character varying", "index": 8, "name": "account_sub_type", "comment": null}, "account_class": {"type": "character varying", "index": 9, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "character varying", "index": 10, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 11, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 12, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 13, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "double precision", "index": 14, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "double precision", "index": 15, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "double precision", "index": 16, "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_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__sales_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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__sales_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__sales_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "item_id": {"type": "character varying", "index": 6, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 7, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 8, "name": "item_unit_price", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 10, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 12, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 13, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying", "index": 14, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 16, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 17, "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_integrations_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": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 10, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 11, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 12, "name": "account_sub_type", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 15, "name": "department_name", "comment": null}, "customer_id": {"type": "character varying", "index": 16, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 17, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 18, "name": "customer_website", "comment": null}, "vendor_id": {"type": "character varying", "index": 19, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 20, "name": "vendor_name", "comment": null}, "billable_status": {"type": "character varying", "index": 21, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 23, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 24, "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__transfer_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__transfer_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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_integrations_tests_quickbooks", "name": "int_quickbooks__vendor_credit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 3, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 4, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 5, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 6, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 7, "name": "account_id", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 9, "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.int_quickbooks__vendor_credit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks", "name": "int_quickbooks__vendor_credit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "character varying", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "account_id": {"type": "character varying", "index": 6, "name": "account_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 10, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 11, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 14, "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_integrations_tests_quickbooks", "name": "quickbooks__ap_ar_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "character varying", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "estimate_id": {"type": "character varying", "index": 4, "name": "estimate_id", "comment": null}, "department_name": {"type": "text", "index": 5, "name": "department_name", "comment": null}, "transaction_with": {"type": "text", "index": 6, "name": "transaction_with", "comment": null}, "customer_vendor_name": {"type": "text", "index": 7, "name": "customer_vendor_name", "comment": null}, "customer_vendor_balance": {"type": "integer", "index": 8, "name": "customer_vendor_balance", "comment": null}, "customer_vendor_address_city": {"type": "text", "index": 9, "name": "customer_vendor_address_city", "comment": null}, "customer_vendor_address_country": {"type": "text", "index": 10, "name": "customer_vendor_address_country", "comment": null}, "customer_vendor_address_line": {"type": "text", "index": 11, "name": "customer_vendor_address_line", "comment": null}, "customer_vendor_website": {"type": "integer", "index": 12, "name": "customer_vendor_website", "comment": null}, "delivery_type": {"type": "character varying", "index": 13, "name": "delivery_type", "comment": null}, "estimate_status": {"type": "character varying", "index": 14, "name": "estimate_status", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "estimate_amount": {"type": "double precision", "index": 16, "name": "estimate_amount", "comment": null}, "current_balance": {"type": "integer", "index": 17, "name": "current_balance", "comment": null}, "total_current_payment": {"type": "double precision", "index": 18, "name": "total_current_payment", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 19, "name": "due_date", "comment": null}, "is_overdue": {"type": "boolean", "index": 20, "name": "is_overdue", "comment": null}, "days_overdue": {"type": "integer", "index": 21, "name": "days_overdue", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 22, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 23, "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_integrations_tests_quickbooks", "name": "quickbooks__balance_sheet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "account_class": {"type": "text", "index": 2, "name": "account_class", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 4, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 5, "name": "parent_account_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}, "account_number": {"type": "character varying", "index": 8, "name": "account_number", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 10, "name": "account_name", "comment": null}, "amount": {"type": "double precision", "index": 11, "name": "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": "analysis.quickbooks.quickbooks__balance_sheet"}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_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": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 10, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 11, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 12, "name": "account_sub_type", "comment": null}, "class_id": {"type": "bigint", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 15, "name": "department_name", "comment": null}, "customer_id": {"type": "character varying", "index": 16, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 17, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 18, "name": "customer_website", "comment": null}, "vendor_id": {"type": "character varying", "index": 19, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 20, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 21, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 23, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 24, "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_integrations_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": "character varying", "index": 2, "name": "transaction_id", "comment": null}, "transaction_index": {"type": "bigint", "index": 3, "name": "transaction_index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "character varying", "index": 8, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 9, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 10, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 11, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 12, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 13, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 14, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 15, "name": "account_sub_type", "comment": null}, "financial_statement_helper": {"type": "text", "index": 16, "name": "financial_statement_helper", "comment": null}, "account_current_balance": {"type": "integer", "index": 17, "name": "account_current_balance", "comment": null}, "account_class": {"type": "text", "index": 18, "name": "account_class", "comment": null}, "transaction_type": {"type": "text", "index": 19, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 20, "name": "transaction_source", "comment": null}, "account_transaction_type": {"type": "text", "index": 21, "name": "account_transaction_type", "comment": null}, "adjusted_amount": {"type": "double precision", "index": 22, "name": "adjusted_amount", "comment": null}, "running_balance": {"type": "double precision", "index": 23, "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_integrations_tests_quickbooks", "name": "quickbooks__general_ledger_by_period", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 5, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 6, "name": "parent_account_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}, "account_class": {"type": "text", "index": 9, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 10, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 11, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 12, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 13, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "double precision", "index": 14, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "double precision", "index": 15, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "double precision", "index": 16, "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.quickbooks__general_ledger_by_period"}, "model.quickbooks.quickbooks__profit_and_loss": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_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}, "account_class": {"type": "text", "index": 2, "name": "account_class", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "character varying", "index": 4, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 5, "name": "parent_account_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}, "account_number": {"type": "character varying", "index": 8, "name": "account_number", "comment": null}, "account_id": {"type": "character varying", "index": 9, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 10, "name": "account_name", "comment": null}, "amount": {"type": "double precision", "index": 11, "name": "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__profit_and_loss"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "character varying", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "integer", "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": "character varying", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "character varying", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "character varying", "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}, "amount": {"type": "integer", "index": 11, "name": "amount", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "character varying", "index": 3, "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"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "character varying", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "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": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "character varying", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "character varying", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "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"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "character varying", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "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": "integer", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "character varying", "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": "character varying", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 6, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 7, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "character varying", "index": 8, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 9, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "character varying", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "character varying", "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": "character varying", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "character varying", "index": 7, "name": "deposit_customer_id", "comment": null}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "character varying", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "integer", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "character varying", "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": "integer", "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": "integer", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "character varying", "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}, "_fivetran_deleted": {"type": "boolean", "index": 15, "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": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "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": "character varying", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "integer", "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": "integer", "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": "character varying", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "character varying", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "character varying", "index": 16, "name": "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__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "integer", "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": "character varying", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "character varying", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "character varying", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "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_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "character varying", "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": "character varying", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "character varying", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "character varying", "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": "character varying", "index": 13, "name": "parent_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__item"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "character varying", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "character varying", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "character varying", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "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": "character varying", "index": 11, "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"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "character varying", "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": "character varying", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "character varying", "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": "character varying", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "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": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "character varying", "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": "character varying", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "character varying", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "character varying", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "character varying", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "character varying", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "integer", "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": "character varying", "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": "character varying", "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": "character varying", "index": 10, "name": "item_expense_customer_id", "comment": null}, "amount": {"type": "integer", "index": 11, "name": "amount", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "character varying", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "integer", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "character varying", "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": "character varying", "index": 5, "name": "discount_account_id", "comment": null}, "sales_item_account_id": {"type": "character varying", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 7, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 8, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 9, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "character varying", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "character varying", "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": "character varying", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "character varying", "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": "character varying", "index": 5, "name": "discount_account_id", "comment": null}, "sales_item_account_id": {"type": "character varying", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 7, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 8, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 10, "name": "sales_item_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__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integrations_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "character varying", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "character varying", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "character varying", "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": "character varying", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "character varying", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "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": "character varying", "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": "character varying", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "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": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "character varying", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "character varying", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "character varying", "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": "integer", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "character varying", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "character varying", "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": "integer", "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}}, "stats": {"has_stats": {"id": "has_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_integrations_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_integrations_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_integrations_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": {}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 0c4d0ec4..56291a28 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
icons
- diff --git a/docs/manifest.json b/docs/manifest.json index 3cb80b64..3b9cef30 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v4.json", "dbt_version": "1.0.4", "generated_at": "2022-09-15T13:54:30.824981Z", "invocation_id": "e8973a95-30ac-4e8b-a6a7-466b90c9adfd", "env": {}, "project_id": "fb1a7b9ce88ce39cb54ba2ec5c0aaab3", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_integration_tests.bill_payment_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.486003, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_integration_tests.bundle_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.491348, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bundle_data\""}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.492388, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_integration_tests.payment_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.payment_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.493283, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_integration_tests.vendor_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.4941728, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor_data\""}, "seed.quickbooks_integration_tests.address_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "address_data"], "unique_id": "seed.quickbooks_integration_tests.address_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.49547, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"address_data\""}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.496352, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_integration_tests.invoice_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.497251, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_data\""}, "seed.quickbooks_integration_tests.payment_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_integration_tests.payment_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.498164, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"payment_data\""}, "seed.quickbooks_integration_tests.invoice_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.499134, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_integration_tests.deposit_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"deposit_account_id": "bigint", "deposit_class_id": "bigint"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.50014, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_integration_tests.estimate_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.501068, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_integration_tests.purchase_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"credit": "bool"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.501975, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_data\""}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.5028648, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.503815, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_integration_tests.bill_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_integration_tests.bill_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.504672, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_data\""}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.505546, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_integration_tests.vendor_credit_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.506429, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_integration_tests.customer_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_integration_tests.customer_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.5073862, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"customer_data\""}, "seed.quickbooks_integration_tests.estimate_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.508346, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"estimate_data\""}, "seed.quickbooks_integration_tests.purchase_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_account_id": "bigint"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.509229, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.5101252, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.511078, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_integration_tests.bill_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.511955, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_integration_tests.bundle_item_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_item_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.512838, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.5137038, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_integration_tests.account_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "account_data"], "unique_id": "seed.quickbooks_integration_tests.account_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.5146508, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"account_data\""}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.5155609, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_integration_tests.transfer_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_integration_tests.transfer_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.516564, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"transfer_data\""}, "seed.quickbooks_integration_tests.purchase_order_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.517432, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.518295, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.519264, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.52016, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_integration_tests.department_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "department_data"], "unique_id": "seed.quickbooks_integration_tests.department_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.52104, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"department_data\""}, "seed.quickbooks_integration_tests.item_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "item_data"], "unique_id": "seed.quickbooks_integration_tests.item_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.521899, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"item_data\""}, "seed.quickbooks_integration_tests.sales_receipt_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.522874, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_integration_tests.deposit_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1663250044.5237608, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"deposit_data\""}, "seed.quickbooks_integration_tests.refund_receipt_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.5246542, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks.quickbooks__balance_sheet": {"raw_sql": "with general_ledger_by_period as (\n select *\n from {{ref('quickbooks__general_ledger_by_period')}}\n where financial_statement_helper = 'balance_sheet'\n\n), final as (\n select\n period_first_day as calendar_date,\n account_class,\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 from general_ledger_by_period\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__balance_sheet"], "unique_id": "model.quickbooks.quickbooks__balance_sheet", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "87d0c759c253155d30947e265673b04994e5281ec74754cba809664217f277e8"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "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_year": {"name": "calendar_year", "description": "The calendar year in the YYYY format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "calendar_month": {"name": "calendar_month", "description": "The calendar month in the MMM format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "The account classification.", "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 the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account.", "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": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total ending period balance.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "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": 1663250045.47205, "compiled_sql": "with general_ledger_by_period as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'balance_sheet'\n\n), final as (\n select\n period_first_day as calendar_date,\n account_class,\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 from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"quickbooks__balance_sheet\""}, "model.quickbooks.quickbooks__general_ledger_by_period": {"raw_sql": "with general_ledger_balances as (\n select *\n from {{ref('int_quickbooks__general_ledger_balances')}}\n),\n\nretained_earnings as (\n select *\n from {{ref('int_quickbooks__retained_earnings')}}\n),\n\nfinal as (\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger_by_period"], "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "b26762ec110b5fe215c80939a156f6d9c08e2487d76a827f335aaba6b36f66c0"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"], ["int_quickbooks__retained_earnings"]], "sources": [], "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.\n", "columns": {"account_id": {"name": "account_id", "description": "Reference to the account that the period balances are associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The user defined account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the period balances.", "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": "Type of account associated with the period balances.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the period balances.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the period balances.", "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": []}}, "meta": {}, "docs": {"show": true}, "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": 1663250045.468232, "compiled_sql": "with general_ledger_balances as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nretained_earnings as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\"\n),\n\nfinal as (\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\""}, "model.quickbooks.quickbooks__general_ledger": {"raw_sql": "with gl_union as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n transaction_type,\n transaction_source\n from {{ref('int_quickbooks__purchase_double_entry')}}\n\n {% if var('using_sales_receipt', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__sales_receipt_double_entry')}}\n {% endif %}\n\n {% if var('using_bill', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__bill_payment_double_entry')}}\n\n union all\n\n select *\n from {{ref('int_quickbooks__bill_double_entry')}}\n {% endif %}\n\n {% if var('using_credit_memo', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__credit_memo_double_entry')}}\n {% endif %}\n\n {% if var('using_deposit', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__deposit_double_entry')}}\n {% endif %}\n\n {% if var('using_invoice', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__invoice_double_entry')}}\n {% endif %}\n\n {% if var('using_transfer', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__transfer_double_entry')}}\n {% endif %}\n\n {% if var('using_journal_entry', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__journal_entry_double_entry')}}\n {% endif %}\n\n {% if var('using_payment', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__payment_double_entry')}}\n {% endif %}\n\n {% if var('using_refund_receipt', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__refund_receipt_double_entry')}}\n {% endif %}\n\n {% if var('using_vendor_credit', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__vendor_credit_double_entry')}}\n {% endif %}\n),\n\naccounts as (\n select *\n from {{ref('int_quickbooks__account_classifications')}}\n),\n\n\nadjusted_gl as (\n select\n {{ dbt_utils.surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'accounts.name', ' gl_union.transaction_type']) }} as unique_id,\n gl_union.transaction_id,\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 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),\n\nfinal as (\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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.surrogate_key"], "nodes": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__bill_payment_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__transfer_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__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger"], "unique_id": "model.quickbooks.quickbooks__general_ledger", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "9a8cbca20b277707e6ddc42f9da4f36a553b6cde50a95ad4aa570b197559001f"}, "tags": [], "refs": [["int_quickbooks__purchase_double_entry"], ["int_quickbooks__sales_receipt_double_entry"], ["int_quickbooks__bill_payment_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__transfer_double_entry"], ["int_quickbooks__journal_entry_double_entry"], ["int_quickbooks__payment_double_entry"], ["int_quickbooks__refund_receipt_double_entry"], ["int_quickbooks__vendor_credit_double_entry"], ["int_quickbooks__account_classifications"]], "sources": [], "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.\n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Unique identifier of 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": "Reference to the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The user defined account number associated with 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": "Type of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Account 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}, "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": 1663250045.4657018, "compiled_sql": "with gl_union as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n transaction_type,\n transaction_source\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__purchase_double_entry\"\n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__bill_payment_double_entry\"\n\n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__bill_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__deposit_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__invoice_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__transfer_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__payment_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_double_entry\"\n \n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n),\n\n\nadjusted_gl as (\n select\n md5(cast(coalesce(cast(gl_union.transaction_id as \n varchar\n), '') || '-' || coalesce(cast(gl_union.index as \n varchar\n), '') || '-' || coalesce(cast(accounts.name as \n varchar\n), '') || '-' || coalesce(cast( gl_union.transaction_type as \n varchar\n), '') as \n varchar\n)) as unique_id,\n gl_union.transaction_id,\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 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),\n\nfinal as (\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_source_integration_tests_quickbooks\".\"quickbooks__general_ledger\""}, "model.quickbooks.quickbooks__profit_and_loss": {"raw_sql": "with general_ledger_by_period as (\n select *\n from {{ref('quickbooks__general_ledger_by_period')}}\n where financial_statement_helper = 'income_statement'\n\n), final as (\n select\n period_first_day as calendar_date,\n account_class,\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 from general_ledger_by_period\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__profit_and_loss"], "unique_id": "model.quickbooks.quickbooks__profit_and_loss", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "0fd6e3f72ee1fde2261a6b4f4b56ebf21aad17556f4e98d10f8c44ce89ec6160"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "description": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information.\n", "columns": {"calendar_year": {"name": "calendar_year", "description": "The calendar year in the YYYY format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "calendar_month": {"name": "calendar_month", "description": "The calendar month in the MMM format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "The account classification.", "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 the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account.", "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": "The name of the account.", "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": []}}, "meta": {}, "docs": {"show": true}, "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": 1663250045.469907, "compiled_sql": "with general_ledger_by_period as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'income_statement'\n\n), final as (\n select\n period_first_day as calendar_date,\n account_class,\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 from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\""}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"raw_sql": "with expenses as (\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 select *\n from {{ ref('int_quickbooks__sales_union') }}\n),\n{% endif %}\n\nfinal as (\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", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__expenses_sales_enhanced"], "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "ec295e430096f5021926988b3170e35b58c3aaf9215828adb90747793157ba0d"}, "tags": [], "refs": [["int_quickbooks__expenses_union"], ["int_quickbooks__sales_union"]], "sources": [], "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.\n", "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 either the expense or sale transactions.", "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 when 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": "Reference to 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": "Account 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}, "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": 1663250045.462497, "compiled_sql": "with expenses as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\"\n),\n\n\nsales as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__sales_union\"\n),\n\n\nfinal as (\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_source_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\""}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"raw_sql": "--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 select *\n from {{ref('int_quickbooks__bill_join')}}\n),\n\n{% if var('using_invoice', True) %}\ninvoice_join as (\n select *\n from {{ref('int_quickbooks__invoice_join')}}\n),\n{% endif %}\n\n{% if var('using_department', True) %}\ndepartments as ( \n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\n{% if var('using_address', True) %}\naddresses as (\n select *\n from {{ref('stg_quickbooks__address')}}\n),\n{% endif %}\n\ncustomers as (\n select *\n from {{ref('stg_quickbooks__customer')}}\n),\n\nvendors as (\n select *\n from {{ref('stg_quickbooks__vendor')}}\n),\n\nfinal as (\n select\n transaction_type,\n transaction_id,\n doc_number,\n cast(null as {{ dbt_utils.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_utils.type_string() }}) as delivery_type,\n cast(null as {{ dbt_utils.type_string() }}) as estimate_status,\n total_amount,\n cast(null as {{ dbt_utils.type_numeric() }}) as estimate_amount,\n current_balance,\n total_current_payment,\n due_date,\n case when bill_join.current_balance != 0 and {{ dbt_utils.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_utils.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then {{ dbt_utils.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n initial_payment_date,\n 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 {% endif %}\n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\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 {% 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 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_utils.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_utils.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then {{ dbt_utils.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 {% 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 {% endif %}\n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n\n {% endif %}\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_numeric", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__ap_ar_enhanced"], "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "d3c8a53b0ea020bb35486e4e5fd46a3dfbdb708475eac402fc21d66d04aeae0a"}, "tags": [], "refs": [["int_quickbooks__bill_join"], ["int_quickbooks__invoice_join"], ["stg_quickbooks__department"], ["stg_quickbooks__address"], ["stg_quickbooks__customer"], ["stg_quickbooks__vendor"]], "sources": [], "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 calculations are included to show if the payable/receivable has been fully paid and/or paid on time.\n", "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 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}, "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": 1663250045.433984, "compiled_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith bill_join as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__bill_join\"\n),\n\n\ninvoice_join as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\"\n),\n\n\n\ndepartments as ( \n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\n\naddresses as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n),\n\n\ncustomers as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\nvendors as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nfinal as (\n select\n transaction_type,\n transaction_id,\n doc_number,\n cast(null as \n varchar\n) 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 \n varchar\n) as delivery_type,\n cast(null as \n varchar\n) as estimate_status,\n total_amount,\n cast(null as \n numeric(28, 6)\n) as estimate_amount,\n current_balance,\n total_current_payment,\n 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 initial_payment_date,\n recent_payment_date\n from bill_join\n\n \n left join departments \n on bill_join.department_id = departments.department_id\n \n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n \n \n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n \n \n \n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\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 \n\n \n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n \n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\""}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__transfer')}}\n),\n\ntransfer_body as (\n select\n transfer_id as transaction_id,\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 select \n transaction_id,\n index,\n transaction_date,\n cast(null as {{ dbt_utils.type_string() }}) as customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_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 index,\n transaction_date,\n cast(null as {{ dbt_utils.type_string() }}) as customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__transfer_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "84ec20312a67031bae6bff93d5a43472cc5f163cdea7abfb75edacb10de597c7"}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "description": "Table that creates a debit record to the receiving account and a credit record to the sending account.", "columns": {}, "meta": {}, "docs": {"show": true}, "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", "enabled": true}, "created_at": 1663250045.427875, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n),\n\ntransfer_body as (\n select\n transfer_id as transaction_id,\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 select \n transaction_id,\n index,\n transaction_date,\n cast(null as \n varchar\n) as customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n credit_to_account_id as account_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 index,\n transaction_date,\n cast(null as \n varchar\n) as customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n debit_to_account_id as account_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_source_integration_tests_quickbooks\".\"int_quickbooks__transfer_double_entry\""}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__credit_memo')}}\n),\n\ncredit_memo_lines as (\n select *\n from {{ref('stg_quickbooks__credit_memo_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\ndf_accounts as (\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n),\n\ncredit_memo_join as (\n select\n credit_memos.credit_memo_id as transaction_id,\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 from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount * -1 as amount,\n account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_memo_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "852b66bef218628360fc39ff9dc619727c3797e3a7f8b26c97e2fa480a344b2e"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"], ["stg_quickbooks__account"]], "sources": [], "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}, "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", "enabled": true}, "created_at": 1663250045.4262269, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\ndf_accounts as (\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n),\n\ncredit_memo_join as (\n select\n credit_memos.credit_memo_id as transaction_id,\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 from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount * -1 as amount,\n account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_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_source_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_double_entry\""}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__refund_receipt')}}\n),\n\nrefund_receipt_lines as (\n select *\n from {{ref('stg_quickbooks__refund_receipt_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),\n\nrefund_receipt_join as (\n select\n refund_receipts.refund_id as transaction_id,\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 from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n debit_account_id as account_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__refund_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "aff40c4210a37d13dbb0b8cb3a998461e137e484ce885aa6ce0f597f361a3bc6"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "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}, "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", "enabled": true}, "created_at": 1663250045.42743, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n select\n refund_receipts.refund_id as transaction_id,\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 from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n credit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n debit_account_id as account_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_source_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__journal_entry')}}\n),\n\njournal_entry_lines as (\n select *\n from {{ref('stg_quickbooks__journal_entry_line')}}\n),\n\nfinal as (\n select\n journal_entries.journal_entry_id as transaction_id,\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 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\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__journal_entry_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "b433f5d9428009dabd387efd0b9a9634ffbec913400655f2a2cf7c26fd2fe21a"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "description": "Table that provides the debit and credit records of a journal entry transaction.", "columns": {}, "meta": {}, "docs": {"show": true}, "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", "enabled": true}, "created_at": 1663250045.4268749, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n select\n journal_entries.journal_entry_id as transaction_id,\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 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\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_double_entry\""}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"raw_sql": "/*\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 select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nap_accounts as (\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\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 select\n transaction_id,\n index,\n transaction_date,\n cast(null as {{ dbt_utils.type_string() }}) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_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 index,\n transaction_date,\n cast(null as {{ dbt_utils.type_string() }}) as customer_id,\n vendor_id,\n amount,\n account_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "4f91a6e1ff96f949d25f55b24cec8819615bba6c78eaf07b90fafd1abce144d5"}, "tags": [], "refs": [["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"], ["stg_quickbooks__account"]], "sources": [], "description": "Table that creates a debit record to accounts payable and a credit record to the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true}, "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", "enabled": true}, "created_at": 1663250045.425911, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nap_accounts as (\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\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 select\n transaction_id,\n index,\n transaction_date,\n cast(null as \n varchar\n) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_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 index,\n transaction_date,\n cast(null as \n varchar\n) as customer_id,\n vendor_id,\n amount,\n account_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_source_integration_tests_quickbooks\".\"int_quickbooks__bill_payment_double_entry\""}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__deposit')}}\n), \n\ndeposit_lines as (\n select *\n from {{ref('stg_quickbooks__deposit_line')}}\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nuf_accounts as (\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n),\n\ndeposit_join as (\n select\n deposits.deposit_id as transaction_id,\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 from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n \n cross join uf_accounts\n\n),\n\nfinal as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n deposit_to_acct_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__deposit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "02e2b9d066e7e011426ec9cbdcf0d7ed49f426132e3652106974d204fbf04734"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"], ["stg_quickbooks__account"]], "sources": [], "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}, "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", "enabled": true}, "created_at": 1663250045.426473, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nuf_accounts as (\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n),\n\ndeposit_join as (\n select\n deposits.deposit_id as transaction_id,\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 from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n \n cross join uf_accounts\n\n),\n\nfinal as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n deposit_to_acct_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n deposit_from_acct_id as account_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_source_integration_tests_quickbooks\".\"int_quickbooks__deposit_double_entry\""}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"raw_sql": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n select *\n from {{ref('stg_quickbooks__purchase')}}\n),\n\npurchase_lines as (\n select *\n from {{ref('stg_quickbooks__purchase_line')}}\n),\n\nitems as (\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 select\n purchases.purchase_id as transaction_id,\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 purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__purchase_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "59e5477ceeb4c53ad2a18fb8fd8f7f9206cfd81a783a6e8ea1e7d0f9e29ed284"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__purchase_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "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}, "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"}, "created_at": 1663250045.4272509, "compiled_sql": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nitems as (\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n select\n purchases.purchase_id as transaction_id,\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 purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_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_source_integration_tests_quickbooks\".\"int_quickbooks__purchase_double_entry\""}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__sales_receipt')}}\n),\n\nsales_receipt_lines as (\n select *\n from {{ref('stg_quickbooks__sales_receipt_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),\n\nsales_receipt_join as (\n select\n sales_receipts.sales_receipt_id as transaction_id,\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 from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__sales_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "95bd656ce36e028ba14b63035e91741778555151f7cb597f59065deacbd343e4"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "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}, "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", "enabled": true}, "created_at": 1663250045.427608, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n select\n sales_receipts.sales_receipt_id as transaction_id,\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 from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n debit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n credit_to_account_id as account_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_source_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__vendor_credit')}}\n),\n\nvendor_credit_lines as (\n select *\n from {{ref('stg_quickbooks__vendor_credit_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),\n\nvendor_credit_join as (\n select\n vendor_credits.vendor_credit_id as transaction_id,\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 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\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select \n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__vendor_credit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "dab1b9c14d836305b615549b79ed487e9f2269c739e876ab779364b860a66673"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "description": "Table that creates a debit record to payable account and a credit record to the expense account.", "columns": {}, "meta": {}, "docs": {"show": true}, "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", "enabled": true}, "created_at": 1663250045.428052, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n select\n vendor_credits.vendor_credit_id as transaction_id,\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 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\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select \n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_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_source_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_double_entry\""}, "model.quickbooks.int_quickbooks__bill_double_entry": {"raw_sql": "/*\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 select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\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 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 bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select \n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "abf6f6d2e59699a356439f0ca23c54cb5b0655c09ef866b018fd3c2db8213c23"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "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}, "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", "enabled": true}, "created_at": 1663250045.4255471, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\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_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_source_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 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 bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select \n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_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_source_integration_tests_quickbooks\".\"int_quickbooks__bill_double_entry\""}, "model.quickbooks.int_quickbooks__payment_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__payment')}}\n),\n\npayment_lines as (\n select *\n from {{ref('stg_quickbooks__payment_line')}}\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nar_accounts as (\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n),\n\npayment_join as (\n select\n payments.payment_id as transaction_id,\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n deposit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "ee0bc3223f31fd25daa3ca8f6844db411bf695b28ad88897f9631775b0b7844a"}, "tags": [], "refs": [["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"], ["stg_quickbooks__account"]], "sources": [], "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}, "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", "enabled": true}, "created_at": 1663250045.427071, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nar_accounts as (\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n),\n\npayment_join as (\n select\n payments.payment_id as transaction_id,\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n deposit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_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_source_integration_tests_quickbooks\".\"int_quickbooks__payment_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"raw_sql": "/*\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),\n\naccounts as (\n select *\n from {{ref('stg_quickbooks__account')}}\n),\n\n\n{% if var('using_invoice_bundle', True) %}\ninvoice_bundles as (\n select *\n from {{ref('stg_quickbooks__invoice_line_bundle')}}\n),\n\nbundles as (\n select *\n from {{ref('stg_quickbooks__bundle')}}\n),\n\nbundle_items as (\n select \n *\n from {{ref('stg_quickbooks__bundle_item')}}\n),\n\nincome_accounts as (\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n bundle_items.bundle_id\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n),\n{% endif %}\n\nar_accounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n select\n invoices.invoice_id as transaction_id,\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\n {% else %}\n coalesce(invoice_lines.account_id, items.income_account_id) as account_id,\n\n {% endif %}\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\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\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n ar_accounts.account_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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__invoice_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "31a4a4c3736c923cb71670c86bce273a0c94e4cbe4775f564e736bb1a8641530"}, "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": [], "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}, "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", "enabled": true}, "created_at": 1663250045.426671, "compiled_sql": "/*\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_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"quickbooks_source_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_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\n\n\ninvoice_bundles as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n),\n\nbundles as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n),\n\nbundle_items as (\n select \n *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\n),\n\nincome_accounts as (\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n bundle_items.bundle_id\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n),\n\n\nar_accounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n select\n invoices.invoice_id as transaction_id,\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 invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n\n \n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n ar_accounts.account_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_source_integration_tests_quickbooks\".\"int_quickbooks__invoice_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_transactions": {"raw_sql": "--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 from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n invoices.invoice_id as transaction_id,\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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__invoice_transactions"], "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "7c47219159482cb5486ff8f1420e39dcc823de209a7970e5df37b090f01b4631"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.627789, "compiled_sql": "--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_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n invoices.invoice_id as transaction_id,\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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\""}, "model.quickbooks.int_quickbooks__bill_transactions": {"raw_sql": "--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 select *\n from {{ ref('stg_quickbooks__bill') }} \n),\n\nbill_lines as (\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n bills.bill_id as transaction_id,\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\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__bill_transactions"], "unique_id": "model.quickbooks.int_quickbooks__bill_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "ab24f6028c492c7356d5594643d513ed7801ab04b90ae1635094d028adc6b69c"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"]], "sources": [], "description": "Table that joins the bill and corresponding bill lines into a single bill transactions table.", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.428222, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\" \n),\n\nbill_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n bills.bill_id as transaction_id,\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\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\""}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"raw_sql": "--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 select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n select\n journal_entries.journal_entry_id as transaction_id,\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_utils.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)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__journal_entry_transactions"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "20331ca032ed04088b7b91d3a966569fbddd328500ef726926e0c50ff954dacf"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "description": "Table that joins the journal entry and corresponding journal entry lines into a single journal entry transactions table.", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.428732, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n select\n journal_entries.journal_entry_id as transaction_id,\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 \n varchar\n) 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)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\""}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__refund_receipt')}}\n),\n\nrefund_receipt_lines as (\n select *\n from {{ref('stg_quickbooks__refund_receipt_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n refund_receipts.refund_id as transaction_id,\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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__refund_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "94b5e9cbd8e76f3fa4675ac56d43fc2ad2a75bad78571e468e57d8deb0468a41"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "description": "Table that joins the refund receipt and corresponding refund receipt lines into a single refund receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.429068, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n refund_receipts.refund_id as transaction_id,\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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\""}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__vendor_credit')}}\n),\n\nvendor_credit_lines as (\n select *\n from {{ref('stg_quickbooks__vendor_credit_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n vendor_credits.vendor_credit_id as transaction_id,\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\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__vendor_credit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "44dd7dbdee7eb69957e8ca1f25bc49e6981462ab6289577d869537d1ec8a1dff"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"]], "sources": [], "description": "Table that joins the vendor credit and corresponding vendor credit lines into a single vendor credit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.429405, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n vendor_credits.vendor_credit_id as transaction_id,\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\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\""}, "model.quickbooks.int_quickbooks__purchase_transactions": {"raw_sql": "--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 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\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__purchase_transactions"], "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "12d0d4051724830798e0aa4eba96319824655478a4a5d7d0afeb7d284f30a784"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__item"], ["stg_quickbooks__purchase_line"]], "sources": [], "description": "Table that joins the purchase and corresponding purchase lines into a single purchase transactions table.", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.428899, "compiled_sql": "--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_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\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\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\""}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__sales_receipt')}}\n),\n\nsales_receipt_lines as (\n select *\n from {{ref('stg_quickbooks__sales_receipt_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n sales_receipts.sales_receipt_id as transaction_id,\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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__sales_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "796701633bec49f4836d17748afc0e84338ace3ce9110e2a2e682a0b773139a8"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "description": "Table that joins the sales receipt and corresponding sales receipt lines into a single sales receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.42924, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n sales_receipts.sales_receipt_id as transaction_id,\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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\""}, "model.quickbooks.int_quickbooks__deposit_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__deposit')}}\n), \n\ndeposit_lines as (\n select *\n from {{ref('stg_quickbooks__deposit_line')}}\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposit_lines.index as transaction_line_id,\n cast(null as {{ dbt_utils.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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__deposit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "b02ff712ecec85d94a155668c93f9498ad1bd33ff168f7f5ab9b324e6614397a"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"]], "sources": [], "description": "Table that joins the deposit and corresponding deposit lines into a single deposit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.428558, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposit_lines.index as transaction_line_id,\n cast(null as \n varchar\n) 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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\""}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__credit_memo')}}\n),\n\ncredit_memo_lines as (\n select *\n from {{ref('stg_quickbooks__credit_memo_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n credit_memos.credit_memo_id as transaction_id,\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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__credit_memo_transactions"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "3cfc0d0fec71e9eefdcd82df1424cf015f9eec5da906c1cd34b47c258ee94057"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"]], "sources": [], "description": "Table that joins the credit memo and credit memo lines into a single credit memo transactions table.", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.4283898, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n credit_memos.credit_memo_id as transaction_id,\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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\""}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"raw_sql": "with general_ledger as (\n select *\n from {{ref('quickbooks__general_ledger')}}\n),\n\ngl_accounting_periods as (\n select *\n from {{ref('int_quickbooks__general_ledger_date_spine')}}\n),\n\ngl_period_balance as (\n select\n account_id,\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 cast({{ dbt_utils.date_trunc(\"year\", \"transaction_date\") }} as date) as date_year,\n cast({{ dbt_utils.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(12) }}\n),\n\ngl_cumulative_balance as (\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 select\n account_id,\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 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.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.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),\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 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 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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_balances"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "48db6532e87b6d7027316d2ba70ac71063cef8f52527e87c4fb9ae4283ce954f"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["int_quickbooks__general_ledger_date_spine"]], "sources": [], "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}, "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": 1663250045.430161, "compiled_sql": "with general_ledger as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ngl_accounting_periods as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\"\n),\n\ngl_period_balance as (\n select\n account_id,\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 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\n),\n\ngl_cumulative_balance as (\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 select\n account_id,\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 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.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.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),\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 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 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_source_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\""}, "model.quickbooks.int_quickbooks__account_classifications": {"raw_sql": "with accounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nclassification_fix as (\n select \n account_id,\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 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 select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\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)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__account_classifications"], "unique_id": "model.quickbooks.int_quickbooks__account_classifications", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "a2cd5e140a003b28b76885a98fe24dc113cb4934b055196595bbb29fb4864ce8"}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "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 account_types. 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}, "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": 1663250045.429576, "compiled_sql": "with accounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nclassification_fix as (\n select \n account_id,\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 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 select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\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)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\""}, "model.quickbooks.int_quickbooks__expenses_union": {"raw_sql": "with expense_union as (\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 select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nexpense_accounts as (\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Expense'\n),\n\nfinal as (\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\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_utils.type_string() }}) as item_id,\n cast(null as {{ dbt_utils.type_numeric() }}) as item_quantity,\n cast(null as {{ dbt_utils.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\n left join customers\n on customers.customer_id = expense_union.customer_id\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = expense_union.department_id\n {% endif %}\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__expenses_union"], "unique_id": "model.quickbooks.int_quickbooks__expenses_union", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "70f6cdad7cca7f65b57f6df40f06bd6d1367ec89a5425ad533f4fcfd2d341b32"}, "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": [], "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}, "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": 1663250045.429916, "compiled_sql": "with expense_union as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\"\n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\"\n \n),\n\ncustomers as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nexpense_accounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Expense'\n),\n\nfinal as (\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\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 \n varchar\n) as item_id,\n cast(null as \n numeric(28, 6)\n) as item_quantity,\n cast(null as \n numeric(28, 6)\n) 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\n left join customers\n on customers.customer_id = expense_union.customer_id\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n\n \n left join departments\n on departments.department_id = expense_union.department_id\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\""}, "model.quickbooks.int_quickbooks__invoice_join": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__invoice')}}\n),\n\ninvoice_linked as (\n select *\n from {{ref('stg_quickbooks__invoice_linked_txn')}}\n),\n\n{% if var('using_estimate', True) %}\nestimates as (\n select *\n from {{ref('stg_quickbooks__estimate')}}\n),\n{% endif %}\n\npayments as (\n select *\n from {{ref('stg_quickbooks__payment')}}\n),\n\npayment_lines_payment as (\n select *\n from {{ref('stg_quickbooks__payment_line')}}\n\n where invoice_id is not null\n),\n\ninvoice_est as (\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 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 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 select\n cast('invoice' as {{ dbt_utils.type_string() }}) as transaction_type,\n invoice_link.invoice_id as transaction_id,\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_utils.type_numeric() }}) as estimate_total_amount,\n cast(null as {{ dbt_utils.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 {% endif %}\n\n left join payments\n on invoice_link.payment_id = payments.payment_id\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\n group by 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string"], "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__invoice_join"], "unique_id": "model.quickbooks.int_quickbooks__invoice_join", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "7717302b6a06623f572f5da16d3f1e8bfbaf14889ba01018e47b92a872e0c4c5"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_linked_txn"], ["stg_quickbooks__estimate"], ["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"]], "sources": [], "description": "Table that joins a single invoice transactions with the corresponding payment (if paid) and corresponding estimate (if provided).", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.430499, "compiled_sql": "--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_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_linked as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\n),\n\n\nestimates as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n),\n\n\npayments as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines_payment as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n\n where invoice_id is not null\n),\n\ninvoice_est as (\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 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 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 select\n cast('invoice' as \n varchar\n) as transaction_type,\n invoice_link.invoice_id as transaction_id,\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 \n\n left join payments\n on invoice_link.payment_id = payments.payment_id\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\n group by 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\""}, "model.quickbooks.int_quickbooks__retained_earnings": {"raw_sql": "with general_ledger_balances as (\n select *\n from {{ref('int_quickbooks__general_ledger_balances')}}\n),\n\nrevenue_starter as (\n select\n period_first_day,\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\n),\n\nexpense_starter as (\n select \n period_first_day,\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\n),\n\nnet_income_loss as (\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day)\n),\n\nretained_earnings_starter as (\n select\n cast('9999' as {{ dbt_utils.type_string() }}) as account_id,\n cast('9999-00' as {{ dbt_utils.type_string() }}) as account_number,\n cast('Net Income / Retained Earnings Adjustment' as {{ dbt_utils.type_string() }}) as account_name,\n false as is_sub_account,\n cast(null as {{ dbt_utils.type_string() }}) as parent_account_number,\n cast(null as {{ dbt_utils.type_string() }}) as parent_account_name,\n cast('Equity' as {{ dbt_utils.type_string() }}) as account_type,\n cast('RetainedEarnings' as {{ dbt_utils.type_string() }})as account_sub_type,\n cast('Equity' as {{ dbt_utils.type_string() }}) as account_class,\n cast('balance_sheet' as {{ dbt_utils.type_string() }}) as financial_statement_helper,\n cast({{ dbt_utils.date_trunc(\"year\", \"period_first_day\") }} as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n {{ dbt_utils.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 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,\n\nfinal as (\n select\n account_id,\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 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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.date_trunc", "macro.dbt_utils.last_day"], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__retained_earnings"], "unique_id": "model.quickbooks.int_quickbooks__retained_earnings", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "0e727a8507e61c60856f7d0706f79eaa86aadad01641bef3c032525538d61f42"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"]], "sources": [], "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}, "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": 1663250045.4308329, "compiled_sql": "with general_ledger_balances as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nrevenue_starter as (\n select\n period_first_day,\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\n),\n\nexpense_starter as (\n select \n period_first_day,\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\n),\n\nnet_income_loss as (\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day)\n),\n\nretained_earnings_starter as (\n select\n cast('9999' as \n varchar\n) as account_id,\n cast('9999-00' as \n varchar\n) as account_number,\n cast('Net Income / Retained Earnings Adjustment' as \n varchar\n) as account_name,\n false as is_sub_account,\n cast(null as \n varchar\n) as parent_account_number,\n cast(null as \n varchar\n) as parent_account_name,\n cast('Equity' as \n varchar\n) as account_type,\n cast('RetainedEarnings' as \n varchar\n)as account_sub_type,\n cast('Equity' as \n varchar\n) as account_class,\n cast('balance_sheet' as \n varchar\n) 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 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,\n\nfinal as (\n select\n account_id,\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 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_source_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\""}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"raw_sql": "-- 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_utils.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_utils.date_trunc(\"year\", \"date_month\") }} as date) as date_year,\n cast({{ dbt_utils.date_trunc(\"month\", \"date_month\") }} as date) as period_first_day,\n {{ dbt_utils.last_day(\"date_month\", \"month\") }} as period_last_day,\n row_number() over (order by cast({{ dbt_utils.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.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 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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.date_trunc", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_date_spine"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "d7b32b1d1dbe02ad98ef21c24d12a204c7bc206e9eb9da6c9df11650ff60a0a8"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["quickbooks__general_ledger"]], "sources": [], "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}, "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": 1663250045.430331, "compiled_sql": "-- depends_on: \"postgres\".\"quickbooks_source_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 <= 45.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('2022-09-15' 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_source_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.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 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_source_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\""}, "model.quickbooks.int_quickbooks__bill_join": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__bill')}}\n),\n\nbill_lines as (\n select *\n from {{ref('stg_quickbooks__bill_line')}}\n),\n\nbills_linked as (\n select *\n from {{ref('stg_quickbooks__bill_linked_txn')}}\n),\n\nbill_payments as (\n select *\n from {{ref('stg_quickbooks__bill_payment')}}\n),\n\nbill_payment_lines as (\n select *\n from {{ref('stg_quickbooks__bill_payment_line')}}\n\n where bill_id is not null\n),\n\nbill_pay as (\n select\n bills.bill_id,\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\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\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),\n\nfinal as (\n select\n cast('bill' as {{ dbt_utils.type_string() }}) as transaction_type,\n bill_link.bill_id as transaction_id,\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\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1, 2, 3, 4, 5, 6, 7, 8, 9\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string"], "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__bill_join"], "unique_id": "model.quickbooks.int_quickbooks__bill_join", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "2d82b0d8b6cc465ee8ba19911ead9f22613cf4e3c61e87a65ca0ef6d67ae7806"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__bill_linked_txn"], ["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"]], "sources": [], "description": "Table that joins a single bill transaction with the corresponding bill payment (if paid).", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.429748, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nbills_linked as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\n),\n\nbill_payments as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n\n where bill_id is not null\n),\n\nbill_pay as (\n select\n bills.bill_id,\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\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\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),\n\nfinal as (\n select\n cast('bill' as \n varchar\n) as transaction_type,\n bill_link.bill_id as transaction_id,\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\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1, 2, 3, 4, 5, 6, 7, 8, 9\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__bill_join\""}, "model.quickbooks.int_quickbooks__sales_union": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice'])) }}\n\nwith sales_union as (\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 select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nincome_accounts as (\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Income'\n),\n\nfinal as (\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\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\n left join customers\n on customers.customer_id = sales_union.customer_id\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = sales_union.department_id\n {% endif %}\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__sales_union"], "unique_id": "model.quickbooks.int_quickbooks__sales_union", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "b48e3ecc298fcccdf54a63bc210c1a11fbded3702ff8ba3c696d2d65dc20467a"}, "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": [], "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}, "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": 1663250045.430666, "compiled_sql": "\n\nwith sales_union as (\n \n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\"\n\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\"\n \n),\n\ncustomers as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nincome_accounts as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Income'\n),\n\nfinal as (\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\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\n left join customers\n on customers.customer_id = sales_union.customer_id\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n\n \n left join departments\n on departments.department_id = sales_union.department_id\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks\".\"int_quickbooks__sales_union\""}, "analysis.quickbooks.quickbooks__balance_sheet": {"raw_sql": "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", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__balance_sheet"], "unique_id": "analysis.quickbooks.quickbooks__balance_sheet", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.726086, "compiled_sql": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_source_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": {"raw_sql": "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", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__income_statement"], "unique_id": "analysis.quickbooks.quickbooks__income_statement", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.728517, "compiled_sql": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_source_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": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt_utils.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8182bb7fde66f44182184937272a46db77aabfd36c1fbb72d6e6f29ad8bf29ee"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "description": "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}, "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": 1663250045.514967, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as \n varchar\n) as journal_entry_id,\n index,\n cast(account_id as \n varchar\n) as account_id,\n amount,\n cast(customer_id as \n varchar\n) as customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as \n varchar\n) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt_utils.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt_utils.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "c23e6ffe67c90019d686607db14ed9e6218e1e9a0006da0f37eb63aaacdf25a8"}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "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}, "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": 1663250045.537515, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as transfer_id,\n amount,\n cast(from_account_id as \n varchar\n) as from_account_id,\n cast(to_account_id as \n varchar\n) as to_account_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt_utils.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt_utils.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 from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "576576fe59dcfc7f3124568fbc558bd3bf3bb8c1fa4c5fe807efb2fc4d23f577"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "description": "", "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}, "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": 1663250045.4834812, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as \n varchar\n) as bill_payment_id,\n index,\n amount,\n cast(bill_id as \n varchar\n) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt_utils.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "31e9e3f13b0368c950a43abcb00f6e7cf9f524e840ff5e8e1fa3f9948992794e"}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "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}, "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": 1663250045.517828, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(payment_id as \n varchar\n) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as \n varchar\n) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"raw_sql": "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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt_utils.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 from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "10e8f6a5039c3cfe39da881607eb1b3d61fd04917b610c7543ea0d9bccdd21e7"}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "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}, "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": 1663250045.543566, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as \n varchar\n) 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 from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt_utils.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "7906b307229b91a842dc797cd69a19a2ab202fdbe3a3cbc31bd6e39d30716f4b"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "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}, "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": 1663250045.5059662, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as \n varchar\n) as bundle_id,\n cast(account_id as \n varchar\n) as account_id,\n cast(item_id as \n varchar\n) as item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as estimate_id,\n 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 from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "61a85858135108187659defbc6b52be05c0a1304b78bfe222a8eb9bce785a642"}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "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}, "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": 1663250045.500397, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as estimate_id,\n 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 from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt_utils.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "731e90d11faba9c0f3875147fc405accd6af74d78fc1ec7a18c44f20a46ede43"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "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": "Account reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference 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": "Account reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference 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": {}, "docs": {"show": true}, "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": 1663250045.490416, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as \n varchar\n) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at\n\n from fields\n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "0ef2ed2eb8ac8a308edbedea863968ddd1ad5f619afe6e9c72678ef151168d98"}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "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}, "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": 1663250045.488874, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"raw_sql": "--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 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 from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns"], "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "2be93e7cc41f15b54e16e9dcf3fa931ca96aa0c49cafee6b61af10a8938a063f"}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "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}, "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": 1663250045.495583, "compiled_sql": "--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_source_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 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 from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"raw_sql": "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 from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt_utils.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.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_utils.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "b9450450ff124f39a044634b49ee7acd4933674b5b3eb95e599b1cb52cea79e9"}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "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_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}, "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": 1663250045.521264, "compiled_sql": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_source_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 from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as \n varchar\n) as purchase_id,\n index,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"raw_sql": "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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt_utils.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_utils.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "c8bc7f7cee804ce5a82d9b11833771548f542afd1c53161f672dc41ece81ea7a"}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "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}, "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": 1663250045.523255, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as purchase_id,\n cast(account_id as \n varchar\n) as account_id,\n created_at,\n cast(doc_number as \n varchar\n) 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 \n varchar\n) as customer_id,\n cast(vendor_id as \n varchar\n) as vendor_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt_utils.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8212f77bbd56e97a8e02b8d7c222ca55dfcdf2170f59bd6b230c23ed369ca606"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "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": []}, "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_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}, "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": 1663250045.530367, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(refund_id as \n varchar\n) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt_utils.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "fb8aa15c70398f69cd0f33a4acf161994c7915b183485abf5623256b13f94204"}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "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}, "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": 1663250045.4879959, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as \n varchar\n) as bundle_id,\n cast(item_id as \n varchar\n) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "7f31e1d8b784eed03a72c1197f17a39acce3d8bdf12b6c69e7991cceff5666b3"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "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}, "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": 1663250045.492121, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as credit_memo_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n cast(customer_id as \n varchar\n) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt_utils.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price \n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "439c85dbcc118c34af1e82a50bb8a3b900f6c703097da5f26d205ee626745849"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "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": []}, "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_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}, "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": 1663250045.533848, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_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 from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as \n varchar\n) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n department_id,\n class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "151c999c4d87ced6509cba1d90bf218b0ad3818e76e6a7a758092a3fd41660d9"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "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}, "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": 1663250045.535691, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as sales_receipt_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n created_at,\n cast(customer_id as \n varchar\n) as customer_id,\n department_id,\n class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt_utils.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt_utils.type_string() }}) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "cde4edebc70b7fbc6dd6f2a188dcc053f2be9bec2140afa8acb37feb5e0dae16"}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "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}, "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": 1663250045.5034099, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n cast(payment_id as \n varchar\n) as payment_id,\n cast(estimate_id as \n varchar\n) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt_utils.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d9add19e167a1f9243a34b39a75343d132db589efdfa2375ec02f007e96ca5f2"}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "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": []}, "_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}, "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": 1663250045.510599, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as invoice_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as \n varchar\n) as customer_id,\n cast(billing_address_id as \n varchar\n) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt_utils.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt_utils.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_utils.type_string() }}) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "cf71cbd50dd81b86d439835f3061a0f20760dd14b69d8be29a1ddeb4e74ae9ec"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "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}, "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": 1663250045.485259, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as bill_payment_id,\n cast(check_bank_account_id as \n varchar\n) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as \n varchar\n) 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 \n varchar\n) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "bcd0b77671c0f4445a56033269d4a5fc98ff663ff2707700bde1c8365fe520b3"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "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": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "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}, "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": 1663250045.5079749, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n cast(item_id as \n varchar\n) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as \n varchar\n) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"raw_sql": "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 from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as account_id,\n cast(account_number as {{ dbt_utils.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt_utils.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\n from base\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "ab8f2d71492bdf90ba7d2dc6e50139c2b860226d77f18b4e67efd94131d98c1f"}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "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.\n", "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}, "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": 1663250045.477136, "compiled_sql": "with base as (\n select *\n from \"postgres\".\"quickbooks_source_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 from base\n),\n\nfinal as (\n\n select\n cast(id as \n varchar\n) as account_id,\n cast(account_number as \n varchar\n) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as \n varchar\n) 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\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt_utils.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "e4bf9c4a71e597b2a9c4df93d53e73d9226c0c1643498487b17744af533a40f3"}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "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}, "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": 1663250045.519456, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as \n varchar\n) as receivable_account_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as \n varchar\n) as customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt_utils.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n discount_class_id,\n sales_item_account_id,\n sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "236c8ce21b4a765f9ac17846a408fb3e5e41c432c0ece468938f000db9338bb4"}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "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}, "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": 1663250045.502511, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as \n varchar\n) as estimate_id,\n index,\n description,\n discount_account_id,\n discount_class_id,\n sales_item_account_id,\n sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt_utils.type_string() }}) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "61d8f6482d5485430f1e877300688ea1da6e5c7f85875d2da1b0fe008b5b429a"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "description": "", "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}, "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": 1663250045.481216, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(bill_id as \n varchar\n) as bill_id,\n index,\n cast(bill_payment_id as \n varchar\n) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.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 from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "5648267ee252643f3ba7f1463b79965aff6998b6636cfd2deacd9bb7c951cb2b"}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "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}, "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": 1663250045.4783812, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"raw_sql": "--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 from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt_utils.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_utils.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "082c7d45aa91cd473330817e7115cdd6268a51319b226cd5a17f6ab563ffa097"}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "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}, "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": 1663250045.4872792, "compiled_sql": "--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_source_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 from base\n),\n \nfinal as (\n \n select \n cast(id as \n varchar\n) as bill_id,\n balance,\n cast(doc_number as \n varchar\n) 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 \n varchar\n) as payable_account_id,\n total_amount,\n cast(vendor_id as \n varchar\n) as vendor_id,\n private_note,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt_utils.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "fd1ad3febae0e4bdc558f7532dd6af20cb63c21659756702bc6767b5e00828f3"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "description": "", "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": []}, "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}, "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": 1663250045.480469, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(bill_id as \n varchar\n) as bill_id,\n index,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"raw_sql": "--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 from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "6adb65ff59e13768161ba5c0a0bfe99806898d3262825ff8cf128e562eda62ce"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "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}, "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": 1663250045.5166562, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n\n select\n cast(id as \n varchar\n) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as \n varchar\n) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "2910d63c96e4ddf5818442a6d16726c4a55f9f7b0e06407b3d6da40c345faa29"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "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}, "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": 1663250045.532305, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as refund_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as \n varchar\n) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt_utils.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt_utils.type_string() }}) as deposit_account_id,\n deposit_class_id,\n cast(deposit_customer_id as {{ dbt_utils.type_string() }}) as deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "a32b911408ed00166ecfb3b88ff365da095fe6a3148542452a93ea85c9649065"}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "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}, "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": 1663250045.496785, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as \n varchar\n) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as \n varchar\n) as deposit_account_id,\n deposit_class_id,\n cast(deposit_customer_id as \n varchar\n) as deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "3040e997aabc279f20d3740f0591319d9973862ab4de1dab050d3b59a76a4545"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "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}, "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": 1663250045.541975, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as vendor_credit_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as \n varchar\n) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as \n varchar\n) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt_utils.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n item_expense_class_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "4760dd7449f9de76839a422033d5c255cb30dfd878befdd10a627c60663beea9"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "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}, "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": 1663250045.540027, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as \n varchar\n) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n item_expense_class_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt_utils.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 from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "68846fdada1ddea1ad77c95f863190ec6e02e1f241fa34a4f2888cfda76a73ba"}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "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}, "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": 1663250045.498517, "compiled_sql": "--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_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as deposit_id,\n cast(account_id as \n varchar\n) 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 from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"raw_sql": "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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt_utils.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt_utils.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt_utils.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_utils.type_string() }}) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "b5fe88881ea7edd1df4429ceb0e5c69e740baabdcdf96e90158cce87c9407675"}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "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}, "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": 1663250045.512714, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as \n varchar\n) as income_account_id,\n cast(asset_account_id as \n varchar\n) as asset_account_id,\n cast(expense_account_id as \n varchar\n) 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 \n varchar\n) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__customer": {"raw_sql": "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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.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\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "e7d4734dbe9fcc95ee73a4f1216cd8e6fa1325b24dbd0e6405279c366a98e836"}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "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}, "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": 1663250045.494216, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_source_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) 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\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('vendor_credit') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.vendor_credit_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "2cc1af8b806f60a8aab3cc6b08988da2d3014a246be9ff927ced5d1fda182fc9"}, "tags": [], "refs": [["vendor_credit_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.28079, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('refund_receipt_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.refund_receipt_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "937c4edb6ed96a15d1ed984d79c6306f9ba1fa3a338e5e7a34fc0b3301f0b1c6"}, "tags": [], "refs": [["refund_receipt_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.2845418, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('estimate_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.estimate_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "c384d015b8964e52ccf18fcbbd2260278d8f2d9b02e79cda1ed35d89514f018d"}, "tags": [], "refs": [["estimate_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.288309, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"estimate_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('credit_memo_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.credit_memo_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d3c8e3dc3108ebae669290dc214fc716857dd7b93134587014f90ae22bd89bec"}, "tags": [], "refs": [["credit_memo_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.2959309, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('journal_entry') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.journal_entry_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "61f5ac20efc0252540f3ff70ec87692d2b4635a96ec4ad08e7f8295e9f9e898d"}, "tags": [], "refs": [["journal_entry_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.299999, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('invoice_line_bundle') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.invoice_line_bundle_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "ecba6d64adcba0d6a1ec3bed3bdaee051c8b23ce2bd7d6dd87254a92dc772837"}, "tags": [], "refs": [["invoice_line_bundle_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.303403, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_bundle_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('payment') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.payment_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "68166bc4b2a668928e855e7371c6743a5bf66a1fb1ede8bb2b113ff3e8d9c239"}, "tags": [], "refs": [["payment_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.3067899, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"payment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('invoice_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.invoice_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "70e8445c77cc3b476587100fa0123c29ec4a82810ee9517dcc9abcfddd42b835"}, "tags": [], "refs": [["invoice_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.310268, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('deposit_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.deposit_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "c792d5b27123728ccbd7b656a2a720c9880baad2c5102b95e275071fc7019440"}, "tags": [], "refs": [["deposit_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.313171, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"deposit_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"raw_sql": "select * \nfrom {{ var('customer') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.customer_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "ed57930558565003ebd42e837a90057b26f852767bc32e4a58b19094ecbfa509"}, "tags": [], "refs": [["customer_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.317513, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "65c2cf00e68503a0faa314a95bcb99d9aef127a66b49eed378dba1307b80ff8e"}, "tags": [], "refs": [["bill_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.320836, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"raw_sql": "select * \nfrom {{ var('item') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.item_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "af4a69cfe57cc894bf2bab8d71ac00aa95dd4ff1b337ad031accdf8059ce4dd9"}, "tags": [], "refs": [["item_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.324191, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"raw_sql": "select *\nfrom {{ var('account') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.account_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "89b197ede7e07bf1451016ce108798ac734cb75e9ab2f15a1e3690cd349b91ba"}, "tags": [], "refs": [["account_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.3276212, "compiled_sql": "select *\nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('vendor_credit_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.vendor_credit_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "78229c53b993c7bcc6d8355993cdc3a2ff5c07117ced9aaef4ea691019361b6f"}, "tags": [], "refs": [["vendor_credit_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.330813, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('department') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.department_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "2fdf3784cf998ce60970941e2839d369cd085661c952946bef8592d1abf32f47"}, "tags": [], "refs": [["department_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.334193, "compiled_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bundle') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bundle_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "167d7ef377ddda2a70dd33550dc6bd59b65b9e5d3af94c86fd348669b19eba01"}, "tags": [], "refs": [["bundle_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.338669, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bundle_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bundle_item') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bundle_item_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "364c8c25c619bdf90cbc036bd87b84d19b686250398a3a107089a883da7828f6"}, "tags": [], "refs": [["bundle_item_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.342345, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bundle_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill_payment_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_payment_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d0c2fe19b83418b83ff4d040425de10b4558cb98b74621fce2de76e67bc53992"}, "tags": [], "refs": [["bill_payment_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.349338, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('estimate') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.estimate_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "387d86ea42380e18b5a88af69c9801228ec43e7cfca5fe9a2e00151c9c65f451"}, "tags": [], "refs": [["estimate_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.353041, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"estimate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"raw_sql": "select * \nfrom {{ var('purchase') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.purchase_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "66bc8c4634087951dd5d541ee092908f907fc0a521936fa5753894b2f121f471"}, "tags": [], "refs": [["purchase_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.35622, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"purchase_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('credit_memo') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.credit_memo_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "5a8abf0f3c86c4d7675fd783d26cd5477bec0e06056f82b8351d333f1df9fe7a"}, "tags": [], "refs": [["credit_memo_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.360002, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "13eedc57b03b350d0c228dbf1556178789afabe88eb541806450c0c3856e8dd7"}, "tags": [], "refs": [["bill_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.362963, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('transfer') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.transfer_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "fe093aad89e2c31a8bdcdc76afda4d24dcefa51d92b3233c64524eeba3eef37b"}, "tags": [], "refs": [["transfer_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.365939, "compiled_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"transfer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"raw_sql": "select * \nfrom {{ var('vendor') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.vendor_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8b70affb7fe37710eca09eae95bf632d9d27148f5b733a85704da28973d0488d"}, "tags": [], "refs": [["vendor_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.3695161, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"raw_sql": "select * \nfrom {{ var('purchase_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.purchase_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "4fd11ba6c866de7b7e63ac6b49ad73bda7f7979bd524c1b590bd3199237170e3"}, "tags": [], "refs": [["purchase_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.372176, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"purchase_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('address') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.address_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "df4f34085d800f3d46de4b2047720a9089ed863de57734e4dcae21288c65ab99"}, "tags": [], "refs": [["address_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.374768, "compiled_sql": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('payment_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.payment_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "5f0d1167d49e59ebd3067c62b5669168b1cc2bad26a10183754a6e487d2abb2f"}, "tags": [], "refs": [["payment_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.3795142, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"payment_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('refund_receipt') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.refund_receipt_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "cfee40b115db7fd6bfa6e9e149f1869ac0f7e00dd706ee67d4d84c8206872abf"}, "tags": [], "refs": [["refund_receipt_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.3825788, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nselect * \nfrom {{ var('sales_receipt') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.sales_receipt_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "e3359ec9953b6cfab71b2d84d7ea912911eaa099382a7b2ad4a513e432ef65b5"}, "tags": [], "refs": [["sales_receipt_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.385816, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill_payment') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_payment_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "66eda7d6020107bc0e84dcea48b870c6096225de722562f2d762140fd612beaf"}, "tags": [], "refs": [["bill_payment_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.389594, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('journal_entry_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.journal_entry_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "b50644aae9cd93f4b5984e7971224db8d93dafd7f248dfb89364bea6972fcfbf"}, "tags": [], "refs": [["journal_entry_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.393423, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('deposit') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.deposit_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "43224393f0bbff587d3698bbfbbd2ff3cd5f683500cd00a2419c746c005ec5f4"}, "tags": [], "refs": [["deposit_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.3967621, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"deposit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill_linked_txn') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_linked_txn_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "25ee3cc57ef02869b14fd248302c42c2ef078a458770a67ed6364996f5732036"}, "tags": [], "refs": [["bill_linked_txn_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.401505, "compiled_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_linked_txn_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('invoice_linked_txn') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.invoice_linked_txn_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "9c2e3137b556c864bb7da4ece22641b9d5b00ed36305884828a2450f0d75f64a"}, "tags": [], "refs": [["invoice_linked_txn_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.404499, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"invoice_linked_txn_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nselect * \nfrom {{ var('sales_receipt_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.sales_receipt_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d8fd3f81fc56b2f40f2fbe97128c7640153e1b01603635543e6a603110ed9057"}, "tags": [], "refs": [["sales_receipt_line_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.40799, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('invoice') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.invoice_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "94912a9345b3995fc90cbcb50db1e950570080b1c436178b76516a4a602b9fd1"}, "tags": [], "refs": [["invoice_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.414709, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"invoice_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__account_account_id", "alias": "unique_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.5479739, "compiled_sql": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__account_account_id.9944488b9d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.549657, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5507772, "compiled_sql": "\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_source_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.unique_stg_quickbooks__address_address_id.d24d22c82f": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__address_address_id", "alias": "unique_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.557837, "compiled_sql": "\n \n \n\nselect\n address_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is not null\ngroup by address_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5591412, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.560368, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.561617, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.56261, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5637288, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_payment_bill_payment_id", "alias": "unique_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.564667, "compiled_sql": "\n \n \n\nselect\n bill_payment_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is not null\ngroup by bill_payment_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5655942, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__bill_bill_id.171ad8ec00": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_bill_id", "alias": "unique_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.566663, "compiled_sql": "\n \n \n\nselect\n bill_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is not null\ngroup by bill_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.567578, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5685, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bundle_bundle_id", "alias": "unique_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.569428, "compiled_sql": "\n \n \n\nselect\n bundle_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is not null\ngroup by bundle_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5708091, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.571966, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__credit_memo_credit_memo_id", "alias": "unique_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.5729952, "compiled_sql": "\n \n \n\nselect\n credit_memo_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is not null\ngroup by credit_memo_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.574084, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__customer_customer_id", "alias": "unique_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.575038, "compiled_sql": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.575985, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.577049, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__deposit_deposit_id", "alias": "unique_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.578258, "compiled_sql": "\n \n \n\nselect\n deposit_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is not null\ngroup by deposit_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.579267, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__estimate_estimate_id", "alias": "unique_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.580242, "compiled_sql": "\n \n \n\nselect\n estimate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is not null\ngroup by estimate_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.581375, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.582453, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.583429, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.584378, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5854669, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__invoice_invoice_id.61a533de04": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__invoice_invoice_id", "alias": "unique_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.5865002, "compiled_sql": "\n \n \n\nselect\n invoice_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is not null\ngroup by invoice_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.58754, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__item_item_id.2ae762da26": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__item_item_id", "alias": "unique_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.588765, "compiled_sql": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.589771, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5907352, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5917282, "compiled_sql": "\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_source_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.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__journal_entry_journal_entry_id", "alias": "unique_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.594975, "compiled_sql": "\n \n \n\nselect\n journal_entry_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is not null\ngroup by journal_entry_id\nhaving count(*) > 1\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__journal_entry_journal_entry_id.39198c4ff2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.5961301, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.597673, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__payment_payment_id.984edfee8b": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__payment_payment_id", "alias": "unique_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.598704, "compiled_sql": "\n \n \n\nselect\n payment_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is not null\ngroup by payment_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.59969, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.600801, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__purchase_purchase_id.90e4089097": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_purchase_id", "alias": "unique_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.601723, "compiled_sql": "\n \n \n\nselect\n purchase_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is not null\ngroup by purchase_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.602638, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.603688, "compiled_sql": "\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_source_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.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.6069791, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1663250045.6081579, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}, "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique"], "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_order_purchase_order_id", "alias": "unique_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.609185, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.6101289, "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": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1663250045.611188, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.613893, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__refund_receipt_refund_id", "alias": "unique_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.61549, "compiled_sql": "\n \n \n\nselect\n refund_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is not null\ngroup by refund_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.61659, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.617683, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "unique_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.618835, "compiled_sql": "\n \n \n\nselect\n sales_receipt_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is not null\ngroup by sales_receipt_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.6198, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__transfer_transfer_id", "alias": "unique_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.620737, "compiled_sql": "\n \n \n\nselect\n transfer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is not null\ngroup by transfer_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.6216588, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "unique_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.622707, "compiled_sql": "\n \n \n\nselect\n vendor_credit_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is not null\ngroup by vendor_credit_id\nhaving count(*) > 1\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_credit_vendor_credit_id.1275a5ab5a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.623632, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_vendor_id", "alias": "unique_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1663250045.624565, "compiled_sql": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.625633, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"quickbooks_source_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"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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.\n", "columns": {"id": {"name": "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": []}, "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"account\"", "created_at": 1663250045.707038}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": []}, "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\".\"address\"", "created_at": 1663250045.707168}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": []}, "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"bill_line\"", "created_at": 1663250045.707249}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"bill_linked_txn\"", "created_at": 1663250045.7073212}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"bill_payment_line\"", "created_at": 1663250045.7073998}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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 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\".\"bill_payment\"", "created_at": 1663250045.707475}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"bill\"", "created_at": 1663250045.707545}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 bunlde 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\".\"bundle_item\"", "created_at": 1663250045.707606}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 date which the bundle was created.", "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\".\"bundle\"", "created_at": 1663250045.707666}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "Account reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference 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": "Account reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference 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\".\"credit_memo_line\"", "created_at": 1663250045.707733}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"credit_memo\"", "created_at": 1663250045.707801}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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\".\"customer\"", "created_at": 1663250045.7078662}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": []}, "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\".\"department\"", "created_at": 1663250045.707927}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"deposit_line\"", "created_at": 1663250045.707988}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"deposit\"", "created_at": 1663250045.7080529}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"estimate\"", "created_at": 1663250045.7081192}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"estimate_line\"", "created_at": 1663250045.7081861}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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\".\"invoice_linked_txn\"", "created_at": 1663250045.708243}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"invoice_line\"", "created_at": 1663250045.7083662}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": []}, "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"invoice_line_bundle\"", "created_at": 1663250045.708433}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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 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": []}, "_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\".\"invoice\"", "created_at": 1663250045.708502}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": []}, "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\".\"item\"", "created_at": 1663250045.708568}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"journal_entry_line\"", "created_at": 1663250045.7086332}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"journal_entry\"", "created_at": 1663250045.708697}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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\".\"payment_line\"", "created_at": 1663250045.7087622}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"payment\"", "created_at": 1663250045.708825}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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_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": []}, "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\".\"purchase_line\"", "created_at": 1663250045.7088928}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"purchase\"", "created_at": 1663250045.7089589}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"purchase_order_line\"", "created_at": 1663250045.709022}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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\".\"purchase_order_linked_txn\"", "created_at": 1663250045.7090812}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 which the purchase order is associated.", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"purchase_order\"", "created_at": 1663250045.709151}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "Reference to Income account used to track discounts.", "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_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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"refund_receipt_line\"", "created_at": 1663250045.7092118}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"refund_receipt\"", "created_at": 1663250045.7092988}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "Reference to Income account used to track discounts.", "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_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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"sales_receipt_line\"", "created_at": 1663250045.7093608}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": []}, "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": []}, "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\".\"sales_receipt\"", "created_at": 1663250045.7094269}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"transfer\"", "created_at": 1663250045.709486}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"vendor_credit_line\"", "created_at": 1663250045.709554}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks\".\"vendor_credit\"", "created_at": 1663250045.709621}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": []}, "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\".\"vendor\"", "created_at": 1663250045.709684}}, "macros": {"macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8388412}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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\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}, "patch_path": null, "arguments": [], "created_at": 1663250043.839566}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.845141}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.845664}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8459961}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.846317}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.846808}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8471859}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.847357}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.847712}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8481112}, "macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8481889}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.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}, "patch_path": null, "arguments": [], "created_at": 1663250043.848369}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.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_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.848474}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix_length = suffix|length + dtstring|length %}\n {% set relation_max_name_length = 63 %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Temp relation suffix is too long (' ~ suffix|length ~ ' characters). Maximum length is ' ~ (relation_max_name_length - dtstring|length) ~ ' characters.') %}\n {% endif %}\n {% set tmp_identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix ~ dtstring %}\n {% do return(base_relation.incorporate(\n path={\n \"identifier\": tmp_identifier,\n \"schema\": none,\n \"database\": none\n })) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.849419}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8498602}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.850095}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.850722}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8515918}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8527281}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.852928}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.85307}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8532102}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.853355}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.853803}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.854104}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.854409}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8549068}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.855176}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8585489}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.858731}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.858953}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.8590982}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.859195}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8600209}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8601978}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.860372}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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) -%}\n {%- set query_columns = get_columns_in_query(node['compiled_sql']) -%}\n {%- if not target_exists -%}\n {# no table yet -> return whatever the query does #}\n {{ return([false, query_columns]) }}\n {%- endif -%}\n {# handle any schema changes #}\n {%- set target_table = node.get('alias', node.get('name')) -%}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=target_table) -%}\n {%- set existing_cols = get_columns_in_query('select * from ' ~ target_relation) -%}\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(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}, "patch_path": null, "arguments": [], "created_at": 1663250043.861356}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 \n {% set select_current_time -%}\n select {{ snapshot_get_time() }} as snapshot_start\n {%- endset %}\n\n {#-- don't access the column by name, to avoid dealing with casing issues on snowflake #}\n {%- set now = run_query(select_current_time)[0][0] -%}\n {% if now is none or now is undefined -%}\n {%- do exceptions.raise_compiler_error('Could not get a snapshot start time from the database') -%}\n {%- endif %}\n {% set updated_at = config.get('updated_at', snapshot_string_as_time(now)) %}\n\n {% set column_added = false %}\n\n {% if check_cols_config == 'all' %}\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists) %}\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {% set check_cols = check_cols_config %}\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n TRUE\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.run_query", "macro.dbt.snapshot_string_as_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.86319}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.866399}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.866806}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.867021}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8671129}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.86733}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.868232}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8684218}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8686678}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 tmp_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, tmp_relation, select) }}\n {% endcall %}\n\n {% do return(tmp_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.869102}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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\n {% if not adapter.check_schema_exists(model.database, model.schema) %}\n {% do create_schema(model.database, model.schema) %}\n {% endif %}\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_sql']) %}\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 {% 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.create_schema", "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.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.875041}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8773}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8779972}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.878314}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.878786}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.879178}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.880053}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.880627}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 %}\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}, "patch_path": null, "arguments": [], "created_at": 1663250043.881249}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.884015}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\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 {% 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"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.8851829}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8854232}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 is not none %}\n delete from {{ target }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\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}, "patch_path": null, "arguments": [], "created_at": 1663250043.885834}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.886094}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 {%- 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}, "patch_path": null, "arguments": [], "created_at": 1663250043.886726}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8874528}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 {% set unique_key = config.get('unique_key') %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% set existing_relation = load_relation(this) %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n {% set backup_identifier = model['name'] + \"__dbt_backup\" %}\n\n -- the intermediate_ 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 = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) %} \n {% set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=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 {% set to_drop = [] %}\n\n {# -- first check whether we want to full refresh for source view or config reasons #}\n {% set trigger_full_refresh = (full_refresh_mode or existing_relation.is_view) %}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n{% elif trigger_full_refresh %}\n {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n {% set backup_identifier = model['name'] + '__dbt_backup' %}\n {% set intermediate_relation = existing_relation.incorporate(path={\"identifier\": tmp_identifier}) %}\n {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n\n {% set build_sql = create_table_as(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% do to_drop.append(backup_relation) %}\n {% else %}\n {% do run_query(create_table_as(True, tmp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=tmp_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, tmp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {% set build_sql = get_delete_insert_merge_sql(target_relation, tmp_relation, unique_key, dest_columns) %}\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 {% endif %}\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_relation", "macro.dbt.make_temp_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.create_table_as", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.get_delete_insert_merge_sql", "macro.dbt.statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.892498}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.8972092}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.898421}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.899615}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 {% 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}, "patch_path": null, "arguments": [], "created_at": 1663250043.900469}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database,\n type='table') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema,\n database=database,\n type='table') -%}\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 = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema,\n database=database,\n type=backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=database) -%}\n\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 old_relation is not none %}\n {{ adapter.rename_relation(old_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 {% 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.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9041972}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.904727}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.904924}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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, sql) -%}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.905128}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.905536}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, database=database, type='view') -%}\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 = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) -%}\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 \"old_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 old_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the old_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 old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema, database=database,\n type=backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=database) -%}\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 {{ create_view_as(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if old_relation is not none %}\n {{ adapter.rename_relation(old_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\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.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_view_as", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.909048}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9094222}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.909648}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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\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\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 {{ 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"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9108841}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.911295}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.911457}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9116359}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9118888}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 agate_table = load_agate_table() -%}\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 {{ create_table_sql }};\n -- dbt seed --\n {{ sql }}\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\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.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.914743}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.918661}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9195578}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9197912}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.920267}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9204102}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.920521}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.920676}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.920789}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.921262}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9215071}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9227}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.923158}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.923376}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.923952}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.924205}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.924503}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9249542}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.925199}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.92562}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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\nselect *\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.925866}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9261692}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.92678}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\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 {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9278982}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.928458}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9287412}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.930463}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.931686}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9324212}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.932649}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.933077}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.933256}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.933412}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.933588}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9340858}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.934216}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.934365}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.934765}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.936362}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 tmp_identifier = base_relation.identifier ~ suffix %}\n {% set tmp_relation = base_relation.incorporate(\n path={\"identifier\": tmp_identifier}) -%}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9366589}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9368372}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9370399}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.937217}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9373682}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9375648}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.937842}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9380858}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.938692}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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 {% 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}, "patch_path": null, "arguments": [], "created_at": 1663250043.938914}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.939106}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.939619}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9397628}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9399831}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9403899}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.941068}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9412322}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.941431}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.941592}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.941859}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.942335}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.943725}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9439821}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9441621}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9443069}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.944484}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.944756}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9449642}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.945332}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9455192}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.945676}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.947384}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.94754}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9478452}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.948024}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.948359}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9485838}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.949177}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.94944}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.950233}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.950809}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.951036}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.951317}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.951589}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.951924}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.951998}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.952065}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.95245}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.952611}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.952924}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.953241}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.953946}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954017}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954085}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954151}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.95422}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9543731}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954443}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() %}\n timestamp without time zone\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954509}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954572}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954735}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954806}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.954876}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.955033}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.955103}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.955167}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.955318}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.95539}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.955457}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.95567}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.955742}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.955811}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.956306}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.956658}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9567628}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9568589}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.957441}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.957598}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9577541}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.95791}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "redshift__dateadd", "macro_sql": "{% macro redshift__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ return(dbt_utils.default__dateadd(datepart, interval, from_date_or_timestamp)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.958097}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.958403}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.958475}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.958543}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.958924}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.959059}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.959189}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9593222}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.959888}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_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 -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.960017}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.96017}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9603882}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_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_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9625778}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.962966}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.963239}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.963624}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "redshift__listagg", "macro_sql": "{% macro redshift__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n {% set ns = namespace() %}\n {% set ns.delimiter_text_regex = delimiter_text|trim(\"'\") %}\n {% set special_chars %}\\,^,$,.,|,?,*,+,(,),[,],{,}{% endset %} \n {%- for char in special_chars.split(',') -%}\n {% set escape_char %}\\\\{{ char }}{% endset %}\n {% set ns.delimiter_text_regex = ns.delimiter_text_regex|replace(char,escape_char) %}\n {%- endfor -%}\n\n {% set regex %}'([^{{ ns.delimiter_text_regex }}]+{{ ns.delimiter_text_regex }}){1,{{ limit_num - 1}}}[^{{ ns.delimiter_text_regex }}]+'{% endset %}\n regexp_substr(\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,{{ regex }}\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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9645498}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9670131}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.967171}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9673228}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_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 ({{ dbt_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.969038}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "redshift__datediff", "macro_sql": "{% macro redshift__datediff(first_date, second_date, datepart) -%}\n\n {{ return(dbt_utils.default__datediff(first_date, second_date, datepart)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.969239}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9696598}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.969792}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.969911}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.97003}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.970369}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.970505}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.970631}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_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_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9709911}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_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 {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.971128}, "macro.dbt_utils.redshift__cast_bool_to_text": {"unique_id": "macro.dbt_utils.redshift__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "redshift__cast_bool_to_text", "macro_sql": "{% macro redshift__cast_bool_to_text(field) %}\n case\n when {{ field }} is true then 'true'\n when {{ field }} is false then 'false'\n end::text\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.971251}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__identifier"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.971756}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9718568}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.971951}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9722922}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.972398}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n {#- /*Postgres doesn't support any_value, so we're using min() to get the same result*/ -#}\n min({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.972497}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.972905}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_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 -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.973036}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.973164}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9735339}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.973634}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9742131}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9743261}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.974396}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.974462}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.974615}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9747462}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.974889}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.974995}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.975127}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9765298}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/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_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.976989}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/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_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9774451}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.977631}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.978015}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.978116}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n \n boolor_agg({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.978212}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n \n logical_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.978306}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.978891}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9792252}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.979368}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_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_utils.dateadd('day', '-1',\n dbt_utils.dateadd('month', '3', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.97975}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "redshift__last_day", "macro_sql": "{% macro redshift__last_day(date, datepart) %}\n\n {{ return(dbt_utils.default__last_day(date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9799192}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_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_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9803982}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9805539}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.98073}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.981117}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9812438}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9813719}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9822268}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9876962}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.988203}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.988514}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.988995}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.994067}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.994548}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.995031}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.995565}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.996207}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.996586}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.996908}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.99749}, "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/joseph.markiewicz/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) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9977112}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.998166}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = '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\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.998456}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.999145}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250043.9994721}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250043.9999192}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n{% set threshold = dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\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_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0002391}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0006132}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0007849}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0014431}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.001974}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0025651}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.002939}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.003407}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.003573}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.003953}, "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/joseph.markiewicz/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) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\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}, "patch_path": null, "arguments": [], "created_at": 1663250044.004132}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.004769}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0053918}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.005991}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.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_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.006322}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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, condition='1=1') %}\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 {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.006828}, "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/joseph.markiewicz/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, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.007118}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0075798}, "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/joseph.markiewicz/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) %}\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\nwith validation as (\n select\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),\nvalidation_errors as (\n select\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}, "patch_path": null, "arguments": [], "created_at": 1663250044.008086}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.008766}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\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_utils.type_timestamp() }})= cast({{ dbt_utils.dateadd(datepart, interval, previous_column_name) }} as {{ dbt_utils.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_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.009442}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.009898}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.010061}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0108218}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.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_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.011689}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0146492}, "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/joseph.markiewicz/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 }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_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 nore 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}, "patch_path": null, "arguments": [], "created_at": 1663250044.016085}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.016421}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.016584}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.016932}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.017128}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.017445}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.017612}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0181398}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.018858}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.019438}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.019665}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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 \"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_utils.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_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.020021}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0203881}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.020797}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.021496}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.022326}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.023159}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.023571}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.023756}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0242612}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0249689}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0257962}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.026252}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.026537}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.027165}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\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 {%- for col in dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n\n {%- endfor -%}\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}, "patch_path": null, "arguments": [], "created_at": 1663250044.02798}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0296829}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\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_utils.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt_utils.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_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.03174}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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') -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.033987}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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') -%}\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\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 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 {% 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\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.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 {{ relation }}\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_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.036832}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.037193}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.037436}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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, group_by, order_by=none, relation_alias=none) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, group_by, order_by=order_by, relation_alias=relation_alias)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.038145}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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, group_by, order_by=none, relation_alias=none) -%}\n\n select\n {{ dbt_utils.star(relation, relation_alias='deduped') | indent }}\n from (\n select\n _inner.*,\n row_number() over (\n partition by {{ group_by }}\n {% if order_by is not none -%}\n order by {{ order_by }}\n {%- endif %}\n ) as rn\n from {{ relation if relation_alias is none else relation_alias }} as _inner\n ) as deduped\n where deduped.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.038529}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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, group_by, order_by=none, relation_alias=none) -%}\n\n select\n {{ dbt_utils.star(relation, relation_alias='deduped') | indent }}\n from (\n select\n array_agg (\n original\n {% if order_by is not none -%}\n order by {{ order_by }}\n {%- endif %}\n limit 1\n )[offset(0)] as deduped\n from {{ relation if relation_alias is none else relation_alias }} as original\n group by {{ group_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.038924}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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 {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\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}, "patch_path": null, "arguments": [], "created_at": 1663250044.039538}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.040452}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.040884}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0411599}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.041543}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.041868}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.04334}, "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/joseph.markiewicz/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 \"table_schema\",\n table_name as \"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}, "patch_path": null, "arguments": [], "created_at": 1663250044.043602}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0443032}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.04486}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.045846}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) -%}\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 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}, "patch_path": null, "arguments": [], "created_at": 1663250044.047224}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.048296}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.049126}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.049641}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.05037}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.050886}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0514839}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.052015}, "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/joseph.markiewicz/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 \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.052099}, "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/joseph.markiewicz/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 \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.052182}, "macro.dbt_utils.bigquery__get_table_types_sql": {"unique_id": "macro.dbt_utils.bigquery__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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": "bigquery__get_table_types_sql", "macro_sql": "{% macro bigquery__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 `table_type`\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0522602}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0533051}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.053581}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.054145}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.055022}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.055508}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.056449}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0566468}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.056824}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.056984}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.057131}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.05729}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0577989}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ 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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0582669}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.059322}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.059571}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.059813}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.060062}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.060291}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.060548}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.06081}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.061187}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.061285}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0613818}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0615418}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.061982}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.062606}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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.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 {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.063276}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0637922}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.063921}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.064048}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.064182}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.064312}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.067082}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0672488}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.067411}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0675719}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.069438}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.070424}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.070577}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.070923}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.071212}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.071341}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.07148}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0716019}, "macro.fivetran_utils.generate_docs": {"unique_id": "macro.fivetran_utils.generate_docs", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/generate_docs.sql", "original_file_path": "macros/generate_docs.sql", "name": "generate_docs", "macro_sql": "{% macro generate_docs(package) %}\n\n{% set package = \"\"~ package ~\"\" %}\n\n{% set zsh_command = \"source dbt_packages/fivetran_utils/generate_docs.sh '../dbt_\"\"\"~ package ~\"\"\"\"+\"'\" %}\n\n{{ log (zsh_command, info=True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.072099}, "macro.fivetran_utils.generate_columns_macro": {"unique_id": "macro.fivetran_utils.generate_columns_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/generate_columns_macro.sql", "original_file_path": "macros/generate_columns_macro.sql", "name": "generate_columns_macro", "macro_sql": "{% macro generate_columns_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set columns = get_columns_for_macro(table_name, schema_name, database_name) %}\n\n{% set jinja_macro=[] %}\n\n{% do jinja_macro.append('{% macro get_' ~ table_name ~ '_columns() %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% set columns = [') %}\n\n{% for col in columns %}\n{% do jinja_macro.append(' ' ~ col ~ (',' if not loop.last)) %}\n{% endfor %}\n\n{% do jinja_macro.append('] %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{{ return(columns) }}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% endmacro %}') %}\n\n{% if execute %}\n\n {% set joined = jinja_macro | join ('\\n') %}\n {{ log(joined, info=True) }}\n {% do return(joined) %}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.get_columns_for_macro"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.073567}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.074116}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.074712}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.075304}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0755231}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0757508}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.076134}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.077225}, "macro.fivetran_utils.staging_models_automation": {"unique_id": "macro.fivetran_utils.staging_models_automation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/staging_models_automation.sql", "original_file_path": "macros/staging_models_automation.sql", "name": "staging_models_automation", "macro_sql": "{% macro staging_models_automation(package, source_schema, source_database, tables) %}\n\n{% set package = \"\"~ package ~\"\" %}\n{% set source_schema = \"\"~ source_schema ~\"\" %}\n{% set source_database = \"\"~ source_database ~\"\" %}\n\n{% set zsh_command_columns = \"source dbt_packages/fivetran_utils/generate_columns.sh '../dbt_\"\"\"~ package ~\"\"\"_source' stg_\"\"\"~ package ~\"\"\" \"\"\"~ source_database ~\"\"\" \"\"\"~ source_schema ~\"\"\" \" %}\n{% set zsh_command_models = \"source dbt_packages/fivetran_utils/generate_models.sh '../dbt_\"\"\"~ package ~\"\"\"_source' stg_\"\"\"~ package ~\"\"\" \"\"\"~ source_database ~\"\"\" \"\"\"~ source_schema ~\"\"\" \" %}\n\n{%- set columns_array = [] -%}\n{%- set models_array = [] -%}\n\n{% for t in tables %}\n {% set help_command = zsh_command_columns + t %}\n {{ columns_array.append(help_command) }}\n\n {% set help_command = zsh_command_models + t %}\n {{ models_array.append(help_command) }}\n\n{% endfor %}\n\n{{ log(columns_array|join(' && \\n') + ' && \\n' + models_array|join(' && \\n'), info=True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.078797}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.string_literal(relation) }} as {{ dbt_utils.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_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0828328}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.083242}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0837781}, "macro.fivetran_utils.default__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.default__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "default__get_columns_for_macro", "macro_sql": "{% macro default__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'text' then 'dbt_utils.type_string()' \n when lower(data_type) = 'boolean' then '\"boolean\"'\n when lower(data_type) like '%num%' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float' then 'dbt_utils.type_float()' \n when lower(data_type) = 'date' then '\"date\"'\n end,\n '}')\nfrom {{ database_name }}.information_schema.columns\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.084926}, "macro.fivetran_utils.bigquery__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.bigquery__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "bigquery__get_columns_for_macro", "macro_sql": "{% macro bigquery__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'string' then 'dbt_utils.type_string()' \n when lower(data_type) = 'bool' then '\"boolean\"'\n when lower(data_type) like '%num%' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float64' then 'dbt_utils.type_float()' \n when lower(data_type) = 'int64' then 'dbt_utils.type_int()' \n when lower(data_type) = 'date' then '\"date\"' \n when lower(data_type) = 'datetime' then '\"datetime\"' \n end,\n '}')\nfrom `{{ database_name }}`.{{ schema_name }}.INFORMATION_SCHEMA.COLUMNS\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.085406}, "macro.fivetran_utils.get_columns_for_macro": {"unique_id": "macro.fivetran_utils.get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "get_columns_for_macro", "macro_sql": "{% macro get_columns_for_macro(table_name, schema_name, database_name) -%}\n {{ return(adapter.dispatch('get_columns_for_macro')(table_name, schema_name, database_name)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__get_columns_for_macro"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.085622}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.087266}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.087872}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0886972}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.088877}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0890381}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0892081}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.089364}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0895202}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.090373}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.0915682}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.092374}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.092536}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0926888}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.09285}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.093003}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.093183}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0935092}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0936089}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0937028}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.094403}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.095676}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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\n {% set relation=adapter.get_relation(\n database=var(database_variable, default_database),\n schema=schema,\n identifier=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=database,\n schema=var(schema_variable, default_schema),\n identifier=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}, "patch_path": null, "arguments": [], "created_at": 1663250044.0977259}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.09938}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.099744}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.099844}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.099946}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.100412}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1663250044.1008651}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1035872}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.10592}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.108223}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.10922}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.112322}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.113041}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1147149}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.116176}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.119376}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.121556}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.123721}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.126923}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.130042}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1319108}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.134977}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1363158}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.139758}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.143429}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1442728}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.148246}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.150338}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1562612}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.158792}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1610081}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.165791}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.171314}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1728299}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.174037}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.177393}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.179626}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.181684}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.18435}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.188422}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.190801}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.196464}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.1981828}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.2015}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.203043}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1663250044.205354}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/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"}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.quickbooks_source.stg_quickbooks__purchase_order": [{"raw_sql": "--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 from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8d98e7f751346afa5f101b41fe7026488ce637898dd02bff4aff25378975a03d"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.939105}], "model.quickbooks_source.stg_quickbooks__purchase_order_line": [{"raw_sql": "--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 from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.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_utils.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "25adf35fd2f225f983c2d5dd18564d4b6cde49ceb79acd17230e3b448d6283dd"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250044.990859}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": [{"raw_sql": "--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 from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt_utils.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n index\n from fields\n)\n\nselect *\nfrom final", "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8948f3420fc0619f32ff984cee13a4bc9dadd24308f3828b4b75e37262ac372e"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1663250045.252127}], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": [{"raw_sql": "--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\nselect *\nfrom {{ var('purchase_order_line') }}", "resource_type": "model", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "207db6c4ef8cfef78b8de6a2c96cbd0477f63e0a63eda4a08ee215057990ae34"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1663250045.2917812}], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": [{"raw_sql": "--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\nselect *\nfrom {{ var('purchase_order') }}", "resource_type": "model", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "1a4e5034a6f95a3381e9190114b9b6d75ba273524e532d19926fff7061f286a2"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1663250045.34566}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": [{"raw_sql": "--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\nselect *\nfrom {{ var('purchase_order_linked_txn') }}", "resource_type": "model", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d642b45e31ac46f65cca1d76385d5b5ec5dcaa5ff18a1120a440c13f412c575f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1663250045.411509}]}, "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_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__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": ["seed.quickbooks_integration_tests.vendor_credit_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["seed.quickbooks_integration_tests.refund_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["seed.quickbooks_integration_tests.estimate_line_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["seed.quickbooks_integration_tests.credit_memo_line_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["seed.quickbooks_integration_tests.journal_entry_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["seed.quickbooks_integration_tests.invoice_line_bundle_data"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["seed.quickbooks_integration_tests.payment_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["seed.quickbooks_integration_tests.invoice_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["seed.quickbooks_integration_tests.deposit_line_data"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["seed.quickbooks_integration_tests.customer_data"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["seed.quickbooks_integration_tests.bill_line_data"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["seed.quickbooks_integration_tests.item_data"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["seed.quickbooks_integration_tests.account_data"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["seed.quickbooks_integration_tests.vendor_credit_line_data"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["seed.quickbooks_integration_tests.department_data"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["seed.quickbooks_integration_tests.bundle_data"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["seed.quickbooks_integration_tests.bundle_item_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["seed.quickbooks_integration_tests.bill_payment_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["seed.quickbooks_integration_tests.estimate_data"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["seed.quickbooks_integration_tests.purchase_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["seed.quickbooks_integration_tests.credit_memo_data"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["seed.quickbooks_integration_tests.bill_data"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["seed.quickbooks_integration_tests.transfer_data"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["seed.quickbooks_integration_tests.vendor_data"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["seed.quickbooks_integration_tests.purchase_line_data"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["seed.quickbooks_integration_tests.address_data"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["seed.quickbooks_integration_tests.payment_line_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["seed.quickbooks_integration_tests.refund_receipt_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["seed.quickbooks_integration_tests.sales_receipt_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["seed.quickbooks_integration_tests.bill_payment_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["seed.quickbooks_integration_tests.journal_entry_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["seed.quickbooks_integration_tests.deposit_data"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["seed.quickbooks_integration_tests.bill_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["seed.quickbooks_integration_tests.invoice_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["seed.quickbooks_integration_tests.sales_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["seed.quickbooks_integration_tests.invoice_data"], "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31": ["model.quickbooks_source.stg_quickbooks__account"], "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.unique_stg_quickbooks__address_address_id.d24d22c82f": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["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.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.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["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.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["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.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["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.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["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.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.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["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.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "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.unique_stg_quickbooks__payment_payment_id.984edfee8b": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["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.unique_stg_quickbooks__purchase_purchase_id.90e4089097": ["model.quickbooks_source.stg_quickbooks__purchase"], "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.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": [], "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.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["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.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["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_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": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "seed.quickbooks_integration_tests.bundle_data": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "seed.quickbooks_integration_tests.bill_payment_line_data": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "seed.quickbooks_integration_tests.payment_line_data": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "seed.quickbooks_integration_tests.vendor_data": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"], "seed.quickbooks_integration_tests.address_data": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "seed.quickbooks_integration_tests.invoice_line_bundle_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "seed.quickbooks_integration_tests.invoice_data": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "seed.quickbooks_integration_tests.payment_data": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "seed.quickbooks_integration_tests.invoice_line_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "seed.quickbooks_integration_tests.deposit_line_data": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "seed.quickbooks_integration_tests.estimate_line_data": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "seed.quickbooks_integration_tests.purchase_data": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "seed.quickbooks_integration_tests.refund_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "seed.quickbooks_integration_tests.credit_memo_line_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "seed.quickbooks_integration_tests.bill_data": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "seed.quickbooks_integration_tests.bill_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "seed.quickbooks_integration_tests.vendor_credit_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "seed.quickbooks_integration_tests.customer_data": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "seed.quickbooks_integration_tests.estimate_data": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "seed.quickbooks_integration_tests.purchase_line_data": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "seed.quickbooks_integration_tests.journal_entry_line_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "seed.quickbooks_integration_tests.journal_entry_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "seed.quickbooks_integration_tests.bill_line_data": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "seed.quickbooks_integration_tests.bundle_item_data": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "seed.quickbooks_integration_tests.invoice_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "seed.quickbooks_integration_tests.account_data": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "seed.quickbooks_integration_tests.vendor_credit_line_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "seed.quickbooks_integration_tests.credit_memo_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "seed.quickbooks_integration_tests.department_data": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "seed.quickbooks_integration_tests.item_data": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "seed.quickbooks_integration_tests.sales_receipt_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "seed.quickbooks_integration_tests.deposit_data": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "seed.quickbooks_integration_tests.refund_receipt_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks.quickbooks__balance_sheet": [], "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"], "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"], "model.quickbooks.quickbooks__profit_and_loss": [], "model.quickbooks.quickbooks__expenses_sales_enhanced": [], "model.quickbooks.quickbooks__ap_ar_enhanced": [], "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__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.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.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac"], "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.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.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.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "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.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e"], "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.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.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444"], "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.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.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097"], "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.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.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3"], "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.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.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95"], "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.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "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.not_null_stg_quickbooks__account_account_id.9944488b9d", "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["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.not_null_stg_quickbooks__address_address_id.4f100ae50c", "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f"], "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.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00"], "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.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", "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d"], "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.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "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", "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5"], "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.not_null_stg_quickbooks__item_item_id.da906d8fb9", "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26"], "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.not_null_stg_quickbooks__customer_customer_id.98232a9723", "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3"], "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_source.unique_stg_quickbooks__account_account_id.0949eb4e31": [], "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.unique_stg_quickbooks__address_address_id.d24d22c82f": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "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.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "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.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "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.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": [], "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.unique_stg_quickbooks__payment_payment_id.984edfee8b": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097": [], "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.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": [], "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.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "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_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": []}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v6.json", "dbt_version": "1.2.1", "generated_at": "2022-09-26T18:30:52.721733Z", "invocation_id": "29c3414a-29e8-4c65-badf-9218a48ef0b9", "env": {}, "project_id": "fb1a7b9ce88ce39cb54ba2ec5c0aaab3", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_integration_tests.bill_payment_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.209982, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\""}, "seed.quickbooks_integration_tests.bundle_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.236592, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\""}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.237817, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_integration_tests.payment_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.payment_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.2387998, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\""}, "seed.quickbooks_integration_tests.vendor_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.2398999, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\""}, "seed.quickbooks_integration_tests.address_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "address_data"], "unique_id": "seed.quickbooks_integration_tests.address_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.240884, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"address_data\""}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.2418292, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_integration_tests.invoice_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.242794, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\""}, "seed.quickbooks_integration_tests.payment_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_integration_tests.payment_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.2439182, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_data\""}, "seed.quickbooks_integration_tests.invoice_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.24487, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\""}, "seed.quickbooks_integration_tests.deposit_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"deposit_account_id": "bigint", "deposit_class_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.246208, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\""}, "seed.quickbooks_integration_tests.estimate_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.247432, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\""}, "seed.quickbooks_integration_tests.purchase_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"credit": "bool"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.2485492, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\""}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.249526, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.2504818, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_integration_tests.bill_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_integration_tests.bill_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.251411, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_data\""}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.252364, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_integration_tests.vendor_credit_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.253432, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\""}, "seed.quickbooks_integration_tests.customer_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_integration_tests.customer_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.254365, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"customer_data\""}, "seed.quickbooks_integration_tests.estimate_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.255435, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\""}, "seed.quickbooks_integration_tests.purchase_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "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": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.256581, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.257727, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.2587001, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\""}, "seed.quickbooks_integration_tests.bill_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "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": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.259678, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\""}, "seed.quickbooks_integration_tests.bundle_item_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_item_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.260659, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\""}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.261718, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_integration_tests.account_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "account_data"], "unique_id": "seed.quickbooks_integration_tests.account_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.26268, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"account_data\""}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.263668, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_integration_tests.transfer_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_integration_tests.transfer_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.264669, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\""}, "seed.quickbooks_integration_tests.purchase_order_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.266081, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_data\""}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.267133, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "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": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.268142, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.2691221, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\""}, "seed.quickbooks_integration_tests.department_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "department_data"], "unique_id": "seed.quickbooks_integration_tests.department_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.2701929, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"department_data\""}, "seed.quickbooks_integration_tests.item_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "item_data"], "unique_id": "seed.quickbooks_integration_tests.item_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.271271, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"item_data\""}, "seed.quickbooks_integration_tests.sales_receipt_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.27229, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\""}, "seed.quickbooks_integration_tests.deposit_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1664217027.273335, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\""}, "seed.quickbooks_integration_tests.refund_receipt_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data", "package_name": "quickbooks_integration_tests", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.274661, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\""}, "model.quickbooks.quickbooks__balance_sheet": {"raw_sql": "with general_ledger_by_period as (\n select *\n from {{ref('quickbooks__general_ledger_by_period')}}\n where financial_statement_helper = 'balance_sheet'\n\n), final as (\n select\n period_first_day as calendar_date,\n account_class,\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 from general_ledger_by_period\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__balance_sheet"], "unique_id": "model.quickbooks.quickbooks__balance_sheet", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "87d0c759c253155d30947e265673b04994e5281ec74754cba809664217f277e8"}, "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_year": {"name": "calendar_year", "description": "The calendar year in the YYYY format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "calendar_month": {"name": "calendar_month", "description": "The calendar month in the MMM format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "The account classification.", "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 the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account.", "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": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total ending period balance.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "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": 1664217028.235667, "compiled_sql": "with general_ledger_by_period as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'balance_sheet'\n\n), final as (\n select\n period_first_day as calendar_date,\n account_class,\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 from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"quickbooks__balance_sheet\""}, "model.quickbooks.quickbooks__general_ledger_by_period": {"raw_sql": "with general_ledger_balances as (\n select *\n from {{ref('int_quickbooks__general_ledger_balances')}}\n),\n\nretained_earnings as (\n select *\n from {{ref('int_quickbooks__retained_earnings')}}\n),\n\nfinal as (\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger_by_period"], "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "b26762ec110b5fe215c80939a156f6d9c08e2487d76a827f335aaba6b36f66c0"}, "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.\n", "columns": {"account_id": {"name": "account_id", "description": "Reference to the account that the period balances are associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The user defined account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the period balances.", "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": "Type of account associated with the period balances.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the period balances.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the period balances.", "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": []}}, "meta": {}, "docs": {"show": true}, "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": 1664217028.232393, "compiled_sql": "with general_ledger_balances as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nretained_earnings as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__retained_earnings\"\n),\n\nfinal as (\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"quickbooks__general_ledger_by_period\""}, "model.quickbooks.quickbooks__general_ledger": {"raw_sql": "with gl_union as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n transaction_type,\n transaction_source\n from {{ref('int_quickbooks__purchase_double_entry')}}\n\n {% if var('using_sales_receipt', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__sales_receipt_double_entry')}}\n {% endif %}\n\n {% if var('using_bill', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__bill_payment_double_entry')}}\n\n union all\n\n select *\n from {{ref('int_quickbooks__bill_double_entry')}}\n {% endif %}\n\n {% if var('using_credit_memo', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__credit_memo_double_entry')}}\n {% endif %}\n\n {% if var('using_deposit', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__deposit_double_entry')}}\n {% endif %}\n\n {% if var('using_invoice', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__invoice_double_entry')}}\n {% endif %}\n\n {% if var('using_transfer', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__transfer_double_entry')}}\n {% endif %}\n\n {% if var('using_journal_entry', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__journal_entry_double_entry')}}\n {% endif %}\n\n {% if var('using_payment', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__payment_double_entry')}}\n {% endif %}\n\n {% if var('using_refund_receipt', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__refund_receipt_double_entry')}}\n {% endif %}\n\n {% if var('using_vendor_credit', True) %}\n union all\n\n select *\n from {{ref('int_quickbooks__vendor_credit_double_entry')}}\n {% endif %}\n),\n\naccounts as (\n select *\n from {{ref('int_quickbooks__account_classifications')}}\n),\n\n\nadjusted_gl as (\n select\n {{ dbt_utils.surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'accounts.name', ' gl_union.transaction_type']) }} as unique_id,\n gl_union.transaction_id,\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 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),\n\nfinal as (\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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.surrogate_key"], "nodes": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__bill_payment_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__transfer_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__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger"], "unique_id": "model.quickbooks.quickbooks__general_ledger", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "9a8cbca20b277707e6ddc42f9da4f36a553b6cde50a95ad4aa570b197559001f"}, "tags": [], "refs": [["int_quickbooks__purchase_double_entry"], ["int_quickbooks__sales_receipt_double_entry"], ["int_quickbooks__bill_payment_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__transfer_double_entry"], ["int_quickbooks__journal_entry_double_entry"], ["int_quickbooks__payment_double_entry"], ["int_quickbooks__refund_receipt_double_entry"], ["int_quickbooks__vendor_credit_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.\n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Unique identifier of 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": "Reference to the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The user defined account number associated with 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": "Type of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Account 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}, "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": 1664217028.230007, "compiled_sql": "with gl_union as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n transaction_type,\n transaction_source\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__purchase_double_entry\"\n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__sales_receipt_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__bill_payment_double_entry\"\n\n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__bill_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__credit_memo_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__deposit_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__invoice_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__transfer_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__journal_entry_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__payment_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__refund_receipt_double_entry\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__vendor_credit_double_entry\"\n \n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n),\n\n\nadjusted_gl as (\n select\n md5(cast(coalesce(cast(gl_union.transaction_id as \n varchar\n), '') || '-' || coalesce(cast(gl_union.index as \n varchar\n), '') || '-' || coalesce(cast(accounts.name as \n varchar\n), '') || '-' || coalesce(cast( gl_union.transaction_type as \n varchar\n), '') as \n varchar\n)) as unique_id,\n gl_union.transaction_id,\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 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),\n\nfinal as (\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_integrations_tests_quickbooks\".\"quickbooks__general_ledger\""}, "model.quickbooks.quickbooks__profit_and_loss": {"raw_sql": "with general_ledger_by_period as (\n select *\n from {{ref('quickbooks__general_ledger_by_period')}}\n where financial_statement_helper = 'income_statement'\n\n), final as (\n select\n period_first_day as calendar_date,\n account_class,\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 from general_ledger_by_period\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__profit_and_loss"], "unique_id": "model.quickbooks.quickbooks__profit_and_loss", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "0fd6e3f72ee1fde2261a6b4f4b56ebf21aad17556f4e98d10f8c44ce89ec6160"}, "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.\n", "columns": {"calendar_year": {"name": "calendar_year", "description": "The calendar year in the YYYY format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "calendar_month": {"name": "calendar_month", "description": "The calendar month in the MMM format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "The account classification.", "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 the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account.", "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": "The name of the account.", "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": []}}, "meta": {}, "docs": {"show": true}, "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": 1664217028.234, "compiled_sql": "with general_ledger_by_period as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'income_statement'\n\n), final as (\n select\n period_first_day as calendar_date,\n account_class,\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 from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"quickbooks__profit_and_loss\""}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"raw_sql": "with expenses as (\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 select *\n from {{ ref('int_quickbooks__sales_union') }}\n),\n{% endif %}\n\nfinal as (\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", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__expenses_sales_enhanced"], "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "ec295e430096f5021926988b3170e35b58c3aaf9215828adb90747793157ba0d"}, "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.\n", "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 either the expense or sale transactions.", "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 when 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": "Reference to 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": "Account 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}, "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": 1664217028.226388, "compiled_sql": "with expenses as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__expenses_union\"\n),\n\n\nsales as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__sales_union\"\n),\n\n\nfinal as (\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_integrations_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\""}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"raw_sql": "--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 select *\n from {{ref('int_quickbooks__bill_join')}}\n),\n\n{% if var('using_invoice', True) %}\ninvoice_join as (\n select *\n from {{ref('int_quickbooks__invoice_join')}}\n),\n{% endif %}\n\n{% if var('using_department', True) %}\ndepartments as ( \n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\n{% if var('using_address', True) %}\naddresses as (\n select *\n from {{ref('stg_quickbooks__address')}}\n),\n{% endif %}\n\ncustomers as (\n select *\n from {{ref('stg_quickbooks__customer')}}\n),\n\nvendors as (\n select *\n from {{ref('stg_quickbooks__vendor')}}\n),\n\nfinal as (\n select\n transaction_type,\n transaction_id,\n doc_number,\n cast(null as {{ dbt_utils.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_utils.type_string() }}) as delivery_type,\n cast(null as {{ dbt_utils.type_string() }}) as estimate_status,\n total_amount,\n cast(null as {{ dbt_utils.type_numeric() }}) as estimate_amount,\n current_balance,\n total_current_payment,\n due_date,\n case when bill_join.current_balance != 0 and {{ dbt_utils.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_utils.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then {{ dbt_utils.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n initial_payment_date,\n 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 {% endif %}\n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\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 {% 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 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_utils.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_utils.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then {{ dbt_utils.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 {% 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 {% endif %}\n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n\n {% endif %}\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_numeric", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__ap_ar_enhanced"], "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "d3c8a53b0ea020bb35486e4e5fd46a3dfbdb708475eac402fc21d66d04aeae0a"}, "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 calculations are included to show if the payable/receivable has been fully paid and/or paid on time.\n", "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 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}, "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": 1664217028.2225869, "compiled_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith bill_join as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__bill_join\"\n),\n\n\ninvoice_join as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__invoice_join\"\n),\n\n\n\ndepartments as ( \n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\n\naddresses as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n),\n\n\ncustomers as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\nvendors as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nfinal as (\n select\n transaction_type,\n transaction_id,\n doc_number,\n cast(null as \n varchar\n) 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 \n varchar\n) as delivery_type,\n cast(null as \n varchar\n) as estimate_status,\n total_amount,\n cast(null as \n numeric(28, 6)\n) as estimate_amount,\n current_balance,\n total_current_payment,\n 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 initial_payment_date,\n recent_payment_date\n from bill_join\n\n \n left join departments \n on bill_join.department_id = departments.department_id\n \n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n \n \n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n \n \n \n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\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 \n\n \n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n \n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\""}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__transfer')}}\n),\n\ntransfer_body as (\n select\n transfer_id as transaction_id,\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 select \n transaction_id,\n index,\n transaction_date,\n cast(null as {{ dbt_utils.type_string() }}) as customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_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 index,\n transaction_date,\n cast(null as {{ dbt_utils.type_string() }}) as customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__transfer_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "84ec20312a67031bae6bff93d5a43472cc5f163cdea7abfb75edacb10de597c7"}, "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}, "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", "enabled": true}, "created_at": 1664217028.216377, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n),\n\ntransfer_body as (\n select\n transfer_id as transaction_id,\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 select \n transaction_id,\n index,\n transaction_date,\n cast(null as \n varchar\n) as customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n credit_to_account_id as account_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 index,\n transaction_date,\n cast(null as \n varchar\n) as customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n debit_to_account_id as account_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_integrations_tests_quickbooks\".\"int_quickbooks__transfer_double_entry\""}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__credit_memo')}}\n),\n\ncredit_memo_lines as (\n select *\n from {{ref('stg_quickbooks__credit_memo_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\ndf_accounts as (\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 select\n credit_memos.credit_memo_id as transaction_id,\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 from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount * -1 as amount,\n account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_memo_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "aa7baa3b38031afde352adca343ae9d56c63eff61740630d86b10d288b25fccf"}, "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}, "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", "enabled": true}, "created_at": 1664217028.214846, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\ndf_accounts as (\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 select\n credit_memos.credit_memo_id as transaction_id,\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 from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount * -1 as amount,\n account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_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_integrations_tests_quickbooks\".\"int_quickbooks__credit_memo_double_entry\""}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__refund_receipt')}}\n),\n\nrefund_receipt_lines as (\n select *\n from {{ref('stg_quickbooks__refund_receipt_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),\n\nrefund_receipt_join as (\n select\n refund_receipts.refund_id as transaction_id,\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 from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n debit_account_id as account_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__refund_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "aff40c4210a37d13dbb0b8cb3a998461e137e484ce885aa6ce0f597f361a3bc6"}, "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}, "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", "enabled": true}, "created_at": 1664217028.216022, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n select\n refund_receipts.refund_id as transaction_id,\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 from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n credit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n debit_account_id as account_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_integrations_tests_quickbooks\".\"int_quickbooks__refund_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__journal_entry')}}\n),\n\njournal_entry_lines as (\n select *\n from {{ref('stg_quickbooks__journal_entry_line')}}\n),\n\nfinal as (\n select\n journal_entries.journal_entry_id as transaction_id,\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 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\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__journal_entry_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "b433f5d9428009dabd387efd0b9a9634ffbec913400655f2a2cf7c26fd2fe21a"}, "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}, "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", "enabled": true}, "created_at": 1664217028.215481, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n select\n journal_entries.journal_entry_id as transaction_id,\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 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\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__journal_entry_double_entry\""}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"raw_sql": "/*\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 select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nap_accounts as (\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 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 select\n transaction_id,\n index,\n transaction_date,\n cast(null as {{ dbt_utils.type_string() }}) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_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 index,\n transaction_date,\n cast(null as {{ dbt_utils.type_string() }}) as customer_id,\n vendor_id,\n amount,\n account_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "3300a28e7094d480913e678ffeb25fd2974d2bb2202f04ad821af19fc98b31fd"}, "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}, "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", "enabled": true}, "created_at": 1664217028.214632, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nap_accounts as (\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 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 select\n transaction_id,\n index,\n transaction_date,\n cast(null as \n varchar\n) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_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 index,\n transaction_date,\n cast(null as \n varchar\n) as customer_id,\n vendor_id,\n amount,\n account_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_integrations_tests_quickbooks\".\"int_quickbooks__bill_payment_double_entry\""}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__deposit')}}\n), \n\ndeposit_lines as (\n select *\n from {{ref('stg_quickbooks__deposit_line')}}\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nuf_accounts as (\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 select\n deposits.deposit_id as transaction_id,\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 from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n \n cross join uf_accounts\n\n),\n\nfinal as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n deposit_to_acct_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__deposit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "c7c4ced3f02b4d502578b21e07a4fc4150cacb8251a7517d4d3085d31b6394fb"}, "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}, "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", "enabled": true}, "created_at": 1664217028.2151082, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nuf_accounts as (\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 select\n deposits.deposit_id as transaction_id,\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 from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n \n cross join uf_accounts\n\n),\n\nfinal as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n deposit_to_acct_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n deposit_from_acct_id as account_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_integrations_tests_quickbooks\".\"int_quickbooks__deposit_double_entry\""}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"raw_sql": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n select *\n from {{ref('stg_quickbooks__purchase')}}\n),\n\npurchase_lines as (\n select *\n from {{ref('stg_quickbooks__purchase_line')}}\n),\n\nitems as (\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 select\n purchases.purchase_id as transaction_id,\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 purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__purchase_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "59e5477ceeb4c53ad2a18fb8fd8f7f9206cfd81a783a6e8ea1e7d0f9e29ed284"}, "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}, "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"}, "created_at": 1664217028.215845, "compiled_sql": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nitems as (\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n select\n purchases.purchase_id as transaction_id,\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 purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_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_integrations_tests_quickbooks\".\"int_quickbooks__purchase_double_entry\""}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__sales_receipt')}}\n),\n\nsales_receipt_lines as (\n select *\n from {{ref('stg_quickbooks__sales_receipt_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),\n\nsales_receipt_join as (\n select\n sales_receipts.sales_receipt_id as transaction_id,\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 from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__sales_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "95bd656ce36e028ba14b63035e91741778555151f7cb597f59065deacbd343e4"}, "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}, "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", "enabled": true}, "created_at": 1664217028.216199, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n select\n sales_receipts.sales_receipt_id as transaction_id,\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 from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n debit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n credit_to_account_id as account_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_integrations_tests_quickbooks\".\"int_quickbooks__sales_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__vendor_credit')}}\n),\n\nvendor_credit_lines as (\n select *\n from {{ref('stg_quickbooks__vendor_credit_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),\n\nvendor_credit_join as (\n select\n vendor_credits.vendor_credit_id as transaction_id,\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 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\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select \n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__vendor_credit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "dab1b9c14d836305b615549b79ed487e9f2269c739e876ab779364b860a66673"}, "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}, "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", "enabled": true}, "created_at": 1664217028.2165492, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n select\n vendor_credits.vendor_credit_id as transaction_id,\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 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\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select \n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_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_integrations_tests_quickbooks\".\"int_quickbooks__vendor_credit_double_entry\""}, "model.quickbooks.int_quickbooks__bill_double_entry": {"raw_sql": "/*\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 select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\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 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 bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select \n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "abf6f6d2e59699a356439f0ca23c54cb5b0655c09ef866b018fd3c2db8213c23"}, "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}, "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", "enabled": true}, "created_at": 1664217028.2143471, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\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_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integrations_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 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 bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n),\n\nfinal as (\n select \n transaction_id,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_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_integrations_tests_quickbooks\".\"int_quickbooks__bill_double_entry\""}, "model.quickbooks.int_quickbooks__payment_double_entry": {"raw_sql": "/*\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 select *\n from {{ref('stg_quickbooks__payment')}}\n),\n\npayment_lines as (\n select *\n from {{ref('stg_quickbooks__payment_line')}}\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nar_accounts as (\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 select\n payments.payment_id as transaction_id,\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n deposit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "44bb323ef30414de8360578e94e489ee28da71f8efa0c720aac9242d8a83a1a1"}, "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}, "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", "enabled": true}, "created_at": 1664217028.2156641, "compiled_sql": "/*\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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nar_accounts as (\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 select\n payments.payment_id as transaction_id,\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n deposit_to_account_id as account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_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_integrations_tests_quickbooks\".\"int_quickbooks__payment_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"raw_sql": "/*\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),\n\naccounts as (\n select *\n from {{ref('stg_quickbooks__account')}}\n),\n\n\n{% if var('using_invoice_bundle', True) %}\ninvoice_bundles as (\n select *\n from {{ref('stg_quickbooks__invoice_line_bundle')}}\n),\n\nbundles as (\n select *\n from {{ref('stg_quickbooks__bundle')}}\n),\n\nbundle_items as (\n select \n *\n from {{ref('stg_quickbooks__bundle_item')}}\n),\n\nincome_accounts as (\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n bundle_items.bundle_id\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n),\n{% endif %}\n\nar_accounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n select\n invoices.invoice_id as transaction_id,\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\n {% else %}\n coalesce(invoice_lines.account_id, items.income_account_id) as account_id,\n\n {% endif %}\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\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\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n account_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 index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt_utils.type_string() }}) as vendor_id,\n amount,\n ar_accounts.account_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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__invoice_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "31a4a4c3736c923cb71670c86bce273a0c94e4cbe4775f564e736bb1a8641530"}, "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}, "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", "enabled": true}, "created_at": 1664217028.215296, "compiled_sql": "/*\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_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_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_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\n\n\ninvoice_bundles as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n),\n\nbundles as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n),\n\nbundle_items as (\n select \n *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\n),\n\nincome_accounts as (\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n bundle_items.bundle_id\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n),\n\n\nar_accounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n select\n invoices.invoice_id as transaction_id,\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 invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n\n \n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\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 select\n transaction_id,\n index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n account_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 index,\n transaction_date,\n customer_id,\n cast(null as \n varchar\n) as vendor_id,\n amount,\n ar_accounts.account_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_integrations_tests_quickbooks\".\"int_quickbooks__invoice_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_transactions": {"raw_sql": "--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 from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n invoices.invoice_id as transaction_id,\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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__invoice_transactions"], "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "7c47219159482cb5486ff8f1420e39dcc823de209a7970e5df37b090f01b4631"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217027.386593, "compiled_sql": "--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_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n invoices.invoice_id as transaction_id,\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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__invoice_transactions\""}, "model.quickbooks.int_quickbooks__bill_transactions": {"raw_sql": "--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 select *\n from {{ ref('stg_quickbooks__bill') }} \n),\n\nbill_lines as (\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n bills.bill_id as transaction_id,\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\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__bill_transactions"], "unique_id": "model.quickbooks.int_quickbooks__bill_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "ab24f6028c492c7356d5594643d513ed7801ab04b90ae1635094d028adc6b69c"}, "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}, "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": 1664217028.216726, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill\" \n),\n\nbill_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n bills.bill_id as transaction_id,\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\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__bill_transactions\""}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"raw_sql": "--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 select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n select\n journal_entries.journal_entry_id as transaction_id,\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_utils.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)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__journal_entry_transactions"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "20331ca032ed04088b7b91d3a966569fbddd328500ef726926e0c50ff954dacf"}, "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}, "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": 1664217028.2173178, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n select\n journal_entries.journal_entry_id as transaction_id,\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 \n varchar\n) 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)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\""}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__refund_receipt')}}\n),\n\nrefund_receipt_lines as (\n select *\n from {{ref('stg_quickbooks__refund_receipt_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n refund_receipts.refund_id as transaction_id,\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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__refund_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "94b5e9cbd8e76f3fa4675ac56d43fc2ad2a75bad78571e468e57d8deb0468a41"}, "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}, "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": 1664217028.21766, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n refund_receipts.refund_id as transaction_id,\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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\""}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__vendor_credit')}}\n),\n\nvendor_credit_lines as (\n select *\n from {{ref('stg_quickbooks__vendor_credit_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n vendor_credits.vendor_credit_id as transaction_id,\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\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__vendor_credit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "44dd7dbdee7eb69957e8ca1f25bc49e6981462ab6289577d869537d1ec8a1dff"}, "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}, "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": 1664217028.218004, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n vendor_credits.vendor_credit_id as transaction_id,\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\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\""}, "model.quickbooks.int_quickbooks__purchase_transactions": {"raw_sql": "--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 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\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__purchase_transactions"], "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "12d0d4051724830798e0aa4eba96319824655478a4a5d7d0afeb7d284f30a784"}, "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}, "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": 1664217028.217491, "compiled_sql": "--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_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\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\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__purchase_transactions\""}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__sales_receipt')}}\n),\n\nsales_receipt_lines as (\n select *\n from {{ref('stg_quickbooks__sales_receipt_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n sales_receipts.sales_receipt_id as transaction_id,\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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__sales_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "796701633bec49f4836d17748afc0e84338ace3ce9110e2a2e682a0b773139a8"}, "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}, "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": 1664217028.217834, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n sales_receipts.sales_receipt_id as transaction_id,\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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\""}, "model.quickbooks.int_quickbooks__deposit_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__deposit')}}\n), \n\ndeposit_lines as (\n select *\n from {{ref('stg_quickbooks__deposit_line')}}\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposit_lines.index as transaction_line_id,\n cast(null as {{ dbt_utils.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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__deposit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "b02ff712ecec85d94a155668c93f9498ad1bd33ff168f7f5ab9b324e6614397a"}, "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}, "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": 1664217028.217068, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposit_lines.index as transaction_line_id,\n cast(null as \n varchar\n) 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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__deposit_transactions\""}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__credit_memo')}}\n),\n\ncredit_memo_lines as (\n select *\n from {{ref('stg_quickbooks__credit_memo_line')}}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n select\n credit_memos.credit_memo_id as transaction_id,\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_utils.type_string() }}) as vendor_id,\n cast(null as {{ dbt_utils.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\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__credit_memo_transactions"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "3cfc0d0fec71e9eefdcd82df1424cf015f9eec5da906c1cd34b47c258ee94057"}, "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}, "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": 1664217028.2168949, "compiled_sql": "--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 select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n select\n credit_memos.credit_memo_id as transaction_id,\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 \n varchar\n) as vendor_id,\n cast(null as \n varchar\n) 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\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\""}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"raw_sql": "with general_ledger as (\n select *\n from {{ref('quickbooks__general_ledger')}}\n),\n\ngl_accounting_periods as (\n select *\n from {{ref('int_quickbooks__general_ledger_date_spine')}}\n),\n\ngl_period_balance as (\n select\n account_id,\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 cast({{ dbt_utils.date_trunc(\"year\", \"transaction_date\") }} as date) as date_year,\n cast({{ dbt_utils.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(12) }}\n),\n\ngl_cumulative_balance as (\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 select\n account_id,\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 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.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.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),\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 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 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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_balances"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "48db6532e87b6d7027316d2ba70ac71063cef8f52527e87c4fb9ae4283ce954f"}, "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}, "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": 1664217028.218675, "compiled_sql": "with general_ledger as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ngl_accounting_periods as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\"\n),\n\ngl_period_balance as (\n select\n account_id,\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 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\n),\n\ngl_cumulative_balance as (\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 select\n account_id,\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 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.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.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),\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 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 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_integrations_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\""}, "model.quickbooks.int_quickbooks__account_classifications": {"raw_sql": "with accounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nclassification_fix as (\n select \n account_id,\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 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 select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\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)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__account_classifications"], "unique_id": "model.quickbooks.int_quickbooks__account_classifications", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "a2cd5e140a003b28b76885a98fe24dc113cb4934b055196595bbb29fb4864ce8"}, "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 account_types. 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}, "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": 1664217028.218173, "compiled_sql": "with accounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nclassification_fix as (\n select \n account_id,\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 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 select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\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)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__account_classifications\""}, "model.quickbooks.int_quickbooks__expenses_union": {"raw_sql": "with expense_union as (\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 select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nexpense_accounts as (\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Expense'\n),\n\nfinal as (\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\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_utils.type_string() }}) as item_id,\n cast(null as {{ dbt_utils.type_numeric() }}) as item_quantity,\n cast(null as {{ dbt_utils.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\n left join customers\n on customers.customer_id = expense_union.customer_id\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = expense_union.department_id\n {% endif %}\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__expenses_union"], "unique_id": "model.quickbooks.int_quickbooks__expenses_union", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "70f6cdad7cca7f65b57f6df40f06bd6d1367ec89a5425ad533f4fcfd2d341b32"}, "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}, "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": 1664217028.2185102, "compiled_sql": "with expense_union as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__purchase_transactions\"\n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__bill_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__deposit_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\"\n \n),\n\ncustomers as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nexpense_accounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Expense'\n),\n\nfinal as (\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\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 \n varchar\n) as item_id,\n cast(null as \n numeric(28, 6)\n) as item_quantity,\n cast(null as \n numeric(28, 6)\n) 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\n left join customers\n on customers.customer_id = expense_union.customer_id\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n\n \n left join departments\n on departments.department_id = expense_union.department_id\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__expenses_union\""}, "model.quickbooks.int_quickbooks__invoice_join": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__invoice')}}\n),\n\ninvoice_linked as (\n select *\n from {{ref('stg_quickbooks__invoice_linked_txn')}}\n),\n\n{% if var('using_estimate', True) %}\nestimates as (\n select *\n from {{ref('stg_quickbooks__estimate')}}\n),\n{% endif %}\n\npayments as (\n select *\n from {{ref('stg_quickbooks__payment')}}\n),\n\npayment_lines_payment as (\n select *\n from {{ref('stg_quickbooks__payment_line')}}\n\n where invoice_id is not null\n),\n\ninvoice_est as (\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 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 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 select\n cast('invoice' as {{ dbt_utils.type_string() }}) as transaction_type,\n invoice_link.invoice_id as transaction_id,\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_utils.type_numeric() }}) as estimate_total_amount,\n cast(null as {{ dbt_utils.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 {% endif %}\n\n left join payments\n on invoice_link.payment_id = payments.payment_id\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\n group by 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string"], "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__invoice_join"], "unique_id": "model.quickbooks.int_quickbooks__invoice_join", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "7717302b6a06623f572f5da16d3f1e8bfbaf14889ba01018e47b92a872e0c4c5"}, "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}, "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": 1664217028.219017, "compiled_sql": "--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_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_linked as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\n),\n\n\nestimates as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n),\n\n\npayments as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines_payment as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n\n where invoice_id is not null\n),\n\ninvoice_est as (\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 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 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 select\n cast('invoice' as \n varchar\n) as transaction_type,\n invoice_link.invoice_id as transaction_id,\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 \n\n left join payments\n on invoice_link.payment_id = payments.payment_id\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\n group by 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__invoice_join\""}, "model.quickbooks.int_quickbooks__retained_earnings": {"raw_sql": "with general_ledger_balances as (\n select *\n from {{ref('int_quickbooks__general_ledger_balances')}}\n),\n\nrevenue_starter as (\n select\n period_first_day,\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\n),\n\nexpense_starter as (\n select \n period_first_day,\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\n),\n\nnet_income_loss as (\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day)\n),\n\nretained_earnings_starter as (\n select\n cast('9999' as {{ dbt_utils.type_string() }}) as account_id,\n cast('9999-00' as {{ dbt_utils.type_string() }}) as account_number,\n cast('Net Income / Retained Earnings Adjustment' as {{ dbt_utils.type_string() }}) as account_name,\n false as is_sub_account,\n cast(null as {{ dbt_utils.type_string() }}) as parent_account_number,\n cast(null as {{ dbt_utils.type_string() }}) as parent_account_name,\n cast('Equity' as {{ dbt_utils.type_string() }}) as account_type,\n cast('RetainedEarnings' as {{ dbt_utils.type_string() }})as account_sub_type,\n cast('Equity' as {{ dbt_utils.type_string() }}) as account_class,\n cast('balance_sheet' as {{ dbt_utils.type_string() }}) as financial_statement_helper,\n cast({{ dbt_utils.date_trunc(\"year\", \"period_first_day\") }} as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n {{ dbt_utils.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 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,\n\nfinal as (\n select\n account_id,\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 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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.date_trunc", "macro.dbt_utils.last_day"], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__retained_earnings"], "unique_id": "model.quickbooks.int_quickbooks__retained_earnings", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "0e727a8507e61c60856f7d0706f79eaa86aadad01641bef3c032525538d61f42"}, "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}, "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": 1664217028.219431, "compiled_sql": "with general_ledger_balances as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nrevenue_starter as (\n select\n period_first_day,\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\n),\n\nexpense_starter as (\n select \n period_first_day,\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\n),\n\nnet_income_loss as (\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day)\n),\n\nretained_earnings_starter as (\n select\n cast('9999' as \n varchar\n) as account_id,\n cast('9999-00' as \n varchar\n) as account_number,\n cast('Net Income / Retained Earnings Adjustment' as \n varchar\n) as account_name,\n false as is_sub_account,\n cast(null as \n varchar\n) as parent_account_number,\n cast(null as \n varchar\n) as parent_account_name,\n cast('Equity' as \n varchar\n) as account_type,\n cast('RetainedEarnings' as \n varchar\n)as account_sub_type,\n cast('Equity' as \n varchar\n) as account_class,\n cast('balance_sheet' as \n varchar\n) 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 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,\n\nfinal as (\n select\n account_id,\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 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_integrations_tests_quickbooks\".\"int_quickbooks__retained_earnings\""}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"raw_sql": "-- 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_utils.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_utils.date_trunc(\"year\", \"date_month\") }} as date) as date_year,\n cast({{ dbt_utils.date_trunc(\"month\", \"date_month\") }} as date) as period_first_day,\n {{ dbt_utils.last_day(\"date_month\", \"month\") }} as period_last_day,\n row_number() over (order by cast({{ dbt_utils.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.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 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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.date_trunc", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_date_spine"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "d7b32b1d1dbe02ad98ef21c24d12a204c7bc206e9eb9da6c9df11650ff60a0a8"}, "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}, "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": 1664217028.218848, "compiled_sql": "-- depends_on: \"postgres\".\"quickbooks_integrations_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 <= 45.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('2022-09-26' 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_integrations_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.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 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_integrations_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\""}, "model.quickbooks.int_quickbooks__bill_join": {"raw_sql": "--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 select *\n from {{ref('stg_quickbooks__bill')}}\n),\n\nbill_lines as (\n select *\n from {{ref('stg_quickbooks__bill_line')}}\n),\n\nbills_linked as (\n select *\n from {{ref('stg_quickbooks__bill_linked_txn')}}\n),\n\nbill_payments as (\n select *\n from {{ref('stg_quickbooks__bill_payment')}}\n),\n\nbill_payment_lines as (\n select *\n from {{ref('stg_quickbooks__bill_payment_line')}}\n\n where bill_id is not null\n),\n\nbill_pay as (\n select\n bills.bill_id,\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\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\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),\n\nfinal as (\n select\n cast('bill' as {{ dbt_utils.type_string() }}) as transaction_type,\n bill_link.bill_id as transaction_id,\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\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1, 2, 3, 4, 5, 6, 7, 8, 9\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.type_string"], "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__bill_join"], "unique_id": "model.quickbooks.int_quickbooks__bill_join", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "2d82b0d8b6cc465ee8ba19911ead9f22613cf4e3c61e87a65ca0ef6d67ae7806"}, "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}, "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": 1664217028.218343, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nbills_linked as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\n),\n\nbill_payments as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n\n where bill_id is not null\n),\n\nbill_pay as (\n select\n bills.bill_id,\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\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\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),\n\nfinal as (\n select\n cast('bill' as \n varchar\n) as transaction_type,\n bill_link.bill_id as transaction_id,\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\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1, 2, 3, 4, 5, 6, 7, 8, 9\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__bill_join\""}, "model.quickbooks.int_quickbooks__sales_union": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice'])) }}\n\nwith sales_union as (\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 select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nincome_accounts as (\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Income'\n),\n\nfinal as (\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\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\n left join customers\n on customers.customer_id = sales_union.customer_id\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = sales_union.department_id\n {% endif %}\n)\n\nselect *\nfrom final", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__sales_union"], "unique_id": "model.quickbooks.int_quickbooks__sales_union", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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": "b48e3ecc298fcccdf54a63bc210c1a11fbded3702ff8ba3c696d2d65dc20467a"}, "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}, "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": 1664217028.219187, "compiled_sql": "\n\nwith sales_union as (\n \n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__invoice_transactions\"\n\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\"\n \n),\n\ncustomers as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nincome_accounts as (\n select *\n from \"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Income'\n),\n\nfinal as (\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\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\n left join customers\n on customers.customer_id = sales_union.customer_id\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n\n \n left join departments\n on departments.department_id = sales_union.department_id\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks\".\"int_quickbooks__sales_union\""}, "analysis.quickbooks.quickbooks__balance_sheet": {"raw_sql": "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", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__balance_sheet"], "unique_id": "analysis.quickbooks.quickbooks__balance_sheet", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.486656, "compiled_sql": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "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", "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__income_statement"], "unique_id": "analysis.quickbooks.quickbooks__income_statement", "package_name": "quickbooks", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217027.489228, "compiled_sql": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt_utils.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8182bb7fde66f44182184937272a46db77aabfd36c1fbb72d6e6f29ad8bf29ee"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "description": "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}, "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": 1664217028.275904, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as \n varchar\n) as journal_entry_id,\n index,\n cast(account_id as \n varchar\n) as account_id,\n amount,\n cast(customer_id as \n varchar\n) as customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as \n varchar\n) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt_utils.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt_utils.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "c23e6ffe67c90019d686607db14ed9e6218e1e9a0006da0f37eb63aaacdf25a8"}, "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}, "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": 1664217028.296792, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as transfer_id,\n amount,\n cast(from_account_id as \n varchar\n) as from_account_id,\n cast(to_account_id as \n varchar\n) as to_account_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt_utils.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt_utils.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 from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "576576fe59dcfc7f3124568fbc558bd3bf3bb8c1fa4c5fe807efb2fc4d23f577"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "description": "", "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}, "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": 1664217028.246986, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as \n varchar\n) as bill_payment_id,\n index,\n amount,\n cast(bill_id as \n varchar\n) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt_utils.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "31e9e3f13b0368c950a43abcb00f6e7cf9f524e840ff5e8e1fa3f9948992794e"}, "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}, "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": 1664217028.2785778, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(payment_id as \n varchar\n) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as \n varchar\n) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"raw_sql": "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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt_utils.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 from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "10e8f6a5039c3cfe39da881607eb1b3d61fd04917b610c7543ea0d9bccdd21e7"}, "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}, "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": 1664217028.3025532, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as \n varchar\n) 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 from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt_utils.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "7906b307229b91a842dc797cd69a19a2ab202fdbe3a3cbc31bd6e39d30716f4b"}, "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}, "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": 1664217028.268065, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as \n varchar\n) as bundle_id,\n cast(account_id as \n varchar\n) as account_id,\n cast(item_id as \n varchar\n) as item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as estimate_id,\n 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 from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "61a85858135108187659defbc6b52be05c0a1304b78bfe222a8eb9bce785a642"}, "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}, "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": 1664217028.263103, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as estimate_id,\n 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 from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt_utils.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "731e90d11faba9c0f3875147fc405accd6af74d78fc1ec7a18c44f20a46ede43"}, "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": "Account reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference 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": "Account reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference 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": {}, "docs": {"show": true}, "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": 1664217028.254143, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as \n varchar\n) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at\n\n from fields\n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "0ef2ed2eb8ac8a308edbedea863968ddd1ad5f619afe6e9c72678ef151168d98"}, "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}, "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": 1664217028.252674, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"raw_sql": "--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 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 from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns"], "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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "2be93e7cc41f15b54e16e9dcf3fa931ca96aa0c49cafee6b61af10a8938a063f"}, "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}, "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": 1664217028.258757, "compiled_sql": "--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_integrations_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 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 from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"raw_sql": "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 from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt_utils.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.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_utils.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "b9450450ff124f39a044634b49ee7acd4933674b5b3eb95e599b1cb52cea79e9"}, "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_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}, "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": 1664217028.2819111, "compiled_sql": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_integrations_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 from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as \n varchar\n) as purchase_id,\n index,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"raw_sql": "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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt_utils.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_utils.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "c8bc7f7cee804ce5a82d9b11833771548f542afd1c53161f672dc41ece81ea7a"}, "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}, "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": 1664217028.2840252, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as purchase_id,\n cast(account_id as \n varchar\n) as account_id,\n created_at,\n cast(doc_number as \n varchar\n) 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 \n varchar\n) as customer_id,\n cast(vendor_id as \n varchar\n) as vendor_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt_utils.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8212f77bbd56e97a8e02b8d7c222ca55dfcdf2170f59bd6b230c23ed369ca606"}, "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": []}, "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_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}, "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": 1664217028.290266, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(refund_id as \n varchar\n) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt_utils.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "fb8aa15c70398f69cd0f33a4acf161994c7915b183485abf5623256b13f94204"}, "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}, "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": 1664217028.2516952, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as \n varchar\n) as bundle_id,\n cast(item_id as \n varchar\n) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "7f31e1d8b784eed03a72c1197f17a39acce3d8bdf12b6c69e7991cceff5666b3"}, "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}, "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": 1664217028.255852, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as credit_memo_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n cast(customer_id as \n varchar\n) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt_utils.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price \n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "439c85dbcc118c34af1e82a50bb8a3b900f6c703097da5f26d205ee626745849"}, "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": []}, "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_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}, "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": 1664217028.2937868, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as \n varchar\n) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n department_id,\n class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "151c999c4d87ced6509cba1d90bf218b0ad3818e76e6a7a758092a3fd41660d9"}, "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}, "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": 1664217028.2957098, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as sales_receipt_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n created_at,\n cast(customer_id as \n varchar\n) as customer_id,\n department_id,\n class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt_utils.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt_utils.type_string() }}) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "cde4edebc70b7fbc6dd6f2a188dcc053f2be9bec2140afa8acb37feb5e0dae16"}, "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}, "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": 1664217028.265768, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n cast(payment_id as \n varchar\n) as payment_id,\n cast(estimate_id as \n varchar\n) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt_utils.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d9add19e167a1f9243a34b39a75343d132db589efdfa2375ec02f007e96ca5f2"}, "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": []}, "_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}, "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": 1664217028.272098, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as invoice_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as \n varchar\n) as customer_id,\n cast(billing_address_id as \n varchar\n) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt_utils.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt_utils.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_utils.type_string() }}) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "cf71cbd50dd81b86d439835f3061a0f20760dd14b69d8be29a1ddeb4e74ae9ec"}, "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}, "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": 1664217028.249127, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as bill_payment_id,\n cast(check_bank_account_id as \n varchar\n) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as \n varchar\n) 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 \n varchar\n) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "bcd0b77671c0f4445a56033269d4a5fc98ff663ff2707700bde1c8365fe520b3"}, "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": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "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}, "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": 1664217028.269751, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n cast(item_id as \n varchar\n) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as \n varchar\n) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"raw_sql": "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 from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as account_id,\n cast(account_number as {{ dbt_utils.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt_utils.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\n from base\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "ab8f2d71492bdf90ba7d2dc6e50139c2b860226d77f18b4e67efd94131d98c1f"}, "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.\n", "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}, "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": 1664217028.2413938, "compiled_sql": "with base as (\n select *\n from \"postgres\".\"quickbooks_integrations_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 from base\n),\n\nfinal as (\n\n select\n cast(id as \n varchar\n) as account_id,\n cast(account_number as \n varchar\n) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as \n varchar\n) 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\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt_utils.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "e4bf9c4a71e597b2a9c4df93d53e73d9226c0c1643498487b17744af533a40f3"}, "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}, "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": 1664217028.280171, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as \n varchar\n) as receivable_account_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as \n varchar\n) as customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt_utils.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n discount_class_id,\n sales_item_account_id,\n sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "236c8ce21b4a765f9ac17846a408fb3e5e41c432c0ece468938f000db9338bb4"}, "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}, "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": 1664217028.265035, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as \n varchar\n) as estimate_id,\n index,\n description,\n discount_account_id,\n discount_class_id,\n sales_item_account_id,\n sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt_utils.type_string() }}) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "61d8f6482d5485430f1e877300688ea1da6e5c7f85875d2da1b0fe008b5b429a"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "", "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}, "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": 1664217028.2454941, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(bill_id as \n varchar\n) as bill_id,\n index,\n cast(bill_payment_id as \n varchar\n) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.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 from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "5648267ee252643f3ba7f1463b79965aff6998b6636cfd2deacd9bb7c951cb2b"}, "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}, "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": 1664217028.2425091, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"raw_sql": "--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 from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt_utils.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_utils.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "082c7d45aa91cd473330817e7115cdd6268a51319b226cd5a17f6ab563ffa097"}, "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}, "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": 1664217028.251082, "compiled_sql": "--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_integrations_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 from base\n),\n \nfinal as (\n \n select \n cast(id as \n varchar\n) as bill_id,\n balance,\n cast(doc_number as \n varchar\n) 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 \n varchar\n) as payable_account_id,\n total_amount,\n cast(vendor_id as \n varchar\n) as vendor_id,\n private_note,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt_utils.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "fd1ad3febae0e4bdc558f7532dd6af20cb63c21659756702bc6767b5e00828f3"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "description": "", "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": []}, "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}, "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": 1664217028.24471, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(bill_id as \n varchar\n) as bill_id,\n index,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"raw_sql": "--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 from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "6adb65ff59e13768161ba5c0a0bfe99806898d3262825ff8cf128e562eda62ce"}, "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}, "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": 1664217028.277395, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n\n select\n cast(id as \n varchar\n) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as \n varchar\n) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "2910d63c96e4ddf5818442a6d16726c4a55f9f7b0e06407b3d6da40c345faa29"}, "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}, "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": 1664217028.292282, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as refund_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as \n varchar\n) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt_utils.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt_utils.type_string() }}) as deposit_account_id,\n deposit_class_id,\n cast(deposit_customer_id as {{ dbt_utils.type_string() }}) as deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "a32b911408ed00166ecfb3b88ff365da095fe6a3148542452a93ea85c9649065"}, "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}, "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": 1664217028.25998, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as \n varchar\n) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as \n varchar\n) as deposit_account_id,\n deposit_class_id,\n cast(deposit_customer_id as \n varchar\n) as deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "3040e997aabc279f20d3740f0591319d9973862ab4de1dab050d3b59a76a4545"}, "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}, "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": 1664217028.3009548, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as vendor_credit_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as \n varchar\n) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as \n varchar\n) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt_utils.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n item_expense_class_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "4760dd7449f9de76839a422033d5c255cb30dfd878befdd10a627c60663beea9"}, "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}, "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": 1664217028.299042, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as \n varchar\n) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n item_expense_class_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"raw_sql": "--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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt_utils.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 from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "68846fdada1ddea1ad77c95f863190ec6e02e1f241fa34a4f2888cfda76a73ba"}, "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}, "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": 1664217028.26135, "compiled_sql": "--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_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as deposit_id,\n cast(account_id as \n varchar\n) 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 from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"raw_sql": "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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt_utils.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt_utils.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt_utils.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_utils.type_string() }}) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "b5fe88881ea7edd1df4429ceb0e5c69e740baabdcdf96e90158cce87c9407675"}, "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}, "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": 1664217028.274078, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as \n varchar\n) as income_account_id,\n cast(asset_account_id as \n varchar\n) as asset_account_id,\n cast(expense_account_id as \n varchar\n) 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 \n varchar\n) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__customer": {"raw_sql": "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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.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\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.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", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "e7d4734dbe9fcc95ee73a4f1216cd8e6fa1325b24dbd0e6405279c366a98e836"}, "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}, "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": 1664217028.257549, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integrations_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 from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) 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\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('vendor_credit') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.vendor_credit_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "2cc1af8b806f60a8aab3cc6b08988da2d3014a246be9ff927ced5d1fda182fc9"}, "tags": [], "refs": [["vendor_credit_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.0513659, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('refund_receipt_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.refund_receipt_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "937c4edb6ed96a15d1ed984d79c6306f9ba1fa3a338e5e7a34fc0b3301f0b1c6"}, "tags": [], "refs": [["refund_receipt_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.0545778, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('estimate_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.estimate_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "c384d015b8964e52ccf18fcbbd2260278d8f2d9b02e79cda1ed35d89514f018d"}, "tags": [], "refs": [["estimate_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.057767, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('credit_memo_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.credit_memo_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d3c8e3dc3108ebae669290dc214fc716857dd7b93134587014f90ae22bd89bec"}, "tags": [], "refs": [["credit_memo_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.063853, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('journal_entry') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.journal_entry_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "61f5ac20efc0252540f3ff70ec87692d2b4635a96ec4ad08e7f8295e9f9e898d"}, "tags": [], "refs": [["journal_entry_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.067481, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('invoice_line_bundle') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.invoice_line_bundle_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "ecba6d64adcba0d6a1ec3bed3bdaee051c8b23ce2bd7d6dd87254a92dc772837"}, "tags": [], "refs": [["invoice_line_bundle_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.071693, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('payment') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.payment_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "68166bc4b2a668928e855e7371c6743a5bf66a1fb1ede8bb2b113ff3e8d9c239"}, "tags": [], "refs": [["payment_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.074755, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('invoice_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.invoice_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "70e8445c77cc3b476587100fa0123c29ec4a82810ee9517dcc9abcfddd42b835"}, "tags": [], "refs": [["invoice_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.077922, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('deposit_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.deposit_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "c792d5b27123728ccbd7b656a2a720c9880baad2c5102b95e275071fc7019440"}, "tags": [], "refs": [["deposit_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.081412, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"raw_sql": "select * \nfrom {{ var('customer') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.customer_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "ed57930558565003ebd42e837a90057b26f852767bc32e4a58b19094ecbfa509"}, "tags": [], "refs": [["customer_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.085245, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "65c2cf00e68503a0faa314a95bcb99d9aef127a66b49eed378dba1307b80ff8e"}, "tags": [], "refs": [["bill_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.088191, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"raw_sql": "select * \nfrom {{ var('item') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.item_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "af4a69cfe57cc894bf2bab8d71ac00aa95dd4ff1b337ad031accdf8059ce4dd9"}, "tags": [], "refs": [["item_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.091327, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"raw_sql": "select *\nfrom {{ var('account') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.account_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "89b197ede7e07bf1451016ce108798ac734cb75e9ab2f15a1e3690cd349b91ba"}, "tags": [], "refs": [["account_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.094365, "compiled_sql": "select *\nfrom \"postgres\".\"quickbooks_integrations_tests\".\"account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('vendor_credit_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.vendor_credit_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "78229c53b993c7bcc6d8355993cdc3a2ff5c07117ced9aaef4ea691019361b6f"}, "tags": [], "refs": [["vendor_credit_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.097176, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('department') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.department_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "2fdf3784cf998ce60970941e2839d369cd085661c952946bef8592d1abf32f47"}, "tags": [], "refs": [["department_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.100899, "compiled_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bundle') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bundle_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "167d7ef377ddda2a70dd33550dc6bd59b65b9e5d3af94c86fd348669b19eba01"}, "tags": [], "refs": [["bundle_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.104147, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bundle_item') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bundle_item_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "364c8c25c619bdf90cbc036bd87b84d19b686250398a3a107089a883da7828f6"}, "tags": [], "refs": [["bundle_item_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.1073658, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill_payment_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_payment_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d0c2fe19b83418b83ff4d040425de10b4558cb98b74621fce2de76e67bc53992"}, "tags": [], "refs": [["bill_payment_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.113607, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('estimate') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.estimate_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "387d86ea42380e18b5a88af69c9801228ec43e7cfca5fe9a2e00151c9c65f451"}, "tags": [], "refs": [["estimate_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.118443, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"raw_sql": "select * \nfrom {{ var('purchase') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.purchase_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "66bc8c4634087951dd5d541ee092908f907fc0a521936fa5753894b2f121f471"}, "tags": [], "refs": [["purchase_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.1223738, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('credit_memo') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.credit_memo_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "5a8abf0f3c86c4d7675fd783d26cd5477bec0e06056f82b8351d333f1df9fe7a"}, "tags": [], "refs": [["credit_memo_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.1254961, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "13eedc57b03b350d0c228dbf1556178789afabe88eb541806450c0c3856e8dd7"}, "tags": [], "refs": [["bill_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.1287, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('transfer') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.transfer_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "fe093aad89e2c31a8bdcdc76afda4d24dcefa51d92b3233c64524eeba3eef37b"}, "tags": [], "refs": [["transfer_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.131915, "compiled_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"raw_sql": "select * \nfrom {{ var('vendor') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.vendor_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8b70affb7fe37710eca09eae95bf632d9d27148f5b733a85704da28973d0488d"}, "tags": [], "refs": [["vendor_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.135189, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"raw_sql": "select * \nfrom {{ var('purchase_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.purchase_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "4fd11ba6c866de7b7e63ac6b49ad73bda7f7979bd524c1b590bd3199237170e3"}, "tags": [], "refs": [["purchase_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.138744, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('address') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.address_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "df4f34085d800f3d46de4b2047720a9089ed863de57734e4dcae21288c65ab99"}, "tags": [], "refs": [["address_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.1416278, "compiled_sql": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('payment_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.payment_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "5f0d1167d49e59ebd3067c62b5669168b1cc2bad26a10183754a6e487d2abb2f"}, "tags": [], "refs": [["payment_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.145107, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('refund_receipt') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.refund_receipt_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "cfee40b115db7fd6bfa6e9e149f1869ac0f7e00dd706ee67d4d84c8206872abf"}, "tags": [], "refs": [["refund_receipt_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.148253, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nselect * \nfrom {{ var('sales_receipt') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.sales_receipt_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "e3359ec9953b6cfab71b2d84d7ea912911eaa099382a7b2ad4a513e432ef65b5"}, "tags": [], "refs": [["sales_receipt_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.151414, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill_payment') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_payment_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "66eda7d6020107bc0e84dcea48b870c6096225de722562f2d762140fd612beaf"}, "tags": [], "refs": [["bill_payment_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.155252, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('journal_entry_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.journal_entry_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "b50644aae9cd93f4b5984e7971224db8d93dafd7f248dfb89364bea6972fcfbf"}, "tags": [], "refs": [["journal_entry_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.182116, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('deposit') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.deposit_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "43224393f0bbff587d3698bbfbbd2ff3cd5f683500cd00a2419c746c005ec5f4"}, "tags": [], "refs": [["deposit_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.186004, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('bill_linked_txn') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.bill_linked_txn_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "25ee3cc57ef02869b14fd248302c42c2ef078a458770a67ed6364996f5732036"}, "tags": [], "refs": [["bill_linked_txn_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.189399, "compiled_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('invoice_linked_txn') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.invoice_linked_txn_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "9c2e3137b556c864bb7da4ece22641b9d5b00ed36305884828a2450f0d75f64a"}, "tags": [], "refs": [["invoice_linked_txn_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.1926248, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nselect * \nfrom {{ var('sales_receipt_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.sales_receipt_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d8fd3f81fc56b2f40f2fbe97128c7640153e1b01603635543e6a603110ed9057"}, "tags": [], "refs": [["sales_receipt_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.19588, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"raw_sql": "--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\nselect * \nfrom {{ var('invoice') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_integration_tests.invoice_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "94912a9345b3995fc90cbcb50db1e950570080b1c436178b76516a4a602b9fd1"}, "tags": [], "refs": [["invoice_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.202973, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__account_account_id", "alias": "unique_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.306844, "compiled_sql": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__account_account_id.9944488b9d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.308128, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3091369, "compiled_sql": "\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_integrations_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.unique_stg_quickbooks__address_address_id.d24d22c82f": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__address_address_id", "alias": "unique_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.315853, "compiled_sql": "\n \n \n\nselect\n address_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is not null\ngroup by address_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3169532, "compiled_sql": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.317913, "compiled_sql": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3189309, "compiled_sql": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.320006, "compiled_sql": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3211288, "compiled_sql": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_payment_bill_payment_id", "alias": "unique_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}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.3221078, "compiled_sql": "\n \n \n\nselect\n bill_payment_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is not null\ngroup by bill_payment_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.323078, "compiled_sql": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__bill_bill_id.171ad8ec00": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_bill_id", "alias": "unique_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.3241699, "compiled_sql": "\n \n \n\nselect\n bill_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is not null\ngroup by bill_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.325122, "compiled_sql": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.326072, "compiled_sql": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bundle_bundle_id", "alias": "unique_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.32715, "compiled_sql": "\n \n \n\nselect\n bundle_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is not null\ngroup by bundle_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.328107, "compiled_sql": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.329057, "compiled_sql": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__credit_memo_credit_memo_id", "alias": "unique_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}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.33, "compiled_sql": "\n \n \n\nselect\n credit_memo_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is not null\ngroup by credit_memo_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.331075, "compiled_sql": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__customer_customer_id", "alias": "unique_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.332027, "compiled_sql": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.332979, "compiled_sql": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.334066, "compiled_sql": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__deposit_deposit_id", "alias": "unique_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.3350232, "compiled_sql": "\n \n \n\nselect\n deposit_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is not null\ngroup by deposit_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3361752, "compiled_sql": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__estimate_estimate_id", "alias": "unique_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.3371892, "compiled_sql": "\n \n \n\nselect\n estimate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is not null\ngroup by estimate_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.338314, "compiled_sql": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.339276, "compiled_sql": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.340224, "compiled_sql": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.341299, "compiled_sql": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.342253, "compiled_sql": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__invoice_invoice_id.61a533de04": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__invoice_invoice_id", "alias": "unique_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.343206, "compiled_sql": "\n \n \n\nselect\n invoice_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is not null\ngroup by invoice_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3441432, "compiled_sql": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__item_item_id.2ae762da26": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__item_item_id", "alias": "unique_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.345221, "compiled_sql": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.346165, "compiled_sql": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.347102, "compiled_sql": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.348344, "compiled_sql": "\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_integrations_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.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__journal_entry_journal_entry_id", "alias": "unique_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}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.351037, "compiled_sql": "\n \n \n\nselect\n journal_entry_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is not null\ngroup by journal_entry_id\nhaving count(*) > 1\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__journal_entry_journal_entry_id.39198c4ff2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.352274, "compiled_sql": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3532548, "compiled_sql": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__payment_payment_id.984edfee8b": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__payment_payment_id", "alias": "unique_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.354225, "compiled_sql": "\n \n \n\nselect\n payment_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is not null\ngroup by payment_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.355329, "compiled_sql": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3563, "compiled_sql": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__purchase_purchase_id.90e4089097": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_purchase_id", "alias": "unique_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.357257, "compiled_sql": "\n \n \n\nselect\n purchase_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is not null\ngroup by purchase_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.358208, "compiled_sql": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integrations_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": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3592901, "compiled_sql": "\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_integrations_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.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.362143, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1664217028.3631418, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}, "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique"], "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_order_purchase_order_id", "alias": "unique_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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.364197, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.3652868, "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": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1664217028.366252, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.368872, "compiled_sql": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__refund_receipt_refund_id", "alias": "unique_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.369837, "compiled_sql": "\n \n \n\nselect\n refund_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is not null\ngroup by refund_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.370791, "compiled_sql": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integrations_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.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.3718631, "compiled_sql": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "unique_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}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.3728042, "compiled_sql": "\n \n \n\nselect\n sales_receipt_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is not null\ngroup by sales_receipt_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.373751, "compiled_sql": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__transfer_transfer_id", "alias": "unique_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.374691, "compiled_sql": "\n \n \n\nselect\n transfer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is not null\ngroup by transfer_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.375768, "compiled_sql": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "unique_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}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.3767061, "compiled_sql": "\n \n \n\nselect\n vendor_credit_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is not null\ngroup by vendor_credit_id\nhaving count(*) > 1\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_credit_vendor_credit_id.1275a5ab5a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.377644, "compiled_sql": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"quickbooks_integrations_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.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "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_unique", "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_integrations_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_vendor_id", "alias": "unique_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664217028.3787389, "compiled_sql": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integrations_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\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.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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}, "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": 1664217028.379665, "compiled_sql": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"quickbooks_integrations_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"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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.\n", "columns": {"id": {"name": "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": []}, "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"account\"", "created_at": 1664217028.444731}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": []}, "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_source_integrations_tests\".\"address\"", "created_at": 1664217028.444831}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": []}, "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"bill_line\"", "created_at": 1664217028.444906}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"bill_linked_txn\"", "created_at": 1664217028.444969}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"bill_payment_line\"", "created_at": 1664217028.445033}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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 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_source_integrations_tests\".\"bill_payment\"", "created_at": 1664217028.445102}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"bill\"", "created_at": 1664217028.4451709}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 bunlde 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_source_integrations_tests\".\"bundle_item\"", "created_at": 1664217028.44523}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 date which the bundle was created.", "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_source_integrations_tests\".\"bundle\"", "created_at": 1664217028.445291}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "Account reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference 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": "Account reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference 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_source_integrations_tests\".\"credit_memo_line\"", "created_at": 1664217028.445364}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"credit_memo\"", "created_at": 1664217028.445431}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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_source_integrations_tests\".\"customer\"", "created_at": 1664217028.445497}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": []}, "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_source_integrations_tests\".\"department\"", "created_at": 1664217028.44556}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"deposit_line\"", "created_at": 1664217028.445622}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"deposit\"", "created_at": 1664217028.445685}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"estimate\"", "created_at": 1664217028.445751}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"estimate_line\"", "created_at": 1664217028.445819}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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_source_integrations_tests\".\"invoice_linked_txn\"", "created_at": 1664217028.4459121}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_line\"", "created_at": 1664217028.445984}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": []}, "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_line_bundle\"", "created_at": 1664217028.446052}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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 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": []}, "_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_source_integrations_tests\".\"invoice\"", "created_at": 1664217028.446121}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": []}, "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_source_integrations_tests\".\"item\"", "created_at": 1664217028.446187}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"journal_entry_line\"", "created_at": 1664217028.446253}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"journal_entry\"", "created_at": 1664217028.446317}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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_source_integrations_tests\".\"payment_line\"", "created_at": 1664217028.446377}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"payment\"", "created_at": 1664217028.44645}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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_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": []}, "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_source_integrations_tests\".\"purchase_line\"", "created_at": 1664217028.446513}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"purchase\"", "created_at": 1664217028.446582}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_order_line\"", "created_at": 1664217028.446649}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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_source_integrations_tests\".\"purchase_order_linked_txn\"", "created_at": 1664217028.4467058}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 which the purchase order is associated.", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_order\"", "created_at": 1664217028.4467762}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "Reference to Income account used to track discounts.", "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_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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"refund_receipt_line\"", "created_at": 1664217028.446864}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"refund_receipt\"", "created_at": 1664217028.446934}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "Reference to Income account used to track discounts.", "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_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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"sales_receipt_line\"", "created_at": 1664217028.446999}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": []}, "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": []}, "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_source_integrations_tests\".\"sales_receipt\"", "created_at": 1664217028.447065}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"transfer\"", "created_at": 1664217028.447127}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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": "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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"vendor_credit_line\"", "created_at": 1664217028.447196}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"vendor_credit\"", "created_at": 1664217028.447264}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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", "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 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": []}, "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_source_integrations_tests\".\"vendor\"", "created_at": 1664217028.447329}}, "macros": {"macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.524767}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.525441}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.531275}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.53182}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.532161}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.532484}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.53297}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.533334}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.533507}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5338528}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5342422}, "macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5343192}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5344949}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.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_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.534595}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.53547}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.535664}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.535976}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5362391}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.536649}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.536872}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.537457}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.537656}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.537766}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.538558}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.538846}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.539503}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.5425699}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.542797}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.5433412}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.543807}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.544886}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5450811}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5452201}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.545356}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.545502}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.545917}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.546293}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.546595}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.547074}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.547345}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5506382}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.550807}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5510259}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.551171}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.551268}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.551971}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.552135}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.552305}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_sql']) -%}\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_sql'] }}) 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}, "patch_path": null, "arguments": [], "created_at": 1664217026.553665}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.555016}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5586188}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.558899}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.559063}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.559146}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.559288}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5593972}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.559596}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5604422}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.560629}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.560875}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.561295}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_sql']) %}\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5671098}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5691772}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.569689}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5699992}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5704288}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.57081}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.571637}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.572174}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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 %}\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5727758}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.577513}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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 update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\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"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.579007}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.579307}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.580061}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.580332}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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 {%- 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}, "patch_path": null, "arguments": [], "created_at": 1664217026.580959}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.581654}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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 {% set build_sql = get_delete_insert_merge_sql(target_relation, temp_relation, unique_key, dest_columns) %}\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.get_delete_insert_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.585972}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.590316}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.591512}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.59269}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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 {% 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}, "patch_path": null, "arguments": [], "created_at": 1664217026.593397}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.5959198}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.596405}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.596591}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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, sql) -%}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.596788}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.597196}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.599699}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.600068}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.600288}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.601803}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.602218}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.602379}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.602554}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.602808}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6060019}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6104}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.611325}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6115599}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.612035}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.612222}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.612352}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.612489}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.612598}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.612755}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.612865}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6133308}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.613512}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6147578}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6152089}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.615433}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.615996}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.616256}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6165361}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.616979}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.617227}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.617631}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6179872}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.618289}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.618891}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\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 {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.620012}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6205702}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.620859}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6225789}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.623801}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.624535}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.624765}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.625064}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6251369}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.625522}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.625681}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.62599}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.626108}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.62642}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.626522}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.62694}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6271}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.627393}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6274629}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6277812}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.627917}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6282618}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.628395}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.629046}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.629617}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.630008}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.630166}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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.fivetran_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.630506}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.630645}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.630955}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6311119}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6314151}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.631572}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.631886}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6319842}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6323268}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6324558}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.632756}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.632854}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.633722}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.633871}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.634033}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.634182}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.634401}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.63455}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.634709}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.63488}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6350348}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6351821}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.635343}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.635484}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.635803}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.635906}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.636297}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.636558}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.636703}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.637259}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.63742}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6376379}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.637967}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6380951}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.638508}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6386838}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.638842}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6390898}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6395872}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.639721}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.639874}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.640275}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.643328}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.643499}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6437151}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6439989}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.64424}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6445608}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6447449}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.644952}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6451368}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.645293}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.645492}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.645769}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.646013}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.646626}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.646857}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.646996}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.647191}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6477172}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.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}, "patch_path": null, "arguments": [], "created_at": 1664217026.64786}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.648083}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6484978}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6501079}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.650219}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6503801}, "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": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.650487}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.650817}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.651001}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6511009}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6513221}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.651505}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.651723}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.651907}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.652127}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.652863}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.653053}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.653288}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6535099}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.654612}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6553211}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6554859}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.655689}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.655849}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.656113}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.656592}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.657995}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6582558}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.658443}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.658593}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.658774}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.659046}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6592598}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6595578}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.659748}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.659903}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.661518}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6617448}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.662053}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.662238}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6625862}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.662815}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6634061}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6636622}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.664433}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6650019}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.665231}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.665514}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.665783}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6660979}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6661718}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.666241}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.666624}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.666786}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.667094}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.667213}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6679192}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.667989}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.668127}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.668194}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.668262}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.668416}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6684852}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() %}\n timestamp without time zone\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.668552}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.668617}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.668778}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.668847}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.66892}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.669075}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6691442}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6692119}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.669365}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.669433}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.669499}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6696498}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.669718}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.669782}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6702888}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "cast_array_to_string", "macro_sql": "{% macro cast_array_to_string(array) %}\n {{ adapter.dispatch('cast_array_to_string', 'dbt_utils') (array) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__cast_array_to_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.67075}, "macro.dbt_utils.default__cast_array_to_string": {"unique_id": "macro.dbt_utils.default__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "default__cast_array_to_string", "macro_sql": "{% macro default__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.670958}, "macro.dbt_utils.postgres__cast_array_to_string": {"unique_id": "macro.dbt_utils.postgres__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "postgres__cast_array_to_string", "macro_sql": "{% macro postgres__cast_array_to_string(array) %}\n {%- set array_as_string -%}cast({{ array }} as {{ dbt_utils.type_string() }}){%- endset -%}\n {{ dbt_utils.replace(dbt_utils.replace(array_as_string,\"'}'\",\"']'\"),\"'{'\",\"'['\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.671256}, "macro.dbt_utils.redshift__cast_array_to_string": {"unique_id": "macro.dbt_utils.redshift__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "redshift__cast_array_to_string", "macro_sql": "{% macro redshift__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6713972}, "macro.dbt_utils.bigquery__cast_array_to_string": {"unique_id": "macro.dbt_utils.bigquery__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "bigquery__cast_array_to_string", "macro_sql": "{% macro bigquery__cast_array_to_string(array) %}\n '['||(select string_agg(cast(element as string), ',') from unnest({{ array }}) element)||']'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.671496}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6718552}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.67196}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6720588}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.672647}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.672809}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.672965}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.673119}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "redshift__dateadd", "macro_sql": "{% macro redshift__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ return(dbt_utils.default__dateadd(datepart, interval, from_date_or_timestamp)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.673308}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.673612}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.673683}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.673751}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.67414}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.674284}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.674419}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.674552}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.675133}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_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 -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6752682}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.675485}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.67564}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_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_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.677805}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6782029}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6784809}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.67887}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "redshift__listagg", "macro_sql": "{% macro redshift__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n {% set ns = namespace() %}\n {% set ns.delimiter_text_regex = delimiter_text|trim(\"'\") %}\n {% set special_chars %}\\,^,$,.,|,?,*,+,(,),[,],{,}{% endset %} \n {%- for char in special_chars.split(',') -%}\n {% set escape_char %}\\\\{{ char }}{% endset %}\n {% set ns.delimiter_text_regex = ns.delimiter_text_regex|replace(char,escape_char) %}\n {%- endfor -%}\n\n {% set regex %}'([^{{ ns.delimiter_text_regex }}]+{{ ns.delimiter_text_regex }}){1,{{ limit_num - 1}}}[^{{ ns.delimiter_text_regex }}]+'{% endset %}\n regexp_substr(\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,{{ regex }}\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.679788}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.682255}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.682415}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.682573}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_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 ({{ dbt_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.684298}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "redshift__datediff", "macro_sql": "{% macro redshift__datediff(first_date, second_date, datepart) -%}\n\n {{ return(dbt_utils.default__datediff(first_date, second_date, datepart)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.684496}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.684918}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.685052}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.685173}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6852942}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.685642}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.685778}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.685905}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_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_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6862621}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_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 {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.686396}, "macro.dbt_utils.redshift__cast_bool_to_text": {"unique_id": "macro.dbt_utils.redshift__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "redshift__cast_bool_to_text", "macro_sql": "{% macro redshift__cast_bool_to_text(field) %}\n case\n when {{ field }} is true then 'true'\n when {{ field }} is false then 'false'\n end::text\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.68652}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__identifier"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.687024}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.687124}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.687218}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6875641}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.687665}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n {#- /*Postgres doesn't support any_value, so we're using min() to get the same result*/ -#}\n min({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.687764}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.688169}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_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 -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6882958}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6884239}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.688789}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6888902}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.689461}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.689569}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6896389}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6897101}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.689866}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.689974}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6901171}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.690232}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.69036}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.691765}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/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_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.692217}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/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_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.692678}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.692866}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt_utils')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.693281}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.693412}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.693536}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "redshift__array_concat", "macro_sql": "{% macro redshift__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6936588}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.694037}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6941419}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n \n boolor_agg({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.694303}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n \n logical_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.694405}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.694989}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.695252}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.6953962}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_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_utils.dateadd('day', '-1',\n dbt_utils.dateadd('month', '3', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.695783}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "redshift__last_day", "macro_sql": "{% macro redshift__last_day(date, datepart) %}\n\n {{ return(dbt_utils.default__last_day(date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.695957}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_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_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.697377}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.697535}, "macro.dbt_utils._split_part_negative": {"unique_id": "macro.dbt_utils._split_part_negative", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.6977532}, "macro.dbt_utils.postgres__split_part": {"unique_id": "macro.dbt_utils.postgres__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_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_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.698072}, "macro.dbt_utils.redshift__split_part": {"unique_id": "macro.dbt_utils.redshift__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "redshift__split_part", "macro_sql": "{% macro redshift__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.698401}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.698753}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.699146}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.699272}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.699397}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_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_utils')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.699944}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.700182}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.700325}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "redshift__array_construct", "macro_sql": "{% macro redshift__array_construct(inputs, data_type) -%}\n array( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.700455}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n [ {{ inputs|join(' , ') }} ]\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.700586}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.701674}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt_utils')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.702097}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_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}, "patch_path": null, "arguments": [], "created_at": 1664217026.70223}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.702415}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "redshift__array_append", "macro_sql": "{% macro redshift__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.702594}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.708074}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.708585}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.708895}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.709381}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.714346}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7147882}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.715261}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.715786}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.716438}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.716809}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.71712}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.717699}, "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/joseph.markiewicz/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) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.71792}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.718362}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = '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\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.718656}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7193432}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.719674}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.720137}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n{% set threshold = dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\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_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.720457}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.720831}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.721}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.721629}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.722163}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.722741}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.723117}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.723579}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.723746}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7241259}, "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/joseph.markiewicz/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) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.724297}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.724926}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.725549}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7261472}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.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_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.726478}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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, condition='1=1') %}\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 {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7269828}, "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/joseph.markiewicz/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, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.727268}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.727731}, "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/joseph.markiewicz/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) %}\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\nwith validation as (\n select\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),\nvalidation_errors as (\n select\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.72825}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.728928}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\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_utils.type_timestamp() }})= cast({{ dbt_utils.dateadd(datepart, interval, previous_column_name) }} as {{ dbt_utils.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_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.729593}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.730057}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.730222}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7309718}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.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_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.731843}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7348192}, "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/joseph.markiewicz/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 }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_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 nore 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}, "patch_path": null, "arguments": [], "created_at": 1664217026.736265}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.736604}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.736767}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.737099}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7372942}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7376158}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.737793}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7383108}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7390149}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.739597}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.73983}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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 \"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_utils.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_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.740177}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7405498}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.740957}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.741649}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.742489}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7433128}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.743721}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.743907}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.744411}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7451038}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.745939}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.746399}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.746677}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.747385}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\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 cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7483468}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7500281}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\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_utils.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt_utils.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_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.752064}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.754543}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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\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 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 {%- 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 cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.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 {{ 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_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.757504}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.757876}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.758118}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7604742}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.76069}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.760886}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7610738}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7612329}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7614028}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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 {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7620149}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.76292}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.763354}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7636302}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.764013}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.764332}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.765802}, "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/joseph.markiewicz/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 \"table_schema\",\n table_name as \"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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7660658}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.766832}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.767335}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.76843}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.76993}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.771038}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7718909}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.772417}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.77315}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.773603}, "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/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.774209}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.774741}, "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/joseph.markiewicz/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 \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7748291}, "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/joseph.markiewicz/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 \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7749171}, "macro.dbt_utils.bigquery__get_table_types_sql": {"unique_id": "macro.dbt_utils.bigquery__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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": "bigquery__get_table_types_sql", "macro_sql": "{% macro bigquery__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 `table_type`\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.775}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.776084}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7763698}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7772522}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.778147}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7786481}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.779618}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.779791}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7799628}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7801359}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.780281}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7804391}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\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}, "patch_path": null, "arguments": [], "created_at": 1664217026.780927}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.781638}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7827158}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7829719}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.783224}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.783468}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.78371}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7839801}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.78425}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.78463}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7847319}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.784831}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7849998}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7854369}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.786079}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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.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 {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7867572}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.787301}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7874382}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.787572}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7877}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.787827}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7905369}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.790695}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7908502}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.791009}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.792746}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7936032}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.793741}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7940102}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.794292}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.794423}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7945442}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.794666}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7952058}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.7957811}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.796326}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7965262}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.796743}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.7970612}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.797924}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.string_literal(relation) }} as {{ dbt_utils.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_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.801999}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.802356}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.802806}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.804338}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.804887}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.805484}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8056378}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.805789}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.805954}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8061051}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.806252}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8069701}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.807947}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8086689}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.808834}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.808991}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8091571}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.809312}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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_utils.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.809482}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8097868}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.809889}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.809984}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.810729}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.81192}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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\n {% set relation=adapter.get_relation(\n database=var(database_variable, default_database),\n schema=schema,\n identifier=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=database,\n schema=var(schema_variable, default_schema),\n identifier=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}, "patch_path": null, "arguments": [], "created_at": 1664217026.813623}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.815052}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8153758}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.815476}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8155751}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.816022}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/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}, "patch_path": null, "arguments": [], "created_at": 1664217026.8164659}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.81926}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.821486}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.82364}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.824502}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.827225}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.827921}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.829613}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8309581}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.833985}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8361118}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.838325}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.841238}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.84394}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.845758}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.84888}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8500202}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.853119}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8566558}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8573282}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.860975}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.862914}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.868628}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.870961}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8731892}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8777652}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.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_utils.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8829231}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.884365}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.885588}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.888747}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.890789}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.892842}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.8954859}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.899433}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.901757}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.907325}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.908869}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.912083}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.913662}, "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/joseph.markiewicz/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_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664217026.91593}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/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"}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.quickbooks_source.stg_quickbooks__purchase_order": [{"raw_sql": "--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 from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8d98e7f751346afa5f101b41fe7026488ce637898dd02bff4aff25378975a03d"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217027.724048, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line": [{"raw_sql": "--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 from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.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_utils.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "25adf35fd2f225f983c2d5dd18564d4b6cde49ceb79acd17230e3b448d6283dd"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217027.7773068, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": [{"raw_sql": "--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 from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt_utils.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n index\n from fields\n)\n\nselect *\nfrom final", "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "8948f3420fc0619f32ff984cee13a4bc9dadd24308f3828b4b75e37262ac372e"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "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": 1664217028.0257258, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": [{"raw_sql": "--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\nselect *\nfrom {{ var('purchase_order_line') }}", "resource_type": "model", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "207db6c4ef8cfef78b8de6a2c96cbd0477f63e0a63eda4a08ee215057990ae34"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1664217028.060786, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": [{"raw_sql": "--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\nselect *\nfrom {{ var('purchase_order') }}", "resource_type": "model", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "1a4e5034a6f95a3381e9190114b9b6d75ba273524e532d19926fff7061f286a2"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1664217028.11044, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": [{"raw_sql": "--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\nselect *\nfrom {{ var('purchase_order_linked_txn') }}", "resource_type": "model", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integrations_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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/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": "d642b45e31ac46f65cca1d76385d5b5ec5dcaa5ff18a1120a440c13f412c575f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1664217028.1998122, "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_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__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": ["seed.quickbooks_integration_tests.vendor_credit_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["seed.quickbooks_integration_tests.refund_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["seed.quickbooks_integration_tests.estimate_line_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["seed.quickbooks_integration_tests.credit_memo_line_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["seed.quickbooks_integration_tests.journal_entry_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["seed.quickbooks_integration_tests.invoice_line_bundle_data"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["seed.quickbooks_integration_tests.payment_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["seed.quickbooks_integration_tests.invoice_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["seed.quickbooks_integration_tests.deposit_line_data"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["seed.quickbooks_integration_tests.customer_data"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["seed.quickbooks_integration_tests.bill_line_data"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["seed.quickbooks_integration_tests.item_data"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["seed.quickbooks_integration_tests.account_data"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["seed.quickbooks_integration_tests.vendor_credit_line_data"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["seed.quickbooks_integration_tests.department_data"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["seed.quickbooks_integration_tests.bundle_data"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["seed.quickbooks_integration_tests.bundle_item_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["seed.quickbooks_integration_tests.bill_payment_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["seed.quickbooks_integration_tests.estimate_data"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["seed.quickbooks_integration_tests.purchase_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["seed.quickbooks_integration_tests.credit_memo_data"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["seed.quickbooks_integration_tests.bill_data"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["seed.quickbooks_integration_tests.transfer_data"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["seed.quickbooks_integration_tests.vendor_data"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["seed.quickbooks_integration_tests.purchase_line_data"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["seed.quickbooks_integration_tests.address_data"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["seed.quickbooks_integration_tests.payment_line_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["seed.quickbooks_integration_tests.refund_receipt_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["seed.quickbooks_integration_tests.sales_receipt_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["seed.quickbooks_integration_tests.bill_payment_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["seed.quickbooks_integration_tests.journal_entry_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["seed.quickbooks_integration_tests.deposit_data"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["seed.quickbooks_integration_tests.bill_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["seed.quickbooks_integration_tests.invoice_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["seed.quickbooks_integration_tests.sales_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["seed.quickbooks_integration_tests.invoice_data"], "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31": ["model.quickbooks_source.stg_quickbooks__account"], "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.unique_stg_quickbooks__address_address_id.d24d22c82f": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["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.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.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["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.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["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.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["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.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["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.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.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["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.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "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.unique_stg_quickbooks__payment_payment_id.984edfee8b": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["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.unique_stg_quickbooks__purchase_purchase_id.90e4089097": ["model.quickbooks_source.stg_quickbooks__purchase"], "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.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": [], "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.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["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.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["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_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": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "seed.quickbooks_integration_tests.bundle_data": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "seed.quickbooks_integration_tests.bill_payment_line_data": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "seed.quickbooks_integration_tests.payment_line_data": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "seed.quickbooks_integration_tests.vendor_data": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"], "seed.quickbooks_integration_tests.address_data": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "seed.quickbooks_integration_tests.invoice_line_bundle_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "seed.quickbooks_integration_tests.invoice_data": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "seed.quickbooks_integration_tests.payment_data": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "seed.quickbooks_integration_tests.invoice_line_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "seed.quickbooks_integration_tests.deposit_line_data": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "seed.quickbooks_integration_tests.estimate_line_data": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "seed.quickbooks_integration_tests.purchase_data": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "seed.quickbooks_integration_tests.refund_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "seed.quickbooks_integration_tests.credit_memo_line_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "seed.quickbooks_integration_tests.bill_data": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "seed.quickbooks_integration_tests.bill_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "seed.quickbooks_integration_tests.vendor_credit_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "seed.quickbooks_integration_tests.customer_data": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "seed.quickbooks_integration_tests.estimate_data": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "seed.quickbooks_integration_tests.purchase_line_data": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "seed.quickbooks_integration_tests.journal_entry_line_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "seed.quickbooks_integration_tests.journal_entry_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "seed.quickbooks_integration_tests.bill_line_data": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "seed.quickbooks_integration_tests.bundle_item_data": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "seed.quickbooks_integration_tests.invoice_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "seed.quickbooks_integration_tests.account_data": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "seed.quickbooks_integration_tests.vendor_credit_line_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "seed.quickbooks_integration_tests.credit_memo_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "seed.quickbooks_integration_tests.department_data": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "seed.quickbooks_integration_tests.item_data": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "seed.quickbooks_integration_tests.sales_receipt_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "seed.quickbooks_integration_tests.deposit_data": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "seed.quickbooks_integration_tests.refund_receipt_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks.quickbooks__balance_sheet": [], "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"], "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"], "model.quickbooks.quickbooks__profit_and_loss": [], "model.quickbooks.quickbooks__expenses_sales_enhanced": [], "model.quickbooks.quickbooks__ap_ar_enhanced": [], "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__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.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.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac"], "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.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.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.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "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.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e"], "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.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.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444"], "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.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.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097"], "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.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.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3"], "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.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.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95"], "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.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "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.not_null_stg_quickbooks__account_account_id.9944488b9d", "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["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.not_null_stg_quickbooks__address_address_id.4f100ae50c", "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f"], "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.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00"], "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.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", "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d"], "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.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "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", "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5"], "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.not_null_stg_quickbooks__item_item_id.da906d8fb9", "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26"], "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.not_null_stg_quickbooks__customer_customer_id.98232a9723", "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3"], "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_source.unique_stg_quickbooks__account_account_id.0949eb4e31": [], "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.unique_stg_quickbooks__address_address_id.d24d22c82f": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "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.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "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.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "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.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": [], "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.unique_stg_quickbooks__payment_payment_id.984edfee8b": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097": [], "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.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": [], "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.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "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_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": []}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 85280bc4..18be282c 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.0.4", "generated_at": "2022-09-15T13:54:35.867818Z", "invocation_id": "e8973a95-30ac-4e8b-a6a7-466b90c9adfd", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.770080Z", "completed_at": "2022-09-15T13:54:31.777015Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.778094Z", "completed_at": "2022-09-15T13:54:31.778106Z"}], "thread_id": "Thread-1", "execution_time": 0.010602951049804688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.770222Z", "completed_at": "2022-09-15T13:54:31.777250Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.778207Z", "completed_at": "2022-09-15T13:54:31.778211Z"}], "thread_id": "Thread-2", "execution_time": 0.010415792465209961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.770327Z", "completed_at": "2022-09-15T13:54:31.777438Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.778452Z", "completed_at": "2022-09-15T13:54:31.778464Z"}], "thread_id": "Thread-3", "execution_time": 0.010337114334106445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.770436Z", "completed_at": "2022-09-15T13:54:31.777556Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.778645Z", "completed_at": "2022-09-15T13:54:31.778654Z"}], "thread_id": "Thread-4", "execution_time": 0.01034688949584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.782111Z", "completed_at": "2022-09-15T13:54:31.788039Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.788718Z", "completed_at": "2022-09-15T13:54:31.788724Z"}], "thread_id": "Thread-1", "execution_time": 0.008144140243530273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.782198Z", "completed_at": "2022-09-15T13:54:31.788136Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.788807Z", "completed_at": "2022-09-15T13:54:31.788810Z"}], "thread_id": "Thread-2", "execution_time": 0.008105993270874023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.782281Z", "completed_at": "2022-09-15T13:54:31.788221Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.788891Z", "completed_at": "2022-09-15T13:54:31.788894Z"}], "thread_id": "Thread-3", "execution_time": 0.00809025764465332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.782359Z", "completed_at": "2022-09-15T13:54:31.788304Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.788973Z", "completed_at": "2022-09-15T13:54:31.788975Z"}], "thread_id": "Thread-4", "execution_time": 0.00812387466430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.791213Z", "completed_at": "2022-09-15T13:54:31.795066Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.795735Z", "completed_at": "2022-09-15T13:54:31.795739Z"}], "thread_id": "Thread-1", "execution_time": 0.005641937255859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.791283Z", "completed_at": "2022-09-15T13:54:31.795153Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.795815Z", "completed_at": "2022-09-15T13:54:31.795818Z"}], "thread_id": "Thread-2", "execution_time": 0.0056760311126708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.791345Z", "completed_at": "2022-09-15T13:54:31.795236Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.795891Z", "completed_at": "2022-09-15T13:54:31.795893Z"}], "thread_id": "Thread-3", "execution_time": 0.005703926086425781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.791402Z", "completed_at": "2022-09-15T13:54:31.795315Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.795966Z", "completed_at": "2022-09-15T13:54:31.795968Z"}], "thread_id": "Thread-4", "execution_time": 0.005789041519165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.798580Z", "completed_at": "2022-09-15T13:54:31.803497Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.804046Z", "completed_at": "2022-09-15T13:54:31.804050Z"}], "thread_id": "Thread-1", "execution_time": 0.006818056106567383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.798656Z", "completed_at": "2022-09-15T13:54:31.803573Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.804116Z", "completed_at": "2022-09-15T13:54:31.804118Z"}], "thread_id": "Thread-2", "execution_time": 0.006699800491333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.798728Z", "completed_at": "2022-09-15T13:54:31.803641Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.804185Z", "completed_at": "2022-09-15T13:54:31.804187Z"}], "thread_id": "Thread-3", "execution_time": 0.0066699981689453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.798804Z", "completed_at": "2022-09-15T13:54:31.803710Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.804253Z", "completed_at": "2022-09-15T13:54:31.804255Z"}], "thread_id": "Thread-4", "execution_time": 0.006649971008300781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.806668Z", "completed_at": "2022-09-15T13:54:31.811351Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.811866Z", "completed_at": "2022-09-15T13:54:31.811869Z"}], "thread_id": "Thread-1", "execution_time": 0.006572723388671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.806736Z", "completed_at": "2022-09-15T13:54:31.811427Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.811933Z", "completed_at": "2022-09-15T13:54:31.811936Z"}], "thread_id": "Thread-2", "execution_time": 0.00644993782043457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.806804Z", "completed_at": "2022-09-15T13:54:31.811491Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.811998Z", "completed_at": "2022-09-15T13:54:31.812000Z"}], "thread_id": "Thread-3", "execution_time": 0.0063800811767578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.806871Z", "completed_at": "2022-09-15T13:54:31.811556Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.812060Z", "completed_at": "2022-09-15T13:54:31.812062Z"}], "thread_id": "Thread-4", "execution_time": 0.006294727325439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.814045Z", "completed_at": "2022-09-15T13:54:31.817767Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.818278Z", "completed_at": "2022-09-15T13:54:31.818281Z"}], "thread_id": "Thread-1", "execution_time": 0.005307912826538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.814108Z", "completed_at": "2022-09-15T13:54:31.817837Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.818343Z", "completed_at": "2022-09-15T13:54:31.818346Z"}], "thread_id": "Thread-2", "execution_time": 0.005295753479003906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.814169Z", "completed_at": "2022-09-15T13:54:31.817901Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.818407Z", "completed_at": "2022-09-15T13:54:31.818409Z"}], "thread_id": "Thread-3", "execution_time": 0.005295276641845703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.814229Z", "completed_at": "2022-09-15T13:54:31.817964Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.818470Z", "completed_at": "2022-09-15T13:54:31.818472Z"}], "thread_id": "Thread-4", "execution_time": 0.005287885665893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.820342Z", "completed_at": "2022-09-15T13:54:31.845418Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.845928Z", "completed_at": "2022-09-15T13:54:31.845933Z"}], "thread_id": "Thread-1", "execution_time": 0.026639938354492188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.820404Z", "completed_at": "2022-09-15T13:54:31.845494Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.845996Z", "completed_at": "2022-09-15T13:54:31.845998Z"}], "thread_id": "Thread-2", "execution_time": 0.02663397789001465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.820465Z", "completed_at": "2022-09-15T13:54:31.845560Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.846057Z", "completed_at": "2022-09-15T13:54:31.846059Z"}], "thread_id": "Thread-3", "execution_time": 0.026636123657226562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.820525Z", "completed_at": "2022-09-15T13:54:31.845624Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.846117Z", "completed_at": "2022-09-15T13:54:31.846119Z"}], "thread_id": "Thread-4", "execution_time": 0.02663707733154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.847997Z", "completed_at": "2022-09-15T13:54:31.851399Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.851884Z", "completed_at": "2022-09-15T13:54:31.851887Z"}], "thread_id": "Thread-1", "execution_time": 0.004954814910888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.848072Z", "completed_at": "2022-09-15T13:54:31.851465Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.851945Z", "completed_at": "2022-09-15T13:54:31.851947Z"}], "thread_id": "Thread-2", "execution_time": 0.004914045333862305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.848136Z", "completed_at": "2022-09-15T13:54:31.851526Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.852006Z", "completed_at": "2022-09-15T13:54:31.852008Z"}], "thread_id": "Thread-3", "execution_time": 0.00487828254699707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.848195Z", "completed_at": "2022-09-15T13:54:31.851586Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.852067Z", "completed_at": "2022-09-15T13:54:31.852069Z"}], "thread_id": "Thread-4", "execution_time": 0.0048749446868896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.853814Z", "completed_at": "2022-09-15T13:54:31.857784Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.858263Z", "completed_at": "2022-09-15T13:54:31.858267Z"}], "thread_id": "Thread-1", "execution_time": 0.005518198013305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.853874Z", "completed_at": "2022-09-15T13:54:31.857850Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.858327Z", "completed_at": "2022-09-15T13:54:31.858329Z"}], "thread_id": "Thread-2", "execution_time": 0.005486011505126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.853932Z", "completed_at": "2022-09-15T13:54:31.857910Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.858396Z", "completed_at": "2022-09-15T13:54:31.858398Z"}], "thread_id": "Thread-3", "execution_time": 0.005463123321533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.853990Z", "completed_at": "2022-09-15T13:54:31.857969Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.858456Z", "completed_at": "2022-09-15T13:54:31.858457Z"}], "thread_id": "Thread-4", "execution_time": 0.005457878112792969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.860294Z", "completed_at": "2022-09-15T13:54:31.865458Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.865927Z", "completed_at": "2022-09-15T13:54:31.865931Z"}], "thread_id": "Thread-1", "execution_time": 0.006616830825805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.860352Z", "completed_at": "2022-09-15T13:54:31.865529Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.865997Z", "completed_at": "2022-09-15T13:54:31.866000Z"}], "thread_id": "Thread-2", "execution_time": 0.0065271854400634766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.860467Z", "completed_at": "2022-09-15T13:54:31.866884Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.867359Z", "completed_at": "2022-09-15T13:54:31.867362Z"}], "thread_id": "Thread-4", "execution_time": 0.011913061141967773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.860410Z", "completed_at": "2022-09-15T13:54:31.866990Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.869857Z", "completed_at": "2022-09-15T13:54:31.869861Z"}], "thread_id": "Thread-3", "execution_time": 0.012284040451049805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.867180Z", "completed_at": "2022-09-15T13:54:31.872638Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.873490Z", "completed_at": "2022-09-15T13:54:31.873493Z"}], "thread_id": "Thread-1", "execution_time": 0.007184267044067383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.867300Z", "completed_at": "2022-09-15T13:54:31.872730Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.873557Z", "completed_at": "2022-09-15T13:54:31.873560Z"}], "thread_id": "Thread-2", "execution_time": 0.00718379020690918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.873684Z", "completed_at": "2022-09-15T13:54:31.878641Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.880915Z", "completed_at": "2022-09-15T13:54:31.880920Z"}], "thread_id": "Thread-4", "execution_time": 0.009822845458984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.873994Z", "completed_at": "2022-09-15T13:54:31.878864Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.882664Z", "completed_at": "2022-09-15T13:54:31.882668Z"}], "thread_id": "Thread-3", "execution_time": 0.009763956069946289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.878801Z", "completed_at": "2022-09-15T13:54:31.882950Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.883793Z", "completed_at": "2022-09-15T13:54:31.883795Z"}], "thread_id": "Thread-1", "execution_time": 0.005952119827270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.879000Z", "completed_at": "2022-09-15T13:54:31.883286Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.884036Z", "completed_at": "2022-09-15T13:54:31.884039Z"}], "thread_id": "Thread-2", "execution_time": 0.006050825119018555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.884348Z", "completed_at": "2022-09-15T13:54:31.889650Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.893166Z", "completed_at": "2022-09-15T13:54:31.893171Z"}], "thread_id": "Thread-4", "execution_time": 0.009843111038208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.884693Z", "completed_at": "2022-09-15T13:54:31.889930Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.893563Z", "completed_at": "2022-09-15T13:54:31.893565Z"}], "thread_id": "Thread-3", "execution_time": 0.010035991668701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.889736Z", "completed_at": "2022-09-15T13:54:31.893987Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.894693Z", "completed_at": "2022-09-15T13:54:31.894695Z"}], "thread_id": "Thread-1", "execution_time": 0.008333683013916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.889803Z", "completed_at": "2022-09-15T13:54:31.894041Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.894759Z", "completed_at": "2022-09-15T13:54:31.894761Z"}], "thread_id": "Thread-2", "execution_time": 0.005774021148681641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.894824Z", "completed_at": "2022-09-15T13:54:31.899667Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.904098Z", "completed_at": "2022-09-15T13:54:31.904107Z"}], "thread_id": "Thread-4", "execution_time": 0.010284185409545898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.896937Z", "completed_at": "2022-09-15T13:54:31.901430Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.904241Z", "completed_at": "2022-09-15T13:54:31.904244Z"}], "thread_id": "Thread-3", "execution_time": 0.010070085525512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.899533Z", "completed_at": "2022-09-15T13:54:31.904165Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.904938Z", "completed_at": "2022-09-15T13:54:31.904941Z"}], "thread_id": "Thread-1", "execution_time": 0.00639796257019043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.899609Z", "completed_at": "2022-09-15T13:54:31.904463Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.905276Z", "completed_at": "2022-09-15T13:54:31.905278Z"}], "thread_id": "Thread-2", "execution_time": 0.006538867950439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.905963Z", "completed_at": "2022-09-15T13:54:31.910235Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.914015Z", "completed_at": "2022-09-15T13:54:31.914019Z"}], "thread_id": "Thread-4", "execution_time": 0.009147882461547852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.906286Z", "completed_at": "2022-09-15T13:54:31.912028Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.914159Z", "completed_at": "2022-09-15T13:54:31.914162Z"}], "thread_id": "Thread-3", "execution_time": 0.00909113883972168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.910055Z", "completed_at": "2022-09-15T13:54:31.914076Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.914863Z", "completed_at": "2022-09-15T13:54:31.914865Z"}], "thread_id": "Thread-1", "execution_time": 0.00915670394897461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.910175Z", "completed_at": "2022-09-15T13:54:31.914366Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.915208Z", "completed_at": "2022-09-15T13:54:31.915211Z"}], "thread_id": "Thread-2", "execution_time": 0.00751495361328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.915904Z", "completed_at": "2022-09-15T13:54:31.919885Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.924411Z", "completed_at": "2022-09-15T13:54:31.924416Z"}], "thread_id": "Thread-4", "execution_time": 0.009675979614257812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.916240Z", "completed_at": "2022-09-15T13:54:31.922454Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.924593Z", "completed_at": "2022-09-15T13:54:31.924595Z"}], "thread_id": "Thread-3", "execution_time": 0.009588956832885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.919782Z", "completed_at": "2022-09-15T13:54:31.924518Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.925290Z", "completed_at": "2022-09-15T13:54:31.925293Z"}], "thread_id": "Thread-1", "execution_time": 0.009624242782592773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.919976Z", "completed_at": "2022-09-15T13:54:31.924807Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.925635Z", "completed_at": "2022-09-15T13:54:31.925638Z"}], "thread_id": "Thread-2", "execution_time": 0.00802922248840332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.926335Z", "completed_at": "2022-09-15T13:54:31.930685Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.933935Z", "completed_at": "2022-09-15T13:54:31.933940Z"}], "thread_id": "Thread-4", "execution_time": 0.008784055709838867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.926650Z", "completed_at": "2022-09-15T13:54:31.932261Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.934093Z", "completed_at": "2022-09-15T13:54:31.934096Z"}], "thread_id": "Thread-3", "execution_time": 0.008649110794067383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.930490Z", "completed_at": "2022-09-15T13:54:31.934001Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.934765Z", "completed_at": "2022-09-15T13:54:31.934767Z"}], "thread_id": "Thread-1", "execution_time": 0.008679866790771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.930608Z", "completed_at": "2022-09-15T13:54:31.934151Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.934972Z", "completed_at": "2022-09-15T13:54:31.934975Z"}], "thread_id": "Thread-2", "execution_time": 0.006990671157836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.935933Z", "completed_at": "2022-09-15T13:54:31.940826Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.944521Z", "completed_at": "2022-09-15T13:54:31.944525Z"}], "thread_id": "Thread-4", "execution_time": 0.00981593132019043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.936185Z", "completed_at": "2022-09-15T13:54:31.942611Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.944610Z", "completed_at": "2022-09-15T13:54:31.944612Z"}], "thread_id": "Thread-3", "execution_time": 0.00971078872680664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.940645Z", "completed_at": "2022-09-15T13:54:31.944669Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.945517Z", "completed_at": "2022-09-15T13:54:31.945520Z"}], "thread_id": "Thread-1", "execution_time": 0.009938955307006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.940767Z", "completed_at": "2022-09-15T13:54:31.944721Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.945584Z", "completed_at": "2022-09-15T13:54:31.945586Z"}], "thread_id": "Thread-2", "execution_time": 0.009810209274291992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.946534Z", "completed_at": "2022-09-15T13:54:31.950570Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.954672Z", "completed_at": "2022-09-15T13:54:31.954676Z"}], "thread_id": "Thread-4", "execution_time": 0.009415864944458008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.946596Z", "completed_at": "2022-09-15T13:54:31.950625Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.954813Z", "completed_at": "2022-09-15T13:54:31.954816Z"}], "thread_id": "Thread-3", "execution_time": 0.009423017501831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.950518Z", "completed_at": "2022-09-15T13:54:31.954869Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.955703Z", "completed_at": "2022-09-15T13:54:31.955706Z"}], "thread_id": "Thread-2", "execution_time": 0.009401082992553711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.950409Z", "completed_at": "2022-09-15T13:54:31.954928Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:31.955778Z", "completed_at": "2022-09-15T13:54:31.955780Z"}], "thread_id": "Thread-1", "execution_time": 0.009638071060180664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.956775Z", "completed_at": "2022-09-15T13:54:32.304682Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.305019Z", "completed_at": "2022-09-15T13:54:32.305026Z"}], "thread_id": "Thread-4", "execution_time": 0.37783002853393555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.965488Z", "completed_at": "2022-09-15T13:54:32.313344Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.313654Z", "completed_at": "2022-09-15T13:54:32.313656Z"}], "thread_id": "Thread-2", "execution_time": 0.3819887638092041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.965551Z", "completed_at": "2022-09-15T13:54:32.312072Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.313035Z", "completed_at": "2022-09-15T13:54:32.313039Z"}], "thread_id": "Thread-1", "execution_time": 0.38203001022338867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:31.956842Z", "completed_at": "2022-09-15T13:54:32.313110Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.313438Z", "completed_at": "2022-09-15T13:54:32.313447Z"}], "thread_id": "Thread-3", "execution_time": 0.3840768337249756, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.334290Z", "completed_at": "2022-09-15T13:54:32.613865Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.614106Z", "completed_at": "2022-09-15T13:54:32.614112Z"}], "thread_id": "Thread-4", "execution_time": 0.30727505683898926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.340236Z", "completed_at": "2022-09-15T13:54:32.629296Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.629436Z", "completed_at": "2022-09-15T13:54:32.629440Z"}], "thread_id": "Thread-1", "execution_time": 0.33623480796813965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.348467Z", "completed_at": "2022-09-15T13:54:32.619886Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.620166Z", "completed_at": "2022-09-15T13:54:32.620169Z"}], "thread_id": "Thread-3", "execution_time": 0.3281710147857666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.340163Z", "completed_at": "2022-09-15T13:54:32.619951Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.620231Z", "completed_at": "2022-09-15T13:54:32.620233Z"}], "thread_id": "Thread-2", "execution_time": 0.336810827255249, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.641740Z", "completed_at": "2022-09-15T13:54:32.922567Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:32.922822Z", "completed_at": "2022-09-15T13:54:32.922831Z"}], "thread_id": "Thread-4", "execution_time": 0.33821582794189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.678439Z", "completed_at": "2022-09-15T13:54:33.007740Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.008421Z", "completed_at": "2022-09-15T13:54:33.008424Z"}], "thread_id": "Thread-2", "execution_time": 0.3679628372192383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.678216Z", "completed_at": "2022-09-15T13:54:33.004985Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.005142Z", "completed_at": "2022-09-15T13:54:33.005147Z"}], "thread_id": "Thread-1", "execution_time": 0.36858105659484863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.678322Z", "completed_at": "2022-09-15T13:54:33.008593Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.008736Z", "completed_at": "2022-09-15T13:54:33.008739Z"}], "thread_id": "Thread-3", "execution_time": 0.3688392639160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:32.986758Z", "completed_at": "2022-09-15T13:54:33.262002Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.262279Z", "completed_at": "2022-09-15T13:54:33.262293Z"}], "thread_id": "Thread-4", "execution_time": 0.30434393882751465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.047376Z", "completed_at": "2022-09-15T13:54:33.364456Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.364765Z", "completed_at": "2022-09-15T13:54:33.364771Z"}], "thread_id": "Thread-2", "execution_time": 0.34682178497314453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.055755Z", "completed_at": "2022-09-15T13:54:33.369703Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.369836Z", "completed_at": "2022-09-15T13:54:33.369839Z"}], "thread_id": "Thread-3", "execution_time": 0.35138416290283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.047453Z", "completed_at": "2022-09-15T13:54:33.367485Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.368083Z", "completed_at": "2022-09-15T13:54:33.368086Z"}], "thread_id": "Thread-1", "execution_time": 0.35260701179504395, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.291803Z", "completed_at": "2022-09-15T13:54:33.608376Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.608584Z", "completed_at": "2022-09-15T13:54:33.608591Z"}], "thread_id": "Thread-4", "execution_time": 0.34119510650634766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.399690Z", "completed_at": "2022-09-15T13:54:33.721093Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.721620Z", "completed_at": "2022-09-15T13:54:33.721626Z"}], "thread_id": "Thread-3", "execution_time": 0.35223913192749023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.404214Z", "completed_at": "2022-09-15T13:54:33.729612Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.729753Z", "completed_at": "2022-09-15T13:54:33.729756Z"}], "thread_id": "Thread-1", "execution_time": 0.3572249412536621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.394039Z", "completed_at": "2022-09-15T13:54:33.729991Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.730124Z", "completed_at": "2022-09-15T13:54:33.730127Z"}], "thread_id": "Thread-2", "execution_time": 0.3636348247528076, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.633283Z", "completed_at": "2022-09-15T13:54:33.915111Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:33.915317Z", "completed_at": "2022-09-15T13:54:33.915325Z"}], "thread_id": "Thread-4", "execution_time": 0.3092937469482422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.757953Z", "completed_at": "2022-09-15T13:54:34.072895Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.073763Z", "completed_at": "2022-09-15T13:54:34.073770Z"}], "thread_id": "Thread-1", "execution_time": 0.34203314781188965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.751890Z", "completed_at": "2022-09-15T13:54:34.078108Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.078267Z", "completed_at": "2022-09-15T13:54:34.078270Z"}], "thread_id": "Thread-3", "execution_time": 0.35325121879577637, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.761760Z", "completed_at": "2022-09-15T13:54:34.073973Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.075350Z", "completed_at": "2022-09-15T13:54:34.075354Z"}], "thread_id": "Thread-2", "execution_time": 0.3477320671081543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:33.943006Z", "completed_at": "2022-09-15T13:54:34.279787Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.280022Z", "completed_at": "2022-09-15T13:54:34.280031Z"}], "thread_id": "Thread-4", "execution_time": 0.36549901962280273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.105637Z", "completed_at": "2022-09-15T13:54:34.449983Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.450210Z", "completed_at": "2022-09-15T13:54:34.450217Z"}], "thread_id": "Thread-3", "execution_time": 0.370286226272583, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.110049Z", "completed_at": "2022-09-15T13:54:34.455593Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.455763Z", "completed_at": "2022-09-15T13:54:34.455767Z"}], "thread_id": "Thread-2", "execution_time": 0.3706979751586914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.100073Z", "completed_at": "2022-09-15T13:54:34.455965Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.456098Z", "completed_at": "2022-09-15T13:54:34.456101Z"}], "thread_id": "Thread-1", "execution_time": 0.3848550319671631, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.309034Z", "completed_at": "2022-09-15T13:54:34.621927Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.622105Z", "completed_at": "2022-09-15T13:54:34.622113Z"}], "thread_id": "Thread-4", "execution_time": 0.3390998840332031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.480864Z", "completed_at": "2022-09-15T13:54:34.795074Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.795360Z", "completed_at": "2022-09-15T13:54:34.795366Z"}], "thread_id": "Thread-2", "execution_time": 0.34473705291748047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.485111Z", "completed_at": "2022-09-15T13:54:34.807629Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.807915Z", "completed_at": "2022-09-15T13:54:34.807917Z"}], "thread_id": "Thread-1", "execution_time": 0.35072898864746094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.475972Z", "completed_at": "2022-09-15T13:54:34.807561Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.807832Z", "completed_at": "2022-09-15T13:54:34.807835Z"}], "thread_id": "Thread-3", "execution_time": 0.3600339889526367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.648213Z", "completed_at": "2022-09-15T13:54:34.960837Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.961044Z", "completed_at": "2022-09-15T13:54:34.961051Z"}], "thread_id": "Thread-4", "execution_time": 0.3420369625091553, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.990599Z", "completed_at": "2022-09-15T13:54:34.999265Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:34.999458Z", "completed_at": "2022-09-15T13:54:34.999463Z"}], "thread_id": "Thread-4", "execution_time": 0.009345054626464844, "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": "2022-09-15T13:54:35.000166Z", "completed_at": "2022-09-15T13:54:35.004355Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.004528Z", "completed_at": "2022-09-15T13:54:35.004532Z"}], "thread_id": "Thread-4", "execution_time": 0.004792690277099609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.005163Z", "completed_at": "2022-09-15T13:54:35.007895Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.008081Z", "completed_at": "2022-09-15T13:54:35.008085Z"}], "thread_id": "Thread-4", "execution_time": 0.0033049583435058594, "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": "2022-09-15T13:54:35.008730Z", "completed_at": "2022-09-15T13:54:35.011230Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.011391Z", "completed_at": "2022-09-15T13:54:35.011396Z"}], "thread_id": "Thread-4", "execution_time": 0.003036975860595703, "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": "2022-09-15T13:54:35.011956Z", "completed_at": "2022-09-15T13:54:35.014275Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.014437Z", "completed_at": "2022-09-15T13:54:35.014441Z"}], "thread_id": "Thread-4", "execution_time": 0.0028150081634521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.015005Z", "completed_at": "2022-09-15T13:54:35.017837Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.018021Z", "completed_at": "2022-09-15T13:54:35.018025Z"}], "thread_id": "Thread-4", "execution_time": 0.003383159637451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.018654Z", "completed_at": "2022-09-15T13:54:35.024179Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.024337Z", "completed_at": "2022-09-15T13:54:35.024341Z"}], "thread_id": "Thread-4", "execution_time": 0.006020069122314453, "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": "2022-09-15T13:54:35.024857Z", "completed_at": "2022-09-15T13:54:35.026975Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.027110Z", "completed_at": "2022-09-15T13:54:35.027113Z"}], "thread_id": "Thread-4", "execution_time": 0.0025551319122314453, "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": "2022-09-15T13:54:35.027598Z", "completed_at": "2022-09-15T13:54:35.029752Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.029890Z", "completed_at": "2022-09-15T13:54:35.029893Z"}], "thread_id": "Thread-4", "execution_time": 0.002593994140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.030420Z", "completed_at": "2022-09-15T13:54:35.032819Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.032956Z", "completed_at": "2022-09-15T13:54:35.032960Z"}], "thread_id": "Thread-4", "execution_time": 0.002871990203857422, "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": "2022-09-15T13:54:35.033438Z", "completed_at": "2022-09-15T13:54:35.035514Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.035647Z", "completed_at": "2022-09-15T13:54:35.035650Z"}], "thread_id": "Thread-4", "execution_time": 0.002496004104614258, "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": "2022-09-15T13:54:35.036118Z", "completed_at": "2022-09-15T13:54:35.038913Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.039048Z", "completed_at": "2022-09-15T13:54:35.039052Z"}], "thread_id": "Thread-4", "execution_time": 0.0032258033752441406, "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": "2022-09-15T13:54:35.039553Z", "completed_at": "2022-09-15T13:54:35.041641Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.041773Z", "completed_at": "2022-09-15T13:54:35.041776Z"}], "thread_id": "Thread-4", "execution_time": 0.0025289058685302734, "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": "2022-09-15T13:54:35.042249Z", "completed_at": "2022-09-15T13:54:35.044226Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.044356Z", "completed_at": "2022-09-15T13:54:35.044359Z"}], "thread_id": "Thread-4", "execution_time": 0.0023920536041259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.044814Z", "completed_at": "2022-09-15T13:54:35.047223Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.047352Z", "completed_at": "2022-09-15T13:54:35.047356Z"}], "thread_id": "Thread-4", "execution_time": 0.002819061279296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.047855Z", "completed_at": "2022-09-15T13:54:35.050345Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.050482Z", "completed_at": "2022-09-15T13:54:35.050486Z"}], "thread_id": "Thread-4", "execution_time": 0.0029370784759521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.050981Z", "completed_at": "2022-09-15T13:54:35.053151Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.053279Z", "completed_at": "2022-09-15T13:54:35.053283Z"}], "thread_id": "Thread-4", "execution_time": 0.0025870800018310547, "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": "2022-09-15T13:54:35.053778Z", "completed_at": "2022-09-15T13:54:35.055834Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.055969Z", "completed_at": "2022-09-15T13:54:35.055972Z"}], "thread_id": "Thread-4", "execution_time": 0.0025010108947753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.056450Z", "completed_at": "2022-09-15T13:54:35.059267Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.059402Z", "completed_at": "2022-09-15T13:54:35.059405Z"}], "thread_id": "Thread-4", "execution_time": 0.0032432079315185547, "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": "2022-09-15T13:54:35.059860Z", "completed_at": "2022-09-15T13:54:35.061747Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.061879Z", "completed_at": "2022-09-15T13:54:35.061883Z"}], "thread_id": "Thread-4", "execution_time": 0.0023069381713867188, "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": "2022-09-15T13:54:35.062401Z", "completed_at": "2022-09-15T13:54:35.064288Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.064430Z", "completed_at": "2022-09-15T13:54:35.064433Z"}], "thread_id": "Thread-4", "execution_time": 0.002382993698120117, "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": "2022-09-15T13:54:35.064898Z", "completed_at": "2022-09-15T13:54:35.066929Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.067055Z", "completed_at": "2022-09-15T13:54:35.067058Z"}], "thread_id": "Thread-4", "execution_time": 0.002440214157104492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.067502Z", "completed_at": "2022-09-15T13:54:35.069656Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.069788Z", "completed_at": "2022-09-15T13:54:35.069792Z"}], "thread_id": "Thread-4", "execution_time": 0.002568960189819336, "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": "2022-09-15T13:54:35.070278Z", "completed_at": "2022-09-15T13:54:35.072283Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.072414Z", "completed_at": "2022-09-15T13:54:35.072417Z"}], "thread_id": "Thread-4", "execution_time": 0.0024230480194091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.072868Z", "completed_at": "2022-09-15T13:54:35.075602Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.075733Z", "completed_at": "2022-09-15T13:54:35.075737Z"}], "thread_id": "Thread-4", "execution_time": 0.0031702518463134766, "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": "2022-09-15T13:54:35.076224Z", "completed_at": "2022-09-15T13:54:35.078346Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.078474Z", "completed_at": "2022-09-15T13:54:35.078477Z"}], "thread_id": "Thread-4", "execution_time": 0.002531766891479492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.078921Z", "completed_at": "2022-09-15T13:54:35.080932Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.081059Z", "completed_at": "2022-09-15T13:54:35.081063Z"}], "thread_id": "Thread-4", "execution_time": 0.002420186996459961, "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": "2022-09-15T13:54:35.081522Z", "completed_at": "2022-09-15T13:54:35.083530Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.083662Z", "completed_at": "2022-09-15T13:54:35.083665Z"}], "thread_id": "Thread-4", "execution_time": 0.002432107925415039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.084146Z", "completed_at": "2022-09-15T13:54:35.086771Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.086906Z", "completed_at": "2022-09-15T13:54:35.086909Z"}], "thread_id": "Thread-4", "execution_time": 0.003057718276977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.087397Z", "completed_at": "2022-09-15T13:54:35.089881Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.090009Z", "completed_at": "2022-09-15T13:54:35.090012Z"}], "thread_id": "Thread-4", "execution_time": 0.0029048919677734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.090467Z", "completed_at": "2022-09-15T13:54:35.092522Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.092651Z", "completed_at": "2022-09-15T13:54:35.092655Z"}], "thread_id": "Thread-4", "execution_time": 0.0024700164794921875, "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": "2022-09-15T13:54:35.093118Z", "completed_at": "2022-09-15T13:54:35.096174Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.096553Z", "completed_at": "2022-09-15T13:54:35.096559Z"}], "thread_id": "Thread-4", "execution_time": 0.003799915313720703, "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": "2022-09-15T13:54:35.097104Z", "completed_at": "2022-09-15T13:54:35.099138Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.099274Z", "completed_at": "2022-09-15T13:54:35.099278Z"}], "thread_id": "Thread-4", "execution_time": 0.0024788379669189453, "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": "2022-09-15T13:54:35.099754Z", "completed_at": "2022-09-15T13:54:35.101928Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.102071Z", "completed_at": "2022-09-15T13:54:35.102076Z"}], "thread_id": "Thread-4", "execution_time": 0.0026140213012695312, "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": "2022-09-15T13:54:35.102579Z", "completed_at": "2022-09-15T13:54:35.111127Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.111664Z", "completed_at": "2022-09-15T13:54:35.111669Z"}], "thread_id": "Thread-4", "execution_time": 0.009508848190307617, "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": "2022-09-15T13:54:35.112674Z", "completed_at": "2022-09-15T13:54:35.116039Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.116746Z", "completed_at": "2022-09-15T13:54:35.116750Z"}], "thread_id": "Thread-4", "execution_time": 0.00524592399597168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.118099Z", "completed_at": "2022-09-15T13:54:35.121085Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.121222Z", "completed_at": "2022-09-15T13:54:35.121224Z"}], "thread_id": "Thread-4", "execution_time": 0.0035021305084228516, "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": "2022-09-15T13:54:35.121705Z", "completed_at": "2022-09-15T13:54:35.124332Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.124465Z", "completed_at": "2022-09-15T13:54:35.124469Z"}], "thread_id": "Thread-4", "execution_time": 0.0030603408813476562, "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": "2022-09-15T13:54:35.124954Z", "completed_at": "2022-09-15T13:54:35.126927Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.127053Z", "completed_at": "2022-09-15T13:54:35.127057Z"}], "thread_id": "Thread-4", "execution_time": 0.0023860931396484375, "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": "2022-09-15T13:54:35.127505Z", "completed_at": "2022-09-15T13:54:35.129629Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.129760Z", "completed_at": "2022-09-15T13:54:35.129764Z"}], "thread_id": "Thread-4", "execution_time": 0.0025408267974853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.130264Z", "completed_at": "2022-09-15T13:54:35.132194Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.132324Z", "completed_at": "2022-09-15T13:54:35.132327Z"}], "thread_id": "Thread-4", "execution_time": 0.0023670196533203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.132792Z", "completed_at": "2022-09-15T13:54:35.135290Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.135421Z", "completed_at": "2022-09-15T13:54:35.135425Z"}], "thread_id": "Thread-4", "execution_time": 0.002919912338256836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.135876Z", "completed_at": "2022-09-15T13:54:35.138223Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.138358Z", "completed_at": "2022-09-15T13:54:35.138361Z"}], "thread_id": "Thread-4", "execution_time": 0.0027658939361572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.138819Z", "completed_at": "2022-09-15T13:54:35.149834Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.163128Z", "completed_at": "2022-09-15T13:54:35.163134Z"}], "thread_id": "Thread-4", "execution_time": 0.02462291717529297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.825855Z", "completed_at": "2022-09-15T13:54:35.118023Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.120840Z", "completed_at": "2022-09-15T13:54:35.120844Z"}], "thread_id": "Thread-2", "execution_time": 0.3404569625854492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.166482Z", "completed_at": "2022-09-15T13:54:35.168837Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.168988Z", "completed_at": "2022-09-15T13:54:35.168993Z"}], "thread_id": "Thread-2", "execution_time": 0.0028200149536132812, "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": "2022-09-15T13:54:35.163615Z", "completed_at": "2022-09-15T13:54:35.171406Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.171912Z", "completed_at": "2022-09-15T13:54:35.171915Z"}], "thread_id": "Thread-4", "execution_time": 0.00882577896118164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.169443Z", "completed_at": "2022-09-15T13:54:35.172344Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.173287Z", "completed_at": "2022-09-15T13:54:35.173289Z"}], "thread_id": "Thread-2", "execution_time": 0.004477977752685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.173946Z", "completed_at": "2022-09-15T13:54:35.205614Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.209614Z", "completed_at": "2022-09-15T13:54:35.209622Z"}], "thread_id": "Thread-4", "execution_time": 0.03691697120666504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.177538Z", "completed_at": "2022-09-15T13:54:35.209444Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.210092Z", "completed_at": "2022-09-15T13:54:35.210095Z"}], "thread_id": "Thread-2", "execution_time": 0.03361701965332031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.211212Z", "completed_at": "2022-09-15T13:54:35.215281Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.215451Z", "completed_at": "2022-09-15T13:54:35.215455Z"}], "thread_id": "Thread-4", "execution_time": 0.005049943923950195, "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": "2022-09-15T13:54:35.213233Z", "completed_at": "2022-09-15T13:54:35.215517Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.215901Z", "completed_at": "2022-09-15T13:54:35.215904Z"}], "thread_id": "Thread-2", "execution_time": 0.005070686340332031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.216396Z", "completed_at": "2022-09-15T13:54:35.220478Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.220633Z", "completed_at": "2022-09-15T13:54:35.220636Z"}], "thread_id": "Thread-4", "execution_time": 0.004835844039916992, "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": "2022-09-15T13:54:35.218576Z", "completed_at": "2022-09-15T13:54:35.220684Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.221057Z", "completed_at": "2022-09-15T13:54:35.221060Z"}], "thread_id": "Thread-2", "execution_time": 0.0048258304595947266, "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": "2022-09-15T13:54:35.221523Z", "completed_at": "2022-09-15T13:54:35.226013Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.226173Z", "completed_at": "2022-09-15T13:54:35.226177Z"}], "thread_id": "Thread-4", "execution_time": 0.005238056182861328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.224170Z", "completed_at": "2022-09-15T13:54:35.226227Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.231903Z", "completed_at": "2022-09-15T13:54:35.231905Z"}], "thread_id": "Thread-2", "execution_time": 0.010601043701171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.836570Z", "completed_at": "2022-09-15T13:54:35.209818Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.210529Z", "completed_at": "2022-09-15T13:54:35.210532Z"}], "thread_id": "Thread-1", "execution_time": 0.41753220558166504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:34.836633Z", "completed_at": "2022-09-15T13:54:35.210024Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.210710Z", "completed_at": "2022-09-15T13:54:35.210713Z"}], "thread_id": "Thread-3", "execution_time": 0.41762781143188477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.232500Z", "completed_at": "2022-09-15T13:54:35.254063Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.273379Z", "completed_at": "2022-09-15T13:54:35.273384Z"}], "thread_id": "Thread-4", "execution_time": 0.04239511489868164, "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": "2022-09-15T13:54:35.235427Z", "completed_at": "2022-09-15T13:54:35.255310Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.274490Z", "completed_at": "2022-09-15T13:54:35.274495Z"}], "thread_id": "Thread-2", "execution_time": 0.04233503341674805, "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": "2022-09-15T13:54:35.274579Z", "completed_at": "2022-09-15T13:54:35.314305Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.317901Z", "completed_at": "2022-09-15T13:54:35.317908Z"}], "thread_id": "Thread-1", "execution_time": 0.06624817848205566, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.274666Z", "completed_at": "2022-09-15T13:54:35.314477Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.321370Z", "completed_at": "2022-09-15T13:54:35.321376Z"}], "thread_id": "Thread-3", "execution_time": 0.048635244369506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.314194Z", "completed_at": "2022-09-15T13:54:35.321448Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.322407Z", "completed_at": "2022-09-15T13:54:35.322411Z"}], "thread_id": "Thread-4", "execution_time": 0.01020503044128418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.317714Z", "completed_at": "2022-09-15T13:54:35.322160Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.323669Z", "completed_at": "2022-09-15T13:54:35.323677Z"}], "thread_id": "Thread-2", "execution_time": 0.013273000717163086, "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": "2022-09-15T13:54:35.324035Z", "completed_at": "2022-09-15T13:54:35.330107Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.334178Z", "completed_at": "2022-09-15T13:54:35.334185Z"}], "thread_id": "Thread-1", "execution_time": 0.012386083602905273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.323885Z", "completed_at": "2022-09-15T13:54:35.331565Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.334475Z", "completed_at": "2022-09-15T13:54:35.334487Z"}], "thread_id": "Thread-3", "execution_time": 0.015333890914916992, "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": "2022-09-15T13:54:35.331503Z", "completed_at": "2022-09-15T13:54:35.334977Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.339558Z", "completed_at": "2022-09-15T13:54:35.339564Z"}], "thread_id": "Thread-4", "execution_time": 0.009834051132202148, "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": "2022-09-15T13:54:35.334268Z", "completed_at": "2022-09-15T13:54:35.339948Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.341109Z", "completed_at": "2022-09-15T13:54:35.341115Z"}], "thread_id": "Thread-2", "execution_time": 0.016754865646362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.340645Z", "completed_at": "2022-09-15T13:54:35.348517Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.351428Z", "completed_at": "2022-09-15T13:54:35.351434Z"}], "thread_id": "Thread-1", "execution_time": 0.0126190185546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.340894Z", "completed_at": "2022-09-15T13:54:35.348773Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.351617Z", "completed_at": "2022-09-15T13:54:35.351620Z"}], "thread_id": "Thread-3", "execution_time": 0.014863729476928711, "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": "2022-09-15T13:54:35.348358Z", "completed_at": "2022-09-15T13:54:35.351856Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.355189Z", "completed_at": "2022-09-15T13:54:35.355193Z"}], "thread_id": "Thread-4", "execution_time": 0.011539936065673828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.351517Z", "completed_at": "2022-09-15T13:54:35.355261Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.355970Z", "completed_at": "2022-09-15T13:54:35.355973Z"}], "thread_id": "Thread-2", "execution_time": 0.01004481315612793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.355793Z", "completed_at": "2022-09-15T13:54:35.360899Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.363327Z", "completed_at": "2022-09-15T13:54:35.363331Z"}], "thread_id": "Thread-1", "execution_time": 0.00859689712524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.356039Z", "completed_at": "2022-09-15T13:54:35.361173Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.363503Z", "completed_at": "2022-09-15T13:54:35.363505Z"}], "thread_id": "Thread-3", "execution_time": 0.010896921157836914, "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": "2022-09-15T13:54:35.360973Z", "completed_at": "2022-09-15T13:54:35.363706Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.366833Z", "completed_at": "2022-09-15T13:54:35.366836Z"}], "thread_id": "Thread-4", "execution_time": 0.008715152740478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.363423Z", "completed_at": "2022-09-15T13:54:35.366891Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.367545Z", "completed_at": "2022-09-15T13:54:35.367548Z"}], "thread_id": "Thread-2", "execution_time": 0.00952601432800293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.367393Z", "completed_at": "2022-09-15T13:54:35.372732Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.375546Z", "completed_at": "2022-09-15T13:54:35.375551Z"}], "thread_id": "Thread-1", "execution_time": 0.009185075759887695, "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": "2022-09-15T13:54:35.367611Z", "completed_at": "2022-09-15T13:54:35.373048Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.375728Z", "completed_at": "2022-09-15T13:54:35.375732Z"}], "thread_id": "Thread-3", "execution_time": 0.01104116439819336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.372835Z", "completed_at": "2022-09-15T13:54:35.378066Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.378792Z", "completed_at": "2022-09-15T13:54:35.378795Z"}], "thread_id": "Thread-4", "execution_time": 0.008679866790771484, "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": "2022-09-15T13:54:35.375654Z", "completed_at": "2022-09-15T13:54:35.378602Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.379224Z", "completed_at": "2022-09-15T13:54:35.379226Z"}], "thread_id": "Thread-2", "execution_time": 0.0085601806640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.379163Z", "completed_at": "2022-09-15T13:54:35.383792Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.386256Z", "completed_at": "2022-09-15T13:54:35.386260Z"}], "thread_id": "Thread-1", "execution_time": 0.008990049362182617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.379286Z", "completed_at": "2022-09-15T13:54:35.383998Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.386400Z", "completed_at": "2022-09-15T13:54:35.386402Z"}], "thread_id": "Thread-3", "execution_time": 0.01081991195678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.384081Z", "completed_at": "2022-09-15T13:54:35.389558Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.390339Z", "completed_at": "2022-09-15T13:54:35.390343Z"}], "thread_id": "Thread-4", "execution_time": 0.007254838943481445, "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": "2022-09-15T13:54:35.386333Z", "completed_at": "2022-09-15T13:54:35.390029Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.390731Z", "completed_at": "2022-09-15T13:54:35.390734Z"}], "thread_id": "Thread-2", "execution_time": 0.007211923599243164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.390804Z", "completed_at": "2022-09-15T13:54:35.412670Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.430426Z", "completed_at": "2022-09-15T13:54:35.430433Z"}], "thread_id": "Thread-1", "execution_time": 0.04085493087768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.390871Z", "completed_at": "2022-09-15T13:54:35.412734Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.430588Z", "completed_at": "2022-09-15T13:54:35.430597Z"}], "thread_id": "Thread-3", "execution_time": 0.040909767150878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.412520Z", "completed_at": "2022-09-15T13:54:35.430761Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.431495Z", "completed_at": "2022-09-15T13:54:35.431498Z"}], "thread_id": "Thread-4", "execution_time": 0.020075082778930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.424768Z", "completed_at": "2022-09-15T13:54:35.431306Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.431824Z", "completed_at": "2022-09-15T13:54:35.431827Z"}], "thread_id": "Thread-2", "execution_time": 0.01972484588623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.441536Z", "completed_at": "2022-09-15T13:54:35.444648Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.444806Z", "completed_at": "2022-09-15T13:54:35.444813Z"}], "thread_id": "Thread-3", "execution_time": 0.012061119079589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.433072Z", "completed_at": "2022-09-15T13:54:35.812232Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.812459Z", "completed_at": "2022-09-15T13:54:35.812467Z"}], "thread_id": "Thread-1", "execution_time": 0.40376782417297363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.837184Z", "completed_at": "2022-09-15T13:54:35.844183Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.844404Z", "completed_at": "2022-09-15T13:54:35.844411Z"}], "thread_id": "Thread-2", "execution_time": 0.007863998413085938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.845337Z", "completed_at": "2022-09-15T13:54:35.851646Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.851855Z", "completed_at": "2022-09-15T13:54:35.851861Z"}], "thread_id": "Thread-3", "execution_time": 0.007056713104248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.852694Z", "completed_at": "2022-09-15T13:54:35.856221Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.856417Z", "completed_at": "2022-09-15T13:54:35.856422Z"}], "thread_id": "Thread-4", "execution_time": 0.004153728485107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.858163Z", "completed_at": "2022-09-15T13:54:35.865320Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.865918Z", "completed_at": "2022-09-15T13:54:35.865923Z"}], "thread_id": "Thread-1", "execution_time": 0.009105920791625977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.858244Z", "completed_at": "2022-09-15T13:54:35.865409Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.866085Z", "completed_at": "2022-09-15T13:54:35.866088Z"}], "thread_id": "Thread-3", "execution_time": 0.009202241897583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.858323Z", "completed_at": "2022-09-15T13:54:35.865510Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.866182Z", "completed_at": "2022-09-15T13:54:35.866185Z"}], "thread_id": "Thread-2", "execution_time": 0.009192943572998047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-15T13:54:35.858401Z", "completed_at": "2022-09-15T13:54:35.865672Z"}, {"name": "execute", "started_at": "2022-09-15T13:54:35.866420Z", "completed_at": "2022-09-15T13:54:35.866422Z"}], "thread_id": "Thread-4", "execution_time": 0.009246110916137695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}], "elapsed_time": 4.9623260498046875, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "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.2.1", "generated_at": "2022-09-26T18:30:58.446761Z", "invocation_id": "29c3414a-29e8-4c65-badf-9218a48ef0b9", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.372368Z", "completed_at": "2022-09-26T18:30:54.377461Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.379770Z", "completed_at": "2022-09-26T18:30:54.379783Z"}], "thread_id": "Thread-1", "execution_time": 0.009288787841796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.372604Z", "completed_at": "2022-09-26T18:30:54.379031Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.379982Z", "completed_at": "2022-09-26T18:30:54.379986Z"}], "thread_id": "Thread-2", "execution_time": 0.0093841552734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.372710Z", "completed_at": "2022-09-26T18:30:54.379137Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.380076Z", "completed_at": "2022-09-26T18:30:54.380081Z"}], "thread_id": "Thread-3", "execution_time": 0.009573936462402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.374505Z", "completed_at": "2022-09-26T18:30:54.379397Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.380528Z", "completed_at": "2022-09-26T18:30:54.380533Z"}], "thread_id": "Thread-4", "execution_time": 0.00984501838684082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.383808Z", "completed_at": "2022-09-26T18:30:54.389119Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.390916Z", "completed_at": "2022-09-26T18:30:54.390923Z"}], "thread_id": "Thread-1", "execution_time": 0.008902788162231445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.383963Z", "completed_at": "2022-09-26T18:30:54.390439Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.391072Z", "completed_at": "2022-09-26T18:30:54.391075Z"}], "thread_id": "Thread-2", "execution_time": 0.008726835250854492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.384036Z", "completed_at": "2022-09-26T18:30:54.390521Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.391150Z", "completed_at": "2022-09-26T18:30:54.391152Z"}], "thread_id": "Thread-3", "execution_time": 0.008694887161254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.386353Z", "completed_at": "2022-09-26T18:30:54.390686Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.391515Z", "completed_at": "2022-09-26T18:30:54.391518Z"}], "thread_id": "Thread-4", "execution_time": 0.00882101058959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.393893Z", "completed_at": "2022-09-26T18:30:54.399296Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.424716Z", "completed_at": "2022-09-26T18:30:54.424721Z"}], "thread_id": "Thread-1", "execution_time": 0.032266855239868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.394040Z", "completed_at": "2022-09-26T18:30:54.424312Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.424842Z", "completed_at": "2022-09-26T18:30:54.424844Z"}], "thread_id": "Thread-2", "execution_time": 0.03215169906616211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.394239Z", "completed_at": "2022-09-26T18:30:54.424386Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.424902Z", "completed_at": "2022-09-26T18:30:54.424904Z"}], "thread_id": "Thread-3", "execution_time": 0.032122135162353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.395817Z", "completed_at": "2022-09-26T18:30:54.424527Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.425223Z", "completed_at": "2022-09-26T18:30:54.425226Z"}], "thread_id": "Thread-4", "execution_time": 0.03212714195251465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.427043Z", "completed_at": "2022-09-26T18:30:54.430118Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.431429Z", "completed_at": "2022-09-26T18:30:54.431433Z"}], "thread_id": "Thread-1", "execution_time": 0.005553245544433594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.427169Z", "completed_at": "2022-09-26T18:30:54.431057Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.431550Z", "completed_at": "2022-09-26T18:30:54.431552Z"}], "thread_id": "Thread-2", "execution_time": 0.0055620670318603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.427227Z", "completed_at": "2022-09-26T18:30:54.431121Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.431609Z", "completed_at": "2022-09-26T18:30:54.431611Z"}], "thread_id": "Thread-3", "execution_time": 0.005518913269042969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.428270Z", "completed_at": "2022-09-26T18:30:54.431247Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.431869Z", "completed_at": "2022-09-26T18:30:54.431873Z"}], "thread_id": "Thread-4", "execution_time": 0.00556492805480957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.433711Z", "completed_at": "2022-09-26T18:30:54.437312Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.438657Z", "completed_at": "2022-09-26T18:30:54.438660Z"}], "thread_id": "Thread-1", "execution_time": 0.006181955337524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.433828Z", "completed_at": "2022-09-26T18:30:54.438279Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.438779Z", "completed_at": "2022-09-26T18:30:54.438781Z"}], "thread_id": "Thread-2", "execution_time": 0.006119251251220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.433947Z", "completed_at": "2022-09-26T18:30:54.438343Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.438839Z", "completed_at": "2022-09-26T18:30:54.438840Z"}], "thread_id": "Thread-3", "execution_time": 0.00610804557800293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.435474Z", "completed_at": "2022-09-26T18:30:54.438473Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.439070Z", "completed_at": "2022-09-26T18:30:54.439072Z"}], "thread_id": "Thread-4", "execution_time": 0.006155967712402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.440893Z", "completed_at": "2022-09-26T18:30:54.444453Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.445776Z", "completed_at": "2022-09-26T18:30:54.445779Z"}], "thread_id": "Thread-1", "execution_time": 0.006042003631591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.441009Z", "completed_at": "2022-09-26T18:30:54.445389Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.445897Z", "completed_at": "2022-09-26T18:30:54.445900Z"}], "thread_id": "Thread-2", "execution_time": 0.006020069122314453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.441066Z", "completed_at": "2022-09-26T18:30:54.445453Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.445959Z", "completed_at": "2022-09-26T18:30:54.445961Z"}], "thread_id": "Thread-3", "execution_time": 0.005964040756225586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.442031Z", "completed_at": "2022-09-26T18:30:54.445591Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.446177Z", "completed_at": "2022-09-26T18:30:54.446180Z"}], "thread_id": "Thread-4", "execution_time": 0.005994081497192383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.447928Z", "completed_at": "2022-09-26T18:30:54.450877Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.452172Z", "completed_at": "2022-09-26T18:30:54.452175Z"}], "thread_id": "Thread-1", "execution_time": 0.005415916442871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.448046Z", "completed_at": "2022-09-26T18:30:54.451803Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.452293Z", "completed_at": "2022-09-26T18:30:54.452296Z"}], "thread_id": "Thread-2", "execution_time": 0.005336284637451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.448102Z", "completed_at": "2022-09-26T18:30:54.451866Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.452352Z", "completed_at": "2022-09-26T18:30:54.452354Z"}], "thread_id": "Thread-3", "execution_time": 0.0053310394287109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.449076Z", "completed_at": "2022-09-26T18:30:54.451991Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.452574Z", "completed_at": "2022-09-26T18:30:54.452577Z"}], "thread_id": "Thread-4", "execution_time": 0.005368947982788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.455013Z", "completed_at": "2022-09-26T18:30:54.457969Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.459307Z", "completed_at": "2022-09-26T18:30:54.459310Z"}], "thread_id": "Thread-1", "execution_time": 0.0061299800872802734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.455131Z", "completed_at": "2022-09-26T18:30:54.458938Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.459424Z", "completed_at": "2022-09-26T18:30:54.459426Z"}], "thread_id": "Thread-2", "execution_time": 0.006016731262207031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.455187Z", "completed_at": "2022-09-26T18:30:54.459001Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.459482Z", "completed_at": "2022-09-26T18:30:54.459484Z"}], "thread_id": "Thread-3", "execution_time": 0.006040096282958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.456165Z", "completed_at": "2022-09-26T18:30:54.459126Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.459702Z", "completed_at": "2022-09-26T18:30:54.459704Z"}], "thread_id": "Thread-4", "execution_time": 0.005404233932495117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.461388Z", "completed_at": "2022-09-26T18:30:54.464971Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.466279Z", "completed_at": "2022-09-26T18:30:54.466282Z"}], "thread_id": "Thread-1", "execution_time": 0.005998134613037109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.461509Z", "completed_at": "2022-09-26T18:30:54.465908Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.466398Z", "completed_at": "2022-09-26T18:30:54.466401Z"}], "thread_id": "Thread-2", "execution_time": 0.006032228469848633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.461568Z", "completed_at": "2022-09-26T18:30:54.465972Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.466458Z", "completed_at": "2022-09-26T18:30:54.466460Z"}], "thread_id": "Thread-3", "execution_time": 0.005989789962768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.462548Z", "completed_at": "2022-09-26T18:30:54.466097Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.466688Z", "completed_at": "2022-09-26T18:30:54.466691Z"}], "thread_id": "Thread-4", "execution_time": 0.006023883819580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.468408Z", "completed_at": "2022-09-26T18:30:54.472372Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.475329Z", "completed_at": "2022-09-26T18:30:54.475333Z"}], "thread_id": "Thread-1", "execution_time": 0.008059263229370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.468525Z", "completed_at": "2022-09-26T18:30:54.474884Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.475487Z", "completed_at": "2022-09-26T18:30:54.475490Z"}], "thread_id": "Thread-2", "execution_time": 0.008135080337524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.468582Z", "completed_at": "2022-09-26T18:30:54.475386Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.476096Z", "completed_at": "2022-09-26T18:30:54.476098Z"}], "thread_id": "Thread-3", "execution_time": 0.008644819259643555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.469567Z", "completed_at": "2022-09-26T18:30:54.475430Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.476244Z", "completed_at": "2022-09-26T18:30:54.476246Z"}], "thread_id": "Thread-4", "execution_time": 0.008605003356933594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.477385Z", "completed_at": "2022-09-26T18:30:54.481842Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.485838Z", "completed_at": "2022-09-26T18:30:54.485842Z"}], "thread_id": "Thread-1", "execution_time": 0.009811162948608398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.477673Z", "completed_at": "2022-09-26T18:30:54.485697Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.486435Z", "completed_at": "2022-09-26T18:30:54.486438Z"}], "thread_id": "Thread-2", "execution_time": 0.010040760040283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.481746Z", "completed_at": "2022-09-26T18:30:54.485908Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.486676Z", "completed_at": "2022-09-26T18:30:54.486679Z"}], "thread_id": "Thread-4", "execution_time": 0.009688138961791992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.481649Z", "completed_at": "2022-09-26T18:30:54.485969Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.486762Z", "completed_at": "2022-09-26T18:30:54.486765Z"}], "thread_id": "Thread-3", "execution_time": 0.009950876235961914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.488121Z", "completed_at": "2022-09-26T18:30:54.493118Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.497036Z", "completed_at": "2022-09-26T18:30:54.497040Z"}], "thread_id": "Thread-1", "execution_time": 0.010331869125366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.491087Z", "completed_at": "2022-09-26T18:30:54.497091Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.497854Z", "completed_at": "2022-09-26T18:30:54.497857Z"}], "thread_id": "Thread-2", "execution_time": 0.010276079177856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.491181Z", "completed_at": "2022-09-26T18:30:54.497151Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.497930Z", "completed_at": "2022-09-26T18:30:54.497933Z"}], "thread_id": "Thread-4", "execution_time": 0.01025700569152832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.491257Z", "completed_at": "2022-09-26T18:30:54.497204Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.497994Z", "completed_at": "2022-09-26T18:30:54.497996Z"}], "thread_id": "Thread-3", "execution_time": 0.010301828384399414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.499229Z", "completed_at": "2022-09-26T18:30:54.501962Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.508135Z", "completed_at": "2022-09-26T18:30:54.508139Z"}], "thread_id": "Thread-1", "execution_time": 0.010355234146118164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.501767Z", "completed_at": "2022-09-26T18:30:54.508201Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.508949Z", "completed_at": "2022-09-26T18:30:54.508952Z"}], "thread_id": "Thread-2", "execution_time": 0.010030984878540039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.501841Z", "completed_at": "2022-09-26T18:30:54.508268Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.509018Z", "completed_at": "2022-09-26T18:30:54.509021Z"}], "thread_id": "Thread-4", "execution_time": 0.01006317138671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.501913Z", "completed_at": "2022-09-26T18:30:54.508518Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.509212Z", "completed_at": "2022-09-26T18:30:54.509214Z"}], "thread_id": "Thread-3", "execution_time": 0.010158300399780273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.510088Z", "completed_at": "2022-09-26T18:30:54.512910Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.518567Z", "completed_at": "2022-09-26T18:30:54.518577Z"}], "thread_id": "Thread-1", "execution_time": 0.009840011596679688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.512787Z", "completed_at": "2022-09-26T18:30:54.518698Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.519403Z", "completed_at": "2022-09-26T18:30:54.519406Z"}], "thread_id": "Thread-2", "execution_time": 0.009504079818725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.512860Z", "completed_at": "2022-09-26T18:30:54.518794Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.519534Z", "completed_at": "2022-09-26T18:30:54.519537Z"}], "thread_id": "Thread-4", "execution_time": 0.010307788848876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.512972Z", "completed_at": "2022-09-26T18:30:54.519099Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.519892Z", "completed_at": "2022-09-26T18:30:54.519894Z"}], "thread_id": "Thread-3", "execution_time": 0.00872802734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.521385Z", "completed_at": "2022-09-26T18:30:54.524185Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.529625Z", "completed_at": "2022-09-26T18:30:54.529629Z"}], "thread_id": "Thread-1", "execution_time": 0.010349035263061523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.523976Z", "completed_at": "2022-09-26T18:30:54.529753Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.530449Z", "completed_at": "2022-09-26T18:30:54.530452Z"}], "thread_id": "Thread-2", "execution_time": 0.009390115737915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.524136Z", "completed_at": "2022-09-26T18:30:54.529827Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.530584Z", "completed_at": "2022-09-26T18:30:54.530587Z"}], "thread_id": "Thread-4", "execution_time": 0.009354114532470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.526087Z", "completed_at": "2022-09-26T18:30:54.530149Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.530951Z", "completed_at": "2022-09-26T18:30:54.530954Z"}], "thread_id": "Thread-3", "execution_time": 0.007709980010986328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.531694Z", "completed_at": "2022-09-26T18:30:54.534530Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.541044Z", "completed_at": "2022-09-26T18:30:54.541050Z"}], "thread_id": "Thread-1", "execution_time": 0.010946035385131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.534395Z", "completed_at": "2022-09-26T18:30:54.541125Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.542211Z", "completed_at": "2022-09-26T18:30:54.542215Z"}], "thread_id": "Thread-2", "execution_time": 0.010872125625610352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.534598Z", "completed_at": "2022-09-26T18:30:54.541404Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.542286Z", "completed_at": "2022-09-26T18:30:54.542289Z"}], "thread_id": "Thread-4", "execution_time": 0.010771036148071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.537173Z", "completed_at": "2022-09-26T18:30:54.541712Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.542505Z", "completed_at": "2022-09-26T18:30:54.542507Z"}], "thread_id": "Thread-3", "execution_time": 0.008897066116333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.543416Z", "completed_at": "2022-09-26T18:30:54.546145Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.552582Z", "completed_at": "2022-09-26T18:30:54.552587Z"}], "thread_id": "Thread-1", "execution_time": 0.010557889938354492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.546000Z", "completed_at": "2022-09-26T18:30:54.552711Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.553410Z", "completed_at": "2022-09-26T18:30:54.553413Z"}], "thread_id": "Thread-2", "execution_time": 0.01018381118774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.546074Z", "completed_at": "2022-09-26T18:30:54.552772Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.553543Z", "completed_at": "2022-09-26T18:30:54.553545Z"}], "thread_id": "Thread-4", "execution_time": 0.01029205322265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.546198Z", "completed_at": "2022-09-26T18:30:54.553103Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.553906Z", "completed_at": "2022-09-26T18:30:54.553909Z"}], "thread_id": "Thread-3", "execution_time": 0.008786916732788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.554651Z", "completed_at": "2022-09-26T18:30:54.557516Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.563252Z", "completed_at": "2022-09-26T18:30:54.563255Z"}], "thread_id": "Thread-1", "execution_time": 0.00991201400756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.557314Z", "completed_at": "2022-09-26T18:30:54.563316Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.564058Z", "completed_at": "2022-09-26T18:30:54.564061Z"}], "thread_id": "Thread-2", "execution_time": 0.009735345840454102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.557466Z", "completed_at": "2022-09-26T18:30:54.563619Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.564329Z", "completed_at": "2022-09-26T18:30:54.564332Z"}], "thread_id": "Thread-4", "execution_time": 0.009665966033935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.559439Z", "completed_at": "2022-09-26T18:30:54.563752Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.564550Z", "completed_at": "2022-09-26T18:30:54.564552Z"}], "thread_id": "Thread-3", "execution_time": 0.007931947708129883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.565135Z", "completed_at": "2022-09-26T18:30:54.568687Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.576056Z", "completed_at": "2022-09-26T18:30:54.576060Z"}], "thread_id": "Thread-1", "execution_time": 0.015926122665405273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.568633Z", "completed_at": "2022-09-26T18:30:54.579976Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.580750Z", "completed_at": "2022-09-26T18:30:54.580754Z"}], "thread_id": "Thread-2", "execution_time": 0.015724658966064453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.570603Z", "completed_at": "2022-09-26T18:30:54.895416Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.895712Z", "completed_at": "2022-09-26T18:30:54.895719Z"}], "thread_id": "Thread-3", "execution_time": 0.35257697105407715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.585438Z", "completed_at": "2022-09-26T18:30:54.900597Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.900891Z", "completed_at": "2022-09-26T18:30:54.900895Z"}], "thread_id": "Thread-2", "execution_time": 0.34606480598449707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.581418Z", "completed_at": "2022-09-26T18:30:54.902794Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.903075Z", "completed_at": "2022-09-26T18:30:54.903078Z"}], "thread_id": "Thread-1", "execution_time": 0.34708523750305176, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.568822Z", "completed_at": "2022-09-26T18:30:54.902653Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:54.902865Z", "completed_at": "2022-09-26T18:30:54.902868Z"}], "thread_id": "Thread-4", "execution_time": 0.3607800006866455, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.921568Z", "completed_at": "2022-09-26T18:30:55.202917Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.203103Z", "completed_at": "2022-09-26T18:30:55.203110Z"}], "thread_id": "Thread-3", "execution_time": 0.3062431812286377, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.958917Z", "completed_at": "2022-09-26T18:30:55.244813Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.244991Z", "completed_at": "2022-09-26T18:30:55.244997Z"}], "thread_id": "Thread-1", "execution_time": 0.3424530029296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.963202Z", "completed_at": "2022-09-26T18:30:55.257493Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.257645Z", "completed_at": "2022-09-26T18:30:55.257650Z"}], "thread_id": "Thread-4", "execution_time": 0.32239198684692383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:54.928741Z", "completed_at": "2022-09-26T18:30:55.442057Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.442298Z", "completed_at": "2022-09-26T18:30:55.442308Z"}], "thread_id": "Thread-2", "execution_time": 0.5378758907318115, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.228339Z", "completed_at": "2022-09-26T18:30:55.481731Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.481923Z", "completed_at": "2022-09-26T18:30:55.481929Z"}], "thread_id": "Thread-3", "execution_time": 0.28082990646362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.271731Z", "completed_at": "2022-09-26T18:30:55.532620Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.532797Z", "completed_at": "2022-09-26T18:30:55.532803Z"}], "thread_id": "Thread-1", "execution_time": 0.2857539653778076, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.285667Z", "completed_at": "2022-09-26T18:30:55.567236Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.567383Z", "completed_at": "2022-09-26T18:30:55.567390Z"}], "thread_id": "Thread-4", "execution_time": 0.30783581733703613, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.467041Z", "completed_at": "2022-09-26T18:30:55.762663Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.762851Z", "completed_at": "2022-09-26T18:30:55.762859Z"}], "thread_id": "Thread-2", "execution_time": 0.3260982036590576, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.509622Z", "completed_at": "2022-09-26T18:30:55.799741Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.799898Z", "completed_at": "2022-09-26T18:30:55.799902Z"}], "thread_id": "Thread-3", "execution_time": 0.31661200523376465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.559016Z", "completed_at": "2022-09-26T18:30:55.818278Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.818425Z", "completed_at": "2022-09-26T18:30:55.818429Z"}], "thread_id": "Thread-1", "execution_time": 0.2841038703918457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.593961Z", "completed_at": "2022-09-26T18:30:55.863120Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:55.863275Z", "completed_at": "2022-09-26T18:30:55.863280Z"}], "thread_id": "Thread-4", "execution_time": 0.29312705993652344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.794464Z", "completed_at": "2022-09-26T18:30:56.064947Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.065137Z", "completed_at": "2022-09-26T18:30:56.065144Z"}], "thread_id": "Thread-2", "execution_time": 0.295806884765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.842778Z", "completed_at": "2022-09-26T18:30:56.130368Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.130640Z", "completed_at": "2022-09-26T18:30:56.130642Z"}], "thread_id": "Thread-1", "execution_time": 0.32649803161621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.826421Z", "completed_at": "2022-09-26T18:30:56.130273Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.130564Z", "completed_at": "2022-09-26T18:30:56.130571Z"}], "thread_id": "Thread-3", "execution_time": 0.34298086166381836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:55.887471Z", "completed_at": "2022-09-26T18:30:56.186971Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.187435Z", "completed_at": "2022-09-26T18:30:56.187441Z"}], "thread_id": "Thread-4", "execution_time": 0.32459497451782227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.114075Z", "completed_at": "2022-09-26T18:30:56.401992Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.402193Z", "completed_at": "2022-09-26T18:30:56.402201Z"}], "thread_id": "Thread-2", "execution_time": 0.3428220748901367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.179031Z", "completed_at": "2022-09-26T18:30:56.455346Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.458603Z", "completed_at": "2022-09-26T18:30:56.458608Z"}], "thread_id": "Thread-1", "execution_time": 0.3153378963470459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.179124Z", "completed_at": "2022-09-26T18:30:56.460397Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.460545Z", "completed_at": "2022-09-26T18:30:56.460549Z"}], "thread_id": "Thread-3", "execution_time": 0.3573739528656006, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.212394Z", "completed_at": "2022-09-26T18:30:56.536074Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.536217Z", "completed_at": "2022-09-26T18:30:56.536222Z"}], "thread_id": "Thread-4", "execution_time": 0.3492238521575928, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.434382Z", "completed_at": "2022-09-26T18:30:56.714771Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.714947Z", "completed_at": "2022-09-26T18:30:56.714955Z"}], "thread_id": "Thread-2", "execution_time": 0.31010890007019043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.531562Z", "completed_at": "2022-09-26T18:30:56.816509Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.816817Z", "completed_at": "2022-09-26T18:30:56.816822Z"}], "thread_id": "Thread-3", "execution_time": 0.31812191009521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.486169Z", "completed_at": "2022-09-26T18:30:56.816598Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.816896Z", "completed_at": "2022-09-26T18:30:56.816898Z"}], "thread_id": "Thread-1", "execution_time": 0.3639092445373535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.561998Z", "completed_at": "2022-09-26T18:30:56.865773Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:56.870180Z", "completed_at": "2022-09-26T18:30:56.870185Z"}], "thread_id": "Thread-4", "execution_time": 0.33681178092956543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.744611Z", "completed_at": "2022-09-26T18:30:57.013417Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.013601Z", "completed_at": "2022-09-26T18:30:57.013608Z"}], "thread_id": "Thread-2", "execution_time": 0.29731297492980957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.861586Z", "completed_at": "2022-09-26T18:30:57.212629Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.212797Z", "completed_at": "2022-09-26T18:30:57.212804Z"}], "thread_id": "Thread-1", "execution_time": 0.3770580291748047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.899268Z", "completed_at": "2022-09-26T18:30:57.227155Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.227447Z", "completed_at": "2022-09-26T18:30:57.227451Z"}], "thread_id": "Thread-4", "execution_time": 0.3527648448944092, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:56.861507Z", "completed_at": "2022-09-26T18:30:57.227216Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.227529Z", "completed_at": "2022-09-26T18:30:57.227531Z"}], "thread_id": "Thread-3", "execution_time": 0.4001450538635254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.042365Z", "completed_at": "2022-09-26T18:30:57.351472Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.351644Z", "completed_at": "2022-09-26T18:30:57.351650Z"}], "thread_id": "Thread-2", "execution_time": 0.3353869915008545, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.237420Z", "completed_at": "2022-09-26T18:30:57.499848Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.500107Z", "completed_at": "2022-09-26T18:30:57.500114Z"}], "thread_id": "Thread-1", "execution_time": 0.2879500389099121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.525571Z", "completed_at": "2022-09-26T18:30:57.533802Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.534021Z", "completed_at": "2022-09-26T18:30:57.534029Z"}], "thread_id": "Thread-1", "execution_time": 0.008928060531616211, "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": "2022-09-26T18:30:57.542492Z", "completed_at": "2022-09-26T18:30:57.556420Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.556592Z", "completed_at": "2022-09-26T18:30:57.556599Z"}], "thread_id": "Thread-1", "execution_time": 0.022280216217041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.557191Z", "completed_at": "2022-09-26T18:30:57.560056Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.560615Z", "completed_at": "2022-09-26T18:30:57.560620Z"}], "thread_id": "Thread-1", "execution_time": 0.004014730453491211, "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": "2022-09-26T18:30:57.561959Z", "completed_at": "2022-09-26T18:30:57.565405Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.565751Z", "completed_at": "2022-09-26T18:30:57.565757Z"}], "thread_id": "Thread-1", "execution_time": 0.004648923873901367, "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": "2022-09-26T18:30:57.566839Z", "completed_at": "2022-09-26T18:30:57.569806Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.571517Z", "completed_at": "2022-09-26T18:30:57.571528Z"}], "thread_id": "Thread-1", "execution_time": 0.005238056182861328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.592402Z", "completed_at": "2022-09-26T18:30:57.595386Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.595614Z", "completed_at": "2022-09-26T18:30:57.595619Z"}], "thread_id": "Thread-1", "execution_time": 0.021986007690429688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.596220Z", "completed_at": "2022-09-26T18:30:57.602584Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.602744Z", "completed_at": "2022-09-26T18:30:57.602749Z"}], "thread_id": "Thread-1", "execution_time": 0.006890058517456055, "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": "2022-09-26T18:30:57.603370Z", "completed_at": "2022-09-26T18:30:57.606126Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.606283Z", "completed_at": "2022-09-26T18:30:57.606290Z"}], "thread_id": "Thread-1", "execution_time": 0.0032892227172851562, "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": "2022-09-26T18:30:57.606937Z", "completed_at": "2022-09-26T18:30:57.609289Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.609419Z", "completed_at": "2022-09-26T18:30:57.609423Z"}], "thread_id": "Thread-1", "execution_time": 0.0028319358825683594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.609949Z", "completed_at": "2022-09-26T18:30:57.612187Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.612318Z", "completed_at": "2022-09-26T18:30:57.612322Z"}], "thread_id": "Thread-1", "execution_time": 0.0026760101318359375, "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": "2022-09-26T18:30:57.612868Z", "completed_at": "2022-09-26T18:30:57.615532Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.615716Z", "completed_at": "2022-09-26T18:30:57.615723Z"}], "thread_id": "Thread-1", "execution_time": 0.003200054168701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.252392Z", "completed_at": "2022-09-26T18:30:57.573102Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.574486Z", "completed_at": "2022-09-26T18:30:57.574492Z"}], "thread_id": "Thread-4", "execution_time": 0.3678872585296631, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.258387Z", "completed_at": "2022-09-26T18:30:57.595016Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.595242Z", "completed_at": "2022-09-26T18:30:57.595246Z"}], "thread_id": "Thread-3", "execution_time": 0.3627147674560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.616385Z", "completed_at": "2022-09-26T18:30:57.619885Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.620509Z", "completed_at": "2022-09-26T18:30:57.620513Z"}], "thread_id": "Thread-1", "execution_time": 0.00485992431640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.621482Z", "completed_at": "2022-09-26T18:30:57.628968Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.639790Z", "completed_at": "2022-09-26T18:30:57.639798Z"}], "thread_id": "Thread-4", "execution_time": 0.019966840744018555, "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": "2022-09-26T18:30:57.624436Z", "completed_at": "2022-09-26T18:30:57.635860Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.640831Z", "completed_at": "2022-09-26T18:30:57.640834Z"}], "thread_id": "Thread-1", "execution_time": 0.019993066787719727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.624352Z", "completed_at": "2022-09-26T18:30:57.639495Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.641018Z", "completed_at": "2022-09-26T18:30:57.641021Z"}], "thread_id": "Thread-3", "execution_time": 0.020429611206054688, "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": "2022-09-26T18:30:57.644337Z", "completed_at": "2022-09-26T18:30:57.691615Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.692160Z", "completed_at": "2022-09-26T18:30:57.692163Z"}], "thread_id": "Thread-4", "execution_time": 0.050364017486572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.651199Z", "completed_at": "2022-09-26T18:30:57.692047Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.692667Z", "completed_at": "2022-09-26T18:30:57.692671Z"}], "thread_id": "Thread-3", "execution_time": 0.04943108558654785, "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": "2022-09-26T18:30:57.651128Z", "completed_at": "2022-09-26T18:30:57.692095Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.692742Z", "completed_at": "2022-09-26T18:30:57.692745Z"}], "thread_id": "Thread-1", "execution_time": 0.04994010925292969, "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": "2022-09-26T18:30:57.694090Z", "completed_at": "2022-09-26T18:30:57.701288Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.701504Z", "completed_at": "2022-09-26T18:30:57.701510Z"}], "thread_id": "Thread-4", "execution_time": 0.008326053619384766, "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": "2022-09-26T18:30:57.696817Z", "completed_at": "2022-09-26T18:30:57.705262Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.705630Z", "completed_at": "2022-09-26T18:30:57.705635Z"}], "thread_id": "Thread-3", "execution_time": 0.012129068374633789, "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": "2022-09-26T18:30:57.696903Z", "completed_at": "2022-09-26T18:30:57.705328Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.705755Z", "completed_at": "2022-09-26T18:30:57.705758Z"}], "thread_id": "Thread-1", "execution_time": 0.012233257293701172, "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": "2022-09-26T18:30:57.702055Z", "completed_at": "2022-09-26T18:30:57.705686Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.706408Z", "completed_at": "2022-09-26T18:30:57.706411Z"}], "thread_id": "Thread-4", "execution_time": 0.004926919937133789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.707249Z", "completed_at": "2022-09-26T18:30:57.714142Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.714497Z", "completed_at": "2022-09-26T18:30:57.714503Z"}], "thread_id": "Thread-3", "execution_time": 0.008207082748413086, "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": "2022-09-26T18:30:57.707434Z", "completed_at": "2022-09-26T18:30:57.714399Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.714945Z", "completed_at": "2022-09-26T18:30:57.714948Z"}], "thread_id": "Thread-1", "execution_time": 0.008405923843383789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.711855Z", "completed_at": "2022-09-26T18:30:57.714631Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.715413Z", "completed_at": "2022-09-26T18:30:57.715417Z"}], "thread_id": "Thread-4", "execution_time": 0.008472204208374023, "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": "2022-09-26T18:30:57.378374Z", "completed_at": "2022-09-26T18:30:57.691512Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.691984Z", "completed_at": "2022-09-26T18:30:57.691990Z"}], "thread_id": "Thread-2", "execution_time": 0.3442568778991699, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.716177Z", "completed_at": "2022-09-26T18:30:57.722466Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.725905Z", "completed_at": "2022-09-26T18:30:57.725910Z"}], "thread_id": "Thread-3", "execution_time": 0.010802984237670898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.718725Z", "completed_at": "2022-09-26T18:30:57.725424Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.726094Z", "completed_at": "2022-09-26T18:30:57.726097Z"}], "thread_id": "Thread-1", "execution_time": 0.010601043701171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.722410Z", "completed_at": "2022-09-26T18:30:57.726150Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.729354Z", "completed_at": "2022-09-26T18:30:57.729358Z"}], "thread_id": "Thread-4", "execution_time": 0.013510942459106445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.726427Z", "completed_at": "2022-09-26T18:30:57.730001Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.732677Z", "completed_at": "2022-09-26T18:30:57.732682Z"}], "thread_id": "Thread-2", "execution_time": 0.009627819061279297, "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": "2022-09-26T18:30:57.730245Z", "completed_at": "2022-09-26T18:30:57.735515Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.738305Z", "completed_at": "2022-09-26T18:30:57.738310Z"}], "thread_id": "Thread-3", "execution_time": 0.009241104125976562, "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": "2022-09-26T18:30:57.730375Z", "completed_at": "2022-09-26T18:30:57.735699Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.738485Z", "completed_at": "2022-09-26T18:30:57.738488Z"}], "thread_id": "Thread-1", "execution_time": 0.009357213973999023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.735447Z", "completed_at": "2022-09-26T18:30:57.738539Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.742545Z", "completed_at": "2022-09-26T18:30:57.742550Z"}], "thread_id": "Thread-4", "execution_time": 0.012551069259643555, "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": "2022-09-26T18:30:57.738797Z", "completed_at": "2022-09-26T18:30:57.743341Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.746396Z", "completed_at": "2022-09-26T18:30:57.746403Z"}], "thread_id": "Thread-2", "execution_time": 0.010699033737182617, "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": "2022-09-26T18:30:57.743583Z", "completed_at": "2022-09-26T18:30:57.748997Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.751653Z", "completed_at": "2022-09-26T18:30:57.751657Z"}], "thread_id": "Thread-3", "execution_time": 0.009364128112792969, "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": "2022-09-26T18:30:57.743736Z", "completed_at": "2022-09-26T18:30:57.749215Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.751816Z", "completed_at": "2022-09-26T18:30:57.751820Z"}], "thread_id": "Thread-1", "execution_time": 0.009415864944458008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.748934Z", "completed_at": "2022-09-26T18:30:57.751872Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.754968Z", "completed_at": "2022-09-26T18:30:57.754973Z"}], "thread_id": "Thread-4", "execution_time": 0.01164388656616211, "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": "2022-09-26T18:30:57.752101Z", "completed_at": "2022-09-26T18:30:57.755668Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.759387Z", "completed_at": "2022-09-26T18:30:57.759392Z"}], "thread_id": "Thread-2", "execution_time": 0.01011204719543457, "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": "2022-09-26T18:30:57.755925Z", "completed_at": "2022-09-26T18:30:57.761772Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.765196Z", "completed_at": "2022-09-26T18:30:57.765202Z"}], "thread_id": "Thread-3", "execution_time": 0.010523080825805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.756061Z", "completed_at": "2022-09-26T18:30:57.761961Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.765367Z", "completed_at": "2022-09-26T18:30:57.765371Z"}], "thread_id": "Thread-1", "execution_time": 0.010596036911010742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.761705Z", "completed_at": "2022-09-26T18:30:57.765441Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.768783Z", "completed_at": "2022-09-26T18:30:57.768787Z"}], "thread_id": "Thread-4", "execution_time": 0.013089179992675781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.765722Z", "completed_at": "2022-09-26T18:30:57.769391Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.773747Z", "completed_at": "2022-09-26T18:30:57.773752Z"}], "thread_id": "Thread-2", "execution_time": 0.01262521743774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.769632Z", "completed_at": "2022-09-26T18:30:57.777781Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.780561Z", "completed_at": "2022-09-26T18:30:57.780566Z"}], "thread_id": "Thread-3", "execution_time": 0.01206207275390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.769762Z", "completed_at": "2022-09-26T18:30:57.777989Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.780735Z", "completed_at": "2022-09-26T18:30:57.780739Z"}], "thread_id": "Thread-1", "execution_time": 0.012151956558227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.777715Z", "completed_at": "2022-09-26T18:30:57.780794Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.783773Z", "completed_at": "2022-09-26T18:30:57.783778Z"}], "thread_id": "Thread-4", "execution_time": 0.01447606086730957, "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": "2022-09-26T18:30:57.781038Z", "completed_at": "2022-09-26T18:30:57.784496Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.787494Z", "completed_at": "2022-09-26T18:30:57.787500Z"}], "thread_id": "Thread-2", "execution_time": 0.009527921676635742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.784755Z", "completed_at": "2022-09-26T18:30:57.790069Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.792519Z", "completed_at": "2022-09-26T18:30:57.792523Z"}], "thread_id": "Thread-3", "execution_time": 0.009001970291137695, "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": "2022-09-26T18:30:57.784898Z", "completed_at": "2022-09-26T18:30:57.790275Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.792685Z", "completed_at": "2022-09-26T18:30:57.792688Z"}], "thread_id": "Thread-1", "execution_time": 0.009032964706420898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.790010Z", "completed_at": "2022-09-26T18:30:57.792740Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.796853Z", "completed_at": "2022-09-26T18:30:57.796859Z"}], "thread_id": "Thread-4", "execution_time": 0.01237797737121582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.792984Z", "completed_at": "2022-09-26T18:30:57.797526Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.800671Z", "completed_at": "2022-09-26T18:30:57.800675Z"}], "thread_id": "Thread-2", "execution_time": 0.01072382926940918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.797774Z", "completed_at": "2022-09-26T18:30:57.803377Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.806571Z", "completed_at": "2022-09-26T18:30:57.806577Z"}], "thread_id": "Thread-3", "execution_time": 0.009957313537597656, "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": "2022-09-26T18:30:57.797910Z", "completed_at": "2022-09-26T18:30:57.806201Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.806764Z", "completed_at": "2022-09-26T18:30:57.806767Z"}], "thread_id": "Thread-1", "execution_time": 0.013580083847045898, "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": "2022-09-26T18:30:57.803202Z", "completed_at": "2022-09-26T18:30:57.806630Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.811006Z", "completed_at": "2022-09-26T18:30:57.811009Z"}], "thread_id": "Thread-4", "execution_time": 0.013496875762939453, "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": "2022-09-26T18:30:57.806693Z", "completed_at": "2022-09-26T18:30:57.811565Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.812363Z", "completed_at": "2022-09-26T18:30:57.812366Z"}], "thread_id": "Thread-2", "execution_time": 0.010338068008422852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.812174Z", "completed_at": "2022-09-26T18:30:57.818984Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.821699Z", "completed_at": "2022-09-26T18:30:57.821703Z"}], "thread_id": "Thread-3", "execution_time": 0.010786056518554688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.812428Z", "completed_at": "2022-09-26T18:30:57.821338Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.821893Z", "completed_at": "2022-09-26T18:30:57.821896Z"}], "thread_id": "Thread-1", "execution_time": 0.013651847839355469, "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": "2022-09-26T18:30:57.818669Z", "completed_at": "2022-09-26T18:30:57.821827Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.825609Z", "completed_at": "2022-09-26T18:30:57.825613Z"}], "thread_id": "Thread-4", "execution_time": 0.0138092041015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.821774Z", "completed_at": "2022-09-26T18:30:57.826146Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.826883Z", "completed_at": "2022-09-26T18:30:57.826886Z"}], "thread_id": "Thread-2", "execution_time": 0.008216142654418945, "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": "2022-09-26T18:30:57.826661Z", "completed_at": "2022-09-26T18:30:57.831801Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.835440Z", "completed_at": "2022-09-26T18:30:57.835446Z"}], "thread_id": "Thread-3", "execution_time": 0.009942054748535156, "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": "2022-09-26T18:30:57.826950Z", "completed_at": "2022-09-26T18:30:57.835057Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.835632Z", "completed_at": "2022-09-26T18:30:57.835635Z"}], "thread_id": "Thread-1", "execution_time": 0.011863946914672852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.831573Z", "completed_at": "2022-09-26T18:30:57.835499Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.838336Z", "completed_at": "2022-09-26T18:30:57.838340Z"}], "thread_id": "Thread-4", "execution_time": 0.012038230895996094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.835561Z", "completed_at": "2022-09-26T18:30:57.838874Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.839552Z", "completed_at": "2022-09-26T18:30:57.839555Z"}], "thread_id": "Thread-2", "execution_time": 0.00710296630859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.839365Z", "completed_at": "2022-09-26T18:30:57.846985Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.847610Z", "completed_at": "2022-09-26T18:30:57.847615Z"}], "thread_id": "Thread-3", "execution_time": 0.009378194808959961, "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": "2022-09-26T18:30:57.839618Z", "completed_at": "2022-09-26T18:30:57.847234Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.847752Z", "completed_at": "2022-09-26T18:30:57.847754Z"}], "thread_id": "Thread-1", "execution_time": 0.012139081954956055, "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": "2022-09-26T18:30:57.844356Z", "completed_at": "2022-09-26T18:30:57.847541Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.851202Z", "completed_at": "2022-09-26T18:30:57.851205Z"}], "thread_id": "Thread-4", "execution_time": 0.012179851531982422, "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": "2022-09-26T18:30:57.847686Z", "completed_at": "2022-09-26T18:30:57.851847Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.852514Z", "completed_at": "2022-09-26T18:30:57.852517Z"}], "thread_id": "Thread-2", "execution_time": 0.008655071258544922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.852448Z", "completed_at": "2022-09-26T18:30:57.861490Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.862125Z", "completed_at": "2022-09-26T18:30:57.862130Z"}], "thread_id": "Thread-3", "execution_time": 0.010750055313110352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.852581Z", "completed_at": "2022-09-26T18:30:57.861758Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.862326Z", "completed_at": "2022-09-26T18:30:57.862329Z"}], "thread_id": "Thread-1", "execution_time": 0.01309514045715332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.858845Z", "completed_at": "2022-09-26T18:30:57.861980Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.864809Z", "completed_at": "2022-09-26T18:30:57.864815Z"}], "thread_id": "Thread-4", "execution_time": 0.01306915283203125, "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": "2022-09-26T18:30:57.862194Z", "completed_at": "2022-09-26T18:30:57.865792Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.866532Z", "completed_at": "2022-09-26T18:30:57.866536Z"}], "thread_id": "Thread-2", "execution_time": 0.00810384750366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.866464Z", "completed_at": "2022-09-26T18:30:57.876481Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.877039Z", "completed_at": "2022-09-26T18:30:57.877047Z"}], "thread_id": "Thread-3", "execution_time": 0.014496803283691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.866662Z", "completed_at": "2022-09-26T18:30:57.876686Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.880009Z", "completed_at": "2022-09-26T18:30:57.880013Z"}], "thread_id": "Thread-1", "execution_time": 0.014497041702270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.869812Z", "completed_at": "2022-09-26T18:30:57.876905Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.880321Z", "completed_at": "2022-09-26T18:30:57.880323Z"}], "thread_id": "Thread-4", "execution_time": 0.014549016952514648, "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": "2022-09-26T18:30:57.876846Z", "completed_at": "2022-09-26T18:30:57.880564Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.881490Z", "completed_at": "2022-09-26T18:30:57.881493Z"}], "thread_id": "Thread-2", "execution_time": 0.005525112152099609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.881946Z", "completed_at": "2022-09-26T18:30:57.890177Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.892656Z", "completed_at": "2022-09-26T18:30:57.892662Z"}], "thread_id": "Thread-3", "execution_time": 0.011868953704833984, "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": "2022-09-26T18:30:57.882072Z", "completed_at": "2022-09-26T18:30:57.890271Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.892736Z", "completed_at": "2022-09-26T18:30:57.892739Z"}], "thread_id": "Thread-1", "execution_time": 0.01184701919555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.884571Z", "completed_at": "2022-09-26T18:30:57.890574Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.893332Z", "completed_at": "2022-09-26T18:30:57.893335Z"}], "thread_id": "Thread-4", "execution_time": 0.012150049209594727, "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": "2022-09-26T18:30:57.890352Z", "completed_at": "2022-09-26T18:30:57.893388Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.894518Z", "completed_at": "2022-09-26T18:30:57.894522Z"}], "thread_id": "Thread-2", "execution_time": 0.008100748062133789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.895053Z", "completed_at": "2022-09-26T18:30:57.902207Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.904961Z", "completed_at": "2022-09-26T18:30:57.904968Z"}], "thread_id": "Thread-3", "execution_time": 0.011362075805664062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.895120Z", "completed_at": "2022-09-26T18:30:57.902262Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.905054Z", "completed_at": "2022-09-26T18:30:57.905058Z"}], "thread_id": "Thread-1", "execution_time": 0.0113372802734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.899624Z", "completed_at": "2022-09-26T18:30:57.902611Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.905700Z", "completed_at": "2022-09-26T18:30:57.905703Z"}], "thread_id": "Thread-4", "execution_time": 0.011435985565185547, "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": "2022-09-26T18:30:57.902366Z", "completed_at": "2022-09-26T18:30:57.905757Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.906733Z", "completed_at": "2022-09-26T18:30:57.906736Z"}], "thread_id": "Thread-2", "execution_time": 0.007421016693115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.907227Z", "completed_at": "2022-09-26T18:30:57.946484Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.947027Z", "completed_at": "2022-09-26T18:30:57.947035Z"}], "thread_id": "Thread-3", "execution_time": 0.04103589057922363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.907319Z", "completed_at": "2022-09-26T18:30:57.946568Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.947182Z", "completed_at": "2022-09-26T18:30:57.947184Z"}], "thread_id": "Thread-1", "execution_time": 0.041219234466552734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.928433Z", "completed_at": "2022-09-26T18:30:57.946816Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.947580Z", "completed_at": "2022-09-26T18:30:57.947584Z"}], "thread_id": "Thread-4", "execution_time": 0.04109907150268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.940760Z", "completed_at": "2022-09-26T18:30:57.946961Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.947836Z", "completed_at": "2022-09-26T18:30:57.947839Z"}], "thread_id": "Thread-2", "execution_time": 0.019778728485107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.949181Z", "completed_at": "2022-09-26T18:30:57.959918Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:57.960064Z", "completed_at": "2022-09-26T18:30:57.960069Z"}], "thread_id": "Thread-4", "execution_time": 0.01135706901550293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:57.949113Z", "completed_at": "2022-09-26T18:30:58.382567Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:58.382872Z", "completed_at": "2022-09-26T18:30:58.382888Z"}], "thread_id": "Thread-3", "execution_time": 0.4602959156036377, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:58.410470Z", "completed_at": "2022-09-26T18:30:58.419222Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:58.419458Z", "completed_at": "2022-09-26T18:30:58.419466Z"}], "thread_id": "Thread-2", "execution_time": 0.009636878967285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:58.420635Z", "completed_at": "2022-09-26T18:30:58.429174Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:58.429374Z", "completed_at": "2022-09-26T18:30:58.429379Z"}], "thread_id": "Thread-4", "execution_time": 0.009358882904052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:58.430302Z", "completed_at": "2022-09-26T18:30:58.432940Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:58.433128Z", "completed_at": "2022-09-26T18:30:58.433133Z"}], "thread_id": "Thread-1", "execution_time": 0.0032792091369628906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:58.435281Z", "completed_at": "2022-09-26T18:30:58.443009Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:58.443654Z", "completed_at": "2022-09-26T18:30:58.443659Z"}], "thread_id": "Thread-4", "execution_time": 0.009768962860107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:58.435365Z", "completed_at": "2022-09-26T18:30:58.443088Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:58.443737Z", "completed_at": "2022-09-26T18:30:58.443741Z"}], "thread_id": "Thread-2", "execution_time": 0.009807109832763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:58.435195Z", "completed_at": "2022-09-26T18:30:58.443152Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:58.443817Z", "completed_at": "2022-09-26T18:30:58.443820Z"}], "thread_id": "Thread-3", "execution_time": 0.01049184799194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T18:30:58.435449Z", "completed_at": "2022-09-26T18:30:58.443223Z"}, {"name": "execute", "started_at": "2022-09-26T18:30:58.443910Z", "completed_at": "2022-09-26T18:30:58.443915Z"}], "thread_id": "Thread-1", "execution_time": 0.011085987091064453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}], "elapsed_time": 5.649698972702026, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/joseph.markiewicz/.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 diff --git a/integration_tests/.gitignore b/integration_tests/.gitignore index 99de336a..4da59f21 100644 --- a/integration_tests/.gitignore +++ b/integration_tests/.gitignore @@ -1,3 +1,4 @@ target/ dbt_modules/ +dbt_packages/ logs/ \ No newline at end of file diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index f872b671..04d1aa16 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -16,7 +16,7 @@ integration_tests: pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" port: 5439 - schema: quickbooks_source_integration_tests + schema: quickbooks_integrations_tests threads: 8 postgres: type: postgres @@ -25,14 +25,14 @@ integration_tests: pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" port: 5432 - schema: quickbooks_source_integration_tests + schema: quickbooks_integrations_tests threads: 8 bigquery: type: bigquery method: service-account keyfile: "{{ env_var('GCLOUD_SERVICE_KEY_PATH') }}" project: 'dbt-package-testing' - schema: quickbooks_source_integration_tests + schema: quickbooks_integrations_tests threads: 8 snowflake: type: snowflake @@ -42,5 +42,5 @@ integration_tests: role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" - schema: quickbooks_source_integration_tests_update + schema: quickbooks_integrations_tests threads: 8 \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 7dd0afc5..fea50a29 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'quickbooks_integration_tests' -version: '0.5.2' +version: '0.5.3' profile: 'integration_tests' config-version: 2 @@ -18,46 +18,8 @@ models: tmp: +materialized: view -vars: - quickbooks: - using_purchase_order: True - account: "{{ ref('stg_quickbooks__account') }}" - address: "{{ ref('stg_quickbooks__address') }}" - bill_line: "{{ ref('stg_quickbooks__bill_line') }}" - bill_linked_txn: "{{ ref('stg_quickbooks__bill_linked_txn') }}" - bill_payment_line: "{{ ref('stg_quickbooks__bill_payment_line') }}" - bill_payment: "{{ ref('stg_quickbooks__bill_payment') }}" - bill: "{{ ref('stg_quickbooks__bill') }}" - bundle_item: "{{ ref('stg_quickbooks__bundle_item') }}" - bundle: "{{ ref('stg_quickbooks__bundle') }}" - credit_memo_line: "{{ ref('stg_quickbooks__credit_memo_line') }}" - credit_memo: "{{ ref('stg_quickbooks__credit_memo') }}" - customer: "{{ ref('stg_quickbooks__customer') }}" - department: "{{ ref('stg_quickbooks__department') }}" - deposit_line: "{{ ref('stg_quickbooks__deposit_line') }}" - deposit: "{{ ref('stg_quickbooks__deposit') }}" - estimate: "{{ ref('stg_quickbooks__estimate') }}" - estimate_line: "{{ ref('stg_quickbooks__estimate_line') }}" - invoice_line: "{{ ref('stg_quickbooks__invoice_line') }}" - invoice_line_bundle: "{{ ref('stg_quickbooks__invoice_line_bundle') }}" - invoice_linked_txn: "{{ ref('stg_quickbooks__invoice_linked_txn') }}" - invoice: "{{ ref('stg_quickbooks__invoice') }}" - item: "{{ ref('stg_quickbooks__item') }}" - journal_entry_line: "{{ ref('stg_quickbooks__journal_entry_line') }}" - journal_entry: "{{ ref('stg_quickbooks__journal_entry') }}" - payment_line: "{{ ref('stg_quickbooks__payment_line') }}" - payment: "{{ ref('stg_quickbooks__payment') }}" - purchase_line: "{{ ref('stg_quickbooks__purchase_line') }}" - purchase: "{{ ref('stg_quickbooks__purchase') }}" - refund_receipt_line: "{{ ref('stg_quickbooks__refund_receipt_line') }}" - refund_receipt: "{{ ref('stg_quickbooks__refund_receipt') }}" - sales_receipt_line: "{{ ref('stg_quickbooks__sales_receipt_line') }}" - sales_receipt: "{{ ref('stg_quickbooks__sales_receipt') }}" - transfer: "{{ ref('stg_quickbooks__transfer') }}" - vendor_credit_line: "{{ ref('stg_quickbooks__vendor_credit_line') }}" - vendor_credit: "{{ ref('stg_quickbooks__vendor_credit') }}" - vendor: "{{ ref('stg_quickbooks__vendor') }}" - +vars: + quickbooks_schema: quickbooks_source_integrations_tests quickbooks_source: account: "{{ ref('account_data') }}" address: "{{ ref('address_data') }}" diff --git a/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql b/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql index 9d8c66c3..8352b5cf 100644 --- a/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql +++ b/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql @@ -27,6 +27,7 @@ ap_accounts as ( where account_type = 'Accounts Payable' and is_active + and not is_sub_account ), bill_payment_join as ( diff --git a/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql b/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql index 293dcfc9..853023f0 100644 --- a/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql +++ b/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql @@ -32,6 +32,7 @@ df_accounts as ( where account_type = 'Accounts Receivable' and is_active + and not is_sub_account ), credit_memo_join as ( diff --git a/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql b/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql index e9401acf..c9543c11 100644 --- a/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql +++ b/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql @@ -28,6 +28,7 @@ uf_accounts as ( where account_sub_type = 'UndepositedFunds' and is_active + and not is_sub_account ), deposit_join as ( diff --git a/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql b/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql index 368398a7..28e23fa3 100644 --- a/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql +++ b/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql @@ -27,6 +27,7 @@ ar_accounts as ( where account_type = 'Accounts Receivable' and is_active + and not is_sub_account ), payment_join as (