diff --git a/README.md b/README.md index ea9ab00..de42fb4 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,17 @@ vars: quickbooks_schema: your_schema_name ``` +### Changing the Build Schema +By default this package will build the QuickBooks staging models within a schema titled ( + `_quickbooks_staging`) in your target database. If this is not where you would like you QuickBooks staging data to be written to, add the following configuration to your `dbt_project.yml` file: + +```yml +# dbt_project.yml + +... +models: + quickbooks_source: + +schema: my_new_schema_name +``` ### Disabling models This package takes into consideration that not every QuickBooks account utilizes the same transactional tables, and allows you to disable the corresponding functionality. By default, most variables' values are assumed to be `true` (with exception of purchase orders). Add variables for only the tables you want to disable or enable respectively: @@ -45,7 +56,7 @@ This package takes into consideration that not every QuickBooks account utilizes ... vars: quickbooks_source: - using_bill: false #disable if you don't have bils or bill payments in QuickBooks + using_bill: false #disable if you don't have bills or bill payments in QuickBooks using_credit_memo: false #disable if you don't have credit memos in QuickBooks using_department: false #disable if you don't have departments in QuickBooks using_deposit: false #disable if you don't have deposits in QuickBooks diff --git a/dbt_project.yml b/dbt_project.yml index beb2fa4..fb0c005 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,12 +1,13 @@ config-version: 2 name: 'quickbooks_source' -version: '0.1.2' +version: '0.2.0' require-dbt-version: [">=0.18.0", "<0.20.0"] models: quickbooks_source: + +schema: quickbooks_staging materialized: table tmp: materialized: view diff --git a/docs/catalog.json b/docs/catalog.json new file mode 100644 index 0000000..30e06e9 --- /dev/null +++ b/docs/catalog.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-03-11T16:18:36.309559Z", "invocation_id": "fd1112b1-d87b-4c9c-b6d0-769ca5bc7bf3", "env": {}}, "nodes": {"seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_order_linked_txn_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_order_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_order_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "bill_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 5, "name": "purchase_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 6, "name": "vendor_credit_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 288.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"}, "seed.quickbooks_source_integration_tests.bill_linked_txn_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_linked_txn_data", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "bill_payment_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_payment_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 320.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_source_integration_tests.purchase_order_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_order_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_order_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_order_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "INT64", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "STRING", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "FLOAT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1038.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data"}, "seed.quickbooks_source_integration_tests.bill_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_line_data", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1420.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data"}, "seed.quickbooks_source_integration_tests.credit_memo_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "credit_memo_line_data", "comment": null, "owner": null}, "columns": {"credit_memo_id": {"type": "INT64", "comment": null, "index": 1, "name": "credit_memo_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "FLOAT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 911.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data"}, "seed.quickbooks_source_integration_tests.bundle_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bundle_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "description": {"type": "STRING", "comment": null, "index": 5, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 6, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 7, "name": "name"}, "print_grouped_items": {"type": "BOOL", "comment": null, "index": 8, "name": "print_grouped_items"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 9, "name": "purchase_cost"}, "sync_token": {"type": "INT64", "comment": null, "index": 10, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 11, "name": "taxable"}, "unit_price": {"type": "INT64", "comment": null, "index": 12, "name": "unit_price"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 13, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1304.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bundle_data"}, "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "invoice_line_bundle_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 5, "name": "amount"}, "class_id": {"type": "INT64", "comment": null, "index": 6, "name": "class_id"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "discount_amount": {"type": "INT64", "comment": null, "index": 8, "name": "discount_amount"}, "discount_rate": {"type": "INT64", "comment": null, "index": 9, "name": "discount_rate"}, "invoice_line_index": {"type": "INT64", "comment": null, "index": 10, "name": "invoice_line_index"}, "item_id": {"type": "INT64", "comment": null, "index": 11, "name": "item_id"}, "line_num": {"type": "INT64", "comment": null, "index": 12, "name": "line_num"}, "quantity": {"type": "FLOAT64", "comment": null, "index": 13, "name": "quantity"}, "service_date": {"type": "INT64", "comment": null, "index": 14, "name": "service_date"}, "tax_code_id": {"type": "STRING", "comment": null, "index": 15, "name": "tax_code_id"}, "unit_price": {"type": "INT64", "comment": null, "index": 16, "name": "unit_price"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_quantity"}, "sales_item_tax_code_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_account_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1173.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_source_integration_tests.refund_receipt_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "refund_receipt_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "INT64", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "check_payment_account_number": {"type": "INT64", "comment": null, "index": 8, "name": "check_payment_account_number"}, "check_payment_bank_name": {"type": "INT64", "comment": null, "index": 9, "name": "check_payment_bank_name"}, "check_payment_check_number": {"type": "INT64", "comment": null, "index": 10, "name": "check_payment_check_number"}, "check_payment_name_on_account": {"type": "INT64", "comment": null, "index": 11, "name": "check_payment_name_on_account"}, "check_payment_status": {"type": "INT64", "comment": null, "index": 12, "name": "check_payment_status"}, "class_id": {"type": "INT64", "comment": null, "index": 13, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 14, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 17, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 18, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 19, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 20, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 21, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 22, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 23, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 24, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 25, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 26, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 27, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 28, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 29, "name": "customer_memo"}, "department_id": {"type": "INT64", "comment": null, "index": 30, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 31, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 32, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 33, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 34, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 35, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 36, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 37, "name": "payment_method_id"}, "payment_reference_number": {"type": "INT64", "comment": null, "index": 38, "name": "payment_reference_number"}, "payment_type": {"type": "INT64", "comment": null, "index": 39, "name": "payment_type"}, "print_status": {"type": "INT64", "comment": null, "index": 40, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 41, "name": "private_note"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 42, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 43, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 44, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 45, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 46, "name": "total_tax"}, "transaction_date": {"type": "INT64", "comment": null, "index": 47, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 48, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 49, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 212.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data"}, "seed.quickbooks_source_integration_tests.sales_receipt_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "sales_receipt_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "sales_receipt_id": {"type": "INT64", "comment": null, "index": 2, "name": "sales_receipt_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_source_integration_tests.item_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "item_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "asset_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "asset_account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "description": {"type": "INT64", "comment": null, "index": 6, "name": "description"}, "expense_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "expense_account_id"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 8, "name": "fully_qualified_name"}, "income_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "income_account_id"}, "inventory_start_date": {"type": "INT64", "comment": null, "index": 10, "name": "inventory_start_date"}, "level": {"type": "INT64", "comment": null, "index": 11, "name": "level"}, "name": {"type": "STRING", "comment": null, "index": 12, "name": "name"}, "parent_item_id": {"type": "INT64", "comment": null, "index": 13, "name": "parent_item_id"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 14, "name": "purchase_cost"}, "purchase_description": {"type": "INT64", "comment": null, "index": 15, "name": "purchase_description"}, "purchase_tax_code_id": {"type": "INT64", "comment": null, "index": 16, "name": "purchase_tax_code_id"}, "purchase_tax_included": {"type": "INT64", "comment": null, "index": 17, "name": "purchase_tax_included"}, "quantity_on_hand": {"type": "INT64", "comment": null, "index": 18, "name": "quantity_on_hand"}, "sales_tax_code_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_tax_code_id"}, "sales_tax_included": {"type": "INT64", "comment": null, "index": 20, "name": "sales_tax_included"}, "stock_keeping_unit": {"type": "INT64", "comment": null, "index": 21, "name": "stock_keeping_unit"}, "sub_item": {"type": "INT64", "comment": null, "index": 22, "name": "sub_item"}, "sync_token": {"type": "INT64", "comment": null, "index": 23, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 24, "name": "taxable"}, "track_quantity_on_hand": {"type": "BOOL", "comment": null, "index": 25, "name": "track_quantity_on_hand"}, "type": {"type": "STRING", "comment": null, "index": 26, "name": "type"}, "unit_price": {"type": "INT64", "comment": null, "index": 27, "name": "unit_price"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 28, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 507.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.item_data"}, "seed.quickbooks_source_integration_tests.bill_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "doc_number": {"type": "DATE", "comment": null, "index": 8, "name": "doc_number"}, "due_date": {"type": "DATE", "comment": null, "index": 9, "name": "due_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 10, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 11, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 12, "name": "home_balance"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 13, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 14, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_term_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 16, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 17, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 18, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 20, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 784.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_data"}, "seed.quickbooks_source_integration_tests.vendor_credit_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "vendor_credit_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 2, "name": "vendor_credit_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}, "private_note": {"type": "INT64", "comment": null, "index": 19, "name": "private_note"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 226.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_source_integration_tests.estimate_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "estimate_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "accepted_by": {"type": "INT64", "comment": null, "index": 4, "name": "accepted_by"}, "accepted_date": {"type": "INT64", "comment": null, "index": 5, "name": "accepted_date"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 6, "name": "apply_tax_after_discount"}, "bill_email": {"type": "STRING", "comment": null, "index": 7, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 8, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 9, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 12, "name": "custom_p_o_number"}, "custom_sales_rep": {"type": "INT64", "comment": null, "index": 13, "name": "custom_sales_rep"}, "customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 15, "name": "customer_memo"}, "delivery_type": {"type": "INT64", "comment": null, "index": 16, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 17, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 18, "name": "doc_number"}, "due_date": {"type": "INT64", "comment": null, "index": 19, "name": "due_date"}, "email_status": {"type": "STRING", "comment": null, "index": 20, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 21, "name": "exchange_rate"}, "expiration_date": {"type": "INT64", "comment": null, "index": 22, "name": "expiration_date"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 23, "name": "global_tax_calculation"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 24, "name": "home_total_amount"}, "print_status": {"type": "STRING", "comment": null, "index": 25, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 26, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 27, "name": "sales_term_id"}, "ship_date": {"type": "INT64", "comment": null, "index": 28, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 29, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 30, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 31, "name": "tax_code_id"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 32, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 33, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 34, "name": "transaction_date"}, "transaction_status": {"type": "STRING", "comment": null, "index": 35, "name": "transaction_status"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 36, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1714.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.estimate_data"}, "seed.quickbooks_source_integration_tests.refund_receipt_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "refund_receipt_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "refund_id": {"type": "INT64", "comment": null, "index": 2, "name": "refund_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 312.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_source_integration_tests.deposit_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deposit_line_data", "comment": null, "owner": null}, "columns": {"deposit_id": {"type": "INT64", "comment": null, "index": 1, "name": "deposit_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "deposit_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_account_id"}, "deposit_check_number": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_check_number"}, "deposit_class_id": {"type": "INT64", "comment": null, "index": 7, "name": "deposit_class_id"}, "deposit_customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "deposit_customer_id"}, "deposit_payment_method_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_payment_method_id"}, "deposit_tax_applicable_on": {"type": "INT64", "comment": null, "index": 10, "name": "deposit_tax_applicable_on"}, "deposit_tax_code_id": {"type": "INT64", "comment": null, "index": 11, "name": "deposit_tax_code_id"}, "deposit_transaction_type": {"type": "INT64", "comment": null, "index": 12, "name": "deposit_transaction_type"}, "description": {"type": "STRING", "comment": null, "index": 13, "name": "description"}, "detail_type": {"type": "STRING", "comment": null, "index": 14, "name": "detail_type"}, "expense_id": {"type": "INT64", "comment": null, "index": 15, "name": "expense_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 16, "name": "invoice_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 17, "name": "journal_entry_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 18, "name": "payment_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 19, "name": "purchase_id"}, "refund_receipt_id": {"type": "INT64", "comment": null, "index": 20, "name": "refund_receipt_id"}, "sales_receipt_id": {"type": "INT64", "comment": null, "index": 21, "name": "sales_receipt_id"}, "transfer_id": {"type": "INT64", "comment": null, "index": 22, "name": "transfer_id"}, "bill_id": {"type": "INT64", "comment": null, "index": 23, "name": "bill_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 24, "name": "vendor_credit_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 7.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 788.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data"}, "seed.quickbooks_source_integration_tests.purchase_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "credit": {"type": "INT64", "comment": null, "index": 6, "name": "credit"}, "currency_id": {"type": "STRING", "comment": null, "index": 7, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 10, "name": "doc_number"}, "employee_id": {"type": "INT64", "comment": null, "index": 11, "name": "employee_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 12, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 13, "name": "global_tax_calculation"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 14, "name": "payment_method_id"}, "payment_type": {"type": "STRING", "comment": null, "index": 15, "name": "payment_type"}, "print_status": {"type": "INT64", "comment": null, "index": 16, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 17, "name": "private_note"}, "remit_to_address_id": {"type": "INT64", "comment": null, "index": 18, "name": "remit_to_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 19, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 20, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 21, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 22, "name": "total_tax"}, "transaction_date": {"type": "INT64", "comment": null, "index": 23, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 24, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 25, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 26, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 572.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_data"}, "seed.quickbooks_source_integration_tests.payment_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "payment_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "payment_id": {"type": "INT64", "comment": null, "index": 2, "name": "payment_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "FLOAT64", "comment": null, "index": 4, "name": "amount"}, "check_id": {"type": "INT64", "comment": null, "index": 5, "name": "check_id"}, "credit_card_charge_id": {"type": "INT64", "comment": null, "index": 6, "name": "credit_card_charge_id"}, "credit_card_credit_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_credit_id"}, "credit_memo_id": {"type": "INT64", "comment": null, "index": 8, "name": "credit_memo_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 10, "name": "expense_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 11, "name": "invoice_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 12, "name": "journal_entry_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 440.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data"}, "seed.quickbooks_source_integration_tests.address_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "address_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "city": {"type": "STRING", "comment": null, "index": 3, "name": "city"}, "country": {"type": "STRING", "comment": null, "index": 4, "name": "country"}, "country_sub_division_code": {"type": "STRING", "comment": null, "index": 5, "name": "country_sub_division_code"}, "latitude": {"type": "INT64", "comment": null, "index": 6, "name": "latitude"}, "line_1": {"type": "STRING", "comment": null, "index": 7, "name": "line_1"}, "line_2": {"type": "STRING", "comment": null, "index": 8, "name": "line_2"}, "line_3": {"type": "INT64", "comment": null, "index": 9, "name": "line_3"}, "line_4": {"type": "INT64", "comment": null, "index": 10, "name": "line_4"}, "line_5": {"type": "INT64", "comment": null, "index": 11, "name": "line_5"}, "longitude": {"type": "INT64", "comment": null, "index": 12, "name": "longitude"}, "postal_code": {"type": "INT64", "comment": null, "index": 13, "name": "postal_code"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 116.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.address_data"}, "seed.quickbooks_source_integration_tests.vendor_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "vendor_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "INT64", "comment": null, "index": 3, "name": "account_number"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "alternate_phone": {"type": "INT64", "comment": null, "index": 5, "name": "alternate_phone"}, "balance": {"type": "INT64", "comment": null, "index": 6, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "company_name": {"type": "STRING", "comment": null, "index": 8, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "display_name": {"type": "STRING", "comment": null, "index": 11, "name": "display_name"}, "email": {"type": "STRING", "comment": null, "index": 12, "name": "email"}, "family_name": {"type": "INT64", "comment": null, "index": 13, "name": "family_name"}, "fax_number": {"type": "INT64", "comment": null, "index": 14, "name": "fax_number"}, "given_name": {"type": "INT64", "comment": null, "index": 15, "name": "given_name"}, "middle_name": {"type": "INT64", "comment": null, "index": 16, "name": "middle_name"}, "mobile_phone": {"type": "INT64", "comment": null, "index": 17, "name": "mobile_phone"}, "other_contacts": {"type": "INT64", "comment": null, "index": 18, "name": "other_contacts"}, "primary_phone": {"type": "INT64", "comment": null, "index": 19, "name": "primary_phone"}, "print_on_check_name": {"type": "STRING", "comment": null, "index": 20, "name": "print_on_check_name"}, "suffix": {"type": "INT64", "comment": null, "index": 21, "name": "suffix"}, "sync_token": {"type": "INT64", "comment": null, "index": 22, "name": "sync_token"}, "tax_identifier": {"type": "INT64", "comment": null, "index": 23, "name": "tax_identifier"}, "term_id": {"type": "INT64", "comment": null, "index": 24, "name": "term_id"}, "title": {"type": "INT64", "comment": null, "index": 25, "name": "title"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 26, "name": "updated_at"}, "vendor_1099": {"type": "BOOL", "comment": null, "index": 27, "name": "vendor_1099"}, "web_url": {"type": "INT64", "comment": null, "index": 28, "name": "web_url"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1510.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_data"}, "seed.quickbooks_source_integration_tests.purchase_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1420.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data"}, "seed.quickbooks_source_integration_tests.account_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "account_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "INT64", "comment": null, "index": 3, "name": "account_number"}, "account_sub_type": {"type": "STRING", "comment": null, "index": 4, "name": "account_sub_type"}, "account_type": {"type": "STRING", "comment": null, "index": 5, "name": "account_type"}, "active": {"type": "BOOL", "comment": null, "index": 6, "name": "active"}, "balance": {"type": "INT64", "comment": null, "index": 7, "name": "balance"}, "balance_with_sub_accounts": {"type": "INT64", "comment": null, "index": 8, "name": "balance_with_sub_accounts"}, "classification": {"type": "STRING", "comment": null, "index": 9, "name": "classification"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "description": {"type": "INT64", "comment": null, "index": 12, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 13, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 14, "name": "name"}, "parent_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "parent_account_id"}, "sub_account": {"type": "BOOL", "comment": null, "index": 16, "name": "sub_account"}, "sync_token": {"type": "INT64", "comment": null, "index": 17, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 18, "name": "tax_code_id"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1833.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.account_data"}, "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "invoice_linked_txn_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "charge_credit_id": {"type": "INT64", "comment": null, "index": 4, "name": "charge_credit_id"}, "estimate_id": {"type": "INT64", "comment": null, "index": 5, "name": "estimate_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 6, "name": "payment_id"}, "reimburse_charge_id": {"type": "INT64", "comment": null, "index": 7, "name": "reimburse_charge_id"}, "statement_charge_id": {"type": "INT64", "comment": null, "index": 8, "name": "statement_charge_id"}, "time_activity_id": {"type": "INT64", "comment": null, "index": 9, "name": "time_activity_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 448.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_source_integration_tests.journal_entry_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "journal_entry_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "adjustment": {"type": "BOOL", "comment": null, "index": 4, "name": "adjustment"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "doc_number": {"type": "STRING", "comment": null, "index": 7, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 8, "name": "exchange_rate"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 9, "name": "home_total_amount"}, "private_note": {"type": "STRING", "comment": null, "index": 10, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 11, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 12, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 13, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 14, "name": "total_tax"}, "transaction_date": {"type": "DATE", "comment": null, "index": 15, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1217.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data"}, "seed.quickbooks_source_integration_tests.purchase_order_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_order_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "class_id": {"type": "INT64", "comment": null, "index": 4, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "custom_customer_type": {"type": "STRING", "comment": null, "index": 7, "name": "custom_customer_type"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 8, "name": "custom_p_o_number"}, "doc_number": {"type": "INT64", "comment": null, "index": 9, "name": "doc_number"}, "due_date": {"type": "INT64", "comment": null, "index": 10, "name": "due_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 12, "name": "global_tax_calculation"}, "memo": {"type": "STRING", "comment": null, "index": 13, "name": "memo"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 14, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 15, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 17, "name": "shipping_address_id"}, "status": {"type": "STRING", "comment": null, "index": 18, "name": "status"}, "sync_token": {"type": "INT64", "comment": null, "index": 19, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 20, "name": "tax_code_id"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 21, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 22, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 23, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 24, "name": "updated_at"}, "vendor_address_id": {"type": "INT64", "comment": null, "index": 25, "name": "vendor_address_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 26, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2042.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data"}, "seed.quickbooks_source_integration_tests.bill_payment_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_payment_line_data", "comment": null, "owner": null}, "columns": {"bill_payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_payment_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bill_id": {"type": "INT64", "comment": null, "index": 5, "name": "bill_id"}, "check_id": {"type": "INT64", "comment": null, "index": 6, "name": "check_id"}, "credit_card_charge_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_charge_id"}, "credit_card_credit_id": {"type": "INT64", "comment": null, "index": 8, "name": "credit_card_credit_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 10, "name": "expense_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 11, "name": "journal_entry_id"}, "linked_bill_payment_id": {"type": "INT64", "comment": null, "index": 12, "name": "linked_bill_payment_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 13, "name": "vendor_credit_id"}, "bill_payment_credit_card_id": {"type": "INT64", "comment": null, "index": 14, "name": "bill_payment_credit_card_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data"}, "seed.quickbooks_source_integration_tests.department_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "department_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 5, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "parent_department_id": {"type": "INT64", "comment": null, "index": 7, "name": "parent_department_id"}, "sub_department": {"type": "BOOL", "comment": null, "index": 8, "name": "sub_department"}, "sync_token": {"type": "INT64", "comment": null, "index": 9, "name": "sync_token"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 660.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.department_data"}, "seed.quickbooks_source_integration_tests.vendor_credit_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "vendor_credit_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 8, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 9, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 10, "name": "global_tax_calculation"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 11, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 12, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 13, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 14, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 15, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 17, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 190.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data"}, "seed.quickbooks_source_integration_tests.journal_entry_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "journal_entry_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 2, "name": "journal_entry_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "amount": {"type": "INT64", "comment": null, "index": 5, "name": "amount"}, "billable_status": {"type": "INT64", "comment": null, "index": 6, "name": "billable_status"}, "class_id": {"type": "INT64", "comment": null, "index": 7, "name": "class_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "description": {"type": "STRING", "comment": null, "index": 10, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 11, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 12, "name": "description_tax_code_id"}, "employee_id": {"type": "INT64", "comment": null, "index": 13, "name": "employee_id"}, "posting_type": {"type": "STRING", "comment": null, "index": 14, "name": "posting_type"}, "tax_amount": {"type": "INT64", "comment": null, "index": 15, "name": "tax_amount"}, "tax_applicable_on": {"type": "INT64", "comment": null, "index": 16, "name": "tax_applicable_on"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "tax_code_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 18, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 535.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data"}, "seed.quickbooks_source_integration_tests.bundle_item_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bundle_item_data", "comment": null, "owner": null}, "columns": {"bundle_id": {"type": "INT64", "comment": null, "index": 1, "name": "bundle_id"}, "item_id": {"type": "INT64", "comment": null, "index": 2, "name": "item_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "item_quantity": {"type": "INT64", "comment": null, "index": 4, "name": "item_quantity"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 416.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data"}, "seed.quickbooks_source_integration_tests.bill_payment_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_payment_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "check_bank_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "check_bank_account_id"}, "check_print_status": {"type": "STRING", "comment": null, "index": 5, "name": "check_print_status"}, "created_at": {"type": "DATETIME", "comment": null, "index": 6, "name": "created_at"}, "credit_card_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_account_id"}, "currency_id": {"type": "STRING", "comment": null, "index": 8, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 10, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "pay_type": {"type": "STRING", "comment": null, "index": 12, "name": "pay_type"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 13, "name": "payable_account_id"}, "private_note": {"type": "INT64", "comment": null, "index": 14, "name": "private_note"}, "process_bill_payment": {"type": "INT64", "comment": null, "index": 15, "name": "process_bill_payment"}, "sync_token": {"type": "INT64", "comment": null, "index": 16, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 17, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 18, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 20, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1130.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data"}, "seed.quickbooks_source_integration_tests.sales_receipt_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "sales_receipt_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "INT64", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 8, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 10, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 11, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 12, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 13, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 14, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 17, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 18, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 19, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 20, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 21, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 22, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 23, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 24, "name": "customer_memo"}, "delivery_time": {"type": "INT64", "comment": null, "index": 25, "name": "delivery_time"}, "delivery_type": {"type": "INT64", "comment": null, "index": 26, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 27, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 28, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 29, "name": "doc_number"}, "email_status": {"type": "INT64", "comment": null, "index": 30, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 31, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 32, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 33, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 34, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 35, "name": "payment_method_id"}, "payment_reference_number": {"type": "INT64", "comment": null, "index": 36, "name": "payment_reference_number"}, "print_status": {"type": "INT64", "comment": null, "index": 37, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 38, "name": "private_note"}, "ship_date": {"type": "INT64", "comment": null, "index": 39, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 40, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 41, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 42, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 43, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 44, "name": "total_tax"}, "tracking_number": {"type": "INT64", "comment": null, "index": 45, "name": "tracking_number"}, "transaction_date": {"type": "INT64", "comment": null, "index": 46, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 47, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 48, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1060.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data"}, "seed.quickbooks_source_integration_tests.deposit_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deposit_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "cash_back_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "cash_back_account_id"}, "cash_back_amount": {"type": "INT64", "comment": null, "index": 6, "name": "cash_back_amount"}, "cash_back_memo": {"type": "INT64", "comment": null, "index": 7, "name": "cash_back_memo"}, "created_at": {"type": "DATETIME", "comment": null, "index": 8, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 9, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 10, "name": "department_id"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 11, "name": "global_tax_calculation"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 12, "name": "home_total_amount"}, "private_note": {"type": "STRING", "comment": null, "index": 13, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 14, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 15, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 16, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 17, "name": "transaction_source"}, "transaction_status": {"type": "INT64", "comment": null, "index": 18, "name": "transaction_status"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 7.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 596.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.deposit_data"}, "seed.quickbooks_source_integration_tests.customer_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "customer_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "alternate_phone_number": {"type": "INT64", "comment": null, "index": 4, "name": "alternate_phone_number"}, "ar_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "ar_account_id"}, "balance": {"type": "INT64", "comment": null, "index": 6, "name": "balance"}, "balance_with_jobs": {"type": "INT64", "comment": null, "index": 7, "name": "balance_with_jobs"}, "bill_address_id": {"type": "INT64", "comment": null, "index": 8, "name": "bill_address_id"}, "bill_with_parent": {"type": "BOOL", "comment": null, "index": 9, "name": "bill_with_parent"}, "company_name": {"type": "STRING", "comment": null, "index": 10, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 11, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 12, "name": "currency_id"}, "default_tax_code_id": {"type": "INT64", "comment": null, "index": 13, "name": "default_tax_code_id"}, "display_name": {"type": "STRING", "comment": null, "index": 14, "name": "display_name"}, "email": {"type": "STRING", "comment": null, "index": 15, "name": "email"}, "family_name": {"type": "STRING", "comment": null, "index": 16, "name": "family_name"}, "fax_number": {"type": "INT64", "comment": null, "index": 17, "name": "fax_number"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 18, "name": "fully_qualified_name"}, "given_name": {"type": "STRING", "comment": null, "index": 19, "name": "given_name"}, "job": {"type": "BOOL", "comment": null, "index": 20, "name": "job"}, "level": {"type": "INT64", "comment": null, "index": 21, "name": "level"}, "middle_name": {"type": "INT64", "comment": null, "index": 22, "name": "middle_name"}, "mobile_number": {"type": "INT64", "comment": null, "index": 23, "name": "mobile_number"}, "notes": {"type": "INT64", "comment": null, "index": 24, "name": "notes"}, "open_balance_date": {"type": "INT64", "comment": null, "index": 25, "name": "open_balance_date"}, "parent_customer_id": {"type": "INT64", "comment": null, "index": 26, "name": "parent_customer_id"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 27, "name": "payment_method_id"}, "phone_number": {"type": "INT64", "comment": null, "index": 28, "name": "phone_number"}, "preferred_delivery_method": {"type": "STRING", "comment": null, "index": 29, "name": "preferred_delivery_method"}, "print_on_check_name": {"type": "STRING", "comment": null, "index": 30, "name": "print_on_check_name"}, "resale_number": {"type": "INT64", "comment": null, "index": 31, "name": "resale_number"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 32, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 33, "name": "shipping_address_id"}, "suffix": {"type": "INT64", "comment": null, "index": 34, "name": "suffix"}, "sync_token": {"type": "INT64", "comment": null, "index": 35, "name": "sync_token"}, "tax_exemption_reason_id": {"type": "INT64", "comment": null, "index": 36, "name": "tax_exemption_reason_id"}, "taxable": {"type": "BOOL", "comment": null, "index": 37, "name": "taxable"}, "title": {"type": "INT64", "comment": null, "index": 38, "name": "title"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 39, "name": "updated_at"}, "website": {"type": "INT64", "comment": null, "index": 40, "name": "website"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1001.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.customer_data"}, "seed.quickbooks_source_integration_tests.invoice_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "invoice_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "FLOAT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "FLOAT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 25, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 26, "name": "quantity"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 27, "name": "tax_code_id"}, "account_id": {"type": "INT64", "comment": null, "index": 28, "name": "account_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 648.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data"}, "seed.quickbooks_source_integration_tests.transfer_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "transfer_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "from_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "from_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 7, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 8, "name": "sync_token"}, "to_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "to_account_id"}, "transaction_date": {"type": "DATE", "comment": null, "index": 10, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 11, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 214.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.transfer_data"}, "seed.quickbooks_source_integration_tests.estimate_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "estimate_line_data", "comment": null, "owner": null}, "columns": {"estimate_id": {"type": "INT64", "comment": null, "index": 1, "name": "estimate_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 25, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 26, "name": "quantity"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 27, "name": "tax_code_id"}, "account_id": {"type": "INT64", "comment": null, "index": 28, "name": "account_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 985.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data"}, "seed.quickbooks_source_integration_tests.invoice_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "invoice_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "allow_ipnpayment": {"type": "BOOL", "comment": null, "index": 4, "name": "allow_ipnpayment"}, "allow_online_achpayment": {"type": "BOOL", "comment": null, "index": 5, "name": "allow_online_achpayment"}, "allow_online_credit_card_payment": {"type": "BOOL", "comment": null, "index": 6, "name": "allow_online_credit_card_payment"}, "allow_online_payment": {"type": "BOOL", "comment": null, "index": 7, "name": "allow_online_payment"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 8, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 9, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 10, "name": "billing_address_id"}, "billing_bcc_email": {"type": "STRING", "comment": null, "index": 11, "name": "billing_bcc_email"}, "billing_cc_email": {"type": "INT64", "comment": null, "index": 12, "name": "billing_cc_email"}, "billing_email": {"type": "STRING", "comment": null, "index": 13, "name": "billing_email"}, "class_id": {"type": "INT64", "comment": null, "index": 14, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 15, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 16, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 17, "name": "custom_p_o_number"}, "custom_sales_rep": {"type": "INT64", "comment": null, "index": 18, "name": "custom_sales_rep"}, "customer_id": {"type": "INT64", "comment": null, "index": 19, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 20, "name": "customer_memo"}, "delivery_time": {"type": "DATETIME", "comment": null, "index": 21, "name": "delivery_time"}, "delivery_type": {"type": "STRING", "comment": null, "index": 22, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 23, "name": "department_id"}, "deposit": {"type": "INT64", "comment": null, "index": 24, "name": "deposit"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 25, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 26, "name": "doc_number"}, "due_date": {"type": "DATETIME", "comment": null, "index": 27, "name": "due_date"}, "email_status": {"type": "STRING", "comment": null, "index": 28, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 29, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 30, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 31, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 32, "name": "home_total_amount"}, "print_status": {"type": "STRING", "comment": null, "index": 33, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 34, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 35, "name": "sales_term_id"}, "ship_date": {"type": "INT64", "comment": null, "index": 36, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 37, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 38, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 39, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 40, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 41, "name": "total_tax"}, "tracking_number": {"type": "INT64", "comment": null, "index": 42, "name": "tracking_number"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 43, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 44, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 45, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1257.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_data"}, "seed.quickbooks_source_integration_tests.payment_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "payment_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 5, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 6, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 8, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 9, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 10, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 11, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 12, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 13, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 14, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 17, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 18, "name": "customer_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 19, "name": "deposit_to_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 20, "name": "exchange_rate"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 21, "name": "payment_method_id"}, "private_note": {"type": "STRING", "comment": null, "index": 22, "name": "private_note"}, "process_payment": {"type": "BOOL", "comment": null, "index": 23, "name": "process_payment"}, "receivable_account_id": {"type": "INT64", "comment": null, "index": 24, "name": "receivable_account_id"}, "reference_number": {"type": "INT64", "comment": null, "index": 25, "name": "reference_number"}, "sync_token": {"type": "INT64", "comment": null, "index": 26, "name": "sync_token"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 27, "name": "total_amount"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 28, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 29, "name": "transaction_source"}, "transaction_status": {"type": "INT64", "comment": null, "index": 30, "name": "transaction_status"}, "unapplied_amount": {"type": "INT64", "comment": null, "index": 31, "name": "unapplied_amount"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 32, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1143.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.payment_data"}, "seed.quickbooks_source_integration_tests.credit_memo_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "credit_memo_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 8, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 11, "name": "custom_p_o_number"}, "customer_id": {"type": "INT64", "comment": null, "index": 12, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 13, "name": "customer_memo"}, "department_id": {"type": "INT64", "comment": null, "index": 14, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 15, "name": "doc_number"}, "email_status": {"type": "STRING", "comment": null, "index": 16, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 17, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 18, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 19, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 20, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 21, "name": "payment_method_id"}, "print_status": {"type": "STRING", "comment": null, "index": 22, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 23, "name": "private_note"}, "remaining_credit": {"type": "INT64", "comment": null, "index": 24, "name": "remaining_credit"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 25, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 26, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 27, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 28, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 29, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 30, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 31, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1764.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__estimate_line_tmp", "comment": null, "owner": null}, "columns": {"estimate_id": {"type": "INT64", "comment": null, "index": 1, "name": "estimate_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 25, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 26, "name": "quantity"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 27, "name": "tax_code_id"}, "account_id": {"type": "INT64", "comment": null, "index": 28, "name": "account_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__payment_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "payment_id": {"type": "INT64", "comment": null, "index": 2, "name": "payment_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "FLOAT64", "comment": null, "index": 4, "name": "amount"}, "check_id": {"type": "INT64", "comment": null, "index": 5, "name": "check_id"}, "credit_card_charge_id": {"type": "INT64", "comment": null, "index": 6, "name": "credit_card_charge_id"}, "credit_card_credit_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_credit_id"}, "credit_memo_id": {"type": "INT64", "comment": null, "index": 8, "name": "credit_memo_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 10, "name": "expense_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 11, "name": "invoice_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 12, "name": "journal_entry_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "class_id": {"type": "INT64", "comment": null, "index": 4, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "custom_customer_type": {"type": "STRING", "comment": null, "index": 7, "name": "custom_customer_type"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 8, "name": "custom_p_o_number"}, "doc_number": {"type": "INT64", "comment": null, "index": 9, "name": "doc_number"}, "due_date": {"type": "INT64", "comment": null, "index": 10, "name": "due_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 12, "name": "global_tax_calculation"}, "memo": {"type": "STRING", "comment": null, "index": 13, "name": "memo"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 14, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 15, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 17, "name": "shipping_address_id"}, "status": {"type": "STRING", "comment": null, "index": 18, "name": "status"}, "sync_token": {"type": "INT64", "comment": null, "index": 19, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 20, "name": "tax_code_id"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 21, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 22, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 23, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 24, "name": "updated_at"}, "vendor_address_id": {"type": "INT64", "comment": null, "index": 25, "name": "vendor_address_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 26, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_payment_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "check_bank_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "check_bank_account_id"}, "check_print_status": {"type": "STRING", "comment": null, "index": 5, "name": "check_print_status"}, "created_at": {"type": "DATETIME", "comment": null, "index": 6, "name": "created_at"}, "credit_card_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_account_id"}, "currency_id": {"type": "STRING", "comment": null, "index": 8, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 10, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "pay_type": {"type": "STRING", "comment": null, "index": 12, "name": "pay_type"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 13, "name": "payable_account_id"}, "private_note": {"type": "INT64", "comment": null, "index": 14, "name": "private_note"}, "process_bill_payment": {"type": "INT64", "comment": null, "index": 15, "name": "process_bill_payment"}, "sync_token": {"type": "INT64", "comment": null, "index": 16, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 17, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 18, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 20, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__sales_receipt_line", "comment": null, "owner": null}, "columns": {"sales_receipt_id": {"type": "INT64", "comment": null, "index": 1, "name": "sales_receipt_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "discount_account_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_account_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 7, "name": "sales_item_item_id"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 8, "name": "sales_item_tax_code_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 9, "name": "sales_item_quantity"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 10, "name": "sales_item_unit_price"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1240.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__credit_memo_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 8, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 11, "name": "custom_p_o_number"}, "customer_id": {"type": "INT64", "comment": null, "index": 12, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 13, "name": "customer_memo"}, "department_id": {"type": "INT64", "comment": null, "index": 14, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 15, "name": "doc_number"}, "email_status": {"type": "STRING", "comment": null, "index": 16, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 17, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 18, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 19, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 20, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 21, "name": "payment_method_id"}, "print_status": {"type": "STRING", "comment": null, "index": 22, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 23, "name": "private_note"}, "remaining_credit": {"type": "INT64", "comment": null, "index": 24, "name": "remaining_credit"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 25, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 26, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 27, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 28, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 29, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 30, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 31, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_payment_line", "comment": null, "owner": null}, "columns": {"bill_payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_payment_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "bill_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 6, "name": "expense_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 7, "name": "journal_entry_id"}, "linked_bill_payment_id": {"type": "INT64", "comment": null, "index": 8, "name": "linked_bill_payment_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 9, "name": "vendor_credit_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 320.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_linked_txn", "comment": null, "owner": null}, "columns": {"invoice_id": {"type": "INT64", "comment": null, "index": 1, "name": "invoice_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 2, "name": "payment_id"}, "estimate_id": {"type": "INT64", "comment": null, "index": 3, "name": "estimate_id"}, "index": {"type": "INT64", "comment": null, "index": 4, "name": "index"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 336.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "INT64", "comment": null, "index": 3, "name": "account_number"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "alternate_phone": {"type": "INT64", "comment": null, "index": 5, "name": "alternate_phone"}, "balance": {"type": "INT64", "comment": null, "index": 6, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "company_name": {"type": "STRING", "comment": null, "index": 8, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "display_name": {"type": "STRING", "comment": null, "index": 11, "name": "display_name"}, "email": {"type": "STRING", "comment": null, "index": 12, "name": "email"}, "family_name": {"type": "INT64", "comment": null, "index": 13, "name": "family_name"}, "fax_number": {"type": "INT64", "comment": null, "index": 14, "name": "fax_number"}, "given_name": {"type": "INT64", "comment": null, "index": 15, "name": "given_name"}, "middle_name": {"type": "INT64", "comment": null, "index": 16, "name": "middle_name"}, "mobile_phone": {"type": "INT64", "comment": null, "index": 17, "name": "mobile_phone"}, "other_contacts": {"type": "INT64", "comment": null, "index": 18, "name": "other_contacts"}, "primary_phone": {"type": "INT64", "comment": null, "index": 19, "name": "primary_phone"}, "print_on_check_name": {"type": "STRING", "comment": null, "index": 20, "name": "print_on_check_name"}, "suffix": {"type": "INT64", "comment": null, "index": 21, "name": "suffix"}, "sync_token": {"type": "INT64", "comment": null, "index": 22, "name": "sync_token"}, "tax_identifier": {"type": "INT64", "comment": null, "index": 23, "name": "tax_identifier"}, "term_id": {"type": "INT64", "comment": null, "index": 24, "name": "term_id"}, "title": {"type": "INT64", "comment": null, "index": 25, "name": "title"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 26, "name": "updated_at"}, "vendor_1099": {"type": "BOOL", "comment": null, "index": 27, "name": "vendor_1099"}, "web_url": {"type": "INT64", "comment": null, "index": 28, "name": "web_url"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_order_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_order_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "INT64", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "STRING", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "FLOAT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__deposit_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "cash_back_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "cash_back_account_id"}, "cash_back_amount": {"type": "INT64", "comment": null, "index": 6, "name": "cash_back_amount"}, "cash_back_memo": {"type": "INT64", "comment": null, "index": 7, "name": "cash_back_memo"}, "created_at": {"type": "DATETIME", "comment": null, "index": 8, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 9, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 10, "name": "department_id"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 11, "name": "global_tax_calculation"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 12, "name": "home_total_amount"}, "private_note": {"type": "STRING", "comment": null, "index": 13, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 14, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 15, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 16, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 17, "name": "transaction_source"}, "transaction_status": {"type": "INT64", "comment": null, "index": 18, "name": "transaction_status"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_credit_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 2, "name": "vendor_credit_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}, "private_note": {"type": "INT64", "comment": null, "index": 19, "name": "private_note"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_credit_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 8, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 9, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 10, "name": "global_tax_calculation"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 11, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 12, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 13, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 14, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 15, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 17, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_linked_txn", "comment": null, "owner": null}, "columns": {"purchase_order_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_order_id"}, "bill_id": {"type": "INT64", "comment": null, "index": 2, "name": "bill_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 3, "name": "purchase_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 4, "name": "vendor_credit_id"}, "index": {"type": "INT64", "comment": null, "index": 5, "name": "index"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 216.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_payment", "comment": null, "owner": null}, "columns": {"bill_payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_payment_id"}, "check_bank_account_id": {"type": "INT64", "comment": null, "index": 2, "name": "check_bank_account_id"}, "check_print_status": {"type": "STRING", "comment": null, "index": 3, "name": "check_print_status"}, "credit_card_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "credit_card_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 5, "name": "exchange_rate"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "pay_type": {"type": "STRING", "comment": null, "index": 8, "name": "pay_type"}, "total_amount": {"type": "INT64", "comment": null, "index": 9, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 10, "name": "transaction_date"}, "vendor_id": {"type": "INT64", "comment": null, "index": 11, "name": "vendor_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 12, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 570.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__credit_memo", "comment": null, "owner": null}, "columns": {"credit_memo_id": {"type": "INT64", "comment": null, "index": 1, "name": "credit_memo_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "class_id": {"type": "INT64", "comment": null, "index": 6, "name": "class_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 9, "name": "exchange_rate"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 10, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 11, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 649.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__credit_memo_line", "comment": null, "owner": null}, "columns": {"credit_memo_id": {"type": "INT64", "comment": null, "index": 1, "name": "credit_memo_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "sales_item_account_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 5, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 6, "name": "sales_item_quantity"}, "sales_item_unit_price": {"type": "FLOAT64", "comment": null, "index": 7, "name": "sales_item_unit_price"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 8, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 9, "name": "discount_class_id"}, "description": {"type": "STRING", "comment": null, "index": 10, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 794.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__transfer", "comment": null, "owner": null}, "columns": {"transfer_id": {"type": "INT64", "comment": null, "index": 1, "name": "transfer_id"}, "amount": {"type": "INT64", "comment": null, "index": 2, "name": "amount"}, "from_account_id": {"type": "INT64", "comment": null, "index": 3, "name": "from_account_id"}, "to_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "to_account_id"}, "transaction_date": {"type": "DATE", "comment": null, "index": 5, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 6, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 82.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_credit", "comment": null, "owner": null}, "columns": {"vendor_credit_id": {"type": "INT64", "comment": null, "index": 1, "name": "vendor_credit_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 6, "name": "exchange_rate"}, "created_at": {"type": "DATETIME", "comment": null, "index": 7, "name": "created_at"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 8, "name": "payable_account_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "private_note": {"type": "STRING", "comment": null, "index": 10, "name": "private_note"}, "transaction_date": {"type": "DATE", "comment": null, "index": 11, "name": "transaction_date"}, "vendor_id": {"type": "INT64", "comment": null, "index": 12, "name": "vendor_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 142.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__account", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "comment": null, "index": 1, "name": "account_id"}, "account_number": {"type": "STRING", "comment": null, "index": 2, "name": "account_number"}, "is_sub_account": {"type": "BOOL", "comment": null, "index": 3, "name": "is_sub_account"}, "parent_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "parent_account_id"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "account_type": {"type": "STRING", "comment": null, "index": 6, "name": "account_type"}, "account_sub_type": {"type": "STRING", "comment": null, "index": 7, "name": "account_sub_type"}, "classification": {"type": "STRING", "comment": null, "index": 8, "name": "classification"}, "balance": {"type": "INT64", "comment": null, "index": 9, "name": "balance"}, "balance_with_sub_accounts": {"type": "INT64", "comment": null, "index": 10, "name": "balance_with_sub_accounts"}, "is_active": {"type": "BOOL", "comment": null, "index": 11, "name": "is_active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 12, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 13, "name": "currency_id"}, "description": {"type": "INT64", "comment": null, "index": 14, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 15, "name": "fully_qualified_name"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1671.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__journal_entry_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "adjustment": {"type": "BOOL", "comment": null, "index": 4, "name": "adjustment"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "doc_number": {"type": "STRING", "comment": null, "index": 7, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 8, "name": "exchange_rate"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 9, "name": "home_total_amount"}, "private_note": {"type": "STRING", "comment": null, "index": 10, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 11, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 12, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 13, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 14, "name": "total_tax"}, "transaction_date": {"type": "DATE", "comment": null, "index": 15, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__deposit", "comment": null, "owner": null}, "columns": {"deposit_id": {"type": "INT64", "comment": null, "index": 1, "name": "deposit_id"}, "account_id": {"type": "INT64", "comment": null, "index": 2, "name": "account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 5, "name": "department_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 6, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 7, "name": "transaction_date"}, "transaction_status": {"type": "INT64", "comment": null, "index": 8, "name": "transaction_status"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 9, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 230.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_line", "comment": null, "owner": null}, "columns": {"purchase_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_expense_account_id"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_class_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_customer_id"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 7, "name": "account_expense_tax_code_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 8, "name": "item_expense_item_id"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 9, "name": "item_expense_billable_status"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 10, "name": "item_expense_customer_id"}, "amount": {"type": "INT64", "comment": null, "index": 11, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 12, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1340.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bundle_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "description": {"type": "STRING", "comment": null, "index": 5, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 6, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 7, "name": "name"}, "print_grouped_items": {"type": "BOOL", "comment": null, "index": 8, "name": "print_grouped_items"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 9, "name": "purchase_cost"}, "sync_token": {"type": "INT64", "comment": null, "index": 10, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 11, "name": "taxable"}, "unit_price": {"type": "INT64", "comment": null, "index": 12, "name": "unit_price"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 13, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_line", "comment": null, "owner": null}, "columns": {"purchase_order_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_order_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_expense_account_id"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_class_id"}, "account_expense_billable_status": {"type": "INT64", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_customer_id"}, "account_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_tax_code_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 8, "name": "item_expense_item_id"}, "item_expense_billable_status": {"type": "STRING", "comment": null, "index": 9, "name": "item_expense_billable_status"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 10, "name": "item_expense_customer_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 11, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 12, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 719.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__sales_receipt_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "INT64", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 8, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 10, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 11, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 12, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 13, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 14, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 17, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 18, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 19, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 20, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 21, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 22, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 23, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 24, "name": "customer_memo"}, "delivery_time": {"type": "INT64", "comment": null, "index": 25, "name": "delivery_time"}, "delivery_type": {"type": "INT64", "comment": null, "index": 26, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 27, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 28, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 29, "name": "doc_number"}, "email_status": {"type": "INT64", "comment": null, "index": 30, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 31, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 32, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 33, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 34, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 35, "name": "payment_method_id"}, "payment_reference_number": {"type": "INT64", "comment": null, "index": 36, "name": "payment_reference_number"}, "print_status": {"type": "INT64", "comment": null, "index": 37, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 38, "name": "private_note"}, "ship_date": {"type": "INT64", "comment": null, "index": 39, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 40, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 41, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 42, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 43, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 44, "name": "total_tax"}, "tracking_number": {"type": "INT64", "comment": null, "index": 45, "name": "tracking_number"}, "transaction_date": {"type": "INT64", "comment": null, "index": 46, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 47, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 48, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_credit_line", "comment": null, "owner": null}, "columns": {"vendor_credit_id": {"type": "INT64", "comment": null, "index": 1, "name": "vendor_credit_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_expense_customer_id"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 6, "name": "account_expense_tax_code_id"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 9, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 10, "name": "item_expense_quantity"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 11, "name": "item_expense_unit_price"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_class_id"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_billable_status"}, "amount": {"type": "INT64", "comment": null, "index": 14, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 15, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 210.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice", "comment": null, "owner": null}, "columns": {"invoice_id": {"type": "INT64", "comment": null, "index": 1, "name": "invoice_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 6, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "deposit_to_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 8, "name": "exchange_rate"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 9, "name": "transaction_date"}, "customer_id": {"type": "INT64", "comment": null, "index": 10, "name": "customer_id"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 11, "name": "billing_address_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 12, "name": "shipping_address_id"}, "delivery_type": {"type": "STRING", "comment": null, "index": 13, "name": "delivery_type"}, "due_date": {"type": "DATETIME", "comment": null, "index": 14, "name": "due_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 15, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 89.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__journal_entry_line", "comment": null, "owner": null}, "columns": {"journal_entry_id": {"type": "INT64", "comment": null, "index": 1, "name": "journal_entry_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_id"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "customer_id": {"type": "INT64", "comment": null, "index": 5, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 6, "name": "department_id"}, "class_id": {"type": "INT64", "comment": null, "index": 7, "name": "class_id"}, "description": {"type": "STRING", "comment": null, "index": 8, "name": "description"}, "billable_status": {"type": "INT64", "comment": null, "index": 9, "name": "billable_status"}, "posting_type": {"type": "STRING", "comment": null, "index": 10, "name": "posting_type"}, "vendor_id": {"type": "INT64", "comment": null, "index": 11, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 455.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_payment_line_tmp", "comment": null, "owner": null}, "columns": {"bill_payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_payment_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bill_id": {"type": "INT64", "comment": null, "index": 5, "name": "bill_id"}, "check_id": {"type": "INT64", "comment": null, "index": 6, "name": "check_id"}, "credit_card_charge_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_charge_id"}, "credit_card_credit_id": {"type": "INT64", "comment": null, "index": 8, "name": "credit_card_credit_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 10, "name": "expense_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 11, "name": "journal_entry_id"}, "linked_bill_payment_id": {"type": "INT64", "comment": null, "index": 12, "name": "linked_bill_payment_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 13, "name": "vendor_credit_id"}, "bill_payment_credit_card_id": {"type": "INT64", "comment": null, "index": 14, "name": "bill_payment_credit_card_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__account_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "INT64", "comment": null, "index": 3, "name": "account_number"}, "account_sub_type": {"type": "STRING", "comment": null, "index": 4, "name": "account_sub_type"}, "account_type": {"type": "STRING", "comment": null, "index": 5, "name": "account_type"}, "active": {"type": "BOOL", "comment": null, "index": 6, "name": "active"}, "balance": {"type": "INT64", "comment": null, "index": 7, "name": "balance"}, "balance_with_sub_accounts": {"type": "INT64", "comment": null, "index": 8, "name": "balance_with_sub_accounts"}, "classification": {"type": "STRING", "comment": null, "index": 9, "name": "classification"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "description": {"type": "INT64", "comment": null, "index": 12, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 13, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 14, "name": "name"}, "parent_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "parent_account_id"}, "sub_account": {"type": "BOOL", "comment": null, "index": 16, "name": "sub_account"}, "sync_token": {"type": "INT64", "comment": null, "index": 17, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 18, "name": "tax_code_id"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_order_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_order_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "bill_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 5, "name": "purchase_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 6, "name": "vendor_credit_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__journal_entry_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 2, "name": "journal_entry_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "amount": {"type": "INT64", "comment": null, "index": 5, "name": "amount"}, "billable_status": {"type": "INT64", "comment": null, "index": 6, "name": "billable_status"}, "class_id": {"type": "INT64", "comment": null, "index": 7, "name": "class_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "description": {"type": "STRING", "comment": null, "index": 10, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 11, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 12, "name": "description_tax_code_id"}, "employee_id": {"type": "INT64", "comment": null, "index": 13, "name": "employee_id"}, "posting_type": {"type": "STRING", "comment": null, "index": 14, "name": "posting_type"}, "tax_amount": {"type": "INT64", "comment": null, "index": 15, "name": "tax_amount"}, "tax_applicable_on": {"type": "INT64", "comment": null, "index": 16, "name": "tax_applicable_on"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "tax_code_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 18, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__item_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "asset_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "asset_account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "description": {"type": "INT64", "comment": null, "index": 6, "name": "description"}, "expense_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "expense_account_id"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 8, "name": "fully_qualified_name"}, "income_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "income_account_id"}, "inventory_start_date": {"type": "INT64", "comment": null, "index": 10, "name": "inventory_start_date"}, "level": {"type": "INT64", "comment": null, "index": 11, "name": "level"}, "name": {"type": "STRING", "comment": null, "index": 12, "name": "name"}, "parent_item_id": {"type": "INT64", "comment": null, "index": 13, "name": "parent_item_id"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 14, "name": "purchase_cost"}, "purchase_description": {"type": "INT64", "comment": null, "index": 15, "name": "purchase_description"}, "purchase_tax_code_id": {"type": "INT64", "comment": null, "index": 16, "name": "purchase_tax_code_id"}, "purchase_tax_included": {"type": "INT64", "comment": null, "index": 17, "name": "purchase_tax_included"}, "quantity_on_hand": {"type": "INT64", "comment": null, "index": 18, "name": "quantity_on_hand"}, "sales_tax_code_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_tax_code_id"}, "sales_tax_included": {"type": "INT64", "comment": null, "index": 20, "name": "sales_tax_included"}, "stock_keeping_unit": {"type": "INT64", "comment": null, "index": 21, "name": "stock_keeping_unit"}, "sub_item": {"type": "INT64", "comment": null, "index": 22, "name": "sub_item"}, "sync_token": {"type": "INT64", "comment": null, "index": 23, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 24, "name": "taxable"}, "track_quantity_on_hand": {"type": "BOOL", "comment": null, "index": 25, "name": "track_quantity_on_hand"}, "type": {"type": "STRING", "comment": null, "index": 26, "name": "type"}, "unit_price": {"type": "INT64", "comment": null, "index": 27, "name": "unit_price"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 28, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 5, "name": "department_id"}, "due_date_at": {"type": "DATE", "comment": null, "index": 6, "name": "due_date_at"}, "transaction_date": {"type": "DATE", "comment": null, "index": 7, "name": "transaction_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 8, "name": "exchange_rate"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "payable_account_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 10, "name": "total_amount"}, "vendor_id": {"type": "INT64", "comment": null, "index": 11, "name": "vendor_id"}, "private_note": {"type": "STRING", "comment": null, "index": 12, "name": "private_note"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 340.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__department", "comment": null, "owner": null}, "columns": {"department_id": {"type": "INT64", "comment": null, "index": 1, "name": "department_id"}, "is_active": {"type": "BOOL", "comment": null, "index": 2, "name": "is_active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "updated_at"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 5, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "is_sub_department": {"type": "BOOL", "comment": null, "index": 7, "name": "is_sub_department"}, "parent_department_id": {"type": "INT64", "comment": null, "index": 8, "name": "parent_department_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 564.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__address_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "city": {"type": "STRING", "comment": null, "index": 3, "name": "city"}, "country": {"type": "STRING", "comment": null, "index": 4, "name": "country"}, "country_sub_division_code": {"type": "STRING", "comment": null, "index": 5, "name": "country_sub_division_code"}, "latitude": {"type": "INT64", "comment": null, "index": 6, "name": "latitude"}, "line_1": {"type": "STRING", "comment": null, "index": 7, "name": "line_1"}, "line_2": {"type": "STRING", "comment": null, "index": 8, "name": "line_2"}, "line_3": {"type": "INT64", "comment": null, "index": 9, "name": "line_3"}, "line_4": {"type": "INT64", "comment": null, "index": 10, "name": "line_4"}, "line_5": {"type": "INT64", "comment": null, "index": 11, "name": "line_5"}, "longitude": {"type": "INT64", "comment": null, "index": 12, "name": "longitude"}, "postal_code": {"type": "INT64", "comment": null, "index": 13, "name": "postal_code"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_linked_txn", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "bill_payment_id": {"type": "INT64", "comment": null, "index": 3, "name": "bill_payment_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 240.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_linked_txn_tmp", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "bill_payment_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_payment_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bundle", "comment": null, "owner": null}, "columns": {"bundle_id": {"type": "INT64", "comment": null, "index": 1, "name": "bundle_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 2, "name": "created_at"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 4, "name": "fully_qualified_name"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 590.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__deposit_line_tmp", "comment": null, "owner": null}, "columns": {"deposit_id": {"type": "INT64", "comment": null, "index": 1, "name": "deposit_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "deposit_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_account_id"}, "deposit_check_number": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_check_number"}, "deposit_class_id": {"type": "INT64", "comment": null, "index": 7, "name": "deposit_class_id"}, "deposit_customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "deposit_customer_id"}, "deposit_payment_method_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_payment_method_id"}, "deposit_tax_applicable_on": {"type": "INT64", "comment": null, "index": 10, "name": "deposit_tax_applicable_on"}, "deposit_tax_code_id": {"type": "INT64", "comment": null, "index": 11, "name": "deposit_tax_code_id"}, "deposit_transaction_type": {"type": "INT64", "comment": null, "index": 12, "name": "deposit_transaction_type"}, "description": {"type": "STRING", "comment": null, "index": 13, "name": "description"}, "detail_type": {"type": "STRING", "comment": null, "index": 14, "name": "detail_type"}, "expense_id": {"type": "INT64", "comment": null, "index": 15, "name": "expense_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 16, "name": "invoice_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 17, "name": "journal_entry_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 18, "name": "payment_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 19, "name": "purchase_id"}, "refund_receipt_id": {"type": "INT64", "comment": null, "index": 20, "name": "refund_receipt_id"}, "sales_receipt_id": {"type": "INT64", "comment": null, "index": 21, "name": "sales_receipt_id"}, "transfer_id": {"type": "INT64", "comment": null, "index": 22, "name": "transfer_id"}, "bill_id": {"type": "INT64", "comment": null, "index": 23, "name": "bill_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 24, "name": "vendor_credit_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "allow_ipnpayment": {"type": "BOOL", "comment": null, "index": 4, "name": "allow_ipnpayment"}, "allow_online_achpayment": {"type": "BOOL", "comment": null, "index": 5, "name": "allow_online_achpayment"}, "allow_online_credit_card_payment": {"type": "BOOL", "comment": null, "index": 6, "name": "allow_online_credit_card_payment"}, "allow_online_payment": {"type": "BOOL", "comment": null, "index": 7, "name": "allow_online_payment"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 8, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 9, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 10, "name": "billing_address_id"}, "billing_bcc_email": {"type": "STRING", "comment": null, "index": 11, "name": "billing_bcc_email"}, "billing_cc_email": {"type": "INT64", "comment": null, "index": 12, "name": "billing_cc_email"}, "billing_email": {"type": "STRING", "comment": null, "index": 13, "name": "billing_email"}, "class_id": {"type": "INT64", "comment": null, "index": 14, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 15, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 16, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 17, "name": "custom_p_o_number"}, "custom_sales_rep": {"type": "INT64", "comment": null, "index": 18, "name": "custom_sales_rep"}, "customer_id": {"type": "INT64", "comment": null, "index": 19, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 20, "name": "customer_memo"}, "delivery_time": {"type": "DATETIME", "comment": null, "index": 21, "name": "delivery_time"}, "delivery_type": {"type": "STRING", "comment": null, "index": 22, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 23, "name": "department_id"}, "deposit": {"type": "INT64", "comment": null, "index": 24, "name": "deposit"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 25, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 26, "name": "doc_number"}, "due_date": {"type": "DATETIME", "comment": null, "index": 27, "name": "due_date"}, "email_status": {"type": "STRING", "comment": null, "index": 28, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 29, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 30, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 31, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 32, "name": "home_total_amount"}, "print_status": {"type": "STRING", "comment": null, "index": 33, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 34, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 35, "name": "sales_term_id"}, "ship_date": {"type": "INT64", "comment": null, "index": 36, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 37, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 38, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 39, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 40, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 41, "name": "total_tax"}, "tracking_number": {"type": "INT64", "comment": null, "index": 42, "name": "tracking_number"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 43, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 44, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 45, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__estimate", "comment": null, "owner": null}, "columns": {"estimate_id": {"type": "INT64", "comment": null, "index": 1, "name": "estimate_id"}, "class_id": {"type": "INT64", "comment": null, "index": 2, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 5, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 6, "name": "department_id"}, "due_date": {"type": "INT64", "comment": null, "index": 7, "name": "due_date"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 8, "name": "total_amount"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 9, "name": "transaction_date"}, "transaction_status": {"type": "STRING", "comment": null, "index": 10, "name": "transaction_status"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 11, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 560.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__journal_entry", "comment": null, "owner": null}, "columns": {"journal_entry_id": {"type": "INT64", "comment": null, "index": 1, "name": "journal_entry_id"}, "is_adjustment": {"type": "BOOL", "comment": null, "index": 2, "name": "is_adjustment"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "doc_number": {"type": "STRING", "comment": null, "index": 5, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 6, "name": "exchange_rate"}, "private_note": {"type": "STRING", "comment": null, "index": 7, "name": "private_note"}, "total_amount": {"type": "INT64", "comment": null, "index": 8, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 9, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 10, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 963.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__transfer_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "from_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "from_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 7, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 8, "name": "sync_token"}, "to_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "to_account_id"}, "transaction_date": {"type": "DATE", "comment": null, "index": 10, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 11, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__address", "comment": null, "owner": null}, "columns": {"address_id": {"type": "INT64", "comment": null, "index": 1, "name": "address_id"}, "city": {"type": "STRING", "comment": null, "index": 2, "name": "city"}, "country": {"type": "STRING", "comment": null, "index": 3, "name": "country"}, "address_1": {"type": "STRING", "comment": null, "index": 4, "name": "address_1"}, "address_2": {"type": "STRING", "comment": null, "index": 5, "name": "address_2"}, "postal_code": {"type": "INT64", "comment": null, "index": 6, "name": "postal_code"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 104.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__credit_memo_line_tmp", "comment": null, "owner": null}, "columns": {"credit_memo_id": {"type": "INT64", "comment": null, "index": 1, "name": "credit_memo_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "FLOAT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_line_bundle_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 5, "name": "amount"}, "class_id": {"type": "INT64", "comment": null, "index": 6, "name": "class_id"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "discount_amount": {"type": "INT64", "comment": null, "index": 8, "name": "discount_amount"}, "discount_rate": {"type": "INT64", "comment": null, "index": 9, "name": "discount_rate"}, "invoice_line_index": {"type": "INT64", "comment": null, "index": 10, "name": "invoice_line_index"}, "item_id": {"type": "INT64", "comment": null, "index": 11, "name": "item_id"}, "line_num": {"type": "INT64", "comment": null, "index": 12, "name": "line_num"}, "quantity": {"type": "FLOAT64", "comment": null, "index": 13, "name": "quantity"}, "service_date": {"type": "INT64", "comment": null, "index": 14, "name": "service_date"}, "tax_code_id": {"type": "STRING", "comment": null, "index": 15, "name": "tax_code_id"}, "unit_price": {"type": "INT64", "comment": null, "index": 16, "name": "unit_price"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_quantity"}, "sales_item_tax_code_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_account_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "doc_number": {"type": "DATE", "comment": null, "index": 8, "name": "doc_number"}, "due_date": {"type": "DATE", "comment": null, "index": 9, "name": "due_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 10, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 11, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 12, "name": "home_balance"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 13, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 14, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_term_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 16, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 17, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 18, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 20, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "FLOAT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "FLOAT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 25, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 26, "name": "quantity"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 27, "name": "tax_code_id"}, "account_id": {"type": "INT64", "comment": null, "index": 28, "name": "account_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__estimate_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "accepted_by": {"type": "INT64", "comment": null, "index": 4, "name": "accepted_by"}, "accepted_date": {"type": "INT64", "comment": null, "index": 5, "name": "accepted_date"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 6, "name": "apply_tax_after_discount"}, "bill_email": {"type": "STRING", "comment": null, "index": 7, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 8, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 9, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 12, "name": "custom_p_o_number"}, "custom_sales_rep": {"type": "INT64", "comment": null, "index": 13, "name": "custom_sales_rep"}, "customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 15, "name": "customer_memo"}, "delivery_type": {"type": "INT64", "comment": null, "index": 16, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 17, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 18, "name": "doc_number"}, "due_date": {"type": "INT64", "comment": null, "index": 19, "name": "due_date"}, "email_status": {"type": "STRING", "comment": null, "index": 20, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 21, "name": "exchange_rate"}, "expiration_date": {"type": "INT64", "comment": null, "index": 22, "name": "expiration_date"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 23, "name": "global_tax_calculation"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 24, "name": "home_total_amount"}, "print_status": {"type": "STRING", "comment": null, "index": 25, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 26, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 27, "name": "sales_term_id"}, "ship_date": {"type": "INT64", "comment": null, "index": 28, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 29, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 30, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 31, "name": "tax_code_id"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 32, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 33, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 34, "name": "transaction_date"}, "transaction_status": {"type": "STRING", "comment": null, "index": 35, "name": "transaction_status"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 36, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__deposit_line", "comment": null, "owner": null}, "columns": {"deposit_id": {"type": "INT64", "comment": null, "index": 1, "name": "deposit_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "deposit_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_account_id"}, "deposit_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_class_id"}, "deposit_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "deposit_customer_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 7.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 494.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_line", "comment": null, "owner": null}, "columns": {"invoice_id": {"type": "INT64", "comment": null, "index": 1, "name": "invoice_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "FLOAT64", "comment": null, "index": 3, "name": "amount"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "sales_item_account_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 5, "name": "sales_item_item_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_class_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 7, "name": "sales_item_quantity"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 8, "name": "sales_item_unit_price"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_class_id"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "quantity": {"type": "INT64", "comment": null, "index": 12, "name": "quantity"}, "bundle_quantity": {"type": "FLOAT64", "comment": null, "index": 13, "name": "bundle_quantity"}, "bundle_id": {"type": "INT64", "comment": null, "index": 14, "name": "bundle_id"}, "account_id": {"type": "INT64", "comment": null, "index": 15, "name": "account_id"}, "item_id": {"type": "INT64", "comment": null, "index": 16, "name": "item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 538.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bundle_item", "comment": null, "owner": null}, "columns": {"bundle_id": {"type": "INT64", "comment": null, "index": 1, "name": "bundle_id"}, "item_id": {"type": "INT64", "comment": null, "index": 2, "name": "item_id"}, "item_quantity": {"type": "INT64", "comment": null, "index": 3, "name": "item_quantity"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 312.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__payment", "comment": null, "owner": null}, "columns": {"payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "payment_id"}, "unapplied_amount": {"type": "INT64", "comment": null, "index": 2, "name": "unapplied_amount"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 3, "name": "total_amount"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "receivable_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "receivable_account_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_to_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 7, "name": "exchange_rate"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 8, "name": "transaction_date"}, "customer_id": {"type": "INT64", "comment": null, "index": 9, "name": "customer_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 10, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 594.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__refund_receipt_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "INT64", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "check_payment_account_number": {"type": "INT64", "comment": null, "index": 8, "name": "check_payment_account_number"}, "check_payment_bank_name": {"type": "INT64", "comment": null, "index": 9, "name": "check_payment_bank_name"}, "check_payment_check_number": {"type": "INT64", "comment": null, "index": 10, "name": "check_payment_check_number"}, "check_payment_name_on_account": {"type": "INT64", "comment": null, "index": 11, "name": "check_payment_name_on_account"}, "check_payment_status": {"type": "INT64", "comment": null, "index": 12, "name": "check_payment_status"}, "class_id": {"type": "INT64", "comment": null, "index": 13, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 14, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 17, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 18, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 19, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 20, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 21, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 22, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 23, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 24, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 25, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 26, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 27, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 28, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 29, "name": "customer_memo"}, "department_id": {"type": "INT64", "comment": null, "index": 30, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 31, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 32, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 33, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 34, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 35, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 36, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 37, "name": "payment_method_id"}, "payment_reference_number": {"type": "INT64", "comment": null, "index": 38, "name": "payment_reference_number"}, "payment_type": {"type": "INT64", "comment": null, "index": 39, "name": "payment_type"}, "print_status": {"type": "INT64", "comment": null, "index": 40, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 41, "name": "private_note"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 42, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 43, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 44, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 45, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 46, "name": "total_tax"}, "transaction_date": {"type": "INT64", "comment": null, "index": 47, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 48, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 49, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__item", "comment": null, "owner": null}, "columns": {"item_id": {"type": "INT64", "comment": null, "index": 1, "name": "item_id"}, "is_active": {"type": "BOOL", "comment": null, "index": 2, "name": "is_active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "income_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "income_account_id"}, "asset_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "asset_account_id"}, "expense_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "expense_account_id"}, "name": {"type": "STRING", "comment": null, "index": 7, "name": "name"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 8, "name": "purchase_cost"}, "taxable": {"type": "BOOL", "comment": null, "index": 9, "name": "taxable"}, "type": {"type": "STRING", "comment": null, "index": 10, "name": "type"}, "unit_price": {"type": "INT64", "comment": null, "index": 11, "name": "unit_price"}, "inventory_start_date": {"type": "INT64", "comment": null, "index": 12, "name": "inventory_start_date"}, "parent_item_id": {"type": "INT64", "comment": null, "index": 13, "name": "parent_item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 330.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__sales_receipt", "comment": null, "owner": null}, "columns": {"sales_receipt_id": {"type": "INT64", "comment": null, "index": 1, "name": "sales_receipt_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_to_account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 6, "name": "created_at"}, "customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 8, "name": "department_id"}, "class_id": {"type": "INT64", "comment": null, "index": 9, "name": "class_id"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "transaction_date": {"type": "INT64", "comment": null, "index": 12, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__payment_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 5, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 6, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 8, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 9, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 10, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 11, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 12, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 13, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 14, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 17, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 18, "name": "customer_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 19, "name": "deposit_to_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 20, "name": "exchange_rate"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 21, "name": "payment_method_id"}, "private_note": {"type": "STRING", "comment": null, "index": 22, "name": "private_note"}, "process_payment": {"type": "BOOL", "comment": null, "index": 23, "name": "process_payment"}, "receivable_account_id": {"type": "INT64", "comment": null, "index": 24, "name": "receivable_account_id"}, "reference_number": {"type": "INT64", "comment": null, "index": 25, "name": "reference_number"}, "sync_token": {"type": "INT64", "comment": null, "index": 26, "name": "sync_token"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 27, "name": "total_amount"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 28, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 29, "name": "transaction_source"}, "transaction_status": {"type": "INT64", "comment": null, "index": 30, "name": "transaction_status"}, "unapplied_amount": {"type": "INT64", "comment": null, "index": 31, "name": "unapplied_amount"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 32, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__refund_receipt_line", "comment": null, "owner": null}, "columns": {"refund_id": {"type": "INT64", "comment": null, "index": 1, "name": "refund_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "discount_account_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_account_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 7, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 8, "name": "sales_item_quantity"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 9, "name": "sales_item_unit_price"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 10, "name": "sales_item_tax_code_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 280.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__sales_receipt_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "sales_receipt_id": {"type": "INT64", "comment": null, "index": 2, "name": "sales_receipt_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor", "comment": null, "owner": null}, "columns": {"vendor_id": {"type": "INT64", "comment": null, "index": 1, "name": "vendor_id"}, "account_number": {"type": "INT64", "comment": null, "index": 2, "name": "account_number"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 5, "name": "billing_address_id"}, "company_name": {"type": "STRING", "comment": null, "index": 6, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 7, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 8, "name": "currency_id"}, "display_name": {"type": "STRING", "comment": null, "index": 9, "name": "display_name"}, "web_url": {"type": "INT64", "comment": null, "index": 10, "name": "web_url"}, "is_vendor_1099": {"type": "BOOL", "comment": null, "index": 11, "name": "is_vendor_1099"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 828.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase", "comment": null, "owner": null}, "columns": {"purchase_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_id"}, "account_id": {"type": "INT64", "comment": null, "index": 2, "name": "account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "doc_number": {"type": "STRING", "comment": null, "index": 4, "name": "doc_number"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 6, "name": "exchange_rate"}, "credit": {"type": "INT64", "comment": null, "index": 7, "name": "credit"}, "total_amount": {"type": "INT64", "comment": null, "index": 8, "name": "total_amount"}, "payment_type": {"type": "STRING", "comment": null, "index": 9, "name": "payment_type"}, "department_id": {"type": "INT64", "comment": null, "index": 10, "name": "department_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 11, "name": "customer_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 12, "name": "vendor_id"}, "transaction_date": {"type": "INT64", "comment": null, "index": 13, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 14, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__department_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 5, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "parent_department_id": {"type": "INT64", "comment": null, "index": 7, "name": "parent_department_id"}, "sub_department": {"type": "BOOL", "comment": null, "index": 8, "name": "sub_department"}, "sync_token": {"type": "INT64", "comment": null, "index": 9, "name": "sync_token"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_line_bundle", "comment": null, "owner": null}, "columns": {"invoice_id": {"type": "INT64", "comment": null, "index": 1, "name": "invoice_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "class_id": {"type": "INT64", "comment": null, "index": 3, "name": "class_id"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "amount": {"type": "FLOAT64", "comment": null, "index": 5, "name": "amount"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 7, "name": "item_id"}, "quantity": {"type": "FLOAT64", "comment": null, "index": 8, "name": "quantity"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 9, "name": "sales_item_quantity"}, "account_id": {"type": "INT64", "comment": null, "index": 10, "name": "account_id"}, "unit_price": {"type": "INT64", "comment": null, "index": 11, "name": "unit_price"}, "invoice_line_index": {"type": "INT64", "comment": null, "index": 12, "name": "invoice_line_index"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 900.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__purchase_order": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order", "comment": null, "owner": null}, "columns": {"purchase_order_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_order_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 2, "name": "created_at"}, "custom_po_number": {"type": "STRING", "comment": null, "index": 3, "name": "custom_po_number"}, "doc_number": {"type": "STRING", "comment": null, "index": 4, "name": "doc_number"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 6, "name": "exchange_rate"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 7, "name": "total_amount"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 8, "name": "payable_account_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 9, "name": "vendor_id"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 10, "name": "transaction_date"}, "status": {"type": "STRING", "comment": null, "index": 11, "name": "status"}, "due_date": {"type": "INT64", "comment": null, "index": 12, "name": "due_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 792.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__customer_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "alternate_phone_number": {"type": "INT64", "comment": null, "index": 4, "name": "alternate_phone_number"}, "ar_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "ar_account_id"}, "balance": {"type": "INT64", "comment": null, "index": 6, "name": "balance"}, "balance_with_jobs": {"type": "INT64", "comment": null, "index": 7, "name": "balance_with_jobs"}, "bill_address_id": {"type": "INT64", "comment": null, "index": 8, "name": "bill_address_id"}, "bill_with_parent": {"type": "BOOL", "comment": null, "index": 9, "name": "bill_with_parent"}, "company_name": {"type": "STRING", "comment": null, "index": 10, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 11, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 12, "name": "currency_id"}, "default_tax_code_id": {"type": "INT64", "comment": null, "index": 13, "name": "default_tax_code_id"}, "display_name": {"type": "STRING", "comment": null, "index": 14, "name": "display_name"}, "email": {"type": "STRING", "comment": null, "index": 15, "name": "email"}, "family_name": {"type": "STRING", "comment": null, "index": 16, "name": "family_name"}, "fax_number": {"type": "INT64", "comment": null, "index": 17, "name": "fax_number"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 18, "name": "fully_qualified_name"}, "given_name": {"type": "STRING", "comment": null, "index": 19, "name": "given_name"}, "job": {"type": "BOOL", "comment": null, "index": 20, "name": "job"}, "level": {"type": "INT64", "comment": null, "index": 21, "name": "level"}, "middle_name": {"type": "INT64", "comment": null, "index": 22, "name": "middle_name"}, "mobile_number": {"type": "INT64", "comment": null, "index": 23, "name": "mobile_number"}, "notes": {"type": "INT64", "comment": null, "index": 24, "name": "notes"}, "open_balance_date": {"type": "INT64", "comment": null, "index": 25, "name": "open_balance_date"}, "parent_customer_id": {"type": "INT64", "comment": null, "index": 26, "name": "parent_customer_id"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 27, "name": "payment_method_id"}, "phone_number": {"type": "INT64", "comment": null, "index": 28, "name": "phone_number"}, "preferred_delivery_method": {"type": "STRING", "comment": null, "index": 29, "name": "preferred_delivery_method"}, "print_on_check_name": {"type": "STRING", "comment": null, "index": 30, "name": "print_on_check_name"}, "resale_number": {"type": "INT64", "comment": null, "index": 31, "name": "resale_number"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 32, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 33, "name": "shipping_address_id"}, "suffix": {"type": "INT64", "comment": null, "index": 34, "name": "suffix"}, "sync_token": {"type": "INT64", "comment": null, "index": 35, "name": "sync_token"}, "tax_exemption_reason_id": {"type": "INT64", "comment": null, "index": 36, "name": "tax_exemption_reason_id"}, "taxable": {"type": "BOOL", "comment": null, "index": 37, "name": "taxable"}, "title": {"type": "INT64", "comment": null, "index": 38, "name": "title"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 39, "name": "updated_at"}, "website": {"type": "INT64", "comment": null, "index": 40, "name": "website"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__refund_receipt_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "refund_id": {"type": "INT64", "comment": null, "index": 2, "name": "refund_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_line_tmp", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_line", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_expense_account_id"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_class_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 6, "name": "account_expense_tax_code_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 8, "name": "item_expense_item_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 9, "name": "item_expense_customer_id"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 10, "name": "item_expense_billable_status"}, "amount": {"type": "INT64", "comment": null, "index": 11, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 12, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1340.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_linked_txn_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "charge_credit_id": {"type": "INT64", "comment": null, "index": 4, "name": "charge_credit_id"}, "estimate_id": {"type": "INT64", "comment": null, "index": 5, "name": "estimate_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 6, "name": "payment_id"}, "reimburse_charge_id": {"type": "INT64", "comment": null, "index": 7, "name": "reimburse_charge_id"}, "statement_charge_id": {"type": "INT64", "comment": null, "index": 8, "name": "statement_charge_id"}, "time_activity_id": {"type": "INT64", "comment": null, "index": 9, "name": "time_activity_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__refund_receipt", "comment": null, "owner": null}, "columns": {"refund_id": {"type": "INT64", "comment": null, "index": 1, "name": "refund_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "class_id": {"type": "INT64", "comment": null, "index": 5, "name": "class_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_to_account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 7, "name": "created_at"}, "department_id": {"type": "INT64", "comment": null, "index": 8, "name": "department_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 9, "name": "customer_id"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "transaction_date": {"type": "INT64", "comment": null, "index": 12, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__payment_line", "comment": null, "owner": null}, "columns": {"payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "payment_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "FLOAT64", "comment": null, "index": 3, "name": "amount"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 4, "name": "journal_entry_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 6, "name": "invoice_id"}, "credit_memo_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_memo_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 352.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "credit": {"type": "INT64", "comment": null, "index": 6, "name": "credit"}, "currency_id": {"type": "STRING", "comment": null, "index": 7, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 10, "name": "doc_number"}, "employee_id": {"type": "INT64", "comment": null, "index": 11, "name": "employee_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 12, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 13, "name": "global_tax_calculation"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 14, "name": "payment_method_id"}, "payment_type": {"type": "STRING", "comment": null, "index": 15, "name": "payment_type"}, "print_status": {"type": "INT64", "comment": null, "index": 16, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 17, "name": "private_note"}, "remit_to_address_id": {"type": "INT64", "comment": null, "index": 18, "name": "remit_to_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 19, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 20, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 21, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 22, "name": "total_tax"}, "transaction_date": {"type": "INT64", "comment": null, "index": 23, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 24, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 25, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 26, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__customer", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "comment": null, "index": 1, "name": "customer_id"}, "is_active": {"type": "BOOL", "comment": null, "index": 2, "name": "is_active"}, "balance": {"type": "INT64", "comment": null, "index": 3, "name": "balance"}, "balance_with_jobs": {"type": "INT64", "comment": null, "index": 4, "name": "balance_with_jobs"}, "bill_with_parent": {"type": "BOOL", "comment": null, "index": 5, "name": "bill_with_parent"}, "company_name": {"type": "STRING", "comment": null, "index": 6, "name": "company_name"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 7, "name": "fully_qualified_name"}, "currency_id": {"type": "STRING", "comment": null, "index": 8, "name": "currency_id"}, "display_name": {"type": "STRING", "comment": null, "index": 9, "name": "display_name"}, "website": {"type": "INT64", "comment": null, "index": 10, "name": "website"}, "taxable": {"type": "BOOL", "comment": null, "index": 11, "name": "taxable"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 534.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__estimate_line", "comment": null, "owner": null}, "columns": {"estimate_id": {"type": "INT64", "comment": null, "index": 1, "name": "estimate_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "description": {"type": "STRING", "comment": null, "index": 3, "name": "description"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 5, "name": "discount_class_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 7, "name": "sales_item_class_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 8, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 9, "name": "sales_item_quantity"}, "item_id": {"type": "INT64", "comment": null, "index": 10, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 11, "name": "quantity"}, "account_id": {"type": "INT64", "comment": null, "index": 12, "name": "account_id"}, "amount": {"type": "INT64", "comment": null, "index": 13, "name": "amount"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 800.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bundle_item_tmp", "comment": null, "owner": null}, "columns": {"bundle_id": {"type": "INT64", "comment": null, "index": 1, "name": "bundle_id"}, "item_id": {"type": "INT64", "comment": null, "index": 2, "name": "item_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "item_quantity": {"type": "INT64", "comment": null, "index": 4, "name": "item_quantity"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "quickbooks", "name": "account", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "STRING", "comment": null, "index": 3, "name": "account_number"}, "account_sub_type": {"type": "STRING", "comment": null, "index": 4, "name": "account_sub_type"}, "account_type": {"type": "STRING", "comment": null, "index": 5, "name": "account_type"}, "active": {"type": "BOOL", "comment": null, "index": 6, "name": "active"}, "balance": {"type": "FLOAT64", "comment": null, "index": 7, "name": "balance"}, "balance_with_sub_accounts": {"type": "FLOAT64", "comment": null, "index": 8, "name": "balance_with_sub_accounts"}, "classification": {"type": "STRING", "comment": null, "index": 9, "name": "classification"}, "created_at": {"type": "TIMESTAMP", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "description": {"type": "STRING", "comment": null, "index": 12, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 13, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 14, "name": "name"}, "parent_account_id": {"type": "STRING", "comment": null, "index": 15, "name": "parent_account_id"}, "sub_account": {"type": "BOOL", "comment": null, "index": 16, "name": "sub_account"}, "sync_token": {"type": "STRING", "comment": null, "index": 17, "name": "sync_token"}, "tax_code_id": {"type": "STRING", "comment": null, "index": 18, "name": "tax_code_id"}, "updated_at": {"type": "TIMESTAMP", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 26.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4756.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "quickbooks", "name": "item", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "asset_account_id": {"type": "STRING", "comment": null, "index": 4, "name": "asset_account_id"}, "created_at": {"type": "TIMESTAMP", "comment": null, "index": 5, "name": "created_at"}, "description": {"type": "STRING", "comment": null, "index": 6, "name": "description"}, "expense_account_id": {"type": "STRING", "comment": null, "index": 7, "name": "expense_account_id"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 8, "name": "fully_qualified_name"}, "income_account_id": {"type": "STRING", "comment": null, "index": 9, "name": "income_account_id"}, "inventory_start_date": {"type": "DATE", "comment": null, "index": 10, "name": "inventory_start_date"}, "level": {"type": "INT64", "comment": null, "index": 11, "name": "level"}, "name": {"type": "STRING", "comment": null, "index": 12, "name": "name"}, "parent_item_id": {"type": "STRING", "comment": null, "index": 13, "name": "parent_item_id"}, "purchase_cost": {"type": "FLOAT64", "comment": null, "index": 14, "name": "purchase_cost"}, "purchase_description": {"type": "STRING", "comment": null, "index": 15, "name": "purchase_description"}, "purchase_tax_code_id": {"type": "STRING", "comment": null, "index": 16, "name": "purchase_tax_code_id"}, "purchase_tax_included": {"type": "BOOL", "comment": null, "index": 17, "name": "purchase_tax_included"}, "quantity_on_hand": {"type": "FLOAT64", "comment": null, "index": 18, "name": "quantity_on_hand"}, "sales_tax_code_id": {"type": "STRING", "comment": null, "index": 19, "name": "sales_tax_code_id"}, "sales_tax_included": {"type": "BOOL", "comment": null, "index": 20, "name": "sales_tax_included"}, "stock_keeping_unit": {"type": "STRING", "comment": null, "index": 21, "name": "stock_keeping_unit"}, "sub_item": {"type": "BOOL", "comment": null, "index": 22, "name": "sub_item"}, "sync_token": {"type": "STRING", "comment": null, "index": 23, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 24, "name": "taxable"}, "track_quantity_on_hand": {"type": "BOOL", "comment": null, "index": 25, "name": "track_quantity_on_hand"}, "type": {"type": "STRING", "comment": null, "index": 26, "name": "type"}, "unit_price": {"type": "FLOAT64", "comment": null, "index": 27, "name": "unit_price"}, "updated_at": {"type": "TIMESTAMP", "comment": null, "index": 28, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 150.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "source.quickbooks_source.quickbooks.item"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..360349a --- /dev/null +++ b/docs/index.html @@ -0,0 +1,102 @@ + + + + + + + dbt Docs + + + + + + + + + + + + + + + + + +
icons
+
+ + diff --git a/docs/manifest.json b/docs/manifest.json new file mode 100644 index 0000000..f839a29 --- /dev/null +++ b/docs/manifest.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-03-11T16:18:19.129667Z", "invocation_id": "fd1112b1-d87b-4c9c-b6d0-769ca5bc7bf3", "env": {}, "project_id": "aa9386a7fba3fd9e54dc759cf0b5037c", "user_id": "57178664-37b2-4047-9572-68ec8b488cd7", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.quickbooks_source_integration_tests.bill_payment_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "data/bill_payment_data.csv", "name": "bill_payment_data", "resource_type": "seed", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_payment_data`"}, "seed.quickbooks_source_integration_tests.bundle_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bundle_data.csv", "original_file_path": "data/bundle_data.csv", "name": "bundle_data", "resource_type": "seed", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bundle_data`"}, "seed.quickbooks_source_integration_tests.bill_payment_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "data/bill_payment_line_data.csv", "name": "bill_payment_line_data", "resource_type": "seed", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "ae8e7b58ddb78ecbcb7facd257a29f27db08cb69e4014ee40e3a07d02e7ea51a"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_payment_line_data`"}, "seed.quickbooks_source_integration_tests.payment_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "payment_line_data.csv", "original_file_path": "data/payment_line_data.csv", "name": "payment_line_data", "resource_type": "seed", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`payment_line_data`"}, "seed.quickbooks_source_integration_tests.vendor_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "vendor_data.csv", "original_file_path": "data/vendor_data.csv", "name": "vendor_data", "resource_type": "seed", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`vendor_data`"}, "seed.quickbooks_source_integration_tests.address_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "address_data"], "unique_id": "seed.quickbooks_source_integration_tests.address_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "address_data.csv", "original_file_path": "data/address_data.csv", "name": "address_data", "resource_type": "seed", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`address_data`"}, "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_linked_txn_data.csv", "original_file_path": "data/purchase_order_linked_txn_data.csv", "name": "purchase_order_linked_txn_data", "resource_type": "seed", "alias": "purchase_order_linked_txn_data", "checksum": {"name": "sha256", "checksum": "783640948c1f42079de535df23609064f3195e20ce34dffe56ac54f0c0f16ada"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_linked_txn_data`"}, "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "data/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "resource_type": "seed", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`invoice_line_bundle_data`"}, "seed.quickbooks_source_integration_tests.invoice_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "invoice_data.csv", "original_file_path": "data/invoice_data.csv", "name": "invoice_data", "resource_type": "seed", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "05a4273632f65bdeaff5845d43bb3fc5a68efa8985f86e054af045d810ecb652"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`invoice_data`"}, "seed.quickbooks_source_integration_tests.payment_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "payment_data.csv", "original_file_path": "data/payment_data.csv", "name": "payment_data", "resource_type": "seed", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`payment_data`"}, "seed.quickbooks_source_integration_tests.invoice_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "data/invoice_line_data.csv", "name": "invoice_line_data", "resource_type": "seed", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "267f7835012af57f5d0b6dd927fb6e0ea7094d780ab551d7147e2bff48bcf063"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`invoice_line_data`"}, "seed.quickbooks_source_integration_tests.deposit_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "data/deposit_line_data.csv", "name": "deposit_line_data", "resource_type": "seed", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deposit_line_data`"}, "seed.quickbooks_source_integration_tests.estimate_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "data/estimate_line_data.csv", "name": "estimate_line_data", "resource_type": "seed", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`estimate_line_data`"}, "seed.quickbooks_source_integration_tests.purchase_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_data.csv", "original_file_path": "data/purchase_data.csv", "name": "purchase_data", "resource_type": "seed", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "4f3426746d9b8739cf9538e94b0a79fe7894be76decdf43e920716dfa200d131"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_data`"}, "seed.quickbooks_source_integration_tests.refund_receipt_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "data/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "resource_type": "seed", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`refund_receipt_line_data`"}, "seed.quickbooks_source_integration_tests.credit_memo_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "data/credit_memo_line_data.csv", "name": "credit_memo_line_data", "resource_type": "seed", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`credit_memo_line_data`"}, "seed.quickbooks_source_integration_tests.bill_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_data.csv", "original_file_path": "data/bill_data.csv", "name": "bill_data", "resource_type": "seed", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_data`"}, "seed.quickbooks_source_integration_tests.bill_linked_txn_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "data/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "resource_type": "seed", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_linked_txn_data`"}, "seed.quickbooks_source_integration_tests.vendor_credit_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "data/vendor_credit_data.csv", "name": "vendor_credit_data", "resource_type": "seed", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`vendor_credit_data`"}, "seed.quickbooks_source_integration_tests.customer_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_source_integration_tests.customer_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "customer_data.csv", "original_file_path": "data/customer_data.csv", "name": "customer_data", "resource_type": "seed", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`customer_data`"}, "seed.quickbooks_source_integration_tests.estimate_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "estimate_data.csv", "original_file_path": "data/estimate_data.csv", "name": "estimate_data", "resource_type": "seed", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`estimate_data`"}, "seed.quickbooks_source_integration_tests.purchase_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "data/purchase_line_data.csv", "name": "purchase_line_data", "resource_type": "seed", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_line_data`"}, "seed.quickbooks_source_integration_tests.journal_entry_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "data/journal_entry_line_data.csv", "name": "journal_entry_line_data", "resource_type": "seed", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "a17bbafe90f2f00403538657b9f45c14d929ce2d9b5b29a55828855756024516"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`journal_entry_line_data`"}, "seed.quickbooks_source_integration_tests.journal_entry_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "data/journal_entry_data.csv", "name": "journal_entry_data", "resource_type": "seed", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`journal_entry_data`"}, "seed.quickbooks_source_integration_tests.bill_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_line_data.csv", "original_file_path": "data/bill_line_data.csv", "name": "bill_line_data", "resource_type": "seed", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "df882ab43a0bd79aed13e13dee1934269989ae1bea9d3672ed7cc9840c14d073"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_line_data`"}, "seed.quickbooks_source_integration_tests.bundle_item_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "data/bundle_item_data.csv", "name": "bundle_item_data", "resource_type": "seed", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bundle_item_data`"}, "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "data/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "resource_type": "seed", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`invoice_linked_txn_data`"}, "seed.quickbooks_source_integration_tests.account_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "account_data"], "unique_id": "seed.quickbooks_source_integration_tests.account_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "account_data.csv", "original_file_path": "data/account_data.csv", "name": "account_data", "resource_type": "seed", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "21711c5f4113de909d70da0ef80633513b932ca8db2558503e1cc0e4bb663a8b"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`account_data`"}, "seed.quickbooks_source_integration_tests.purchase_order_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "data/purchase_order_line_data.csv", "name": "purchase_order_line_data", "resource_type": "seed", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_line_data`"}, "seed.quickbooks_source_integration_tests.transfer_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_source_integration_tests.transfer_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "transfer_data.csv", "original_file_path": "data/transfer_data.csv", "name": "transfer_data", "resource_type": "seed", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "79139d758013f9fe26aec7a1283224df79f5bb780c3b896ed8ead578bc4f8ff5"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`transfer_data`"}, "seed.quickbooks_source_integration_tests.purchase_order_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "data/purchase_order_data.csv", "name": "purchase_order_data", "resource_type": "seed", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_data`"}, "seed.quickbooks_source_integration_tests.sales_receipt_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "data/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "resource_type": "seed", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`sales_receipt_line_data`"}, "seed.quickbooks_source_integration_tests.vendor_credit_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "data/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "resource_type": "seed", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`vendor_credit_line_data`"}, "seed.quickbooks_source_integration_tests.credit_memo_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "data/credit_memo_data.csv", "name": "credit_memo_data", "resource_type": "seed", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`credit_memo_data`"}, "seed.quickbooks_source_integration_tests.department_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "department_data"], "unique_id": "seed.quickbooks_source_integration_tests.department_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "department_data.csv", "original_file_path": "data/department_data.csv", "name": "department_data", "resource_type": "seed", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`department_data`"}, "seed.quickbooks_source_integration_tests.item_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "item_data"], "unique_id": "seed.quickbooks_source_integration_tests.item_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "item_data.csv", "original_file_path": "data/item_data.csv", "name": "item_data", "resource_type": "seed", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`item_data`"}, "seed.quickbooks_source_integration_tests.sales_receipt_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "data/sales_receipt_data.csv", "name": "sales_receipt_data", "resource_type": "seed", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`sales_receipt_data`"}, "seed.quickbooks_source_integration_tests.deposit_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "deposit_data.csv", "original_file_path": "data/deposit_data.csv", "name": "deposit_data", "resource_type": "seed", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deposit_data`"}, "seed.quickbooks_source_integration_tests.refund_receipt_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "data/refund_receipt_data.csv", "name": "refund_receipt_data", "resource_type": "seed", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`refund_receipt_data`"}, "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_int() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt_utils.type_int() }}) as account_id,\n amount,\n customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt_utils.type_int() }}) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "cc62e6db510aa85fd830f285ae6cdc76de14edab2fcaa631172a145301270bc3"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as journal_entry_id,\n index,\n cast(account_id as \n int64\n) as account_id,\n amount,\n customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as \n int64\n) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt_utils.type_int() }}) as from_account_id,\n cast(to_account_id as {{ dbt_utils.type_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "resource_type": "model", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "a154b134773fcb467413454de938a795f9b1c0a17e3db667563ca4ab657dbf1d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as transfer_id,\n amount,\n cast(from_account_id as \n int64\n) as from_account_id,\n cast(to_account_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt_utils.type_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "07f2291a80ba273988245a5c8497aa3ef3186aae615fe5e02d8c9a85dab1d38e"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as bill_payment_id,\n index,\n amount,\n cast(bill_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt_utils.type_int() }}) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "resource_type": "model", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "6a058428fc2c2f470f683982c6c474509fce6127df1d140c63053c7f41edfb97"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as \n int64\n) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "resource_type": "model", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "2a74056af543a188ddbdceb1fd6133c07aa73a8ee6c4d642132294ac5d7569dc"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as vendor_id,\n account_number,\n active as is_active,\n balance,\n 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_int() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_int() }}) 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_int() }}) as bundle_id,\n cast(account_id as {{ dbt_utils.type_int() }}) as account_id,\n cast(item_id as {{ dbt_utils.type_int() }}) as item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "resource_type": "model", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "3c23560119916dd4ea16ce99acb2dc98532e5fd2c36465ae7612293b1d9d9d15"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as \n int64\n) as sales_item_account_id,\n cast(sales_item_item_id as \n int64\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 int64\n) as bundle_id,\n cast(account_id as \n int64\n) as account_id,\n cast(item_id as \n int64\n) as item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "resource_type": "model", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "48154e452b4048a2225907e2d0211003a830140a388cc7c45a3c02ea5462169f"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_int() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_int() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt_utils.type_int() }}) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "bc08c4f710a8e71b1834590a24ac78e53fc5278e755816fb394646223409c525"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as \n int64\n) as sales_item_account_id,\n cast(sales_item_item_id as \n int64\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "resource_type": "model", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "bfffe908d8c80d59eae1e472df0766f4cdefff07760fb6d447ec666c7338fb7b"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "resource_type": "model", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "2be93e7cc41f15b54e16e9dcf3fa931ca96aa0c49cafee6b61af10a8938a063f"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "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"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_int() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_int() }}) as item_expense_item_id,\n item_expense_billable_status,\n item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "resource_type": "model", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "2f38e705cc108f5c9ad72d7c7f3932e8698d2a2d80ada35a5772b4be72658fab"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as purchase_id,\n index,\n cast(account_expense_account_id as \n int64\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as \n int64\n) as item_expense_item_id,\n item_expense_billable_status,\n item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as purchase_id,\n cast(account_id as {{ dbt_utils.type_int() }}) 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 customer_id,\n cast(vendor_id as {{ dbt_utils.type_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "resource_type": "model", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "dfd0a3e02fa435223cc77e553ce8a991aec851e1896fb6afa76c5776d502f986"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as purchase_id,\n cast(account_id as \n int64\n) as account_id,\n created_at,\n cast(doc_number as \n string\n) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n customer_id,\n cast(vendor_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_int() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_int() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "e175a6a7b27b109ede60ca38040b605d954a8cd286d1986618a503666cf1d389"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n int64\n) as discount_account_id,\n cast(sales_item_account_id as \n int64\n) as sales_item_account_id,\n cast(sales_item_item_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as bundle_id,\n cast(item_id as {{ dbt_utils.type_int() }}) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "resource_type": "model", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "2624a01c121773dffa838b3a3d53f3d3310f5d6eb85195f11da3bca108a2010a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as bundle_id,\n cast(item_id as \n int64\n) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "resource_type": "model", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "5be2ca2c333e9a2df1f5b7155e9a2b6cb83dd930b5377e313502f0fbca543f09"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as credit_memo_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo`"}, "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_int() }}) 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_int() }}) as payable_account_id,\n cast(vendor_id as {{ dbt_utils.type_int() }}) 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)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "resource_type": "model", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "8d70410dcbf7d524f75a5e31c3500415b6d61f6beedaaf3d02593a69350e75fb"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"]}, "description": "Table containing records of purchase orders (PO).", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`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 \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 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_customer_type\n \n as \n \n custom_customer_type\n \n, \n cast(null as \n string\n) as \n \n custom_po_number\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 id\n \n as \n \n id\n \n, \n \n \n memo\n \n as \n \n memo\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 shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n status\n \n as \n \n status\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 vendor_address_id\n \n as \n \n vendor_address_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(id as \n int64\n) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as \n string\n) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as \n int64\n) as payable_account_id,\n cast(vendor_id as \n int64\n) 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)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order`"}, "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_int() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_int() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_int() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "d5f46220d3dbd754bd547e69d045b939f5932d049031971fccd67bea686a9cc1"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n int64\n) as discount_account_id,\n cast(sales_item_account_id as \n int64\n) as sales_item_account_id,\n cast(sales_item_item_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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_int() }}) as deposit_to_account_id,\n created_at,\n 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "resource_type": "model", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "16e6bb7f7b68a0b95b535ccc9a45414bb57985ecc411620bb5fb5935c81406ef"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as sales_receipt_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n cast(deposit_to_account_id as \n int64\n) as deposit_to_account_id,\n created_at,\n 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt`"}, "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_int() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_int() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_int() }}) as item_expense_item_id,\n item_expense_billable_status,\n item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "56a40695b8f9408f809769a8ca93047b91dd0adda853560599d7215440bc1763"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"]}, "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": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`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 \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_order_id\n \n as \n \n purchase_order_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as \n int64\n) as purchase_order_id,\n index,\n cast(account_expense_account_id as \n int64\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as \n int64\n) as item_expense_item_id,\n item_expense_billable_status,\n item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_line`"}, "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_int() }}) as invoice_id,\n cast(payment_id as {{ dbt_utils.type_int() }}) as payment_id,\n cast(estimate_id as {{ dbt_utils.type_int() }}) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "aff2dba72f10b7876d4595f2255c089ebcaf3fe08b54bbb000a7cfc1450402e2"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as invoice_id,\n cast(payment_id as \n int64\n) as payment_id,\n cast(estimate_id as \n int64\n) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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_int() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n customer_id,\n 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "resource_type": "model", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "fca3c91479c7bcc66866ce046852ce745b6a904dcdc08912e40d2e1e44af7cd4"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as invoice_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as \n int64\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n customer_id,\n 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt_utils.type_int() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt_utils.type_int() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "resource_type": "model", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "226c8de9352b518733b100a5fd098df27c120af5f11da95e5298e747a126b35c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as bill_payment_id,\n cast(check_bank_account_id as \n int64\n) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as \n int64\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 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt_utils.type_int() }}) as sales_item_item_id,\n cast(item_id as {{ dbt_utils.type_int() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt_utils.type_int() }}) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "27e8489f753e4b74d7ef89e3e0e3b863f684b6f3582e62402b21a70d3c765a4d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as \n int64\n) as sales_item_item_id,\n cast(item_id as \n int64\n) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as account_id,\n cast(account_number as {{ dbt_utils.type_string() }}) as account_number,\n sub_account as is_sub_account,\n 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "resource_type": "model", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "4d1f16dd355ee15887fe87ed7117aba3d4efb6ed7c6ab5a63816c9d73bfe1bc2"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as account_id,\n cast(account_number as \n string\n) as account_number,\n sub_account as is_sub_account,\n 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt_utils.type_int() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_int() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "resource_type": "model", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "2ef72227933461ec2104e4a3e2a239788fff56cf97ee9b3fe3671a4d4ad9a138"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as \n int64\n) as receivable_account_id,\n cast(deposit_to_account_id as \n int64\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "resource_type": "model", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "c6940335302da931eb1b4dfda43f073aa2b5aa7fabd542c6b4e4b869bb35b768"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt_utils.type_int() }}) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "08089a0bed4ef632ed041864401df60b0c56c18f29db09e8e131c1da4d37b8a6"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as bill_id,\n index,\n cast(bill_payment_id as \n int64\n) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_linked_txn`"}, "model.quickbooks_source.stg_quickbooks__address": {"raw_sql": "with 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 id 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "resource_type": "model", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "ae7a5371c682396448f4cbbfc02fc651f6dbd4761360cd595e0813eb6b3d0f9e"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 id 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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_int() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt_utils.type_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "resource_type": "model", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "fbf8be5ea5848030a93108ab7ed6bc639616edc70845878451ed3098393ad3e3"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as bill_id,\n balance,\n cast(doc_number as \n string\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 int64\n) as payable_account_id,\n total_amount,\n cast(vendor_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_int() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_int() }}) as item_expense_item_id,\n item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "resource_type": "model", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "f1ef4c1cbe7d7452de8dda72bbe18512b63aeaae7b84b04565f9d5879f34bc7d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as bill_id,\n index,\n cast(account_expense_account_id as \n int64\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_customer_id,\n cast(item_expense_item_id as \n int64\n) as item_expense_item_id,\n 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "resource_type": "model", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "1fd5badabb28837af0b6bb78b923935b07f6cea40aeb091c424451f3e3051e9c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as \n string\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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_int() }}) as deposit_to_account_id,\n created_at,\n department_id,\n 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "resource_type": "model", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "a53514b8acb73312e2077e6af528954e26451c5e49a9e873d438837723fa6fdd"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as refund_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as \n int64\n) as deposit_to_account_id,\n created_at,\n department_id,\n 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt_utils.type_int() }}) as deposit_account_id,\n deposit_class_id,\n deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "resource_type": "model", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "d954264796a827c4b4d1287fea9467ed324d5b0cc651f1d63d7a042c8b863651"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as \n int64\n) as deposit_account_id,\n deposit_class_id,\n deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) 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_int() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt_utils.type_int() }}) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "resource_type": "model", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "05b0105afefd79ddba2fa662bd560488130d24e9f427d9ef3936c6822baf1028"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as vendor_credit_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as \n int64\n) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as vendor_credit_id,\n index,\n account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt_utils.type_int() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "d0df82e6a035be50b5e0bee1af39494fa019e247a8fb502c746fc5904a31b027"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as vendor_credit_id,\n index,\n account_expense_customer_id,\n cast(account_expense_account_id as \n int64\n) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n item_expense_customer_id,\n cast(item_expense_item_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as deposit_id,\n cast(account_id as {{ dbt_utils.type_int() }}) 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "resource_type": "model", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "12bc7d8002be27b7ebcb5068ff0294a25f498e563a47f659d6b2123db521c390"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as deposit_id,\n cast(account_id as \n int64\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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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_int() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt_utils.type_int() }}) as income_account_id,\n cast(asset_account_id as {{ dbt_utils.type_int() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt_utils.type_int() }}) 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_int() }}) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "resource_type": "model", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "0095e49755bb9f5340cee9a2253fbf3b6db36875fb3c911df2257667e7e0e93b"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 int64\n) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as \n int64\n) as income_account_id,\n cast(asset_account_id as \n int64\n) as asset_account_id,\n cast(expense_account_id as \n int64\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 int64\n) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__item`"}, "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_int() }}) as purchase_order_id,\n cast(bill_id as {{ dbt_utils.type_int() }}) as bill_id,\n cast(purchase_id as {{ dbt_utils.type_int() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt_utils.type_int() }}) as vendor_credit_id,\n index\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "77e00cf575e1a2a672d1139b3e004f0044c8002463b588258bcf5cda968a3361"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"]}, "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": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order_linked_txn.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`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 \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 index\n \n as \n \n index\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n purchase_order_id\n \n as \n \n purchase_order_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(purchase_order_id as \n int64\n) as purchase_order_id,\n cast(bill_id as \n int64\n) as bill_id,\n cast(purchase_id as \n int64\n) as purchase_id,\n cast(vendor_credit_id as \n int64\n) as vendor_credit_id,\n index\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_linked_txn`"}, "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 id 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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "resource_type": "model", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "ed64b1260db07c0c56f7648d3638de85c5848a8099560cf485cd0c4570912251"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "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": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_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 id 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": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "2cc1af8b806f60a8aab3cc6b08988da2d3014a246be9ff927ced5d1fda182fc9"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["vendor_credit_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_credit_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`vendor_credit_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "937c4edb6ed96a15d1ed984d79c6306f9ba1fa3a338e5e7a34fc0b3301f0b1c6"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["refund_receipt_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.refund_receipt_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`refund_receipt_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "c384d015b8964e52ccf18fcbbd2260278d8f2d9b02e79cda1ed35d89514f018d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["estimate_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.estimate_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`estimate_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate_line_tmp`"}, "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') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "207db6c4ef8cfef78b8de6a2c96cbd0477f63e0a63eda4a08ee215057990ae34"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_order_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "d3c8e3dc3108ebae669290dc214fc716857dd7b93134587014f90ae22bd89bec"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["credit_memo_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.credit_memo_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`credit_memo_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "61f5ac20efc0252540f3ff70ec87692d2b4635a96ec4ad08e7f8295e9f9e898d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["journal_entry_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.journal_entry_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`journal_entry_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "ecba6d64adcba0d6a1ec3bed3bdaee051c8b23ce2bd7d6dd87254a92dc772837"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["invoice_line_bundle_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_line_bundle_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`invoice_line_bundle_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "resource_type": "model", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "68166bc4b2a668928e855e7371c6743a5bf66a1fb1ede8bb2b113ff3e8d9c239"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["payment_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.payment_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`payment_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "70e8445c77cc3b476587100fa0123c29ec4a82810ee9517dcc9abcfddd42b835"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["invoice_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`invoice_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "c792d5b27123728ccbd7b656a2a720c9880baad2c5102b95e275071fc7019440"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deposit_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.deposit_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deposit_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"raw_sql": "select * \nfrom {{ var('customer') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "resource_type": "model", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "ed57930558565003ebd42e837a90057b26f852767bc32e4a58b19094ecbfa509"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["customer_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.customer_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`customer_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "65c2cf00e68503a0faa314a95bcb99d9aef127a66b49eed378dba1307b80ff8e"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"raw_sql": "select * \nfrom {{ var('item') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "resource_type": "model", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "af4a69cfe57cc894bf2bab8d71ac00aa95dd4ff1b337ad031accdf8059ce4dd9"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["item_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.item_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`item_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__item_tmp`"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"raw_sql": "select *\nfrom {{ var('account') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "resource_type": "model", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "89b197ede7e07bf1451016ce108798ac734cb75e9ab2f15a1e3690cd349b91ba"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["account_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.account_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`account_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "78229c53b993c7bcc6d8355993cdc3a2ff5c07117ced9aaef4ea691019361b6f"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["vendor_credit_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_credit_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`vendor_credit_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "resource_type": "model", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "2fdf3784cf998ce60970941e2839d369cd085661c952946bef8592d1abf32f47"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["department_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.department_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`department_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "resource_type": "model", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "167d7ef377ddda2a70dd33550dc6bd59b65b9e5d3af94c86fd348669b19eba01"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bundle_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bundle_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bundle_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "364c8c25c619bdf90cbc036bd87b84d19b686250398a3a107089a883da7828f6"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bundle_item_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bundle_item_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bundle_item_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle_item_tmp`"}, "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') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "1a4e5034a6f95a3381e9190114b9b6d75ba273524e532d19926fff7061f286a2"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_order_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "d0c2fe19b83418b83ff4d040425de10b4558cb98b74621fce2de76e67bc53992"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_payment_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_payment_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_payment_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "resource_type": "model", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "387d86ea42380e18b5a88af69c9801228ec43e7cfca5fe9a2e00151c9c65f451"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["estimate_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.estimate_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`estimate_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate_tmp`"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"raw_sql": "select * \nfrom {{ var('purchase') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "resource_type": "model", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "66bc8c4634087951dd5d541ee092908f907fc0a521936fa5753894b2f121f471"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "5a8abf0f3c86c4d7675fd783d26cd5477bec0e06056f82b8351d333f1df9fe7a"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["credit_memo_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.credit_memo_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`credit_memo_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "resource_type": "model", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "13eedc57b03b350d0c228dbf1556178789afabe88eb541806450c0c3856e8dd7"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "resource_type": "model", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "fe093aad89e2c31a8bdcdc76afda4d24dcefa51d92b3233c64524eeba3eef37b"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["transfer_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.transfer_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`transfer_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__transfer_tmp`"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"raw_sql": "select * \nfrom {{ var('vendor') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "resource_type": "model", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "8b70affb7fe37710eca09eae95bf632d9d27148f5b733a85704da28973d0488d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["vendor_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`vendor_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_tmp`"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"raw_sql": "select * \nfrom {{ var('purchase_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "4fd11ba6c866de7b7e63ac6b49ad73bda7f7979bd524c1b590bd3199237170e3"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"raw_sql": "select * \nfrom {{ var('address') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "resource_type": "model", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "4bfa0bf8e53b06f5c032b8ce010553ec4c36ae437d01bfb827b23051f252f62d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["address_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.address_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`address_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "5f0d1167d49e59ebd3067c62b5669168b1cc2bad26a10183754a6e487d2abb2f"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["payment_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.payment_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`payment_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "cfee40b115db7fd6bfa6e9e149f1869ac0f7e00dd706ee67d4d84c8206872abf"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["refund_receipt_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.refund_receipt_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`refund_receipt_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "e3359ec9953b6cfab71b2d84d7ea912911eaa099382a7b2ad4a513e432ef65b5"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["sales_receipt_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.sales_receipt_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`sales_receipt_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "66eda7d6020107bc0e84dcea48b870c6096225de722562f2d762140fd612beaf"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_payment_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_payment_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_payment_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "b50644aae9cd93f4b5984e7971224db8d93dafd7f248dfb89364bea6972fcfbf"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["journal_entry_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.journal_entry_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`journal_entry_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "resource_type": "model", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "43224393f0bbff587d3698bbfbbd2ff3cd5f683500cd00a2419c746c005ec5f4"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deposit_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.deposit_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deposit_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "25ee3cc57ef02869b14fd248302c42c2ef078a458770a67ed6364996f5732036"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_linked_txn_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_linked_txn_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "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 `dbt-package-testing`.`zendesk_integration_tests`.`bill_linked_txn_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "9c2e3137b556c864bb7da4ece22641b9d5b00ed36305884828a2450f0d75f64a"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["invoice_linked_txn_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_linked_txn_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`invoice_linked_txn_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "d8fd3f81fc56b2f40f2fbe97128c7640153e1b01603635543e6a603110ed9057"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["sales_receipt_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.sales_receipt_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`sales_receipt_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt_line_tmp`"}, "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') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/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", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "d642b45e31ac46f65cca1d76385d5b5ec5dcaa5ff18a1120a440c13f412c575f"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_order_linked_txn_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_linked_txn_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_linked_txn_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, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_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_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "resource_type": "model", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "94912a9345b3995fc90cbcb50db1e950570080b1c436178b76516a4a602b9fd1"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["invoice_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`invoice_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_tmp`"}, "test.quickbooks_source.unique_stg_quickbooks__account_account_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ ref('stg_quickbooks__account') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__account_account_id", "resource_type": "test", "alias": "unique_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__account"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__account_account_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n account_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__account`\n where account_id is not null\n group by account_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ ref('stg_quickbooks__account') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__account"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__account_account_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_accepted_values(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ ref('stg_quickbooks__account') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/accepted_values_stg_quickbooks__account_9a85c0a61d7deea1483c64a802ff3f5f.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "resource_type": "test", "alias": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__account"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/accepted_values_stg_quickbooks__account_9a85c0a61d7deea1483c64a802ff3f5f.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\n\nwith all_values as (\n\n select distinct\n classification as value_field\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__account`\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification"}, "test.quickbooks_source.unique_stg_quickbooks__address_address_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "address_id", "model": "{{ ref('stg_quickbooks__address') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__address_address_id", "resource_type": "test", "alias": "unique_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__address"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__address_address_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n address_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__address`\n where address_id is not null\n group by address_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ ref('stg_quickbooks__address') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__address"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__address_address_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ ref('stg_quickbooks__bill_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_line_bill_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ ref('stg_quickbooks__bill_linked_txn') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ ref('stg_quickbooks__bill_linked_txn') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ ref('stg_quickbooks__bill_payment_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "bill_payment_id", "model": "{{ ref('stg_quickbooks__bill_payment') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "unique_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n bill_payment_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment`\n where bill_payment_id is not null\n group by bill_payment_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ ref('stg_quickbooks__bill_payment') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "bill_id", "model": "{{ ref('stg_quickbooks__bill') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_bill_id", "resource_type": "test", "alias": "unique_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__bill_bill_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n bill_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill`\n where bill_id is not null\n group by bill_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ ref('stg_quickbooks__bill') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_bill_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ ref('stg_quickbooks__bundle_item') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "bundle_id", "model": "{{ ref('stg_quickbooks__bundle') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bundle_bundle_id", "resource_type": "test", "alias": "unique_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bundle"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__bundle_bundle_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n bundle_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle`\n where bundle_id is not null\n group by bundle_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ ref('stg_quickbooks__bundle') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bundle"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bundle_bundle_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ ref('stg_quickbooks__credit_memo_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "credit_memo_id", "model": "{{ ref('stg_quickbooks__credit_memo') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "unique_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n credit_memo_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo`\n where credit_memo_id is not null\n group by credit_memo_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ ref('stg_quickbooks__credit_memo') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ ref('stg_quickbooks__customer') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__customer_customer_id", "resource_type": "test", "alias": "unique_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__customer"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__customer_customer_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n customer_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__customer`\n where customer_id is not null\n group by customer_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ ref('stg_quickbooks__customer') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__customer"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__customer_customer_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ ref('stg_quickbooks__deposit_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "deposit_id", "model": "{{ ref('stg_quickbooks__deposit') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__deposit_deposit_id", "resource_type": "test", "alias": "unique_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__deposit"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__deposit_deposit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n deposit_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit`\n where deposit_id is not null\n group by deposit_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ ref('stg_quickbooks__deposit') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__deposit"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__deposit_deposit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "estimate_id", "model": "{{ ref('stg_quickbooks__estimate') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__estimate_estimate_id", "resource_type": "test", "alias": "unique_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__estimate"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__estimate_estimate_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n estimate_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate`\n where estimate_id is not null\n group by estimate_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ ref('stg_quickbooks__estimate') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__estimate"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__estimate_estimate_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ ref('stg_quickbooks__estimate_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice_linked_txn') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice_line_bundle') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__invoice_invoice_id", "resource_type": "test", "alias": "unique_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__invoice_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n invoice_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice`\n where invoice_id is not null\n group by invoice_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__invoice_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__item_item_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ ref('stg_quickbooks__item') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__item_item_id", "resource_type": "test", "alias": "unique_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__item"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__item_item_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n item_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__item`\n where item_id is not null\n group by item_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ ref('stg_quickbooks__item') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__item"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__item_item_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ ref('stg_quickbooks__journal_entry_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_accepted_values(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ ref('stg_quickbooks__journal_entry_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "resource_type": "test", "alias": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\n\nwith all_values as (\n\n select distinct\n posting_type as value_field\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry_line`\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field not in (\n 'Credit','Debit'\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type"}, "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "journal_entry_id", "model": "{{ ref('stg_quickbooks__journal_entry') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "unique_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n journal_entry_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry`\n where journal_entry_id is not null\n group by journal_entry_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ ref('stg_quickbooks__journal_entry') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ ref('stg_quickbooks__payment_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__payment_line_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "payment_id", "model": "{{ ref('stg_quickbooks__payment') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__payment_payment_id", "resource_type": "test", "alias": "unique_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__payment"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__payment_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n payment_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment`\n where payment_id is not null\n group by payment_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ ref('stg_quickbooks__payment') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__payment"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__payment_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ ref('stg_quickbooks__purchase_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "purchase_id", "model": "{{ ref('stg_quickbooks__purchase') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_purchase_id", "resource_type": "test", "alias": "unique_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__purchase_purchase_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n purchase_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase`\n where purchase_id is not null\n group by purchase_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ ref('stg_quickbooks__purchase') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_purchase_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_accepted_values(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ ref('stg_quickbooks__purchase') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/accepted_values_stg_quickbooks__purchase_d6117bc728224c72d803b4826faeeb59.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "resource_type": "test", "alias": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/accepted_values_stg_quickbooks__purchase_d6117bc728224c72d803b4826faeeb59.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\n\nwith all_values as (\n\n select distinct\n payment_type as value_field\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase`\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field not in (\n 'Cash','Check','CreditCard'\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ ref('stg_quickbooks__purchase_order_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_line`\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ ref('stg_quickbooks__purchase_order_linked_txn') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_linked_txn`\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id"}, "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "purchase_order_id", "model": "{{ ref('stg_quickbooks__purchase_order') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "unique_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__purchase_order_purchase_order_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n purchase_order_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order`\n where purchase_order_id is not null\n group by purchase_order_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ ref('stg_quickbooks__purchase_order') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order`\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_accepted_values(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ ref('stg_quickbooks__purchase_order') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "resource_type": "test", "alias": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\n\nwith all_values as (\n\n select distinct\n status as value_field\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order`\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field not in (\n 'Open','Closed'\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "status"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ ref('stg_quickbooks__refund_receipt_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "refund_id", "model": "{{ ref('stg_quickbooks__refund_receipt') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__refund_receipt_refund_id", "resource_type": "test", "alias": "unique_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__refund_receipt_refund_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n refund_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt`\n where refund_id is not null\n group by refund_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ ref('stg_quickbooks__refund_receipt') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ ref('stg_quickbooks__sales_receipt_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "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", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ ref('stg_quickbooks__sales_receipt') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "unique_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n sales_receipt_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt`\n where sales_receipt_id is not null\n group by sales_receipt_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ ref('stg_quickbooks__sales_receipt') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "transfer_id", "model": "{{ ref('stg_quickbooks__transfer') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__transfer_transfer_id", "resource_type": "test", "alias": "unique_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__transfer"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__transfer_transfer_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n transfer_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__transfer`\n where transfer_id is not null\n group by transfer_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ ref('stg_quickbooks__transfer') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__transfer"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__transfer_transfer_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ ref('stg_quickbooks__vendor_credit') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "unique_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n vendor_credit_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit`\n where vendor_credit_id is not null\n group by vendor_credit_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ ref('stg_quickbooks__vendor_credit') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/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", "resource_type": "test", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}, "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ ref('stg_quickbooks__vendor') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_vendor_id", "resource_type": "test", "alias": "unique_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__vendor"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__vendor_vendor_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n vendor_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor`\n where vendor_id is not null\n group by vendor_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ ref('stg_quickbooks__vendor') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__vendor"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__vendor_vendor_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_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"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`account`"}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`address`"}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`bill_line`"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`bill_linked_txn`"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`bill_payment_line`"}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`bill_payment`"}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`bill`"}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`bundle_item`"}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`bundle`"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`credit_memo_line`"}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`credit_memo`"}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`customer`"}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`department`"}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`deposit_line`"}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`deposit`"}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`estimate`"}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`estimate_line`"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`invoice_linked_txn`"}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`invoice_line`"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`invoice_line_bundle`"}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`invoice`"}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`item`"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`journal_entry_line`"}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`journal_entry`"}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`payment_line`"}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`payment`"}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`purchase_line`"}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`purchase`"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`purchase_order_line`"}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`purchase_order_linked_txn`"}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`purchase_order`"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`refund_receipt_line`"}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`refund_receipt`"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`sales_receipt_line`"}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`sales_receipt`"}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`transfer`"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`vendor_credit_line`"}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "dbt-package-testing", "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_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`vendor_credit`"}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/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": "`dbt-package-testing`.`quickbooks`.`vendor`"}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"unique_id": "macro.dbt_bigquery.date_sharded_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.grant_access_to": {"unique_id": "macro.dbt_bigquery.grant_access_to", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.get_partitions_metadata": {"unique_id": "macro.dbt_bigquery.get_partitions_metadata", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__get_catalog": {"unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- else -%}\n\n {%- set query -%}\n with tables as (\n select\n project_id as table_database,\n dataset_id as table_schema,\n table_id as original_table_name,\n\n concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n row_count,\n size_bytes as size_bytes,\n case\n when type = 1 then 'table'\n when type = 2 then 'view'\n else 'external'\n end as table_type,\n\n REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n where (\n {%- for schema in schemas -%}\n upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n\n extracted as (\n\n select *,\n case\n when is_date_shard then shard_base_name\n else original_table_name\n end as table_name\n\n from tables\n\n ),\n\n unsharded_tables as (\n\n select\n table_database,\n table_schema,\n table_name,\n coalesce(table_type, 'external') as table_type,\n is_date_shard,\n\n struct(\n min(shard_name) as shard_min,\n max(shard_name) as shard_max,\n count(*) as shard_count\n ) as table_shards,\n\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count,\n\n max(relation_id) as relation_id\n\n from extracted\n group by 1,2,3,4,5\n\n ),\n\n info_schema_columns as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n table_catalog as table_database,\n table_schema,\n table_name,\n\n -- use the \"real\" column name from the paths query below\n column_name as base_column_name,\n ordinal_position as column_index,\n\n is_partitioning_column,\n clustering_ordinal_position\n\n from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n where ordinal_position is not null\n\n ),\n\n info_schema_column_paths as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n field_path as column_name,\n data_type as column_type,\n column_name as base_column_name,\n description as column_comment\n\n from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n ),\n\n columns as (\n\n select * except (base_column_name)\n from info_schema_columns\n join info_schema_column_paths using (relation_id, base_column_name)\n\n ),\n\n column_stats as (\n\n select\n table_database,\n table_schema,\n table_name,\n max(relation_id) as relation_id,\n max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n array_to_string(\n array_agg(\n case\n when clustering_ordinal_position is not null then column_name\n else null\n end ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n\n from columns\n group by 1,2,3\n\n )\n\n select\n unsharded_tables.table_database,\n unsharded_tables.table_schema,\n case\n when is_date_shard then concat(unsharded_tables.table_name, '*')\n else unsharded_tables.table_name\n end as table_name,\n unsharded_tables.table_type,\n\n -- coalesce name and type for External tables - these columns are not\n -- present in the COLUMN_FIELD_PATHS resultset\n coalesce(columns.column_name, '') as column_name,\n -- invent a row number to account for nested fields -- BQ does\n -- not treat these nested properties as independent fields\n row_number() over (\n partition by relation_id\n order by columns.column_index, columns.column_name\n ) as column_index,\n coalesce(columns.column_type, '') as column_type,\n columns.column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_shards.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_shards.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_shards.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n is_clustered as `stats__clustering_fields__include`\n\n -- join using relation_id (an actual relation, not a shard prefix) to make\n -- sure that column metadata is picked up through the join. This will only\n -- return the column information for the \"max\" table in a date-sharded table set\n from unsharded_tables\n left join columns using (relation_id)\n left join column_stats using (relation_id)\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.partition_by": {"unique_id": "macro.dbt_bigquery.partition_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.cluster_by": {"unique_id": "macro.dbt_bigquery.cluster_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery_table_options": {"unique_id": "macro.dbt_bigquery.bigquery_table_options", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_table_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, sql) -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n as (\n {{ sql }}\n );\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_view_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_view_as", "macro_sql": "{% macro bigquery__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\n create or replace view {{ relation }}\n {{ bigquery_table_options(config, model, temporary=false) }}\n as {{ sql }};\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_schema": {"unique_id": "macro.dbt_bigquery.bigquery__create_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_schema", "macro_sql": "{% macro bigquery__create_schema(relation) -%}\n {{ adapter.create_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__drop_schema": {"unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__drop_relation": {"unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% call statement('drop_relation') -%}\n drop {{ relation.type }} if exists {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__current_timestamp": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.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": []}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__list_schemas": {"unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__persist_docs": {"unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__rename_relation": {"unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__alter_column_type": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_view_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n {% set to_return = create_or_replace_view(run_outside_transaction_hooks=False) %}\n\n {% set target_relation = this.incorporate(type='view') %}\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.make_date_partitioned_table": {"unique_id": "macro.dbt_bigquery.make_date_partitioned_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "make_date_partitioned_table", "macro_sql": "{% macro make_date_partitioned_table(model, relation, dates, should_create, verbose=False) %}\n\n {% if should_create %}\n {{ adapter.make_date_partitioned_table(relation) }}\n {% endif %}\n\n {% for date in dates %}\n {% set date = (date | string) %}\n {% if verbose %}\n {% set table_start_time = modules.datetime.datetime.now().strftime(\"%H:%M:%S\") %}\n {{ log(table_start_time ~ ' | -> Running for day ' ~ date, info=True) }}\n {% endif %}\n\n {% set fixed_sql = model['compiled_sql'] | replace('[DBT__PARTITION_DATE]', date) %}\n {% set _ = adapter.execute_model(model, 'table', fixed_sql, decorator=date) %}\n {% endfor %}\n\n {% set num_days = dates | length %}\n {% if num_days == 1 %}\n {% set result_str = 'CREATED 1 PARTITION' %}\n {% else %}\n {% set result_str = 'CREATED ' ~ num_days ~ ' PARTITIONS' %}\n {% endif %}\n\n {{ store_result('main', response=result_str) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_table_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery' -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n {%- set verbose = config.get('verbose', False) -%}\n\n {# partitions: iterate over each partition, running a separate query in a for-loop #}\n {%- set partitions = config.get('partitions') -%}\n\n {% if partitions %}\n {% if partitions is number or partitions is string %}\n {% set partitions = [(partitions | string)] %}\n {% endif %}\n\n {% if partitions is not iterable %}\n {{ exceptions.raise_compiler_error(\"Provided `partitions` configuration is not a list. Got: \" ~ partitions, model) }}\n {% endif %}\n {% endif %}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n Since dbt uses WRITE_TRUNCATE mode for tables, we only need to drop this thing\n if it is not a table. If it _is_ already a table, then we can overwrite it without downtime\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {% if partitions %}\n {# Create the dp-table if 1. it does not exist or 2. it existed, but we just dropped it #}\n {%- set should_create = (old_relation is none or exists_not_as_table) -%}\n {{ make_date_partitioned_table(model, target_relation, partitions, should_create, verbose) }}\n {% else %}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n {% call statement('main') -%}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall -%}\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_copy_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "name": "materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {# there should be exactly one ref or exactly one source #}\n {% set destination = this.incorporate(type='table') %}\n\n {% set dependency_type = none %}\n {% if (model.refs | length) == 1 and (model.sources | length) == 0 %}\n {% set dependency_type = 'ref' %}\n {% elif (model.refs | length) == 0 and (model.sources | length) == 1 %}\n {% set dependency_type = 'source' %}\n {% else %}\n {% set msg %}\n Expected exactly one ref or exactly one source, instead got {{ model.refs | length }} models and {{ model.sources | length }} sources.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% if dependency_type == 'ref' %}\n {% set src = ref(*model.refs[0]) %}\n {% else %}\n {% set src = source(*model.sources[0]) %}\n {% endif %}\n\n {%- set result_str = adapter.copy_table(\n src,\n destination,\n config.get('copy_materialization', 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\", default=\"merge\") -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bq_insert_overwrite": {"unique_id": "macro.dbt_bigquery.bq_insert_overwrite", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_insert_overwrite", "macro_sql": "{% macro bq_insert_overwrite(tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns) %}\n {%- set partition_type =\n 'date' if partition_by.data_type in ('timestamp, datetime')\n else partition_by.data_type -%}\n\n {% if partitions is not none and partitions != [] %} {# static #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n {% else %} {# dynamic #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_type }}>;\n declare _dbt_max_partition {{ partition_by.data_type }};\n\n set _dbt_max_partition = (\n select max({{ partition_by.field }}) from {{ this }}\n );\n\n -- 1. create a temp table\n {{ create_table_as(True, tmp_relation, sql) }}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n array_agg(distinct {{ partition_by.render() }})\n from {{ tmp_relation }}\n );\n\n {#\n TODO: include_sql_header is a hack; consider a better approach that includes\n the sql_header at the materialization-level instead\n #}\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=false) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery' -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% else %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% if partition_by is none %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite(\n tmp_relation,\n target_relation,\n sql,\n unique_key,\n partition_by,\n partitions,\n dest_columns) %}\n\n {% else %}\n {#-- wrap sql in parens to make it a subquery --#}\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n {% endif %}\n\n {% endif %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% 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": []}, "macro.dbt_bigquery.bigquery__create_columns": {"unique_id": "macro.dbt_bigquery.bigquery__create_columns", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__post_snapshot": {"unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.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": []}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.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": []}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.column_list": {"unique_id": "macro.dbt.column_list", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list", "macro_sql": "{% macro column_list(columns) %}\n {%- for col in columns %}\n {{ col.name }} {% 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": []}, "macro.dbt.column_list_for_create_table": {"unique_id": "macro.dbt.column_list_for_create_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list_for_create_table", "macro_sql": "{% macro column_list_for_create_table(columns) %}\n {%- for col in columns %}\n {{ col.name }} {{ col.data_type }} {%- 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": []}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.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": []}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.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": []}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.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": []}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.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": []}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/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": []}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/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": []}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/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": []}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/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/fishtown-analytics/dbt/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/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": []}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/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 = 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.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": []}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_table", "macro_sql": "{% macro 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": []}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "get_or_create_relation", "macro_sql": "{% macro 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": []}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/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 {{ 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.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": []}, "macro.dbt.basic_load_csv_rows": {"unique_id": "macro.dbt.basic_load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "basic_load_csv_rows", "macro_sql": "{% macro basic_load_csv_rows(model, batch_size, agate_table) %}\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 %s\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n {{ return(basic_load_csv_rows(model, 10000, agate_table) )}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/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 {{ 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.incremental_upsert": {"unique_id": "macro.dbt.incremental_upsert", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/helpers.sql", "original_file_path": "macros/materializations/incremental/helpers.sql", "name": "incremental_upsert", "macro_sql": "{% macro incremental_upsert(tmp_relation, target_relation, unique_key=none, statement_name=\"main\") %}\n {%- set dest_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set dest_cols_csv = dest_columns | map(attribute='quoted') | join(', ') -%}\n\n {%- if unique_key is not none -%}\n delete\n from {{ target_relation }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ tmp_relation }}\n );\n {%- endif %}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ tmp_relation }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/incremental.sql", "original_file_path": "macros/materializations/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(this) %}\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 {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif existing_relation.is_view or should_full_refresh() %}\n {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n {% set backup_identifier = existing_relation.identifier ~ \"__dbt_backup\" %}\n {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n {% do adapter.drop_relation(backup_relation) %}\n\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% do to_drop.append(backup_relation) %}\n {% else %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\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 {% set build_sql = incremental_upsert(tmp_relation, target_relation, unique_key=unique_key) %}\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% do persist_docs(target_relation, model) %}\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/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')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/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')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/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')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/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 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 in dest_columns -%}\n {{ adapter.quote(column.name) }} = DBT_INTERNAL_SOURCE.{{ adapter.quote(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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\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{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.common_get_delete_insert_merge_sql": {"unique_id": "macro.dbt.common_get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "common_get_delete_insert_merge_sql", "macro_sql": "{% macro common_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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/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 {{ common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/table/table.sql", "original_file_path": "macros/materializations/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\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\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\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(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 {{ create_table_as(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/view.sql", "original_file_path": "macros/materializations/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\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\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(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(target_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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch(\"handle_existing_table\", packages=['dbt'])(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view(run_outside_transaction_hooks=True) %}\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 {% if run_outside_transaction_hooks %}\n -- no transactions on BigQuery\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n {% endif %}\n\n -- `BEGIN` happens here on Snowflake\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\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 {{ create_view_as(target_relation, sql) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if run_outside_transaction_hooks %}\n -- No transactions on BigQuery\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n {% endif %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_alias.sql", "original_file_path": "macros/etc/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro 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": []}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/query.sql", "original_file_path": "macros/etc/query.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/is_incremental.sql", "original_file_path": "macros/etc/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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": []}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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": []}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro 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": []}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/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": []}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/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')(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": []}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/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": []}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation')(base_relation, suffix))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.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": []}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, to, field) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\n\n\nselect count(*) as validation_errors\nfrom (\n select {{ column_name }} as id from {{ model }}\n) as child\nleft join (\n select {{ field }} as id from {{ to }}\n) as parent on parent.id = child.id\nwhere child.id is not null\n and parent.id is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "test_relationships", "macro_sql": "{% macro test_relationships(model, to, field) %}\n {% set macro = adapter.dispatch('test_relationships') %}\n {{ macro(model, to, field, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*) as validation_errors\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": []}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "test_not_null", "macro_sql": "{% macro test_not_null(model) %}\n {% set macro = adapter.dispatch('test_not_null') %}\n {{ macro(model, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*) as validation_errors\nfrom (\n\n select\n {{ column_name }}\n\n from {{ model }}\n where {{ column_name }} is not null\n group by {{ column_name }}\n having count(*) > 1\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "test_unique", "macro_sql": "{% macro test_unique(model) %}\n {% set macro = adapter.dispatch('test_unique') %}\n {{ macro(model, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, values) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('field')) %}\n{% set quote_values = kwargs.get('quote', True) %}\n\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 not in (\n {% for value in values -%}\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "test_accepted_values", "macro_sql": "{% macro test_accepted_values(model, values) %}\n {% set macro = adapter.dispatch('test_accepted_values') %}\n {{ macro(model, values, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 concat({{ fields|join(', ') }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.alternative_concat": {"unique_id": "macro.dbt_utils.alternative_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "alternative_concat", "macro_sql": "{% macro alternative_concat(fields) %}\n {{ fields|join(' || ') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__concat": {"unique_id": "macro.dbt_utils.redshift__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "redshift__concat", "macro_sql": "{% macro redshift__concat(fields) %}\n {{ dbt_utils.alternative_concat(fields) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__concat": {"unique_id": "macro.dbt_utils.snowflake__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "snowflake__concat", "macro_sql": "{% macro snowflake__concat(fields) %}\n {{ dbt_utils.alternative_concat(fields) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (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": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "macro.dbt_utils._get_utils_namespaces": {"unique_id": "macro.dbt_utils._get_utils_namespaces", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_get_utils_namespaces.sql", "original_file_path": "macros/cross_db_utils/_get_utils_namespaces.sql", "name": "_get_utils_namespaces", "macro_sql": "{% macro _get_utils_namespaces() %}\n {% set override_namespaces = var('dbt_utils_dispatch_list', []) %}\n {% do return(override_namespaces + ['dbt_utils']) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 {{ exceptions.raise_compiler_error(\n \"dbt_utils.last_day is not supported for datepart 'quarter' on this adapter\") }}\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces()) (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_log_format.sql", "original_file_path": "macros/logger/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', packages = dbt_utils._get_utils_namespaces())(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_log_format.sql", "original_file_path": "macros/logger/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_time.sql", "original_file_path": "macros/logger/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', packages = dbt_utils._get_utils_namespaces())(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_time.sql", "original_file_path": "macros/logger/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": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/log_info.sql", "original_file_path": "macros/logger/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', packages = dbt_utils._get_utils_namespaces())(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/log_info.sql", "original_file_path": "macros/logger/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/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', packages = dbt_utils._get_utils_namespaces())(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', packages = dbt_utils._get_utils_namespaces())(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n/*\ncall 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*/\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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(field, \"'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\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/geo/haversine_distance.sql", "original_file_path": "macros/geo/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1,lon1,lat2,lon2) -%}\n {{ return(adapter.dispatch('haversine_distance', packages = dbt_utils._get_utils_namespaces())(lat1,lon1,lat2,lon2)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/geo/haversine_distance.sql", "original_file_path": "macros/geo/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1,lon1,lat2,lon2) -%}\n\n 2 * 3961 * asin(sqrt((sin(radians(({{lat2}} - {{lat1}}) / 2))) ^ 2 +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n (sin(radians(({{lon2}} - {{lon1}}) / 2))) ^ 2))\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% macro test_equal_rowcount(model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model) %}\n\n{% set compare_model = kwargs.get('compare_model', kwargs.get('arg')) %}\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 abs(\n (select count_a from a) -\n (select count_b from b)\n )\n as diff_count\n\n)\n\nselect diff_count from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% macro test_relationships_where(model, to, field) %}\n {{ return(adapter.dispatch('test_relationships_where', packages = dbt_utils._get_utils_namespaces())(model, to, field, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, to, field) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\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{% set from_condition = kwargs.get('from_condition', \"1=1\") %}\n{% set to_condition = kwargs.get('to_condition', \"1=1\") %}\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 count(*) from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "test_recency", "macro_sql": "{% macro test_recency(model, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', packages = dbt_utils._get_utils_namespaces())(model, datepart, interval, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, datepart, interval) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('field')) %}\n\nselect\n case when count(*) > 0 then 0\n else 1\n end as error_result\nfrom {{model}}\nwhere {{column_name}} >=\n {{dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp())}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% macro test_not_constant(model) %}\n {{ return(adapter.dispatch('test_not_constant', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*)\n\nfrom (\n\n select\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\n from {{ model }}\n\n having count(distinct {{ column_name }}) = 1\n\n ) validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% macro test_unique_where(model) %}\r\n {{ return(adapter.dispatch('test_unique_where', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model) %}\r\n\r\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\r\n{% set where = kwargs.get('where', kwargs.get('arg')) %}\r\n\r\nselect count(*)\r\nfrom (\r\n\r\n select\r\n {{ column_name }}\r\n\r\n from {{ model }}\r\n where {{ column_name }} is not null\r\n {% if where %} and {{ where }} {% endif %}\r\n group by {{ column_name }}\r\n having count(*) > 1\r\n\r\n) validation_errors\r\n\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% macro test_at_least_one(model) %}\n {{ return(adapter.dispatch('test_at_least_one', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*)\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": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% macro test_unique_combination_of_columns(model, quote_columns = false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', packages = dbt_utils._get_utils_namespaces())(model, quote_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, quote_columns = false) %}\n\n{%- set columns = kwargs.get('combination_of_columns', kwargs.get('arg')) %}\n\n{% if not quote_columns %}\n {%- set column_list=columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in 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\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect count(*)\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% macro test_cardinality_equality(model, to, field) %}\n\n {{ return(adapter.dispatch('test_cardinality_equality', packages = dbt_utils._get_utils_namespaces())(model, to, field, **kwargs)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, to, field) %}\n\n{# T-SQL doesn't let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\n\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 {{ column_name }}\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 count(*)\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% macro test_expression_is_true(model, 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', packages = dbt_utils._get_utils_namespaces())(model, condition, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, condition) %}\n\n{% set expression = kwargs.get('expression', kwargs.get('arg')) %}\n\nwith meet_condition as (\n\n select * from {{ model }} where {{ condition }}\n\n),\nvalidation_errors as (\n\n select\n *\n from meet_condition\n where not({{expression}})\n\n)\n\nselect count(*)\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% macro test_not_null_where(model) %}\r\n {{ return(adapter.dispatch('test_not_null_where', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model) %}\r\n\r\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\r\n{% set where = kwargs.get('where', kwargs.get('arg')) %}\r\n\r\nselect count(*)\r\nfrom {{ model }}\r\nwhere {{ column_name }} is null\r\n{% if where %} and {{ where }} {% endif %}\r\n\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "test_equality", "macro_sql": "{% macro test_equality(model) %}\n {{ return(adapter.dispatch('test_equality', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model) %}\n\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{%- set compare_columns = kwargs.get('compare_columns', None) -%}\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_model = kwargs.get('compare_model', kwargs.get('arg')) %}\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 * from a_minus_b\n union all\n select * from b_minus_a\n\n),\n\nfinal as (\n\n select (select count(*) from unioned) +\n (select abs(\n (select count(*) from a_minus_b) -\n (select count(*) from b_minus_a)\n ))\n as count\n\n)\n\nselect count from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% macro test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed') %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', packages = dbt_utils._get_utils_namespaces())(model, lower_bound_column, upper_bound_column, partition_by, gaps)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_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') %}\n\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\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 }},\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 < upper_bound,\n false\n ) as lower_bound_less_than_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_less_than_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect count(*) from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 * pow(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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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=[]) -%}\n {{ return(adapter.dispatch('star', packages = dbt_utils._get_utils_namespaces())(from, relation_alias, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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=[]) -%}\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 include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n\n {%- for col in cols -%}\n\n {%- if col.column not in except -%}\n {% do include_cols.append(col.column) %}\n\n {%- endif %}\n {%- endfor %}\n\n {%- for col in include_cols %}\n\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n\n {%- endfor -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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({{ col.column }} 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(relations, column_override, include, exclude, source_column_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 {%- 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as \"table_type\"\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as table_type\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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, max_records=none, default=none) -%}\n {{ return(adapter.dispatch('get_column_values', packages = dbt_utils._get_utils_namespaces())(table, column, max_records, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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, max_records=none, default=none) -%}\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\n {%- set target_relation = adapter.get_relation(database=table.database,\n schema=table.schema,\n identifier=table.identifier) -%}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not target_relation and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ table ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not target_relation and default is not none -%}\n\n {{ log(\"Relation \" ~ table ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n group by 1\n order by count(*) desc\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 v in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ v }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ v ~ suffix) }}\n {% else %}\n as {{prefix ~ v ~ suffix }}\n {% endif %}\n {% endif %}\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": []}, "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_source/integration_tests/dbt_modules/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', packages = dbt_utils._get_utils_namespaces())(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = fivetran_utils._get_utils_namespaces()) (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = fivetran_utils._get_utils_namespaces()) (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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('datediff', packages = fivetran_utils._get_utils_namespaces())(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "macro.fivetran_utils.postgres__datediff": {"unique_id": "macro.fivetran_utils.postgres__datediff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = fivetran_utils._get_utils_namespaces()) (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "macro.fivetran_utils.snowflake__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.snowflake__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "snowflake__get_columns_for_macro", "macro_sql": "{% macro snowflake__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) = 'number' 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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) = 'numeric' 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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 == 'bigquery' %}\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": []}, "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_source/integration_tests/dbt_modules/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', packages = fivetran_utils._get_utils_namespaces()) (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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', packages = fivetran_utils._get_utils_namespaces()) (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', packages = fivetran_utils._get_utils_namespaces()) (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "macro.fivetran_utils._get_utils_namespaces": {"unique_id": "macro.fivetran_utils._get_utils_namespaces", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/_get_utils_namespaces.sql", "original_file_path": "macros/_get_utils_namespaces.sql", "name": "_get_utils_namespaces", "macro_sql": "{% macro _get_utils_namespaces() %}\n {% set override_namespaces = var('dbt_utils_dispatch_list', []) %}\n {% do return(override_namespaces + ['dbt_utils', 'fivetran_utils']) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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', packages = fivetran_utils._get_utils_namespaces()) (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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 listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__array_agg": {"unique_id": "macro.fivetran_utils.snowflake__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "snowflake__array_agg", "macro_sql": "{% macro snowflake__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": []}, "macro.fivetran_utils.bigquery__array_agg": {"unique_id": "macro.fivetran_utils.bigquery__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "bigquery__array_agg", "macro_sql": "{% macro bigquery__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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"transfer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_int()},\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_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()},\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_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\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_int()},\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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"income_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_quantity\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt_utils.type_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_int()},\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_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\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_int()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_int()},\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_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\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_int()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\n {\"name\": \"deposit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt_utils.type_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"refund_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\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_int()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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_int()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"pay_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_int()},\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_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\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_int()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\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": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "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_source/integration_tests/dbt_modules/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_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_int()},\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_int()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"line_num\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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 `--models` 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/overview)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [chat](https://community.getdbt.com/) on Slack for live questions and support."}}, "exposures": {}, "selectors": {}, "disabled": [], "parent_map": {"seed.quickbooks_source_integration_tests.bill_payment_data": [], "seed.quickbooks_source_integration_tests.bundle_data": [], "seed.quickbooks_source_integration_tests.bill_payment_line_data": [], "seed.quickbooks_source_integration_tests.payment_line_data": [], "seed.quickbooks_source_integration_tests.vendor_data": [], "seed.quickbooks_source_integration_tests.address_data": [], "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": [], "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_source_integration_tests.invoice_data": [], "seed.quickbooks_source_integration_tests.payment_data": [], "seed.quickbooks_source_integration_tests.invoice_line_data": [], "seed.quickbooks_source_integration_tests.deposit_line_data": [], "seed.quickbooks_source_integration_tests.estimate_line_data": [], "seed.quickbooks_source_integration_tests.purchase_data": [], "seed.quickbooks_source_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_source_integration_tests.credit_memo_line_data": [], "seed.quickbooks_source_integration_tests.bill_data": [], "seed.quickbooks_source_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_source_integration_tests.vendor_credit_data": [], "seed.quickbooks_source_integration_tests.customer_data": [], "seed.quickbooks_source_integration_tests.estimate_data": [], "seed.quickbooks_source_integration_tests.purchase_line_data": [], "seed.quickbooks_source_integration_tests.journal_entry_line_data": [], "seed.quickbooks_source_integration_tests.journal_entry_data": [], "seed.quickbooks_source_integration_tests.bill_line_data": [], "seed.quickbooks_source_integration_tests.bundle_item_data": [], "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_source_integration_tests.account_data": [], "seed.quickbooks_source_integration_tests.purchase_order_line_data": [], "seed.quickbooks_source_integration_tests.transfer_data": [], "seed.quickbooks_source_integration_tests.purchase_order_data": [], "seed.quickbooks_source_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_source_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_source_integration_tests.credit_memo_data": [], "seed.quickbooks_source_integration_tests.department_data": [], "seed.quickbooks_source_integration_tests.item_data": [], "seed.quickbooks_source_integration_tests.sales_receipt_data": [], "seed.quickbooks_source_integration_tests.deposit_data": [], "seed.quickbooks_source_integration_tests.refund_receipt_data": [], "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__purchase_order": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_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__purchase_order_line": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_line_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__purchase_order_linked_txn": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_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_source_integration_tests.vendor_credit_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["seed.quickbooks_source_integration_tests.refund_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["seed.quickbooks_source_integration_tests.estimate_line_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_line_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["seed.quickbooks_source_integration_tests.credit_memo_line_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["seed.quickbooks_source_integration_tests.journal_entry_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["seed.quickbooks_source_integration_tests.invoice_line_bundle_data"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["seed.quickbooks_source_integration_tests.payment_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["seed.quickbooks_source_integration_tests.invoice_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["seed.quickbooks_source_integration_tests.deposit_line_data"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["seed.quickbooks_source_integration_tests.customer_data"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["seed.quickbooks_source_integration_tests.bill_line_data"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["seed.quickbooks_source_integration_tests.item_data"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["seed.quickbooks_source_integration_tests.account_data"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["seed.quickbooks_source_integration_tests.vendor_credit_line_data"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["seed.quickbooks_source_integration_tests.department_data"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["seed.quickbooks_source_integration_tests.bundle_data"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["seed.quickbooks_source_integration_tests.bundle_item_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["seed.quickbooks_source_integration_tests.bill_payment_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["seed.quickbooks_source_integration_tests.estimate_data"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["seed.quickbooks_source_integration_tests.purchase_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["seed.quickbooks_source_integration_tests.credit_memo_data"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["seed.quickbooks_source_integration_tests.bill_data"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["seed.quickbooks_source_integration_tests.transfer_data"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["seed.quickbooks_source_integration_tests.vendor_data"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["seed.quickbooks_source_integration_tests.purchase_line_data"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["seed.quickbooks_source_integration_tests.address_data"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["seed.quickbooks_source_integration_tests.payment_line_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["seed.quickbooks_source_integration_tests.refund_receipt_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["seed.quickbooks_source_integration_tests.sales_receipt_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["seed.quickbooks_source_integration_tests.bill_payment_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["seed.quickbooks_source_integration_tests.journal_entry_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["seed.quickbooks_source_integration_tests.deposit_data"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.bill_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.invoice_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["seed.quickbooks_source_integration_tests.sales_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["seed.quickbooks_source_integration_tests.invoice_data"], "test.quickbooks_source.unique_stg_quickbooks__account_account_id": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.unique_stg_quickbooks__address_address_id": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.unique_stg_quickbooks__item_item_id": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id": ["model.quickbooks_source.stg_quickbooks__purchase_order_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id": ["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_source_integration_tests.bill_payment_data": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "seed.quickbooks_source_integration_tests.bundle_data": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "seed.quickbooks_source_integration_tests.bill_payment_line_data": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "seed.quickbooks_source_integration_tests.payment_line_data": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "seed.quickbooks_source_integration_tests.vendor_data": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"], "seed.quickbooks_source_integration_tests.address_data": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "seed.quickbooks_source_integration_tests.invoice_data": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "seed.quickbooks_source_integration_tests.payment_data": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "seed.quickbooks_source_integration_tests.invoice_line_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "seed.quickbooks_source_integration_tests.deposit_line_data": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "seed.quickbooks_source_integration_tests.estimate_line_data": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "seed.quickbooks_source_integration_tests.purchase_data": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "seed.quickbooks_source_integration_tests.refund_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "seed.quickbooks_source_integration_tests.credit_memo_line_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "seed.quickbooks_source_integration_tests.bill_data": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "seed.quickbooks_source_integration_tests.bill_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.vendor_credit_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "seed.quickbooks_source_integration_tests.customer_data": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "seed.quickbooks_source_integration_tests.estimate_data": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "seed.quickbooks_source_integration_tests.purchase_line_data": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "seed.quickbooks_source_integration_tests.journal_entry_line_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "seed.quickbooks_source_integration_tests.journal_entry_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "seed.quickbooks_source_integration_tests.bill_line_data": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "seed.quickbooks_source_integration_tests.bundle_item_data": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.account_data": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_line_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"], "seed.quickbooks_source_integration_tests.transfer_data": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp"], "seed.quickbooks_source_integration_tests.sales_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "seed.quickbooks_source_integration_tests.vendor_credit_line_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "seed.quickbooks_source_integration_tests.credit_memo_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "seed.quickbooks_source_integration_tests.department_data": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "seed.quickbooks_source_integration_tests.item_data": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "seed.quickbooks_source_integration_tests.sales_receipt_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "seed.quickbooks_source_integration_tests.deposit_data": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "seed.quickbooks_source_integration_tests.refund_receipt_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "model.quickbooks_source.stg_quickbooks__transfer": ["test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id", "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "model.quickbooks_source.stg_quickbooks__payment_line": ["test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id"], "model.quickbooks_source.stg_quickbooks__vendor": ["test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id", "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id"], "model.quickbooks_source.stg_quickbooks__estimate": ["test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id", "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "model.quickbooks_source.stg_quickbooks__bundle": ["test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id", "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id"], "model.quickbooks_source.stg_quickbooks__department": [], "model.quickbooks_source.stg_quickbooks__purchase_line": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id"], "model.quickbooks_source.stg_quickbooks__purchase": ["test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id", "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id", "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id"], "model.quickbooks_source.stg_quickbooks__purchase_order": ["test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id", "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id"], "model.quickbooks_source.stg_quickbooks__purchase_order_line": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "model.quickbooks_source.stg_quickbooks__invoice": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id", "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id", "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "model.quickbooks_source.stg_quickbooks__account": ["test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id", "test.quickbooks_source.unique_stg_quickbooks__account_account_id"], "model.quickbooks_source.stg_quickbooks__payment": ["test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id", "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "model.quickbooks_source.stg_quickbooks__address": ["test.quickbooks_source.not_null_stg_quickbooks__address_address_id", "test.quickbooks_source.unique_stg_quickbooks__address_address_id"], "model.quickbooks_source.stg_quickbooks__bill": ["test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id", "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id"], "model.quickbooks_source.stg_quickbooks__bill_line": ["test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id", "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id", "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": [], "model.quickbooks_source.stg_quickbooks__deposit": ["test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id", "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id"], "model.quickbooks_source.stg_quickbooks__item": ["test.quickbooks_source.not_null_stg_quickbooks__item_item_id", "test.quickbooks_source.unique_stg_quickbooks__item_item_id"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "model.quickbooks_source.stg_quickbooks__customer": ["test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id", "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id"], "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__purchase_order_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order_line", "model.quickbooks_source.stg_quickbooks__purchase_order_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__purchase_order_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order", "model.quickbooks_source.stg_quickbooks__purchase_order"], "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__purchase_order_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"], "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": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue": [], "test.quickbooks_source.unique_stg_quickbooks__address_address_id": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id": [], "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id": [], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id": [], "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id": [], "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id": [], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id": [], "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id": [], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id": [], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id": [], "test.quickbooks_source.unique_stg_quickbooks__item_item_id": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit": [], "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id": [], "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id": [], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id": [], "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id": [], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id": [], "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 new file mode 100644 index 0000000..87936bc --- /dev/null +++ b/docs/run_results.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-03-11T16:18:25.509608Z", "invocation_id": "fd1112b1-d87b-4c9c-b6d0-769ca5bc7bf3", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.844880Z", "completed_at": "2021-03-11T16:18:21.878948Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.880015Z", "completed_at": "2021-03-11T16:18:21.880044Z"}], "thread_id": "Thread-1", "execution_time": 0.05193305015563965, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.851044Z", "completed_at": "2021-03-11T16:18:21.879348Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.880634Z", "completed_at": "2021-03-11T16:18:21.880646Z"}], "thread_id": "Thread-2", "execution_time": 0.046205997467041016, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.879627Z", "completed_at": "2021-03-11T16:18:21.897217Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.898946Z", "completed_at": "2021-03-11T16:18:21.898955Z"}], "thread_id": "Thread-3", "execution_time": 0.021996021270751953, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.879819Z", "completed_at": "2021-03-11T16:18:21.897541Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.899238Z", "completed_at": "2021-03-11T16:18:21.899247Z"}], "thread_id": "Thread-4", "execution_time": 0.022038698196411133, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.900869Z", "completed_at": "2021-03-11T16:18:21.916782Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.917572Z", "completed_at": "2021-03-11T16:18:21.917581Z"}], "thread_id": "Thread-1", "execution_time": 0.03226494789123535, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.900998Z", "completed_at": "2021-03-11T16:18:21.917054Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.917818Z", "completed_at": "2021-03-11T16:18:21.917825Z"}], "thread_id": "Thread-2", "execution_time": 0.032256126403808594, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.917311Z", "completed_at": "2021-03-11T16:18:21.932231Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.933557Z", "completed_at": "2021-03-11T16:18:21.933566Z"}], "thread_id": "Thread-3", "execution_time": 0.018638134002685547, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.917442Z", "completed_at": "2021-03-11T16:18:21.932500Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.933834Z", "completed_at": "2021-03-11T16:18:21.933841Z"}], "thread_id": "Thread-4", "execution_time": 0.018558025360107422, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.935170Z", "completed_at": "2021-03-11T16:18:21.950566Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.951374Z", "completed_at": "2021-03-11T16:18:21.951382Z"}], "thread_id": "Thread-1", "execution_time": 0.030950069427490234, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.935302Z", "completed_at": "2021-03-11T16:18:21.950828Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.951646Z", "completed_at": "2021-03-11T16:18:21.951655Z"}], "thread_id": "Thread-2", "execution_time": 0.03097701072692871, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.951113Z", "completed_at": "2021-03-11T16:18:21.965460Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.966751Z", "completed_at": "2021-03-11T16:18:21.966759Z"}], "thread_id": "Thread-3", "execution_time": 0.01795196533203125, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.951250Z", "completed_at": "2021-03-11T16:18:21.965714Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.967020Z", "completed_at": "2021-03-11T16:18:21.967027Z"}], "thread_id": "Thread-4", "execution_time": 0.017898082733154297, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.968334Z", "completed_at": "2021-03-11T16:18:21.984013Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.984734Z", "completed_at": "2021-03-11T16:18:21.984742Z"}], "thread_id": "Thread-1", "execution_time": 0.03077411651611328, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.968451Z", "completed_at": "2021-03-11T16:18:21.984250Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.984979Z", "completed_at": "2021-03-11T16:18:21.984986Z"}], "thread_id": "Thread-2", "execution_time": 0.030904769897460938, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.984481Z", "completed_at": "2021-03-11T16:18:21.998554Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.999836Z", "completed_at": "2021-03-11T16:18:21.999842Z"}], "thread_id": "Thread-3", "execution_time": 0.017490863800048828, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.984600Z", "completed_at": "2021-03-11T16:18:21.998762Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.000055Z", "completed_at": "2021-03-11T16:18:22.000060Z"}], "thread_id": "Thread-4", "execution_time": 0.017431974411010742, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.001319Z", "completed_at": "2021-03-11T16:18:22.014882Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.015721Z", "completed_at": "2021-03-11T16:18:22.015728Z"}], "thread_id": "Thread-1", "execution_time": 0.030315160751342773, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.001432Z", "completed_at": "2021-03-11T16:18:22.015207Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.015957Z", "completed_at": "2021-03-11T16:18:22.015964Z"}], "thread_id": "Thread-2", "execution_time": 0.030612945556640625, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.015448Z", "completed_at": "2021-03-11T16:18:22.031455Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.032948Z", "completed_at": "2021-03-11T16:18:22.032955Z"}], "thread_id": "Thread-3", "execution_time": 0.02020406723022461, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.015570Z", "completed_at": "2021-03-11T16:18:22.031903Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.033396Z", "completed_at": "2021-03-11T16:18:22.033403Z"}], "thread_id": "Thread-4", "execution_time": 0.02004218101501465, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.034765Z", "completed_at": "2021-03-11T16:18:22.049572Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.050353Z", "completed_at": "2021-03-11T16:18:22.050362Z"}], "thread_id": "Thread-1", "execution_time": 0.030562877655029297, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.034897Z", "completed_at": "2021-03-11T16:18:22.049848Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.050605Z", "completed_at": "2021-03-11T16:18:22.050612Z"}], "thread_id": "Thread-2", "execution_time": 0.030573129653930664, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.050107Z", "completed_at": "2021-03-11T16:18:22.064662Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.065848Z", "completed_at": "2021-03-11T16:18:22.065856Z"}], "thread_id": "Thread-3", "execution_time": 0.018300294876098633, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.050226Z", "completed_at": "2021-03-11T16:18:22.064914Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.066242Z", "completed_at": "2021-03-11T16:18:22.066249Z"}], "thread_id": "Thread-4", "execution_time": 0.018247127532958984, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.067673Z", "completed_at": "2021-03-11T16:18:22.082345Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.083164Z", "completed_at": "2021-03-11T16:18:22.083173Z"}], "thread_id": "Thread-1", "execution_time": 0.031580209732055664, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.067801Z", "completed_at": "2021-03-11T16:18:22.082603Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.083425Z", "completed_at": "2021-03-11T16:18:22.083432Z"}], "thread_id": "Thread-2", "execution_time": 0.03161501884460449, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.082856Z", "completed_at": "2021-03-11T16:18:22.098582Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.099809Z", "completed_at": "2021-03-11T16:18:22.099816Z"}], "thread_id": "Thread-3", "execution_time": 0.019346237182617188, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.083009Z", "completed_at": "2021-03-11T16:18:22.098853Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.100131Z", "completed_at": "2021-03-11T16:18:22.100138Z"}], "thread_id": "Thread-4", "execution_time": 0.01926898956298828, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.101481Z", "completed_at": "2021-03-11T16:18:22.116134Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.116923Z", "completed_at": "2021-03-11T16:18:22.116932Z"}], "thread_id": "Thread-1", "execution_time": 0.030163049697875977, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.101601Z", "completed_at": "2021-03-11T16:18:22.116401Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.117182Z", "completed_at": "2021-03-11T16:18:22.117189Z"}], "thread_id": "Thread-2", "execution_time": 0.030169963836669922, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.116665Z", "completed_at": "2021-03-11T16:18:22.130973Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.132169Z", "completed_at": "2021-03-11T16:18:22.132176Z"}], "thread_id": "Thread-3", "execution_time": 0.017911195755004883, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.116793Z", "completed_at": "2021-03-11T16:18:22.131229Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.132434Z", "completed_at": "2021-03-11T16:18:22.132441Z"}], "thread_id": "Thread-4", "execution_time": 0.01787281036376953, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.133883Z", "completed_at": "2021-03-11T16:18:22.148804Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.149533Z", "completed_at": "2021-03-11T16:18:22.149543Z"}], "thread_id": "Thread-1", "execution_time": 0.030591964721679688, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.134016Z", "completed_at": "2021-03-11T16:18:22.149056Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.149802Z", "completed_at": "2021-03-11T16:18:22.149810Z"}], "thread_id": "Thread-2", "execution_time": 0.03209209442138672, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.149283Z", "completed_at": "2021-03-11T16:18:22.165260Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.166450Z", "completed_at": "2021-03-11T16:18:22.166458Z"}], "thread_id": "Thread-3", "execution_time": 0.019562959671020508, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.149396Z", "completed_at": "2021-03-11T16:18:22.165853Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.167037Z", "completed_at": "2021-03-11T16:18:22.167044Z"}], "thread_id": "Thread-4", "execution_time": 0.019641876220703125, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.167834Z", "completed_at": "2021-03-11T16:18:22.182604Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.183517Z", "completed_at": "2021-03-11T16:18:22.183525Z"}], "thread_id": "Thread-1", "execution_time": 0.023873090744018555, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.168224Z", "completed_at": "2021-03-11T16:18:22.183142Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.183905Z", "completed_at": "2021-03-11T16:18:22.183913Z"}], "thread_id": "Thread-2", "execution_time": 0.029057741165161133, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.183385Z", "completed_at": "2021-03-11T16:18:22.207265Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.208445Z", "completed_at": "2021-03-11T16:18:22.208455Z"}], "thread_id": "Thread-3", "execution_time": 0.02722001075744629, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.183754Z", "completed_at": "2021-03-11T16:18:22.208736Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.209691Z", "completed_at": "2021-03-11T16:18:22.209698Z"}], "thread_id": "Thread-4", "execution_time": 0.0364990234375, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.209249Z", "completed_at": "2021-03-11T16:18:22.231372Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.232250Z", "completed_at": "2021-03-11T16:18:22.232260Z"}], "thread_id": "Thread-1", "execution_time": 0.03490877151489258, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.209940Z", "completed_at": "2021-03-11T16:18:22.232013Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.242426Z", "completed_at": "2021-03-11T16:18:22.242437Z"}], "thread_id": "Thread-2", "execution_time": 0.04419684410095215, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.231632Z", "completed_at": "2021-03-11T16:18:22.254080Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.255303Z", "completed_at": "2021-03-11T16:18:22.255311Z"}], "thread_id": "Thread-3", "execution_time": 0.02573990821838379, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.237799Z", "completed_at": "2021-03-11T16:18:22.255074Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.255805Z", "completed_at": "2021-03-11T16:18:22.255812Z"}], "thread_id": "Thread-4", "execution_time": 0.043853044509887695, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.255553Z", "completed_at": "2021-03-11T16:18:22.276480Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.277633Z", "completed_at": "2021-03-11T16:18:22.277641Z"}], "thread_id": "Thread-1", "execution_time": 0.024218082427978516, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.255678Z", "completed_at": "2021-03-11T16:18:22.277063Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.278149Z", "completed_at": "2021-03-11T16:18:22.278156Z"}], "thread_id": "Thread-2", "execution_time": 0.02422308921813965, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.278383Z", "completed_at": "2021-03-11T16:18:22.299790Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.300590Z", "completed_at": "2021-03-11T16:18:22.300600Z"}], "thread_id": "Thread-3", "execution_time": 0.04358792304992676, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.278803Z", "completed_at": "2021-03-11T16:18:22.300346Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.316368Z", "completed_at": "2021-03-11T16:18:22.316391Z"}], "thread_id": "Thread-4", "execution_time": 0.043450117111206055, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.300084Z", "completed_at": "2021-03-11T16:18:22.322605Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.323459Z", "completed_at": "2021-03-11T16:18:22.323467Z"}], "thread_id": "Thread-1", "execution_time": 0.030534982681274414, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.300226Z", "completed_at": "2021-03-11T16:18:22.322821Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.323698Z", "completed_at": "2021-03-11T16:18:22.323704Z"}], "thread_id": "Thread-2", "execution_time": 0.033882856369018555, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.323326Z", "completed_at": "2021-03-11T16:18:22.344450Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.345343Z", "completed_at": "2021-03-11T16:18:22.345352Z"}], "thread_id": "Thread-3", "execution_time": 0.03309917449951172, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.323934Z", "completed_at": "2021-03-11T16:18:22.344724Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.345604Z", "completed_at": "2021-03-11T16:18:22.345611Z"}], "thread_id": "Thread-4", "execution_time": 0.03269004821777344, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.345198Z", "completed_at": "2021-03-11T16:18:22.365879Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.366926Z", "completed_at": "2021-03-11T16:18:22.366936Z"}], "thread_id": "Thread-1", "execution_time": 0.023665904998779297, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.345836Z", "completed_at": "2021-03-11T16:18:22.367180Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.367977Z", "completed_at": "2021-03-11T16:18:22.367985Z"}], "thread_id": "Thread-2", "execution_time": 0.08876538276672363, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.367411Z", "completed_at": "2021-03-11T16:18:22.435360Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.436405Z", "completed_at": "2021-03-11T16:18:22.436416Z"}], "thread_id": "Thread-3", "execution_time": 0.08305621147155762, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.435669Z", "completed_at": "2021-03-11T16:18:22.470704Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.471302Z", "completed_at": "2021-03-11T16:18:22.471314Z"}], "thread_id": "Thread-1", "execution_time": 0.05075812339782715, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.442099Z", "completed_at": "2021-03-11T16:18:22.471609Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.485232Z", "completed_at": "2021-03-11T16:18:22.485244Z"}], "thread_id": "Thread-2", "execution_time": 0.050772905349731445, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.367552Z", "completed_at": "2021-03-11T16:18:22.476887Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.485600Z", "completed_at": "2021-03-11T16:18:22.485609Z"}], "thread_id": "Thread-4", "execution_time": 0.1207270622253418, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.471079Z", "completed_at": "2021-03-11T16:18:22.487495Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.488924Z", "completed_at": "2021-03-11T16:18:22.488935Z"}], "thread_id": "Thread-3", "execution_time": 0.02005290985107422, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.489264Z", "completed_at": "2021-03-11T16:18:22.522266Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.523339Z", "completed_at": "2021-03-11T16:18:22.523350Z"}], "thread_id": "Thread-1", "execution_time": 0.04738903045654297, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.501945Z", "completed_at": "2021-03-11T16:18:22.522857Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.528726Z", "completed_at": "2021-03-11T16:18:22.528735Z"}], "thread_id": "Thread-2", "execution_time": 0.046076297760009766, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.502307Z", "completed_at": "2021-03-11T16:18:22.523100Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.534695Z", "completed_at": "2021-03-11T16:18:22.534706Z"}], "thread_id": "Thread-4", "execution_time": 0.046204328536987305, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.522676Z", "completed_at": "2021-03-11T16:18:22.536421Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.538051Z", "completed_at": "2021-03-11T16:18:22.538061Z"}], "thread_id": "Thread-3", "execution_time": 0.017681121826171875, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.539716Z", "completed_at": "2021-03-11T16:18:22.571334Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.572206Z", "completed_at": "2021-03-11T16:18:22.572216Z"}], "thread_id": "Thread-2", "execution_time": 0.04369997978210449, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.539193Z", "completed_at": "2021-03-11T16:18:22.571637Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.572457Z", "completed_at": "2021-03-11T16:18:22.572464Z"}], "thread_id": "Thread-1", "execution_time": 0.04473066329956055, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.539872Z", "completed_at": "2021-03-11T16:18:22.571941Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.581556Z", "completed_at": "2021-03-11T16:18:22.581569Z"}], "thread_id": "Thread-4", "execution_time": 0.044088125228881836, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.571863Z", "completed_at": "2021-03-11T16:18:22.583911Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.585046Z", "completed_at": "2021-03-11T16:18:22.585053Z"}], "thread_id": "Thread-3", "execution_time": 0.015450000762939453, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.585658Z", "completed_at": "2021-03-11T16:18:22.622327Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.628268Z", "completed_at": "2021-03-11T16:18:22.628284Z"}], "thread_id": "Thread-1", "execution_time": 0.05230522155761719, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.585482Z", "completed_at": "2021-03-11T16:18:22.622749Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.635883Z", "completed_at": "2021-03-11T16:18:22.635906Z"}], "thread_id": "Thread-2", "execution_time": 0.05397486686706543, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.585803Z", "completed_at": "2021-03-11T16:18:22.635314Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.637342Z", "completed_at": "2021-03-11T16:18:22.637359Z"}], "thread_id": "Thread-4", "execution_time": 0.05520200729370117, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.622205Z", "completed_at": "2021-03-11T16:18:22.638914Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.642233Z", "completed_at": "2021-03-11T16:18:22.642257Z"}], "thread_id": "Thread-3", "execution_time": 0.024110078811645508, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.644987Z", "completed_at": "2021-03-11T16:18:22.686821Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.704531Z", "completed_at": "2021-03-11T16:18:22.704543Z"}], "thread_id": "Thread-1", "execution_time": 0.06496691703796387, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.646691Z", "completed_at": "2021-03-11T16:18:22.692449Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.705062Z", "completed_at": "2021-03-11T16:18:22.705070Z"}], "thread_id": "Thread-2", "execution_time": 0.06265902519226074, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.661002Z", "completed_at": "2021-03-11T16:18:22.705330Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.706780Z", "completed_at": "2021-03-11T16:18:22.706790Z"}], "thread_id": "Thread-4", "execution_time": 0.06221199035644531, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.686447Z", "completed_at": "2021-03-11T16:18:22.707037Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.708492Z", "completed_at": "2021-03-11T16:18:22.708500Z"}], "thread_id": "Thread-3", "execution_time": 0.035977840423583984, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.710067Z", "completed_at": "2021-03-11T16:18:22.743259Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.747039Z", "completed_at": "2021-03-11T16:18:22.747063Z"}], "thread_id": "Thread-1", "execution_time": 0.04961705207824707, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.710200Z", "completed_at": "2021-03-11T16:18:22.747514Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.768761Z", "completed_at": "2021-03-11T16:18:22.768775Z"}], "thread_id": "Thread-2", "execution_time": 0.06099104881286621, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.731786Z", "completed_at": "2021-03-11T16:18:22.769046Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.770310Z", "completed_at": "2021-03-11T16:18:22.770319Z"}], "thread_id": "Thread-4", "execution_time": 0.0621790885925293, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.773023Z", "completed_at": "2021-03-11T16:18:22.978902Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.979221Z", "completed_at": "2021-03-11T16:18:22.979232Z"}], "thread_id": "Thread-1", "execution_time": 0.20908808708190918, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.805897Z", "completed_at": "2021-03-11T16:18:22.996641Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.005572Z", "completed_at": "2021-03-11T16:18:23.005584Z"}], "thread_id": "Thread-4", "execution_time": 0.21883893013000488, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.788157Z", "completed_at": "2021-03-11T16:18:22.996907Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.005863Z", "completed_at": "2021-03-11T16:18:23.005869Z"}], "thread_id": "Thread-2", "execution_time": 0.23436379432678223, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.746620Z", "completed_at": "2021-03-11T16:18:23.008128Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.009178Z", "completed_at": "2021-03-11T16:18:23.009185Z"}], "thread_id": "Thread-3", "execution_time": 0.27829790115356445, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.980312Z", "completed_at": "2021-03-11T16:18:23.158889Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.159171Z", "completed_at": "2021-03-11T16:18:23.159183Z"}], "thread_id": "Thread-1", "execution_time": 0.1795661449432373, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.010519Z", "completed_at": "2021-03-11T16:18:23.191457Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.191765Z", "completed_at": "2021-03-11T16:18:23.191776Z"}], "thread_id": "Thread-2", "execution_time": 0.1823561191558838, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.010395Z", "completed_at": "2021-03-11T16:18:23.210504Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.211032Z", "completed_at": "2021-03-11T16:18:23.211043Z"}], "thread_id": "Thread-4", "execution_time": 0.20671296119689941, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.046048Z", "completed_at": "2021-03-11T16:18:23.232894Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.233139Z", "completed_at": "2021-03-11T16:18:23.233147Z"}], "thread_id": "Thread-3", "execution_time": 0.1885366439819336, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.160423Z", "completed_at": "2021-03-11T16:18:23.320644Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.320937Z", "completed_at": "2021-03-11T16:18:23.320949Z"}], "thread_id": "Thread-1", "execution_time": 0.16123509407043457, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.216949Z", "completed_at": "2021-03-11T16:18:23.366120Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.366389Z", "completed_at": "2021-03-11T16:18:23.366399Z"}], "thread_id": "Thread-4", "execution_time": 0.1500551700592041, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.192758Z", "completed_at": "2021-03-11T16:18:23.374428Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.374724Z", "completed_at": "2021-03-11T16:18:23.374732Z"}], "thread_id": "Thread-2", "execution_time": 0.1826009750366211, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.234169Z", "completed_at": "2021-03-11T16:18:23.412126Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.412679Z", "completed_at": "2021-03-11T16:18:23.412688Z"}], "thread_id": "Thread-3", "execution_time": 0.17948484420776367, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.322178Z", "completed_at": "2021-03-11T16:18:23.517611Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.517949Z", "completed_at": "2021-03-11T16:18:23.517962Z"}], "thread_id": "Thread-1", "execution_time": 0.1965627670288086, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.367413Z", "completed_at": "2021-03-11T16:18:23.562904Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.563202Z", "completed_at": "2021-03-11T16:18:23.563212Z"}], "thread_id": "Thread-4", "execution_time": 0.19654607772827148, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.375631Z", "completed_at": "2021-03-11T16:18:23.564114Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.564865Z", "completed_at": "2021-03-11T16:18:23.564873Z"}], "thread_id": "Thread-2", "execution_time": 0.1963939666748047, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.414078Z", "completed_at": "2021-03-11T16:18:23.613108Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.613963Z", "completed_at": "2021-03-11T16:18:23.613972Z"}], "thread_id": "Thread-3", "execution_time": 0.2007458209991455, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.519099Z", "completed_at": "2021-03-11T16:18:23.767147Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.780789Z", "completed_at": "2021-03-11T16:18:23.780801Z"}], "thread_id": "Thread-1", "execution_time": 0.26325297355651855, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.581638Z", "completed_at": "2021-03-11T16:18:23.781379Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.782240Z", "completed_at": "2021-03-11T16:18:23.782249Z"}], "thread_id": "Thread-2", "execution_time": 0.21126604080200195, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.615244Z", "completed_at": "2021-03-11T16:18:23.781593Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.782584Z", "completed_at": "2021-03-11T16:18:23.782592Z"}], "thread_id": "Thread-3", "execution_time": 0.1688549518585205, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.564650Z", "completed_at": "2021-03-11T16:18:23.782810Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.784030Z", "completed_at": "2021-03-11T16:18:23.784037Z"}], "thread_id": "Thread-4", "execution_time": 0.22133231163024902, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.800416Z", "completed_at": "2021-03-11T16:18:24.046439Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.046883Z", "completed_at": "2021-03-11T16:18:24.046897Z"}], "thread_id": "Thread-2", "execution_time": 0.2618680000305176, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.785429Z", "completed_at": "2021-03-11T16:18:24.047895Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.049179Z", "completed_at": "2021-03-11T16:18:24.049188Z"}], "thread_id": "Thread-1", "execution_time": 0.26600122451782227, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.821570Z", "completed_at": "2021-03-11T16:18:24.048828Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.049700Z", "completed_at": "2021-03-11T16:18:24.049710Z"}], "thread_id": "Thread-4", "execution_time": 0.2625761032104492, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.800539Z", "completed_at": "2021-03-11T16:18:24.120490Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.120821Z", "completed_at": "2021-03-11T16:18:24.120833Z"}], "thread_id": "Thread-3", "execution_time": 0.33571481704711914, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.071180Z", "completed_at": "2021-03-11T16:18:24.254559Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.254829Z", "completed_at": "2021-03-11T16:18:24.254839Z"}], "thread_id": "Thread-1", "execution_time": 0.18688392639160156, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.071937Z", "completed_at": "2021-03-11T16:18:24.255059Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.256903Z", "completed_at": "2021-03-11T16:18:24.256909Z"}], "thread_id": "Thread-4", "execution_time": 0.18746399879455566, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.049477Z", "completed_at": "2021-03-11T16:18:24.255275Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.257146Z", "completed_at": "2021-03-11T16:18:24.257153Z"}], "thread_id": "Thread-2", "execution_time": 0.2098100185394287, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.122623Z", "completed_at": "2021-03-11T16:18:24.309391Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.310646Z", "completed_at": "2021-03-11T16:18:24.310655Z"}], "thread_id": "Thread-3", "execution_time": 0.19058513641357422, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.313417Z", "completed_at": "2021-03-11T16:18:24.507924Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.508242Z", "completed_at": "2021-03-11T16:18:24.508253Z"}], "thread_id": "Thread-3", "execution_time": 0.19544410705566406, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.259218Z", "completed_at": "2021-03-11T16:18:24.527851Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.528124Z", "completed_at": "2021-03-11T16:18:24.528133Z"}], "thread_id": "Thread-1", "execution_time": 0.2701139450073242, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.279179Z", "completed_at": "2021-03-11T16:18:24.535411Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.535701Z", "completed_at": "2021-03-11T16:18:24.535710Z"}], "thread_id": "Thread-2", "execution_time": 0.2764549255371094, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.270995Z", "completed_at": "2021-03-11T16:18:24.559656Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.559922Z", "completed_at": "2021-03-11T16:18:24.559932Z"}], "thread_id": "Thread-4", "execution_time": 0.3009369373321533, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.509196Z", "completed_at": "2021-03-11T16:18:24.724447Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.725136Z", "completed_at": "2021-03-11T16:18:24.725146Z"}], "thread_id": "Thread-3", "execution_time": 0.2176520824432373, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.536602Z", "completed_at": "2021-03-11T16:18:24.724689Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.725372Z", "completed_at": "2021-03-11T16:18:24.725378Z"}], "thread_id": "Thread-2", "execution_time": 0.19056200981140137, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.529018Z", "completed_at": "2021-03-11T16:18:24.724901Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.725631Z", "completed_at": "2021-03-11T16:18:24.725640Z"}], "thread_id": "Thread-1", "execution_time": 0.19841814041137695, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.560833Z", "completed_at": "2021-03-11T16:18:24.778846Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.781100Z", "completed_at": "2021-03-11T16:18:24.781110Z"}], "thread_id": "Thread-4", "execution_time": 0.22197508811950684, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.784005Z", "completed_at": "2021-03-11T16:18:24.800284Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.800515Z", "completed_at": "2021-03-11T16:18:24.800524Z"}], "thread_id": "Thread-4", "execution_time": 0.017432689666748047, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.801633Z", "completed_at": "2021-03-11T16:18:24.810056Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.810333Z", "completed_at": "2021-03-11T16:18:24.810340Z"}], "thread_id": "Thread-4", "execution_time": 0.009531736373901367, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.811331Z", "completed_at": "2021-03-11T16:18:24.820527Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.820750Z", "completed_at": "2021-03-11T16:18:24.820758Z"}], "thread_id": "Thread-4", "execution_time": 0.010258197784423828, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.821624Z", "completed_at": "2021-03-11T16:18:24.830225Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.830433Z", "completed_at": "2021-03-11T16:18:24.830441Z"}], "thread_id": "Thread-4", "execution_time": 0.009324789047241211, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.831411Z", "completed_at": "2021-03-11T16:18:24.840992Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.841839Z", "completed_at": "2021-03-11T16:18:24.841852Z"}], "thread_id": "Thread-4", "execution_time": 0.012227058410644531, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.845231Z", "completed_at": "2021-03-11T16:18:24.858272Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.858575Z", "completed_at": "2021-03-11T16:18:24.858584Z"}], "thread_id": "Thread-4", "execution_time": 0.014578819274902344, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.861674Z", "completed_at": "2021-03-11T16:18:24.869709Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.869926Z", "completed_at": "2021-03-11T16:18:24.869932Z"}], "thread_id": "Thread-4", "execution_time": 0.008959054946899414, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.870785Z", "completed_at": "2021-03-11T16:18:24.879831Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.880071Z", "completed_at": "2021-03-11T16:18:24.880078Z"}], "thread_id": "Thread-4", "execution_time": 0.009908914566040039, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.880963Z", "completed_at": "2021-03-11T16:18:24.890532Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.890762Z", "completed_at": "2021-03-11T16:18:24.890771Z"}], "thread_id": "Thread-4", "execution_time": 0.010509967803955078, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.891726Z", "completed_at": "2021-03-11T16:18:24.900560Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.900821Z", "completed_at": "2021-03-11T16:18:24.900829Z"}], "thread_id": "Thread-4", "execution_time": 0.00962519645690918, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.901581Z", "completed_at": "2021-03-11T16:18:24.909247Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.909456Z", "completed_at": "2021-03-11T16:18:24.909463Z"}], "thread_id": "Thread-4", "execution_time": 0.008379936218261719, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.910192Z", "completed_at": "2021-03-11T16:18:24.917749Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.917955Z", "completed_at": "2021-03-11T16:18:24.917961Z"}], "thread_id": "Thread-4", "execution_time": 0.00826120376586914, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.918685Z", "completed_at": "2021-03-11T16:18:24.926549Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.926832Z", "completed_at": "2021-03-11T16:18:24.926838Z"}], "thread_id": "Thread-4", "execution_time": 0.008648872375488281, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.927568Z", "completed_at": "2021-03-11T16:18:24.951681Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.951903Z", "completed_at": "2021-03-11T16:18:24.951912Z"}], "thread_id": "Thread-4", "execution_time": 0.024860858917236328, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.729234Z", "completed_at": "2021-03-11T16:18:24.957897Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.958149Z", "completed_at": "2021-03-11T16:18:24.958157Z"}], "thread_id": "Thread-2", "execution_time": 0.23494195938110352, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.729083Z", "completed_at": "2021-03-11T16:18:24.974088Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.974820Z", "completed_at": "2021-03-11T16:18:24.974830Z"}], "thread_id": "Thread-3", "execution_time": 0.24768614768981934, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.952686Z", "completed_at": "2021-03-11T16:18:24.975043Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.976149Z", "completed_at": "2021-03-11T16:18:24.976155Z"}], "thread_id": "Thread-4", "execution_time": 0.024722814559936523, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.729398Z", "completed_at": "2021-03-11T16:18:24.975595Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.976509Z", "completed_at": "2021-03-11T16:18:24.976515Z"}], "thread_id": "Thread-1", "execution_time": 0.257861852645874, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.976385Z", "completed_at": "2021-03-11T16:18:24.988498Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.998737Z", "completed_at": "2021-03-11T16:18:24.998746Z"}], "thread_id": "Thread-2", "execution_time": 0.03297901153564453, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.987812Z", "completed_at": "2021-03-11T16:18:25.008452Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.018037Z", "completed_at": "2021-03-11T16:18:25.018047Z"}], "thread_id": "Thread-3", "execution_time": 0.0322568416595459, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.998596Z", "completed_at": "2021-03-11T16:18:25.018355Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.019476Z", "completed_at": "2021-03-11T16:18:25.019485Z"}], "thread_id": "Thread-4", "execution_time": 0.032258033752441406, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.998987Z", "completed_at": "2021-03-11T16:18:25.019212Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.020112Z", "completed_at": "2021-03-11T16:18:25.020119Z"}], "thread_id": "Thread-1", "execution_time": 0.04098701477050781, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.019738Z", "completed_at": "2021-03-11T16:18:25.030710Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.042419Z", "completed_at": "2021-03-11T16:18:25.042433Z"}], "thread_id": "Thread-2", "execution_time": 0.02480912208557129, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.030327Z", "completed_at": "2021-03-11T16:18:25.049933Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.062232Z", "completed_at": "2021-03-11T16:18:25.062243Z"}], "thread_id": "Thread-3", "execution_time": 0.03370380401611328, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.042763Z", "completed_at": "2021-03-11T16:18:25.063554Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.070553Z", "completed_at": "2021-03-11T16:18:25.070562Z"}], "thread_id": "Thread-4", "execution_time": 0.04262971878051758, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.043064Z", "completed_at": "2021-03-11T16:18:25.063769Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.072914Z", "completed_at": "2021-03-11T16:18:25.072920Z"}], "thread_id": "Thread-1", "execution_time": 0.03208804130554199, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.063382Z", "completed_at": "2021-03-11T16:18:25.074961Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.083577Z", "completed_at": "2021-03-11T16:18:25.083585Z"}], "thread_id": "Thread-2", "execution_time": 0.022063016891479492, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.074229Z", "completed_at": "2021-03-11T16:18:25.084474Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.102766Z", "completed_at": "2021-03-11T16:18:25.102779Z"}], "thread_id": "Thread-3", "execution_time": 0.03257274627685547, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.083891Z", "completed_at": "2021-03-11T16:18:25.106125Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.106821Z", "completed_at": "2021-03-11T16:18:25.106829Z"}], "thread_id": "Thread-4", "execution_time": 0.024645090103149414, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.084331Z", "completed_at": "2021-03-11T16:18:25.107079Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.107899Z", "completed_at": "2021-03-11T16:18:25.107905Z"}], "thread_id": "Thread-1", "execution_time": 0.03400993347167969, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.117005Z", "completed_at": "2021-03-11T16:18:25.132600Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.151476Z", "completed_at": "2021-03-11T16:18:25.151494Z"}], "thread_id": "Thread-3", "execution_time": 0.05733919143676758, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.107307Z", "completed_at": "2021-03-11T16:18:25.150607Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.164088Z", "completed_at": "2021-03-11T16:18:25.164100Z"}], "thread_id": "Thread-2", "execution_time": 0.058812856674194336, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.125974Z", "completed_at": "2021-03-11T16:18:25.164322Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.165429Z", "completed_at": "2021-03-11T16:18:25.165437Z"}], "thread_id": "Thread-4", "execution_time": 0.04302787780761719, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.150263Z", "completed_at": "2021-03-11T16:18:25.165973Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.167134Z", "completed_at": "2021-03-11T16:18:25.167141Z"}], "thread_id": "Thread-1", "execution_time": 0.04194521903991699, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.167864Z", "completed_at": "2021-03-11T16:18:25.194565Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.204127Z", "completed_at": "2021-03-11T16:18:25.204138Z"}], "thread_id": "Thread-3", "execution_time": 0.04364800453186035, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.168282Z", "completed_at": "2021-03-11T16:18:25.203835Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.210083Z", "completed_at": "2021-03-11T16:18:25.210094Z"}], "thread_id": "Thread-2", "execution_time": 0.04359102249145508, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.187214Z", "completed_at": "2021-03-11T16:18:25.211445Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.212354Z", "completed_at": "2021-03-11T16:18:25.212361Z"}], "thread_id": "Thread-4", "execution_time": 0.04502606391906738, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.194426Z", "completed_at": "2021-03-11T16:18:25.211781Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.212910Z", "completed_at": "2021-03-11T16:18:25.212919Z"}], "thread_id": "Thread-1", "execution_time": 0.02627086639404297, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.213578Z", "completed_at": "2021-03-11T16:18:25.233480Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.234154Z", "completed_at": "2021-03-11T16:18:25.234162Z"}], "thread_id": "Thread-2", "execution_time": 0.03753781318664551, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.213184Z", "completed_at": "2021-03-11T16:18:25.233778Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.244375Z", "completed_at": "2021-03-11T16:18:25.244389Z"}], "thread_id": "Thread-3", "execution_time": 0.0430150032043457, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.233705Z", "completed_at": "2021-03-11T16:18:25.255818Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.256916Z", "completed_at": "2021-03-11T16:18:25.256925Z"}], "thread_id": "Thread-4", "execution_time": 0.02514195442199707, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.234019Z", "completed_at": "2021-03-11T16:18:25.257149Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.257921Z", "completed_at": "2021-03-11T16:18:25.257928Z"}], "thread_id": "Thread-1", "execution_time": 0.04552197456359863, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.257530Z", "completed_at": "2021-03-11T16:18:25.279711Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.280484Z", "completed_at": "2021-03-11T16:18:25.280492Z"}], "thread_id": "Thread-3", "execution_time": 0.03470611572265625, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.257412Z", "completed_at": "2021-03-11T16:18:25.280009Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.287038Z", "completed_at": "2021-03-11T16:18:25.287055Z"}], "thread_id": "Thread-2", "execution_time": 0.035360097885131836, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.279936Z", "completed_at": "2021-03-11T16:18:25.302546Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.304015Z", "completed_at": "2021-03-11T16:18:25.304024Z"}], "thread_id": "Thread-4", "execution_time": 0.025905847549438477, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.290953Z", "completed_at": "2021-03-11T16:18:25.303749Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.304487Z", "completed_at": "2021-03-11T16:18:25.304494Z"}], "thread_id": "Thread-1", "execution_time": 0.04316377639770508, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.304256Z", "completed_at": "2021-03-11T16:18:25.324998Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.325636Z", "completed_at": "2021-03-11T16:18:25.325644Z"}], "thread_id": "Thread-3", "execution_time": 0.042115211486816406, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.304372Z", "completed_at": "2021-03-11T16:18:25.325210Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.325876Z", "completed_at": "2021-03-11T16:18:25.325882Z"}], "thread_id": "Thread-2", "execution_time": 0.04203319549560547, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.325520Z", "completed_at": "2021-03-11T16:18:25.346407Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.347452Z", "completed_at": "2021-03-11T16:18:25.347461Z"}], "thread_id": "Thread-1", "execution_time": 0.02361273765563965, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.325405Z", "completed_at": "2021-03-11T16:18:25.346630Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.347698Z", "completed_at": "2021-03-11T16:18:25.347705Z"}], "thread_id": "Thread-4", "execution_time": 0.024311065673828125, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.347924Z", "completed_at": "2021-03-11T16:18:25.369103Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.369984Z", "completed_at": "2021-03-11T16:18:25.369991Z"}], "thread_id": "Thread-3", "execution_time": 0.03954887390136719, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.348042Z", "completed_at": "2021-03-11T16:18:25.369637Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.378188Z", "completed_at": "2021-03-11T16:18:25.378197Z"}], "thread_id": "Thread-2", "execution_time": 0.03967595100402832, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.369556Z", "completed_at": "2021-03-11T16:18:25.387347Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.388342Z", "completed_at": "2021-03-11T16:18:25.388351Z"}], "thread_id": "Thread-1", "execution_time": 0.02103590965270996, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.369859Z", "completed_at": "2021-03-11T16:18:25.388902Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.389939Z", "completed_at": "2021-03-11T16:18:25.389949Z"}], "thread_id": "Thread-4", "execution_time": 0.03894400596618652, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.389162Z", "completed_at": "2021-03-11T16:18:25.408670Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.409555Z", "completed_at": "2021-03-11T16:18:25.409562Z"}], "thread_id": "Thread-3", "execution_time": 0.029803037643432617, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.389766Z", "completed_at": "2021-03-11T16:18:25.409121Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.417441Z", "completed_at": "2021-03-11T16:18:25.417448Z"}], "thread_id": "Thread-2", "execution_time": 0.029596805572509766, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.408885Z", "completed_at": "2021-03-11T16:18:25.427468Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.428205Z", "completed_at": "2021-03-11T16:18:25.428214Z"}], "thread_id": "Thread-1", "execution_time": 0.02122020721435547, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.417656Z", "completed_at": "2021-03-11T16:18:25.428761Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.429432Z", "completed_at": "2021-03-11T16:18:25.429438Z"}], "thread_id": "Thread-4", "execution_time": 0.040899038314819336, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.428968Z", "completed_at": "2021-03-11T16:18:25.451286Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.452184Z", "completed_at": "2021-03-11T16:18:25.452193Z"}], "thread_id": "Thread-3", "execution_time": 0.03447699546813965, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.429327Z", "completed_at": "2021-03-11T16:18:25.451683Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.461815Z", "completed_at": "2021-03-11T16:18:25.461825Z"}], "thread_id": "Thread-2", "execution_time": 0.034256935119628906, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.451537Z", "completed_at": "2021-03-11T16:18:25.471968Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.472980Z", "completed_at": "2021-03-11T16:18:25.472991Z"}], "thread_id": "Thread-1", "execution_time": 0.023504972457885742, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.462083Z", "completed_at": "2021-03-11T16:18:25.473223Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.474162Z", "completed_at": "2021-03-11T16:18:25.474170Z"}], "thread_id": "Thread-4", "execution_time": 0.03174996376037598, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.473734Z", "completed_at": "2021-03-11T16:18:25.504434Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.504713Z", "completed_at": "2021-03-11T16:18:25.504722Z"}], "thread_id": "Thread-3", "execution_time": 0.03246879577636719, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.495452Z", "completed_at": "2021-03-11T16:18:25.505353Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.505601Z", "completed_at": "2021-03-11T16:18:25.505608Z"}], "thread_id": "Thread-1", "execution_time": 0.011161088943481445, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.474410Z", "completed_at": "2021-03-11T16:18:25.506143Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.506368Z", "completed_at": "2021-03-11T16:18:25.506374Z"}], "thread_id": "Thread-2", "execution_time": 0.03325009346008301, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id"}], "elapsed_time": 5.366480112075806, "args": {"log_format": "default", "write_json": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "target": "bigquery", "use_cache": true, "compile": true, "version_check": true, "which": "generate", "rpc_method": "docs.generate"}} \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index d547efd..c14c719 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'quickbooks_source_integration_tests' -version: '0.1.2' +version: '0.2.0' profile: 'integration_tests' config-version: 2 @@ -11,6 +11,7 @@ models: vars: quickbooks_source: + using_purchase_order: True account: "{{ ref('account_data') }}" address: "{{ ref('address_data') }}" bill_line: "{{ ref('bill_line_data') }}" diff --git a/models/stg_quickbooks__account.sql b/models/stg_quickbooks__account.sql index e9be131..8a7ce95 100644 --- a/models/stg_quickbooks__account.sql +++ b/models/stg_quickbooks__account.sql @@ -28,7 +28,7 @@ final as ( cast(id as {{ dbt_utils.type_int() }}) as account_id, cast(account_number as {{ dbt_utils.type_string() }}) as account_number, sub_account as is_sub_account, - parent_account_id, + cast(parent_account_id as {{ dbt_utils.type_int() }}) as parent_account_id, name, account_type, account_sub_type, diff --git a/models/stg_quickbooks__invoice.sql b/models/stg_quickbooks__invoice.sql index 37bdb25..afb50f2 100644 --- a/models/stg_quickbooks__invoice.sql +++ b/models/stg_quickbooks__invoice.sql @@ -37,7 +37,7 @@ final as ( total_amount, currency_id, department_id, - deposit_to_account_id, + cast(deposit_to_account_id as {{ dbt_utils.type_int() }}) as deposit_to_account_id, exchange_rate, transaction_date, customer_id,