From 4358658dc75d9e4f98b87622db384764ec6a0591 Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Thu, 30 May 2024 15:56:22 -0500 Subject: [PATCH 01/24] feature/normalized-billing-model --- README.md | 3 +- dbt_project.yml | 2 +- integration_tests/dbt_project.yml | 2 +- .../recurly__line_item_enhanced.sql | 181 ++++++++++++++++++ 4 files changed, 185 insertions(+), 3 deletions(-) create mode 100644 models/common_data_models/recurly__line_item_enhanced.sql diff --git a/README.md b/README.md index f95376b..f0b316c 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ The following table provides a detailed list of all models materialized within t | [recurly__churn_analysis](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__churn_analysis) | Each record represents a subscription and their churn status and details. | | [recurly__monthly_recurring_revenue](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__monthly_recurring_revenue) | Each record represents an account and MRR generated on a monthly basis. | | [recurly__subscription_overview](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__subscription_overview) | Each record represents a subscription, enriched with metrics about time, revenue, state, and period. | +| [recurly__line_item_enhanced](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__line_item_enhanced) | Each record represents a line item enriched with plan, subscription, payment, and refund information. This model has been built with the intention of retaining a common line item schema across all other Fivetran billing data models. | # 🎯 How do I use the dbt package? ## Step 1: Prerequisites @@ -54,7 +55,7 @@ Include the following recurly_source package version in your `packages.yml` file ```yaml packages: - package: fivetran/recurly - version: [">=0.3.0", "<0.4.0"] # we recommend using ranges to capture non-breaking changes automatically + version: [">=0.4.0", "<0.5.0"] # we recommend using ranges to capture non-breaking changes automatically ``` Do NOT include the `recurly_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well. diff --git a/dbt_project.yml b/dbt_project.yml index 11a2271..05755f4 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'recurly' -version: '0.3.2' +version: '0.4.0' config-version: 2 require-dbt-version: [">=1.3.0", "<2.0.0"] diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 5d093e8..368dc4f 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'recurly_integration_tests' -version: '0.3.2' +version: '0.4.0' profile: 'integration_tests' config-version: 2 diff --git a/models/common_data_models/recurly__line_item_enhanced.sql b/models/common_data_models/recurly__line_item_enhanced.sql new file mode 100644 index 0000000..9e7f8b8 --- /dev/null +++ b/models/common_data_models/recurly__line_item_enhanced.sql @@ -0,0 +1,181 @@ + +with line_items as ( + + select * + from {{ var('line_item_history')}} + where is_most_recent_record +), + +invoices as ( + + select * + from {{ var('invoice_history')}} + where is_most_recent_record +), + +transactions as ( + + select * + from {{ var('transaction')}} + where is_most_recent_record +), + +subscription_history as ( + + select + *, + row_number() over (partition by subscription_id, current_period_started_at, current_period_ended_at order by updated_at desc) = 1 as is_latest_period + from {{ var('subscription_history') }} +), + +plans as ( + + select * + from {{ var('plan_history') }} + where is_most_recent_record +), + +accounts as ( + + select * + from {{ var('account_history') }} + where is_most_recent_record +), + +subscriptions as ( + + select + * + from subscription_history + where is_latest_period +), + +enhanced as ( + + select + line_items.invoice_id, + line_items.line_item_id, + row_number() over (partition by line_items.invoice_id order by line_items.created_at) as line_item_index, + line_items.created_at, + line_items.currency, + line_items.state as line_item_status, + invoices.state as header_status, + line_items.plan_id, + plans.name as plan_name, + line_items.origin as plan_type, + line_items.description as plan_category, + line_items.quantity, + line_items.unit_amount, + line_items.discount as discount_amount, + line_items.tax_rate, + line_items.tax as tax_amount, + line_items.amount as total_amount, + transactions.transaction_id as payment_id, + transactions.payment_method_object as payment_method, + transactions.collected_at as payment_at, + transactions.is_refunded, + invoices.refundable_amount as refund_amount, + transactions.created_at as refunded_at, + line_items.subscription_id, + subscriptions.current_period_started_at as subscription_period_started_at, + subscriptions.current_period_ended_at as subscription_period_ended_at, + subscriptions.state as subscription_status, + line_items.account_id, + concat(accounts.first_name, ' ', accounts.last_name) as account_name, + accounts.company as account_company, + accounts.email as account_email + from line_items + left join invoices + on invoices.invoice_id = line_items.invoice_id + left join transactions + on transactions.invoice_id = invoices.invoice_id + left join accounts + on accounts.account_id = line_items.account_id + left join subscriptions + on subscriptions.subscription_id = line_items.subscription_id + and subscriptions.current_period_started_at <= line_items.created_at + and subscriptions.current_period_ended_at > line_items.created_at + left join plans + on plans.plan_id = line_items.plan_id +), + +final as ( + + select + invoice_id, + line_item_id, + line_item_index, + created_at, + currency, + line_item_status, + header_status, + plan_id, + plan_name, + plan_type, + plan_category, + quantity, + unit_amount, + discount_amount, + tax_rate, + tax_amount, + total_amount, + payment_id, + payment_method, + payment_at, + cast(null as {{ dbt.type_string() }}) as refund_id, + cast(null as {{ dbt.type_float() }}) as refund_amount, + cast(null as {{ dbt.type_timestamp() }}) as refunded_at, + subscription_id, + subscription_period_started_at, + subscription_period_ended_at, + subscription_status, + account_id, + account_name, + account_company, + account_email, + 'line_item' as source + from enhanced + + union all + + -- Refund information is only reliable at the invoice header. Therefore the below operation creates a new line to track the refund values. + select + invoice_id, + line_item_id, + line_item_index, + created_at, + currency, + line_item_status, + header_status, + plan_id, + plan_name, + cast(null as {{ dbt.type_string() }}) as plan_type, + cast(null as {{ dbt.type_string() }}) as plan_category, + cast(null as {{ dbt.type_float() }}) as quantity, + cast(null as {{ dbt.type_float() }}) as unit_amount, + cast(null as {{ dbt.type_float() }}) as discount_amount, + tax_rate, + cast(null as {{ dbt.type_float() }}) as tax_amount, + cast(null as {{ dbt.type_float() }}) as total_amount, + payment_id, + payment_method, + payment_at, + payment_id as refund_id, + refund_amount, + refunded_at, + subscription_id, + subscription_period_started_at, + subscription_period_ended_at, + subscription_status, + account_id, + account_name, + account_company, + account_email, + 'header' as source + from enhanced + where is_refunded + and line_item_index = 1 +) + +select * +from final \ No newline at end of file From 8efa48162ed2a20f8ba203f4ba88de3cd007b8c6 Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Thu, 30 May 2024 16:38:20 -0500 Subject: [PATCH 02/24] naming and ordering --- .../recurly__line_item_enhanced.sql | 70 +++++++++++-------- 1 file changed, 41 insertions(+), 29 deletions(-) diff --git a/models/common_data_models/recurly__line_item_enhanced.sql b/models/common_data_models/recurly__line_item_enhanced.sql index 9e7f8b8..b5dc0aa 100644 --- a/models/common_data_models/recurly__line_item_enhanced.sql +++ b/models/common_data_models/recurly__line_item_enhanced.sql @@ -53,17 +53,17 @@ subscriptions as ( enhanced as ( select - line_items.invoice_id, + line_items.invoice_id as header_id, line_items.line_item_id, row_number() over (partition by line_items.invoice_id order by line_items.created_at) as line_item_index, line_items.created_at, line_items.currency, line_items.state as line_item_status, invoices.state as header_status, - line_items.plan_id, - plans.name as plan_name, - line_items.origin as plan_type, - line_items.description as plan_category, + line_items.plan_id as product_id, + plans.name as product_name, + line_items.origin as product_type, + line_items.description as product_category, line_items.quantity, line_items.unit_amount, line_items.discount as discount_amount, @@ -73,6 +73,7 @@ enhanced as ( transactions.transaction_id as payment_id, transactions.payment_method_object as payment_method, transactions.collected_at as payment_at, + cast(null as {{ dbt.type_numeric() }}) as fee_amount, transactions.is_refunded, invoices.refundable_amount as refund_amount, transactions.created_at as refunded_at, @@ -80,10 +81,13 @@ enhanced as ( subscriptions.current_period_started_at as subscription_period_started_at, subscriptions.current_period_ended_at as subscription_period_ended_at, subscriptions.state as subscription_status, - line_items.account_id, - concat(accounts.first_name, ' ', accounts.last_name) as account_name, - accounts.company as account_company, - accounts.email as account_email + line_items.account_id as customer_id, + 'account' as customer_level, + concat(accounts.first_name, ' ', accounts.last_name) as customer_name, + accounts.company as customer_company, + accounts.email as customer_email, + accounts.account_city as customer_city, + accounts.account_country as customer_country from line_items left join invoices on invoices.invoice_id = line_items.invoice_id @@ -102,17 +106,18 @@ enhanced as ( final as ( select - invoice_id, + header_id, line_item_id, line_item_index, + 'line_item' as record_type, created_at, currency, line_item_status, header_status, - plan_id, - plan_name, - plan_type, - plan_category, + product_id, + product_name, + product_type, + product_category, quantity, unit_amount, discount_amount, @@ -122,6 +127,7 @@ final as ( payment_id, payment_method, payment_at, + fee_amount, cast(null as {{ dbt.type_string() }}) as refund_id, cast(null as {{ dbt.type_float() }}) as refund_amount, cast(null as {{ dbt.type_timestamp() }}) as refunded_at, @@ -129,28 +135,31 @@ final as ( subscription_period_started_at, subscription_period_ended_at, subscription_status, - account_id, - account_name, - account_company, - account_email, - 'line_item' as source + customer_id, + customer_level, + customer_name, + customer_company, + customer_email, + customer_city, + customer_country from enhanced union all -- Refund information is only reliable at the invoice header. Therefore the below operation creates a new line to track the refund values. select - invoice_id, + header_id, line_item_id, line_item_index, + 'header' as record_type, created_at, currency, line_item_status, header_status, - plan_id, - plan_name, - cast(null as {{ dbt.type_string() }}) as plan_type, - cast(null as {{ dbt.type_string() }}) as plan_category, + product_id, + product_name, + cast(null as {{ dbt.type_string() }}) as product_type, + cast(null as {{ dbt.type_string() }}) as product_category, cast(null as {{ dbt.type_float() }}) as quantity, cast(null as {{ dbt.type_float() }}) as unit_amount, cast(null as {{ dbt.type_float() }}) as discount_amount, @@ -160,6 +169,7 @@ final as ( payment_id, payment_method, payment_at, + fee_amount, payment_id as refund_id, refund_amount, refunded_at, @@ -167,11 +177,13 @@ final as ( subscription_period_started_at, subscription_period_ended_at, subscription_status, - account_id, - account_name, - account_company, - account_email, - 'header' as source + customer_id, + customer_level, + customer_name, + customer_company, + customer_email, + customer_city, + customer_country from enhanced where is_refunded and line_item_index = 1 From bdbba58ee721e2a6aa2bc3d0a7c15c3c541b90d0 Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:51:37 -0500 Subject: [PATCH 03/24] changelog entry --- CHANGELOG.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34c986a..e62606b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ -# dbt_recurly v0.UPDATE.UPDATE +# dbt_recurly v0.4.0 - ## Under the Hood: +## Feature Updates +- Introduced the new `*__line_item_enhanced` model. This model includes a line item enriched with plan, subscription, payment, and refund information. This model has been built with the intention of retaining a common line item schema across all other Fivetran billing data models. +## Under the Hood: - Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. - Updated the pull request [templates](/.github). From 40d73e5cf7de45cd174ecfe6d14f44145c197b9f Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:16:32 -0500 Subject: [PATCH 04/24] subscription_id datatype change in integration tests --- integration_tests/dbt_project.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 368dc4f..4a6346e 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -61,6 +61,7 @@ seeds: tax: "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}" line_item_history_data: +column_types: + subscription_id: "{{ 'string' if target.name in ('bigquery', 'spark', 'databricks') else 'varchar' }}" discount: "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}" unit_amount: "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}" subtotal: "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}" @@ -89,6 +90,7 @@ seeds: quantity: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" subscription_history_data: +column_types: + id: "{{ 'string' if target.name in ('bigquery', 'spark', 'databricks') else 'varchar' }}" paused_at: timestamp unit_amount: "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}" add_ons_total: "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}" From 2e8c1806beaca8ab36b0f539a0db8e543892863b Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:25:30 -0500 Subject: [PATCH 05/24] schema update changes --- .../recurly__line_item_enhanced.sql | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/models/common_data_models/recurly__line_item_enhanced.sql b/models/common_data_models/recurly__line_item_enhanced.sql index b5dc0aa..7659ea3 100644 --- a/models/common_data_models/recurly__line_item_enhanced.sql +++ b/models/common_data_models/recurly__line_item_enhanced.sql @@ -59,6 +59,7 @@ enhanced as ( line_items.created_at, line_items.currency, line_items.state as line_item_status, + transactions.type as billing_type, invoices.state as header_status, line_items.plan_id as product_id, plans.name as product_name, @@ -112,25 +113,22 @@ final as ( 'line_item' as record_type, created_at, currency, - line_item_status, header_status, + billing_type, product_id, product_name, product_type, - product_category, quantity, unit_amount, discount_amount, - tax_rate, tax_amount, total_amount, payment_id, + cast(null as {{ dbt.type_string() }}) as payment_method_id, payment_method, payment_at, fee_amount, - cast(null as {{ dbt.type_string() }}) as refund_id, cast(null as {{ dbt.type_float() }}) as refund_amount, - cast(null as {{ dbt.type_timestamp() }}) as refunded_at, subscription_id, subscription_period_started_at, subscription_period_ended_at, @@ -150,29 +148,26 @@ final as ( select header_id, line_item_id, - line_item_index, + cast(0 as {{ dbt.type_int() }}) as line_item_index, 'header' as record_type, created_at, currency, - line_item_status, header_status, + billing_type, product_id, product_name, cast(null as {{ dbt.type_string() }}) as product_type, - cast(null as {{ dbt.type_string() }}) as product_category, cast(null as {{ dbt.type_float() }}) as quantity, cast(null as {{ dbt.type_float() }}) as unit_amount, cast(null as {{ dbt.type_float() }}) as discount_amount, - tax_rate, cast(null as {{ dbt.type_float() }}) as tax_amount, cast(null as {{ dbt.type_float() }}) as total_amount, payment_id, + cast(null as {{ dbt.type_string() }}) as payment_method_id, payment_method, payment_at, fee_amount, - payment_id as refund_id, refund_amount, - refunded_at, subscription_id, subscription_period_started_at, subscription_period_ended_at, From c888d47e8b8fba760df128d73b70ac289319ce9f Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:31:35 -0500 Subject: [PATCH 06/24] buildkite fixes --- models/common_data_models/recurly__line_item_enhanced.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/common_data_models/recurly__line_item_enhanced.sql b/models/common_data_models/recurly__line_item_enhanced.sql index 7659ea3..6ef7720 100644 --- a/models/common_data_models/recurly__line_item_enhanced.sql +++ b/models/common_data_models/recurly__line_item_enhanced.sql @@ -55,7 +55,7 @@ enhanced as ( select line_items.invoice_id as header_id, line_items.line_item_id, - row_number() over (partition by line_items.invoice_id order by line_items.created_at) as line_item_index, + cast(row_number() over (partition by line_items.invoice_id order by line_items.created_at) as {{ dbt.type_int() }}) as line_item_index, line_items.created_at, line_items.currency, line_items.state as line_item_status, @@ -84,7 +84,7 @@ enhanced as ( subscriptions.state as subscription_status, line_items.account_id as customer_id, 'account' as customer_level, - concat(accounts.first_name, ' ', accounts.last_name) as customer_name, + concat(accounts.first_name, cast(' ' as {{ dbt.type_string() }}), accounts.last_name) as customer_name, accounts.company as customer_company, accounts.email as customer_email, accounts.account_city as customer_city, @@ -101,7 +101,7 @@ enhanced as ( and subscriptions.current_period_started_at <= line_items.created_at and subscriptions.current_period_ended_at > line_items.created_at left join plans - on plans.plan_id = line_items.plan_id + on cast(plans.plan_id as {{ dbt.type_string() }}) = cast(line_items.plan_id as {{ dbt.type_string() }}) ), final as ( From 6d439ce6cf6cab9f9b2ce14e58b6da8c67ae6574 Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:49:16 -0500 Subject: [PATCH 07/24] concat addition --- models/common_data_models/recurly__line_item_enhanced.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/common_data_models/recurly__line_item_enhanced.sql b/models/common_data_models/recurly__line_item_enhanced.sql index 6ef7720..edb82c2 100644 --- a/models/common_data_models/recurly__line_item_enhanced.sql +++ b/models/common_data_models/recurly__line_item_enhanced.sql @@ -84,7 +84,7 @@ enhanced as ( subscriptions.state as subscription_status, line_items.account_id as customer_id, 'account' as customer_level, - concat(accounts.first_name, cast(' ' as {{ dbt.type_string() }}), accounts.last_name) as customer_name, + {{ dbt.concat(["accounts.first_name", "''", "accounts.last_name"]) }} as customer_name, accounts.company as customer_company, accounts.email as customer_email, accounts.account_city as customer_city, From 876030993a4a029d9b1eaf5da01d39139e50aa6d Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:56:36 -0500 Subject: [PATCH 08/24] feature/standardized-billing-line-item-model --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f0b316c..78e883a 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,9 @@ Include the following recurly_source package version in your `packages.yml` file > TIP: Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages. ```yaml packages: - - package: fivetran/recurly - version: [">=0.4.0", "<0.5.0"] # we recommend using ranges to capture non-breaking changes automatically + - git: https://github.com/fivetran/dbt_recurly.git + revision: feature/standardized-billing-line-item-model + warn-unpinned: false ``` Do NOT include the `recurly_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well. From 414f4c6a28c5e9e10ad89238d2f480a31feec7dc Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:01:52 -0500 Subject: [PATCH 09/24] template and changelog updates --- .../maintainer_pull_request_template.md | 43 +++++-------------- CHANGELOG.md | 2 +- 2 files changed, 12 insertions(+), 33 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md index 768ac3f..1e22b09 100644 --- a/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md +++ b/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md @@ -4,48 +4,27 @@ **This PR will result in the following new package version:** -**Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:** +**Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:** + ## PR Checklist ### Basic Validation Please acknowledge that you have successfully performed the following commands locally: -- [ ] dbt compile -- [ ] dbt run –full-refresh -- [ ] dbt run -- [ ] dbt test -- [ ] dbt run –vars (if applicable) +- [ ] dbt run –full-refresh && dbt test +- [ ] dbt run (if incremental models are present) && dbt test Before marking this PR as "ready for review" the following have been applied: -- [ ] The appropriate issue has been linked and tagged -- [ ] You are assigned to the corresponding issue and this PR +- [ ] The appropriate issue has been linked, tagged, and properly assigned +- [ ] All necessary documentation and version upgrades have been applied + +- [ ] docs were regenerated (unless this PR does not include any code or yml updates) - [ ] BuildKite integration tests are passing +- [ ] Detailed validation steps have been provided below ### Detailed Validation -Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review": -- [ ] You have validated these changes and assure this PR will address the respective Issue/Feature. -- [ ] You are reasonably confident these changes will not impact any other components of this package or any dependent packages. -- [ ] You have provided details below around the validation steps performed to gain confidence in these changes. +Please share any and all of your validation steps: -### Standard Updates -Please acknowledge that your PR contains the following standard updates: -- Package versioning has been appropriately indexed in the following locations: - - [ ] indexed within dbt_project.yml - - [ ] indexed within integration_tests/dbt_project.yml -- [ ] CHANGELOG has individual entries for each respective change in this PR - -- [ ] README updates have been applied (if applicable) - -- [ ] DECISIONLOG updates have been updated (if applicable) -- [ ] Appropriate yml documentation has been added (if applicable) - -### dbt Docs -Please acknowledge that after the above were all completed the below were applied to your branch: -- [ ] docs were regenerated (unless this PR does not include any code or yml updates) - ### If you had to summarize this PR in an emoji, which would it be? -:dancer: +:dancer: \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e62606b..49a20f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # dbt_recurly v0.4.0 ## Feature Updates -- Introduced the new `*__line_item_enhanced` model. This model includes a line item enriched with plan, subscription, payment, and refund information. This model has been built with the intention of retaining a common line item schema across all other Fivetran billing data models. +- Addition of the `stripe__line_item_enhanced` model. This model builds a standard denormalized analytical table which can be used to report on your revenue, subscription, customer, and product metrics from your billing platform. This model has been designed to match the schema of the similarly named `*__line_item_enhanced` model within the Shopify, Recharge, Recurly, and Zuora platforms in an effort to standardize reporting when using data from a billing platform. ## Under the Hood: - Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. From b0ad74575d8d85789ad42604e5c44d1dcf9b647a Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:05:12 -0500 Subject: [PATCH 10/24] changelog fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49a20f7..a12206c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # dbt_recurly v0.4.0 ## Feature Updates -- Addition of the `stripe__line_item_enhanced` model. This model builds a standard denormalized analytical table which can be used to report on your revenue, subscription, customer, and product metrics from your billing platform. This model has been designed to match the schema of the similarly named `*__line_item_enhanced` model within the Shopify, Recharge, Recurly, and Zuora platforms in an effort to standardize reporting when using data from a billing platform. +- Addition of the `recurly__line_item_enhanced` model. This model builds a standard denormalized analytical table which can be used to report on your revenue, subscription, customer, and product metrics from your billing platform. This model has been designed to match the schema of the similarly named `*__line_item_enhanced` model within the Shopify, Recharge, Stripe, and Zuora platforms in an effort to standardize reporting when using data from a billing platform. ## Under the Hood: - Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. From d966b019ffae888fcbd1d2ee4439744849caf2e2 Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:33:49 -0500 Subject: [PATCH 11/24] final updates before release --- .github/workflows/auto-release.yml | 13 +++ .gitignore | 2 + CHANGELOG.md | 4 +- README.md | 10 ++- docs/catalog.json | 2 +- docs/index.html | 55 ++++-------- docs/manifest.json | 2 +- docs/run_results.json | 2 +- integration_tests/dbt_project.yml | 4 + .../consistency_line_item_enhanced.sql | 45 ++++++++++ .../recurly__line_item_enhanced.sql | 19 +++-- .../recurly__standardized_models.yml | 83 +++++++++++++++++++ 12 files changed, 187 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/auto-release.yml create mode 100644 integration_tests/tests/consistency/consistency_line_item_enhanced.sql rename models/{common_data_models => standardized_models}/recurly__line_item_enhanced.sql (93%) create mode 100644 models/standardized_models/recurly__standardized_models.yml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 0000000..8ed5853 --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,13 @@ +name: 'auto release' +on: + pull_request: + types: + - closed + branches: + - main + +jobs: + call-workflow-passing-data: + if: github.event.pull_request.merged + uses: fivetran/dbt_package_automations/.github/workflows/auto-release.yml@main + secrets: inherit \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4d4c63b..6464775 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ target/ dbt_modules/ logs/ dbt_packages/ +env/ +package-lock.yml ### MacOS ### .DS_Store \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a12206c..03de558 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ # dbt_recurly v0.4.0 ## Feature Updates -- Addition of the `recurly__line_item_enhanced` model. This model builds a standard denormalized analytical table which can be used to report on your revenue, subscription, customer, and product metrics from your billing platform. This model has been designed to match the schema of the similarly named `*__line_item_enhanced` model within the Shopify, Recharge, Stripe, and Zuora platforms in an effort to standardize reporting when using data from a billing platform. +- Addition of the `stripe__line_item_enhanced` model. This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, subscription, customer, and product metrics from your billing platform. It’s designed to align with the schema of the `*__line_item_enhanced` model found in Recurly, Recharge, Stripe, and Zuora, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details. ## Under the Hood: +- Added consistency test within integration_tests for the `recurly__line_item_enhanced` model. +- Included auto-releaser GitHub Actions workflow to automate future releases. - Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. - Updated the pull request [templates](/.github). diff --git a/README.md b/README.md index 78e883a..5b51a17 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,10 @@ The following table provides a detailed list of all models materialized within t | [recurly__churn_analysis](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__churn_analysis) | Each record represents a subscription and their churn status and details. | | [recurly__monthly_recurring_revenue](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__monthly_recurring_revenue) | Each record represents an account and MRR generated on a monthly basis. | | [recurly__subscription_overview](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__subscription_overview) | Each record represents a subscription, enriched with metrics about time, revenue, state, and period. | -| [recurly__line_item_enhanced](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__line_item_enhanced) | Each record represents a line item enriched with plan, subscription, payment, and refund information. This model has been built with the intention of retaining a common line item schema across all other Fivetran billing data models. | +| [recurly__line_item_enhanced](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__line_item_enhanced) | This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, subscription, customer, and product metrics from your billing platform. It’s designed to align with the schema of the `*__line_item_enhanced` model found in Recurly, Recharge, Stripe, and Zuora, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details. | + +## Example Visualizations +Explore example visualizations produced by the [recurly__line_item_enhanced](https://fivetran.github.io/dbt_recurly/#!/model/model.recurly.recurly__line_item_enhanced) model in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). For further details and to see how these insights can be applied, visit the app. # 🎯 How do I use the dbt package? ## Step 1: Prerequisites @@ -54,9 +57,8 @@ Include the following recurly_source package version in your `packages.yml` file > TIP: Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages. ```yaml packages: - - git: https://github.com/fivetran/dbt_recurly.git - revision: feature/standardized-billing-line-item-model - warn-unpinned: false + - package: fivetran/recurly + version: [">=0.4.0", "<0.5.0"] ``` Do NOT include the `recurly_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well. diff --git a/docs/catalog.json b/docs/catalog.json index 3038525..88c185f 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-03-10T22:01:56.917487Z", "invocation_id": "e6fe132e-fe4e-4144-801d-5f24713ce2f7", "env": {}}, "nodes": {"seed.recurly_integration_tests.account_balance_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "account_balance_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "past_due": {"type": "boolean", "index": 6, "name": "past_due", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.account_balance_history_data"}, "seed.recurly_integration_tests.account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "bill_to": {"type": "text", "index": 7, "name": "bill_to", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "username": {"type": "text", "index": 9, "name": "username", "comment": null}, "account_first_name": {"type": "integer", "index": 10, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "integer", "index": 11, "name": "account_last_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "cc_emails": {"type": "text", "index": 13, "name": "cc_emails", "comment": null}, "company": {"type": "text", "index": 14, "name": "company", "comment": null}, "vat_number": {"type": "text", "index": 15, "name": "vat_number", "comment": null}, "tax_exempt": {"type": "boolean", "index": 16, "name": "tax_exempt", "comment": null}, "account_country": {"type": "text", "index": 17, "name": "account_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.account_history_data"}, "seed.recurly_integration_tests.account_note_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "account_note_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "object": {"type": "text", "index": 7, "name": "object", "comment": null}, "user_email": {"type": "text", "index": 8, "name": "user_email", "comment": null}, "user_id": {"type": "text", "index": 9, "name": "user_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.account_note_history_data"}, "seed.recurly_integration_tests.billing_info_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "billing_info_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "first_name": {"type": "text", "index": 5, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 6, "name": "last_name", "comment": null}, "billing_phone": {"type": "text", "index": 7, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 8, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 9, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 10, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 11, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 12, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 13, "name": "billing_country", "comment": null}, "vat_number": {"type": "text", "index": 14, "name": "vat_number", "comment": null}, "valid": {"type": "boolean", "index": 15, "name": "valid", "comment": null}, "payment_method_object": {"type": "text", "index": 16, "name": "payment_method_object", "comment": null}, "payment_method_credit_type": {"type": "text", "index": 17, "name": "payment_method_credit_type", "comment": null}, "payment_method_first_six": {"type": "text", "index": 18, "name": "payment_method_first_six", "comment": null}, "payment_method_last_four": {"type": "text", "index": 19, "name": "payment_method_last_four", "comment": null}, "payment_method_exp_month": {"type": "text", "index": 20, "name": "payment_method_exp_month", "comment": null}, "payment_method_exp_year": {"type": "text", "index": 21, "name": "payment_method_exp_year", "comment": null}, "fraud_score": {"type": "integer", "index": 22, "name": "fraud_score", "comment": null}, "fraud_decision": {"type": "integer", "index": 23, "name": "fraud_decision", "comment": null}, "fraud_risk_rules_triggered": {"type": "integer", "index": 24, "name": "fraud_risk_rules_triggered", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 25, "name": "created_at", "comment": null}, "updated_by_ip": {"type": "integer", "index": 26, "name": "updated_by_ip", "comment": null}, "updated_by_country": {"type": "integer", "index": 27, "name": "updated_by_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.billing_info_history_data"}, "seed.recurly_integration_tests.coupon_discount_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "coupon_discount_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_id": {"type": "text", "index": 1, "name": "coupon_id", "comment": null}, "fivetran_id": {"type": "text", "index": 2, "name": "fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "percentage": {"type": "integer", "index": 6, "name": "percentage", "comment": null}, "trial_length": {"type": "integer", "index": 7, "name": "trial_length", "comment": null}, "trial_unit": {"type": "integer", "index": 8, "name": "trial_unit", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.coupon_discount_data"}, "seed.recurly_integration_tests.coupon_redemption_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "coupon_redemption_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "coupon_id": {"type": "text", "index": 5, "name": "coupon_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "discounted": {"type": "double precision", "index": 8, "name": "discounted", "comment": null}, "removed_at": {"type": "timestamp without time zone", "index": 9, "name": "removed_at", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.coupon_redemption_history_data"}, "seed.recurly_integration_tests.credit_payment_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "credit_payment_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "account_id": {"type": "character varying", "index": 4, "name": "account_id", "comment": null}, "applied_to_invoice_id": {"type": "character varying", "index": 5, "name": "applied_to_invoice_id", "comment": null}, "original_invoice_id": {"type": "character varying", "index": 6, "name": "original_invoice_id", "comment": null}, "refund_transaction_id": {"type": "character varying", "index": 7, "name": "refund_transaction_id", "comment": null}, "original_credit_payment_id": {"type": "character varying", "index": 8, "name": "original_credit_payment_id", "comment": null}, "uuid": {"type": "character varying", "index": 9, "name": "uuid", "comment": null}, "action": {"type": "text", "index": 10, "name": "action", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 12, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 13, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 14, "name": "voided_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.credit_payment_history_data"}, "seed.recurly_integration_tests.invoice_coupon_redemption_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "invoice_coupon_redemption_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "invoice_id": {"type": "text", "index": 2, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.invoice_coupon_redemption_history_data"}, "seed.recurly_integration_tests.invoice_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "invoice_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "due_at": {"type": "timestamp without time zone", "index": 5, "name": "due_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 6, "name": "closed_at", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "previous_invoice_id": {"type": "integer", "index": 8, "name": "previous_invoice_id", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "origin": {"type": "text", "index": 10, "name": "origin", "comment": null}, "state": {"type": "text", "index": 11, "name": "state", "comment": null}, "number": {"type": "integer", "index": 12, "name": "number", "comment": null}, "collection_method": {"type": "text", "index": 13, "name": "collection_method", "comment": null}, "po_number": {"type": "integer", "index": 14, "name": "po_number", "comment": null}, "net_terms": {"type": "integer", "index": 15, "name": "net_terms", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "balance": {"type": "double precision", "index": 17, "name": "balance", "comment": null}, "paid": {"type": "double precision", "index": 18, "name": "paid", "comment": null}, "total": {"type": "double precision", "index": 19, "name": "total", "comment": null}, "subtotal": {"type": "double precision", "index": 20, "name": "subtotal", "comment": null}, "refundable_amount": {"type": "double precision", "index": 21, "name": "refundable_amount", "comment": null}, "discount": {"type": "double precision", "index": 22, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 23, "name": "tax", "comment": null}, "tax_type": {"type": "integer", "index": 24, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 25, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 26, "name": "tax_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.invoice_history_data"}, "seed.recurly_integration_tests.invoice_subscription_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "invoice_subscription_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "subscription_id": {"type": "text", "index": 2, "name": "subscription_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.invoice_subscription_history_data"}, "seed.recurly_integration_tests.line_item_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "line_item_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 5, "name": "account_id", "comment": null}, "plan_id": {"type": "integer", "index": 6, "name": "plan_id", "comment": null}, "add_on_id": {"type": "integer", "index": 7, "name": "add_on_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 9, "name": "previous_line_item_id", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 10, "name": "original_line_item_invoice_id", "comment": null}, "subscription_id": {"type": "integer", "index": 11, "name": "subscription_id", "comment": null}, "uuid": {"type": "text", "index": 12, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 13, "name": "type", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "plan_code": {"type": "integer", "index": 15, "name": "plan_code", "comment": null}, "add_on_code": {"type": "integer", "index": 16, "name": "add_on_code", "comment": null}, "invoice_number": {"type": "integer", "index": 17, "name": "invoice_number", "comment": null}, "origin": {"type": "text", "index": 18, "name": "origin", "comment": null}, "product_code": {"type": "integer", "index": 19, "name": "product_code", "comment": null}, "currency": {"type": "text", "index": 20, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 21, "name": "amount", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 23, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 24, "name": "unit_amount", "comment": null}, "subtotal": {"type": "double precision", "index": 25, "name": "subtotal", "comment": null}, "discount": {"type": "double precision", "index": 26, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 27, "name": "tax", "comment": null}, "taxable": {"type": "boolean", "index": 28, "name": "taxable", "comment": null}, "tax_exempt": {"type": "boolean", "index": 29, "name": "tax_exempt", "comment": null}, "tax_code": {"type": "integer", "index": 30, "name": "tax_code", "comment": null}, "tax_type": {"type": "integer", "index": 31, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 32, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 33, "name": "tax_rate", "comment": null}, "proration_rate": {"type": "integer", "index": 34, "name": "proration_rate", "comment": null}, "refund": {"type": "boolean", "index": 35, "name": "refund", "comment": null}, "refunded_quantity": {"type": "integer", "index": 36, "name": "refunded_quantity", "comment": null}, "credit_applied": {"type": "double precision", "index": 37, "name": "credit_applied", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 39, "name": "end_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.line_item_history_data"}, "seed.recurly_integration_tests.plan_currency_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "plan_currency_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "plan_id": {"type": "text", "index": 2, "name": "plan_id", "comment": null}, "plan_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "plan_updated_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "setup_fees": {"type": "double precision", "index": 5, "name": "setup_fees", "comment": null}, "unit_amount": {"type": "double precision", "index": 6, "name": "unit_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.plan_currency_history_data"}, "seed.recurly_integration_tests.plan_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "plan_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "state": {"type": "text", "index": 7, "name": "state", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "description": {"type": "integer", "index": 9, "name": "description", "comment": null}, "interval_unit": {"type": "text", "index": 10, "name": "interval_unit", "comment": null}, "interval_length": {"type": "integer", "index": 11, "name": "interval_length", "comment": null}, "trial_unit": {"type": "text", "index": 12, "name": "trial_unit", "comment": null}, "trial_length": {"type": "integer", "index": 13, "name": "trial_length", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 14, "name": "total_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 15, "name": "auto_renew", "comment": null}, "accounting_code": {"type": "text", "index": 16, "name": "accounting_code", "comment": null}, "setup_fee_accounting_code": {"type": "text", "index": 17, "name": "setup_fee_accounting_code", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "tax_exempt": {"type": "boolean", "index": 19, "name": "tax_exempt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.plan_history_data"}, "seed.recurly_integration_tests.subscription_add_on_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "subscription_add_on_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "expired_at": {"type": "timestamp without time zone", "index": 3, "name": "expired_at", "comment": null}, "id": {"type": "text", "index": 4, "name": "id", "comment": null}, "object": {"type": "text", "index": 5, "name": "object", "comment": null}, "plan_add_on_id": {"type": "text", "index": 6, "name": "plan_add_on_id", "comment": null}, "quantity": {"type": "integer", "index": 7, "name": "quantity", "comment": null}, "subscription_id": {"type": "text", "index": 8, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 9, "name": "unit_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.subscription_add_on_history_data"}, "seed.recurly_integration_tests.subscription_change_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "subscription_change_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "plan_id": {"type": "character varying", "index": 4, "name": "plan_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 5, "name": "subscription_id", "comment": null}, "object": {"type": "character varying", "index": 6, "name": "object", "comment": null}, "unit_amount": {"type": "double precision", "index": 7, "name": "unit_amount", "comment": null}, "quantity": {"type": "bigint", "index": 8, "name": "quantity", "comment": null}, "activate_at": {"type": "timestamp without time zone", "index": 9, "name": "activate_at", "comment": null}, "activated": {"type": "boolean", "index": 10, "name": "activated", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 12, "name": "deleted_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.subscription_change_history_data"}, "seed.recurly_integration_tests.subscription_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "subscription_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 5, "name": "activated_at", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 7, "name": "expires_at", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "plan_id": {"type": "text", "index": 9, "name": "plan_id", "comment": null}, "object": {"type": "text", "index": 10, "name": "object", "comment": null}, "uuid": {"type": "text", "index": 11, "name": "uuid", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 13, "name": "current_period_started_at", "comment": null}, "current_period_ends_at": {"type": "timestamp without time zone", "index": 14, "name": "current_period_ends_at", "comment": null}, "current_term_started_at": {"type": "timestamp without time zone", "index": 15, "name": "current_term_started_at", "comment": null}, "current_term_ends_at": {"type": "timestamp without time zone", "index": 16, "name": "current_term_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 17, "name": "trial_started_at", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 18, "name": "trial_ends_at", "comment": null}, "remaining_billing_cycles": {"type": "integer", "index": 19, "name": "remaining_billing_cycles", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 20, "name": "total_billing_cycles", "comment": null}, "renewal_billing_cycles": {"type": "integer", "index": 21, "name": "renewal_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 22, "name": "auto_renew", "comment": null}, "paused_at": {"type": "timestamp without time zone", "index": 23, "name": "paused_at", "comment": null}, "remaining_pause_cycles": {"type": "integer", "index": 24, "name": "remaining_pause_cycles", "comment": null}, "currency": {"type": "text", "index": 25, "name": "currency", "comment": null}, "unit_amount": {"type": "double precision", "index": 26, "name": "unit_amount", "comment": null}, "quantity": {"type": "integer", "index": 27, "name": "quantity", "comment": null}, "add_ons_total": {"type": "double precision", "index": 28, "name": "add_ons_total", "comment": null}, "subtotal": {"type": "double precision", "index": 29, "name": "subtotal", "comment": null}, "collection_method": {"type": "text", "index": 30, "name": "collection_method", "comment": null}, "expiration_reason": {"type": "text", "index": 31, "name": "expiration_reason", "comment": null}, "started_with_gift": {"type": "boolean", "index": 32, "name": "started_with_gift", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.subscription_history_data"}, "seed.recurly_integration_tests.transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 4, "name": "voided_at", "comment": null}, "collected_at": {"type": "timestamp without time zone", "index": 5, "name": "collected_at", "comment": null}, "original_transaction_id": {"type": "integer", "index": 6, "name": "original_transaction_id", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "voided_by_invoice_id": {"type": "text", "index": 9, "name": "voided_by_invoice_id", "comment": null}, "uuid": {"type": "text", "index": 10, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 11, "name": "type", "comment": null}, "origin": {"type": "text", "index": 12, "name": "origin", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "success": {"type": "boolean", "index": 16, "name": "success", "comment": null}, "refunded": {"type": "boolean", "index": 17, "name": "refunded", "comment": null}, "billing_first_name": {"type": "text", "index": 18, "name": "billing_first_name", "comment": null}, "billing_last_name": {"type": "text", "index": 19, "name": "billing_last_name", "comment": null}, "billing_phone": {"type": "text", "index": 20, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 21, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 22, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 23, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 24, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 25, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 26, "name": "billing_country", "comment": null}, "collection_method": {"type": "text", "index": 27, "name": "collection_method", "comment": null}, "payment_method_object": {"type": "text", "index": 28, "name": "payment_method_object", "comment": null}, "status_code": {"type": "text", "index": 29, "name": "status_code", "comment": null}, "status_message": {"type": "text", "index": 30, "name": "status_message", "comment": null}, "customer_message": {"type": "text", "index": 31, "name": "customer_message", "comment": null}, "customer_message_locale": {"type": "text", "index": 32, "name": "customer_message_locale", "comment": null}, "gateway_message": {"type": "text", "index": 33, "name": "gateway_message", "comment": null}, "gateway_reference": {"type": "integer", "index": 34, "name": "gateway_reference", "comment": null}, "gateway_approval_code": {"type": "integer", "index": 35, "name": "gateway_approval_code", "comment": null}, "gateway_response_code": {"type": "integer", "index": 36, "name": "gateway_response_code", "comment": null}, "gateway_response_time": {"type": "double precision", "index": 37, "name": "gateway_response_time", "comment": null}, "payment_gateway_id": {"type": "integer", "index": 38, "name": "payment_gateway_id", "comment": null}, "payment_gateway_name": {"type": "text", "index": 39, "name": "payment_gateway_name", "comment": null}, "gateway_response_values": {"type": "text", "index": 40, "name": "gateway_response_values", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.transaction_data"}, "seed.recurly_integration_tests.transaction_subscription_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "transaction_subscription_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.transaction_subscription_data"}, "model.recurly.recurly__account_daily_overview": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly", "name": "recurly__account_daily_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 2, "name": "account_created_at", "comment": null}, "account_city": {"type": "text", "index": 3, "name": "account_city", "comment": null}, "account_company": {"type": "text", "index": 4, "name": "account_company", "comment": null}, "account_country": {"type": "text", "index": 5, "name": "account_country", "comment": null}, "account_code": {"type": "text", "index": 6, "name": "account_code", "comment": null}, "account_email": {"type": "text", "index": 7, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 8, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "text", "index": 9, "name": "account_last_name", "comment": null}, "account_is_tax_exempt": {"type": "boolean", "index": 10, "name": "account_is_tax_exempt", "comment": null}, "account_postal_code": {"type": "text", "index": 11, "name": "account_postal_code", "comment": null}, "account_region": {"type": "text", "index": 12, "name": "account_region", "comment": null}, "account_state": {"type": "text", "index": 13, "name": "account_state", "comment": null}, "account_username": {"type": "text", "index": 14, "name": "account_username", "comment": null}, "account_daily_id": {"type": "text", "index": 15, "name": "account_daily_id", "comment": null}, "date_day": {"type": "date", "index": 16, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 17, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 18, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 19, "name": "date_year", "comment": null}, "date_index": {"type": "bigint", "index": 20, "name": "date_index", "comment": null}, "daily_transaction_count": {"type": "bigint", "index": 21, "name": "daily_transaction_count", "comment": null}, "daily_net_change": {"type": "double precision", "index": 22, "name": "daily_net_change", "comment": null}, "daily_invoice_count": {"type": "bigint", "index": 23, "name": "daily_invoice_count", "comment": null}, "daily_charges": {"type": "double precision", "index": 24, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 25, "name": "daily_credits", "comment": null}, "daily_discounts": {"type": "double precision", "index": 26, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 27, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 28, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 29, "name": "daily_credit_count", "comment": null}, "rolling_account_balance": {"type": "double precision", "index": 30, "name": "rolling_account_balance", "comment": null}, "rolling_invoices": {"type": "numeric", "index": 31, "name": "rolling_invoices", "comment": null}, "rolling_transactions": {"type": "numeric", "index": 32, "name": "rolling_transactions", "comment": null}, "rolling_charge_balance": {"type": "double precision", "index": 33, "name": "rolling_charge_balance", "comment": null}, "rolling_credit_balance": {"type": "double precision", "index": 34, "name": "rolling_credit_balance", "comment": null}, "rolling_discount_balance": {"type": "double precision", "index": 35, "name": "rolling_discount_balance", "comment": null}, "rolling_tax_balance": {"type": "double precision", "index": 36, "name": "rolling_tax_balance", "comment": null}, "rolling_charges": {"type": "numeric", "index": 37, "name": "rolling_charges", "comment": null}, "rolling_credits": {"type": "numeric", "index": 38, "name": "rolling_credits", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__account_daily_overview"}, "model.recurly.recurly__account_overview": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly", "name": "recurly__account_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 2, "name": "account_created_at", "comment": null}, "account_city": {"type": "text", "index": 3, "name": "account_city", "comment": null}, "account_code": {"type": "text", "index": 4, "name": "account_code", "comment": null}, "account_company": {"type": "text", "index": 5, "name": "account_company", "comment": null}, "account_country": {"type": "text", "index": 6, "name": "account_country", "comment": null}, "account_email": {"type": "text", "index": 7, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 8, "name": "account_first_name", "comment": null}, "account_is_tax_exempt": {"type": "boolean", "index": 9, "name": "account_is_tax_exempt", "comment": null}, "account_last_name": {"type": "text", "index": 10, "name": "account_last_name", "comment": null}, "account_postal_code": {"type": "text", "index": 11, "name": "account_postal_code", "comment": null}, "account_region": {"type": "text", "index": 12, "name": "account_region", "comment": null}, "account_state": {"type": "text", "index": 13, "name": "account_state", "comment": null}, "account_username": {"type": "text", "index": 14, "name": "account_username", "comment": null}, "total_transactions": {"type": "numeric", "index": 15, "name": "total_transactions", "comment": null}, "total_invoices": {"type": "numeric", "index": 16, "name": "total_invoices", "comment": null}, "total_charges": {"type": "double precision", "index": 17, "name": "total_charges", "comment": null}, "total_credits": {"type": "double precision", "index": 18, "name": "total_credits", "comment": null}, "total_balance": {"type": "double precision", "index": 19, "name": "total_balance", "comment": null}, "total_discounts": {"type": "double precision", "index": 20, "name": "total_discounts", "comment": null}, "total_taxes": {"type": "double precision", "index": 21, "name": "total_taxes", "comment": null}, "total_charge_count": {"type": "numeric", "index": 22, "name": "total_charge_count", "comment": null}, "total_credit_count": {"type": "numeric", "index": 23, "name": "total_credit_count", "comment": null}, "transactions_this_month": {"type": "numeric", "index": 24, "name": "transactions_this_month", "comment": null}, "invoices_this_month": {"type": "numeric", "index": 25, "name": "invoices_this_month", "comment": null}, "charges_this_month": {"type": "double precision", "index": 26, "name": "charges_this_month", "comment": null}, "credits_this_month": {"type": "double precision", "index": 27, "name": "credits_this_month", "comment": null}, "balance_this_month": {"type": "double precision", "index": 28, "name": "balance_this_month", "comment": null}, "discounts_this_month": {"type": "double precision", "index": 29, "name": "discounts_this_month", "comment": null}, "taxes_this_month": {"type": "double precision", "index": 30, "name": "taxes_this_month", "comment": null}, "first_charge_date": {"type": "timestamp without time zone", "index": 31, "name": "first_charge_date", "comment": null}, "most_recent_charge_date": {"type": "timestamp without time zone", "index": 32, "name": "most_recent_charge_date", "comment": null}, "first_invoice_date": {"type": "timestamp without time zone", "index": 33, "name": "first_invoice_date", "comment": null}, "most_recent_invoice_date": {"type": "timestamp without time zone", "index": 34, "name": "most_recent_invoice_date", "comment": null}, "next_invoice_due_at": {"type": "timestamp without time zone", "index": 35, "name": "next_invoice_due_at", "comment": null}, "first_transaction_date": {"type": "timestamp without time zone", "index": 36, "name": "first_transaction_date", "comment": null}, "most_recent_transaction_date": {"type": "timestamp without time zone", "index": 37, "name": "most_recent_transaction_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__account_overview"}, "model.recurly.recurly__balance_transactions": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly", "name": "recurly__balance_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"balance_transaction_id": {"type": "text", "index": 1, "name": "balance_transaction_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "invoice_id": {"type": "text", "index": 5, "name": "invoice_id", "comment": null}, "invoice_number": {"type": "integer", "index": 6, "name": "invoice_number", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "origin": {"type": "text", "index": 9, "name": "origin", "comment": null}, "product_code": {"type": "integer", "index": 10, "name": "product_code", "comment": null}, "discount": {"type": "double precision", "index": 11, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 12, "name": "tax", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "plan_code": {"type": "integer", "index": 14, "name": "plan_code", "comment": null}, "add_on_code": {"type": "integer", "index": 15, "name": "add_on_code", "comment": null}, "has_refund": {"type": "boolean", "index": 16, "name": "has_refund", "comment": null}, "refunded_quantity": {"type": "integer", "index": 17, "name": "refunded_quantity", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 19, "name": "amount", "comment": null}, "credit_applied": {"type": "double precision", "index": 20, "name": "credit_applied", "comment": null}, "quantity": {"type": "integer", "index": 21, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 22, "name": "unit_amount", "comment": null}, "subtotal": {"type": "double precision", "index": 23, "name": "subtotal", "comment": null}, "started_at": {"type": "timestamp without time zone", "index": 24, "name": "started_at", "comment": null}, "ended_at": {"type": "timestamp without time zone", "index": 25, "name": "ended_at", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 26, "name": "original_line_item_invoice_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 27, "name": "previous_line_item_id", "comment": null}, "invoice_state": {"type": "text", "index": 28, "name": "invoice_state", "comment": null}, "invoice_origin": {"type": "text", "index": 29, "name": "invoice_origin", "comment": null}, "invoice_type": {"type": "text", "index": 30, "name": "invoice_type", "comment": null}, "invoice_created_at": {"type": "timestamp without time zone", "index": 31, "name": "invoice_created_at", "comment": null}, "invoice_due_at": {"type": "timestamp without time zone", "index": 32, "name": "invoice_due_at", "comment": null}, "invoice_closed_at": {"type": "timestamp without time zone", "index": 33, "name": "invoice_closed_at", "comment": null}, "transaction_id": {"type": "text", "index": 34, "name": "transaction_id", "comment": null}, "transaction_created_at": {"type": "timestamp without time zone", "index": 35, "name": "transaction_created_at", "comment": null}, "transaction_type": {"type": "text", "index": 36, "name": "transaction_type", "comment": null}, "transaction_origin": {"type": "text", "index": 37, "name": "transaction_origin", "comment": null}, "transaction_status": {"type": "text", "index": 38, "name": "transaction_status", "comment": null}, "transaction_billing_country": {"type": "text", "index": 39, "name": "transaction_billing_country", "comment": null}, "transaction_status_message": {"type": "text", "index": 40, "name": "transaction_status_message", "comment": null}, "transaction_payment_method_object": {"type": "text", "index": 41, "name": "transaction_payment_method_object", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__balance_transactions"}, "model.recurly.recurly__churn_analysis": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly", "name": "recurly__churn_analysis", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 2, "name": "activated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_state": {"type": "text", "index": 4, "name": "account_state", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 5, "name": "canceled_at", "comment": null}, "current_period_ended_at": {"type": "timestamp without time zone", "index": 6, "name": "current_period_ended_at", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 7, "name": "current_period_started_at", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 8, "name": "expires_at", "comment": null}, "expiration_reason": {"type": "text", "index": 9, "name": "expiration_reason", "comment": null}, "has_auto_renew": {"type": "boolean", "index": 10, "name": "has_auto_renew", "comment": null}, "plan_name": {"type": "text", "index": 11, "name": "plan_name", "comment": null}, "plan_state": {"type": "text", "index": 12, "name": "plan_state", "comment": null}, "subscription_end_date": {"type": "timestamp without time zone", "index": 13, "name": "subscription_end_date", "comment": null}, "subscription_interval_days": {"type": "integer", "index": 14, "name": "subscription_interval_days", "comment": null}, "subscription_period": {"type": "bigint", "index": 15, "name": "subscription_period", "comment": null}, "subscription_state": {"type": "text", "index": 16, "name": "subscription_state", "comment": null}, "subtotal": {"type": "double precision", "index": 17, "name": "subtotal", "comment": null}, "unit_amount": {"type": "double precision", "index": 18, "name": "unit_amount", "comment": null}, "churn_reason": {"type": "text", "index": 19, "name": "churn_reason", "comment": null}, "churn_reason_type": {"type": "text", "index": 20, "name": "churn_reason_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__churn_analysis"}, "model.recurly.recurly__monthly_recurring_revenue": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly", "name": "recurly__monthly_recurring_revenue", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_monthly_id": {"type": "text", "index": 1, "name": "account_monthly_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "account_month": {"type": "timestamp without time zone", "index": 3, "name": "account_month", "comment": null}, "account_month_number": {"type": "bigint", "index": 4, "name": "account_month_number", "comment": null}, "current_month_mrr": {"type": "double precision", "index": 5, "name": "current_month_mrr", "comment": null}, "previous_month_mrr": {"type": "double precision", "index": 6, "name": "previous_month_mrr", "comment": null}, "mrr_type": {"type": "text", "index": 7, "name": "mrr_type", "comment": null}, "account_code": {"type": "text", "index": 8, "name": "account_code", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 9, "name": "account_created_at", "comment": null}, "account_email": {"type": "text", "index": 10, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 11, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "text", "index": 12, "name": "account_last_name", "comment": null}, "account_username": {"type": "text", "index": 13, "name": "account_username", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__monthly_recurring_revenue"}, "model.recurly.recurly__subscription_overview": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly", "name": "recurly__subscription_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "subscription_key": {"type": "text", "index": 3, "name": "subscription_key", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 4, "name": "activated_at", "comment": null}, "add_ons_total": {"type": "double precision", "index": 5, "name": "add_ons_total", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "current_period_ended_at": {"type": "timestamp without time zone", "index": 7, "name": "current_period_ended_at", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 8, "name": "current_period_started_at", "comment": null}, "expiration_reason": {"type": "text", "index": 9, "name": "expiration_reason", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 10, "name": "expires_at", "comment": null}, "has_auto_renew": {"type": "boolean", "index": 11, "name": "has_auto_renew", "comment": null}, "subscription_period": {"type": "bigint", "index": 12, "name": "subscription_period", "comment": null}, "subscription_state": {"type": "text", "index": 13, "name": "subscription_state", "comment": null}, "subscription_end_date": {"type": "timestamp without time zone", "index": 14, "name": "subscription_end_date", "comment": null}, "subscription_interval_days": {"type": "integer", "index": 15, "name": "subscription_interval_days", "comment": null}, "subtotal": {"type": "double precision", "index": 16, "name": "subtotal", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 17, "name": "trial_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 18, "name": "trial_started_at", "comment": null}, "trial_interval_days": {"type": "integer", "index": 19, "name": "trial_interval_days", "comment": null}, "unit_amount": {"type": "double precision", "index": 20, "name": "unit_amount", "comment": null}, "account_id": {"type": "text", "index": 21, "name": "account_id", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 22, "name": "account_created_at", "comment": null}, "account_email": {"type": "text", "index": 23, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 24, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "text", "index": 25, "name": "account_last_name", "comment": null}, "account_state": {"type": "text", "index": 26, "name": "account_state", "comment": null}, "plan_code": {"type": "text", "index": 27, "name": "plan_code", "comment": null}, "plan_created_at": {"type": "timestamp without time zone", "index": 28, "name": "plan_created_at", "comment": null}, "plan_deleted_at": {"type": "timestamp without time zone", "index": 29, "name": "plan_deleted_at", "comment": null}, "plan_interval_days": {"type": "integer", "index": 30, "name": "plan_interval_days", "comment": null}, "plan_is_tax_exempt": {"type": "boolean", "index": 31, "name": "plan_is_tax_exempt", "comment": null}, "plan_name": {"type": "text", "index": 32, "name": "plan_name", "comment": null}, "plan_state": {"type": "text", "index": 33, "name": "plan_state", "comment": null}, "plan_total_billing_cycles": {"type": "integer", "index": 34, "name": "plan_total_billing_cycles", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__subscription_overview"}, "model.recurly.int_recurly__account_cumulatives": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_int", "name": "int_recurly__account_cumulatives", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "total_transactions": {"type": "numeric", "index": 2, "name": "total_transactions", "comment": null}, "total_invoices": {"type": "numeric", "index": 3, "name": "total_invoices", "comment": null}, "total_charges": {"type": "double precision", "index": 4, "name": "total_charges", "comment": null}, "total_credits": {"type": "double precision", "index": 5, "name": "total_credits", "comment": null}, "total_balance": {"type": "double precision", "index": 6, "name": "total_balance", "comment": null}, "total_discounts": {"type": "double precision", "index": 7, "name": "total_discounts", "comment": null}, "total_taxes": {"type": "double precision", "index": 8, "name": "total_taxes", "comment": null}, "total_charge_count": {"type": "numeric", "index": 9, "name": "total_charge_count", "comment": null}, "total_credit_count": {"type": "numeric", "index": 10, "name": "total_credit_count", "comment": null}, "transactions_this_month": {"type": "numeric", "index": 11, "name": "transactions_this_month", "comment": null}, "invoices_this_month": {"type": "numeric", "index": 12, "name": "invoices_this_month", "comment": null}, "balance_this_month": {"type": "double precision", "index": 13, "name": "balance_this_month", "comment": null}, "charges_this_month": {"type": "double precision", "index": 14, "name": "charges_this_month", "comment": null}, "credits_this_month": {"type": "double precision", "index": 15, "name": "credits_this_month", "comment": null}, "discounts_this_month": {"type": "double precision", "index": 16, "name": "discounts_this_month", "comment": null}, "taxes_this_month": {"type": "double precision", "index": 17, "name": "taxes_this_month", "comment": null}, "first_charge_date": {"type": "timestamp without time zone", "index": 18, "name": "first_charge_date", "comment": null}, "most_recent_charge_date": {"type": "timestamp without time zone", "index": 19, "name": "most_recent_charge_date", "comment": null}, "first_invoice_date": {"type": "timestamp without time zone", "index": 20, "name": "first_invoice_date", "comment": null}, "most_recent_invoice_date": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_invoice_date", "comment": null}, "first_transaction_date": {"type": "timestamp without time zone", "index": 22, "name": "first_transaction_date", "comment": null}, "most_recent_transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_transaction_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__account_cumulatives"}, "model.recurly.int_recurly__account_partitions": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_int", "name": "int_recurly__account_partitions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 3, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 4, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 5, "name": "date_year", "comment": null}, "daily_transactions": {"type": "bigint", "index": 6, "name": "daily_transactions", "comment": null}, "daily_balance": {"type": "double precision", "index": 7, "name": "daily_balance", "comment": null}, "daily_invoices": {"type": "bigint", "index": 8, "name": "daily_invoices", "comment": null}, "daily_charges": {"type": "double precision", "index": 9, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 10, "name": "daily_credits", "comment": null}, "daily_discounts": {"type": "double precision", "index": 11, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 12, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 13, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 14, "name": "daily_credit_count", "comment": null}, "rolling_account_balance": {"type": "double precision", "index": 15, "name": "rolling_account_balance", "comment": null}, "rolling_invoices": {"type": "numeric", "index": 16, "name": "rolling_invoices", "comment": null}, "rolling_transactions": {"type": "numeric", "index": 17, "name": "rolling_transactions", "comment": null}, "rolling_charge_balance": {"type": "double precision", "index": 18, "name": "rolling_charge_balance", "comment": null}, "rolling_credit_balance": {"type": "double precision", "index": 19, "name": "rolling_credit_balance", "comment": null}, "rolling_discount_balance": {"type": "double precision", "index": 20, "name": "rolling_discount_balance", "comment": null}, "rolling_tax_balance": {"type": "double precision", "index": 21, "name": "rolling_tax_balance", "comment": null}, "rolling_charges": {"type": "numeric", "index": 22, "name": "rolling_charges", "comment": null}, "rolling_credits": {"type": "numeric", "index": 23, "name": "rolling_credits", "comment": null}, "date_index": {"type": "bigint", "index": 24, "name": "date_index", "comment": null}, "rolling_account_balance_partition": {"type": "bigint", "index": 25, "name": "rolling_account_balance_partition", "comment": null}, "rolling_invoices_partition": {"type": "bigint", "index": 26, "name": "rolling_invoices_partition", "comment": null}, "rolling_transactions_partition": {"type": "bigint", "index": 27, "name": "rolling_transactions_partition", "comment": null}, "rolling_charge_balance_partition": {"type": "bigint", "index": 28, "name": "rolling_charge_balance_partition", "comment": null}, "rolling_credit_balance_partition": {"type": "bigint", "index": 29, "name": "rolling_credit_balance_partition", "comment": null}, "rolling_discount_balance_partition": {"type": "bigint", "index": 30, "name": "rolling_discount_balance_partition", "comment": null}, "rolling_tax_balance_partition": {"type": "bigint", "index": 31, "name": "rolling_tax_balance_partition", "comment": null}, "rolling_charges_partition": {"type": "bigint", "index": 32, "name": "rolling_charges_partition", "comment": null}, "rolling_credits_partition": {"type": "bigint", "index": 33, "name": "rolling_credits_partition", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__account_partitions"}, "model.recurly.int_recurly__account_rolling_totals": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_int", "name": "int_recurly__account_rolling_totals", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 3, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 4, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 5, "name": "date_year", "comment": null}, "daily_transactions": {"type": "bigint", "index": 6, "name": "daily_transactions", "comment": null}, "daily_balance": {"type": "double precision", "index": 7, "name": "daily_balance", "comment": null}, "daily_invoices": {"type": "bigint", "index": 8, "name": "daily_invoices", "comment": null}, "daily_charges": {"type": "double precision", "index": 9, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 10, "name": "daily_credits", "comment": null}, "daily_discounts": {"type": "double precision", "index": 11, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 12, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 13, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 14, "name": "daily_credit_count", "comment": null}, "rolling_account_balance": {"type": "double precision", "index": 15, "name": "rolling_account_balance", "comment": null}, "rolling_invoices": {"type": "numeric", "index": 16, "name": "rolling_invoices", "comment": null}, "rolling_transactions": {"type": "numeric", "index": 17, "name": "rolling_transactions", "comment": null}, "rolling_charge_balance": {"type": "double precision", "index": 18, "name": "rolling_charge_balance", "comment": null}, "rolling_credit_balance": {"type": "double precision", "index": 19, "name": "rolling_credit_balance", "comment": null}, "rolling_discount_balance": {"type": "double precision", "index": 20, "name": "rolling_discount_balance", "comment": null}, "rolling_tax_balance": {"type": "double precision", "index": 21, "name": "rolling_tax_balance", "comment": null}, "rolling_charges": {"type": "numeric", "index": 22, "name": "rolling_charges", "comment": null}, "rolling_credits": {"type": "numeric", "index": 23, "name": "rolling_credits", "comment": null}, "date_index": {"type": "bigint", "index": 24, "name": "date_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__account_rolling_totals"}, "model.recurly.int_recurly__account_running_totals": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_int", "name": "int_recurly__account_running_totals", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 2, "name": "account_created_at", "comment": null}, "account_city": {"type": "text", "index": 3, "name": "account_city", "comment": null}, "account_company": {"type": "text", "index": 4, "name": "account_company", "comment": null}, "account_country": {"type": "text", "index": 5, "name": "account_country", "comment": null}, "account_code": {"type": "text", "index": 6, "name": "account_code", "comment": null}, "account_email": {"type": "text", "index": 7, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 8, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "text", "index": 9, "name": "account_last_name", "comment": null}, "account_is_tax_exempt": {"type": "boolean", "index": 10, "name": "account_is_tax_exempt", "comment": null}, "account_postal_code": {"type": "text", "index": 11, "name": "account_postal_code", "comment": null}, "account_region": {"type": "text", "index": 12, "name": "account_region", "comment": null}, "account_state": {"type": "text", "index": 13, "name": "account_state", "comment": null}, "account_username": {"type": "text", "index": 14, "name": "account_username", "comment": null}, "account_daily_id": {"type": "text", "index": 15, "name": "account_daily_id", "comment": null}, "date_day": {"type": "date", "index": 16, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 17, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 18, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 19, "name": "date_year", "comment": null}, "date_index": {"type": "bigint", "index": 20, "name": "date_index", "comment": null}, "daily_transaction_count": {"type": "bigint", "index": 21, "name": "daily_transaction_count", "comment": null}, "daily_net_change": {"type": "double precision", "index": 22, "name": "daily_net_change", "comment": null}, "daily_invoice_count": {"type": "bigint", "index": 23, "name": "daily_invoice_count", "comment": null}, "daily_charges": {"type": "double precision", "index": 24, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 25, "name": "daily_credits", "comment": null}, "daily_discounts": {"type": "double precision", "index": 26, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 27, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 28, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 29, "name": "daily_credit_count", "comment": null}, "rolling_account_balance": {"type": "double precision", "index": 30, "name": "rolling_account_balance", "comment": null}, "rolling_invoices": {"type": "numeric", "index": 31, "name": "rolling_invoices", "comment": null}, "rolling_transactions": {"type": "numeric", "index": 32, "name": "rolling_transactions", "comment": null}, "rolling_charge_balance": {"type": "double precision", "index": 33, "name": "rolling_charge_balance", "comment": null}, "rolling_credit_balance": {"type": "double precision", "index": 34, "name": "rolling_credit_balance", "comment": null}, "rolling_discount_balance": {"type": "double precision", "index": 35, "name": "rolling_discount_balance", "comment": null}, "rolling_tax_balance": {"type": "double precision", "index": 36, "name": "rolling_tax_balance", "comment": null}, "rolling_charges": {"type": "numeric", "index": 37, "name": "rolling_charges", "comment": null}, "rolling_credits": {"type": "numeric", "index": 38, "name": "rolling_credits", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__account_running_totals"}, "model.recurly.int_recurly__transactions_date_spine": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_int", "name": "int_recurly__transactions_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 3, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 4, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 5, "name": "date_year", "comment": null}, "date_index": {"type": "bigint", "index": 6, "name": "date_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__transactions_date_spine"}, "model.recurly.int_recurly__transactions_grouped": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_int", "name": "int_recurly__transactions_grouped", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 3, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 4, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 5, "name": "date_year", "comment": null}, "daily_transactions": {"type": "bigint", "index": 6, "name": "daily_transactions", "comment": null}, "daily_invoices": {"type": "bigint", "index": 7, "name": "daily_invoices", "comment": null}, "daily_charges": {"type": "double precision", "index": 8, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 9, "name": "daily_credits", "comment": null}, "daily_balance": {"type": "double precision", "index": 10, "name": "daily_balance", "comment": null}, "daily_discounts": {"type": "double precision", "index": 11, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 12, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 13, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 14, "name": "daily_credit_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__transactions_grouped"}, "model.recurly_source.stg_recurly__account_balance_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__account_balance_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "past_due": {"type": "boolean", "index": 5, "name": "past_due", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_balance_history"}, "model.recurly_source.stg_recurly__account_balance_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__account_balance_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "past_due": {"type": "boolean", "index": 6, "name": "past_due", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_balance_history_tmp"}, "model.recurly_source.stg_recurly__account_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_city": {"type": "text", "index": 3, "name": "account_city", "comment": null}, "account_country": {"type": "text", "index": 4, "name": "account_country", "comment": null}, "account_postal_code": {"type": "text", "index": 5, "name": "account_postal_code", "comment": null}, "account_region": {"type": "text", "index": 6, "name": "account_region", "comment": null}, "bill_to": {"type": "text", "index": 7, "name": "bill_to", "comment": null}, "cc_emails": {"type": "text", "index": 8, "name": "cc_emails", "comment": null}, "code": {"type": "text", "index": 9, "name": "code", "comment": null}, "company": {"type": "text", "index": 10, "name": "company", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 12, "name": "deleted_at", "comment": null}, "email": {"type": "text", "index": 13, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 14, "name": "first_name", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 15, "name": "is_most_recent_record", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 16, "name": "is_tax_exempt", "comment": null}, "last_name": {"type": "text", "index": 17, "name": "last_name", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "username": {"type": "text", "index": 19, "name": "username", "comment": null}, "vat_number": {"type": "text", "index": 20, "name": "vat_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_history"}, "model.recurly_source.stg_recurly__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "bill_to": {"type": "text", "index": 7, "name": "bill_to", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "username": {"type": "text", "index": 9, "name": "username", "comment": null}, "account_first_name": {"type": "integer", "index": 10, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "integer", "index": 11, "name": "account_last_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "cc_emails": {"type": "text", "index": 13, "name": "cc_emails", "comment": null}, "company": {"type": "text", "index": 14, "name": "company", "comment": null}, "vat_number": {"type": "text", "index": 15, "name": "vat_number", "comment": null}, "tax_exempt": {"type": "boolean", "index": 16, "name": "tax_exempt", "comment": null}, "account_country": {"type": "text", "index": 17, "name": "account_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_history_tmp"}, "model.recurly_source.stg_recurly__account_note_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__account_note_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_note_id": {"type": "text", "index": 1, "name": "account_note_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "account_updated_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "message": {"type": "text", "index": 5, "name": "message", "comment": null}, "object": {"type": "text", "index": 6, "name": "object", "comment": null}, "user_email": {"type": "text", "index": 7, "name": "user_email", "comment": null}, "user_id": {"type": "text", "index": 8, "name": "user_id", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_note_history"}, "model.recurly_source.stg_recurly__account_note_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__account_note_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "object": {"type": "text", "index": 7, "name": "object", "comment": null}, "user_email": {"type": "text", "index": 8, "name": "user_email", "comment": null}, "user_id": {"type": "text", "index": 9, "name": "user_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_note_history_tmp"}, "model.recurly_source.stg_recurly__billing_info_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__billing_info_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"billing_id": {"type": "text", "index": 1, "name": "billing_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "billing_city": {"type": "text", "index": 4, "name": "billing_city", "comment": null}, "billing_country": {"type": "text", "index": 5, "name": "billing_country", "comment": null}, "billing_phone": {"type": "text", "index": 6, "name": "billing_phone", "comment": null}, "billing_postal_code": {"type": "text", "index": 7, "name": "billing_postal_code", "comment": null}, "billing_region": {"type": "text", "index": 8, "name": "billing_region", "comment": null}, "billing_street_1": {"type": "text", "index": 9, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 10, "name": "billing_street_2", "comment": null}, "company": {"type": "text", "index": 11, "name": "company", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "is_valid": {"type": "boolean", "index": 14, "name": "is_valid", "comment": null}, "last_name": {"type": "text", "index": 15, "name": "last_name", "comment": null}, "payment_method_card_type": {"type": "text", "index": 16, "name": "payment_method_card_type", "comment": null}, "payment_method_object": {"type": "text", "index": 17, "name": "payment_method_object", "comment": null}, "updated_by_country": {"type": "integer", "index": 18, "name": "updated_by_country", "comment": null}, "updated_by_ip": {"type": "integer", "index": 19, "name": "updated_by_ip", "comment": null}, "vat_number": {"type": "text", "index": 20, "name": "vat_number", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 21, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__billing_info_history"}, "model.recurly_source.stg_recurly__billing_info_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__billing_info_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "first_name": {"type": "text", "index": 5, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 6, "name": "last_name", "comment": null}, "billing_phone": {"type": "text", "index": 7, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 8, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 9, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 10, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 11, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 12, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 13, "name": "billing_country", "comment": null}, "vat_number": {"type": "text", "index": 14, "name": "vat_number", "comment": null}, "valid": {"type": "boolean", "index": 15, "name": "valid", "comment": null}, "payment_method_object": {"type": "text", "index": 16, "name": "payment_method_object", "comment": null}, "payment_method_credit_type": {"type": "text", "index": 17, "name": "payment_method_credit_type", "comment": null}, "payment_method_first_six": {"type": "text", "index": 18, "name": "payment_method_first_six", "comment": null}, "payment_method_last_four": {"type": "text", "index": 19, "name": "payment_method_last_four", "comment": null}, "payment_method_exp_month": {"type": "text", "index": 20, "name": "payment_method_exp_month", "comment": null}, "payment_method_exp_year": {"type": "text", "index": 21, "name": "payment_method_exp_year", "comment": null}, "fraud_score": {"type": "integer", "index": 22, "name": "fraud_score", "comment": null}, "fraud_decision": {"type": "integer", "index": 23, "name": "fraud_decision", "comment": null}, "fraud_risk_rules_triggered": {"type": "integer", "index": 24, "name": "fraud_risk_rules_triggered", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 25, "name": "created_at", "comment": null}, "updated_by_ip": {"type": "integer", "index": 26, "name": "updated_by_ip", "comment": null}, "updated_by_country": {"type": "integer", "index": 27, "name": "updated_by_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__billing_info_history_tmp"}, "model.recurly_source.stg_recurly__coupon_discount": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__coupon_discount", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_id": {"type": "text", "index": 1, "name": "coupon_id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "fivetran_id": {"type": "text", "index": 4, "name": "fivetran_id", "comment": null}, "percentage": {"type": "integer", "index": 5, "name": "percentage", "comment": null}, "trial_length": {"type": "integer", "index": 6, "name": "trial_length", "comment": null}, "trial_unit": {"type": "integer", "index": 7, "name": "trial_unit", "comment": null}, "type": {"type": "text", "index": 8, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__coupon_discount"}, "model.recurly_source.stg_recurly__coupon_discount_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__coupon_discount_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_id": {"type": "text", "index": 1, "name": "coupon_id", "comment": null}, "fivetran_id": {"type": "text", "index": 2, "name": "fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "percentage": {"type": "integer", "index": 6, "name": "percentage", "comment": null}, "trial_length": {"type": "integer", "index": 7, "name": "trial_length", "comment": null}, "trial_unit": {"type": "integer", "index": 8, "name": "trial_unit", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__coupon_discount_tmp"}, "model.recurly_source.stg_recurly__coupon_redemption_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__coupon_redemption_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "coupon_id": {"type": "text", "index": 4, "name": "coupon_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "discounted": {"type": "double precision", "index": 7, "name": "discounted", "comment": null}, "removed_at": {"type": "timestamp without time zone", "index": 8, "name": "removed_at", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__coupon_redemption_history"}, "model.recurly_source.stg_recurly__coupon_redemption_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__coupon_redemption_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "coupon_id": {"type": "text", "index": 5, "name": "coupon_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "discounted": {"type": "double precision", "index": 8, "name": "discounted", "comment": null}, "removed_at": {"type": "timestamp without time zone", "index": 9, "name": "removed_at", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__coupon_redemption_history_tmp"}, "model.recurly_source.stg_recurly__credit_payment_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__credit_payment_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_payment_id": {"type": "character varying", "index": 1, "name": "credit_payment_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "character varying", "index": 3, "name": "account_id", "comment": null}, "action": {"type": "text", "index": 4, "name": "action", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "applied_to_invoice_id": {"type": "character varying", "index": 6, "name": "applied_to_invoice_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "refund_transaction_id": {"type": "character varying", "index": 9, "name": "refund_transaction_id", "comment": null}, "original_credit_payment_id": {"type": "character varying", "index": 10, "name": "original_credit_payment_id", "comment": null}, "original_invoice_id": {"type": "character varying", "index": 11, "name": "original_invoice_id", "comment": null}, "uuid": {"type": "character varying", "index": 12, "name": "uuid", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 13, "name": "voided_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__credit_payment_history"}, "model.recurly_source.stg_recurly__credit_payment_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__credit_payment_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "account_id": {"type": "character varying", "index": 4, "name": "account_id", "comment": null}, "applied_to_invoice_id": {"type": "character varying", "index": 5, "name": "applied_to_invoice_id", "comment": null}, "original_invoice_id": {"type": "character varying", "index": 6, "name": "original_invoice_id", "comment": null}, "refund_transaction_id": {"type": "character varying", "index": 7, "name": "refund_transaction_id", "comment": null}, "original_credit_payment_id": {"type": "character varying", "index": 8, "name": "original_credit_payment_id", "comment": null}, "uuid": {"type": "character varying", "index": 9, "name": "uuid", "comment": null}, "action": {"type": "text", "index": 10, "name": "action", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 12, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 13, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 14, "name": "voided_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__credit_payment_history_tmp"}, "model.recurly_source.stg_recurly__invoice_coupon_redemption_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__invoice_coupon_redemption_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "invoice_id": {"type": "text", "index": 2, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 4, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_coupon_redemption_history"}, "model.recurly_source.stg_recurly__invoice_coupon_redemption_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__invoice_coupon_redemption_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "invoice_id": {"type": "text", "index": 2, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_coupon_redemption_history_tmp"}, "model.recurly_source.stg_recurly__invoice_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__invoice_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "balance": {"type": "double precision", "index": 4, "name": "balance", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 5, "name": "closed_at", "comment": null}, "collection_method": {"type": "text", "index": 6, "name": "collection_method", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "discount": {"type": "double precision", "index": 9, "name": "discount", "comment": null}, "due_at": {"type": "timestamp without time zone", "index": 10, "name": "due_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 11, "name": "is_most_recent_record", "comment": null}, "net_terms": {"type": "integer", "index": 12, "name": "net_terms", "comment": null}, "number": {"type": "integer", "index": 13, "name": "number", "comment": null}, "origin": {"type": "text", "index": 14, "name": "origin", "comment": null}, "paid": {"type": "double precision", "index": 15, "name": "paid", "comment": null}, "po_number": {"type": "integer", "index": 16, "name": "po_number", "comment": null}, "previous_invoice_id": {"type": "integer", "index": 17, "name": "previous_invoice_id", "comment": null}, "refundable_amount": {"type": "double precision", "index": 18, "name": "refundable_amount", "comment": null}, "state": {"type": "text", "index": 19, "name": "state", "comment": null}, "subtotal": {"type": "double precision", "index": 20, "name": "subtotal", "comment": null}, "tax": {"type": "double precision", "index": 21, "name": "tax", "comment": null}, "tax_rate": {"type": "integer", "index": 22, "name": "tax_rate", "comment": null}, "tax_region": {"type": "integer", "index": 23, "name": "tax_region", "comment": null}, "tax_type": {"type": "integer", "index": 24, "name": "tax_type", "comment": null}, "total": {"type": "double precision", "index": 25, "name": "total", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_history"}, "model.recurly_source.stg_recurly__invoice_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__invoice_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "due_at": {"type": "timestamp without time zone", "index": 5, "name": "due_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 6, "name": "closed_at", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "previous_invoice_id": {"type": "integer", "index": 8, "name": "previous_invoice_id", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "origin": {"type": "text", "index": 10, "name": "origin", "comment": null}, "state": {"type": "text", "index": 11, "name": "state", "comment": null}, "number": {"type": "integer", "index": 12, "name": "number", "comment": null}, "collection_method": {"type": "text", "index": 13, "name": "collection_method", "comment": null}, "po_number": {"type": "integer", "index": 14, "name": "po_number", "comment": null}, "net_terms": {"type": "integer", "index": 15, "name": "net_terms", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "balance": {"type": "double precision", "index": 17, "name": "balance", "comment": null}, "paid": {"type": "double precision", "index": 18, "name": "paid", "comment": null}, "total": {"type": "double precision", "index": 19, "name": "total", "comment": null}, "subtotal": {"type": "double precision", "index": 20, "name": "subtotal", "comment": null}, "refundable_amount": {"type": "double precision", "index": 21, "name": "refundable_amount", "comment": null}, "discount": {"type": "double precision", "index": 22, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 23, "name": "tax", "comment": null}, "tax_type": {"type": "integer", "index": 24, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 25, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 26, "name": "tax_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_history_tmp"}, "model.recurly_source.stg_recurly__invoice_subscription_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__invoice_subscription_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "invoice_updated_at", "comment": null}, "subscription_id": {"type": "text", "index": 3, "name": "subscription_id", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 4, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_subscription_history"}, "model.recurly_source.stg_recurly__invoice_subscription_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__invoice_subscription_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "subscription_id": {"type": "text", "index": 2, "name": "subscription_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_subscription_history_tmp"}, "model.recurly_source.stg_recurly__line_item_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__line_item_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"line_item_id": {"type": "text", "index": 1, "name": "line_item_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "add_on_code": {"type": "integer", "index": 4, "name": "add_on_code", "comment": null}, "add_on_id": {"type": "integer", "index": 5, "name": "add_on_id", "comment": null}, "amount": {"type": "double precision", "index": 6, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "credit_applied": {"type": "double precision", "index": 8, "name": "credit_applied", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "discount": {"type": "double precision", "index": 11, "name": "discount", "comment": null}, "ended_at": {"type": "timestamp without time zone", "index": 12, "name": "ended_at", "comment": null}, "has_refund": {"type": "boolean", "index": 13, "name": "has_refund", "comment": null}, "invoice_id": {"type": "text", "index": 14, "name": "invoice_id", "comment": null}, "invoice_number": {"type": "integer", "index": 15, "name": "invoice_number", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 16, "name": "is_most_recent_record", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 18, "name": "original_line_item_invoice_id", "comment": null}, "origin": {"type": "text", "index": 19, "name": "origin", "comment": null}, "plan_code": {"type": "integer", "index": 20, "name": "plan_code", "comment": null}, "plan_id": {"type": "integer", "index": 21, "name": "plan_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 22, "name": "previous_line_item_id", "comment": null}, "product_code": {"type": "integer", "index": 23, "name": "product_code", "comment": null}, "proration_rate": {"type": "integer", "index": 24, "name": "proration_rate", "comment": null}, "quantity": {"type": "integer", "index": 25, "name": "quantity", "comment": null}, "refunded_quantity": {"type": "integer", "index": 26, "name": "refunded_quantity", "comment": null}, "started_at": {"type": "timestamp without time zone", "index": 27, "name": "started_at", "comment": null}, "state": {"type": "text", "index": 28, "name": "state", "comment": null}, "subscription_id": {"type": "integer", "index": 29, "name": "subscription_id", "comment": null}, "subtotal": {"type": "double precision", "index": 30, "name": "subtotal", "comment": null}, "tax": {"type": "double precision", "index": 31, "name": "tax", "comment": null}, "tax_code": {"type": "integer", "index": 32, "name": "tax_code", "comment": null}, "tax_exempt": {"type": "boolean", "index": 33, "name": "tax_exempt", "comment": null}, "tax_region": {"type": "integer", "index": 34, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 35, "name": "tax_rate", "comment": null}, "tax_type": {"type": "integer", "index": 36, "name": "tax_type", "comment": null}, "type": {"type": "text", "index": 37, "name": "type", "comment": null}, "unit_amount": {"type": "double precision", "index": 38, "name": "unit_amount", "comment": null}, "uuid": {"type": "text", "index": 39, "name": "uuid", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__line_item_history"}, "model.recurly_source.stg_recurly__line_item_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__line_item_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 5, "name": "account_id", "comment": null}, "plan_id": {"type": "integer", "index": 6, "name": "plan_id", "comment": null}, "add_on_id": {"type": "integer", "index": 7, "name": "add_on_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 9, "name": "previous_line_item_id", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 10, "name": "original_line_item_invoice_id", "comment": null}, "subscription_id": {"type": "integer", "index": 11, "name": "subscription_id", "comment": null}, "uuid": {"type": "text", "index": 12, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 13, "name": "type", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "plan_code": {"type": "integer", "index": 15, "name": "plan_code", "comment": null}, "add_on_code": {"type": "integer", "index": 16, "name": "add_on_code", "comment": null}, "invoice_number": {"type": "integer", "index": 17, "name": "invoice_number", "comment": null}, "origin": {"type": "text", "index": 18, "name": "origin", "comment": null}, "product_code": {"type": "integer", "index": 19, "name": "product_code", "comment": null}, "currency": {"type": "text", "index": 20, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 21, "name": "amount", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 23, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 24, "name": "unit_amount", "comment": null}, "subtotal": {"type": "double precision", "index": 25, "name": "subtotal", "comment": null}, "discount": {"type": "double precision", "index": 26, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 27, "name": "tax", "comment": null}, "taxable": {"type": "boolean", "index": 28, "name": "taxable", "comment": null}, "tax_exempt": {"type": "boolean", "index": 29, "name": "tax_exempt", "comment": null}, "tax_code": {"type": "integer", "index": 30, "name": "tax_code", "comment": null}, "tax_type": {"type": "integer", "index": 31, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 32, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 33, "name": "tax_rate", "comment": null}, "proration_rate": {"type": "integer", "index": 34, "name": "proration_rate", "comment": null}, "refund": {"type": "boolean", "index": 35, "name": "refund", "comment": null}, "refunded_quantity": {"type": "integer", "index": 36, "name": "refunded_quantity", "comment": null}, "credit_applied": {"type": "double precision", "index": 37, "name": "credit_applied", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 39, "name": "end_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__line_item_history_tmp"}, "model.recurly_source.stg_recurly__plan_currency_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__plan_currency_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"plan_id": {"type": "text", "index": 1, "name": "plan_id", "comment": null}, "plan_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "plan_updated_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "setup_fees": {"type": "double precision", "index": 4, "name": "setup_fees", "comment": null}, "unit_amount": {"type": "double precision", "index": 5, "name": "unit_amount", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__plan_currency_history"}, "model.recurly_source.stg_recurly__plan_currency_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__plan_currency_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "plan_id": {"type": "text", "index": 2, "name": "plan_id", "comment": null}, "plan_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "plan_updated_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "setup_fees": {"type": "double precision", "index": 5, "name": "setup_fees", "comment": null}, "unit_amount": {"type": "double precision", "index": 6, "name": "unit_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__plan_currency_history_tmp"}, "model.recurly_source.stg_recurly__plan_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__plan_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"plan_id": {"type": "text", "index": 1, "name": "plan_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "accounting_code": {"type": "text", "index": 3, "name": "accounting_code", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 6, "name": "deleted_at", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "has_auto_renew": {"type": "boolean", "index": 8, "name": "has_auto_renew", "comment": null}, "interval_length": {"type": "integer", "index": 9, "name": "interval_length", "comment": null}, "interval_unit": {"type": "text", "index": 10, "name": "interval_unit", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 11, "name": "is_most_recent_record", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 12, "name": "is_tax_exempt", "comment": null}, "name": {"type": "text", "index": 13, "name": "name", "comment": null}, "setup_fee_accounting_code": {"type": "text", "index": 14, "name": "setup_fee_accounting_code", "comment": null}, "state": {"type": "text", "index": 15, "name": "state", "comment": null}, "tax_code": {"type": "integer", "index": 16, "name": "tax_code", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 17, "name": "total_billing_cycles", "comment": null}, "trial_length": {"type": "integer", "index": 18, "name": "trial_length", "comment": null}, "trial_unit": {"type": "text", "index": 19, "name": "trial_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__plan_history"}, "model.recurly_source.stg_recurly__plan_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__plan_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "state": {"type": "text", "index": 7, "name": "state", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "description": {"type": "integer", "index": 9, "name": "description", "comment": null}, "interval_unit": {"type": "text", "index": 10, "name": "interval_unit", "comment": null}, "interval_length": {"type": "integer", "index": 11, "name": "interval_length", "comment": null}, "trial_unit": {"type": "text", "index": 12, "name": "trial_unit", "comment": null}, "trial_length": {"type": "integer", "index": 13, "name": "trial_length", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 14, "name": "total_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 15, "name": "auto_renew", "comment": null}, "accounting_code": {"type": "text", "index": 16, "name": "accounting_code", "comment": null}, "setup_fee_accounting_code": {"type": "text", "index": 17, "name": "setup_fee_accounting_code", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "tax_exempt": {"type": "boolean", "index": 19, "name": "tax_exempt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__plan_history_tmp"}, "model.recurly_source.stg_recurly__subscription_add_on_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__subscription_add_on_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_add_on_id": {"type": "text", "index": 1, "name": "subscription_add_on_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "expired_at": {"type": "timestamp without time zone", "index": 4, "name": "expired_at", "comment": null}, "object": {"type": "text", "index": 5, "name": "object", "comment": null}, "plan_add_on_id": {"type": "text", "index": 6, "name": "plan_add_on_id", "comment": null}, "quantity": {"type": "integer", "index": 7, "name": "quantity", "comment": null}, "subscription_id": {"type": "text", "index": 8, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 9, "name": "unit_amount", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_add_on_history"}, "model.recurly_source.stg_recurly__subscription_add_on_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__subscription_add_on_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "expired_at": {"type": "timestamp without time zone", "index": 3, "name": "expired_at", "comment": null}, "id": {"type": "text", "index": 4, "name": "id", "comment": null}, "object": {"type": "text", "index": 5, "name": "object", "comment": null}, "plan_add_on_id": {"type": "text", "index": 6, "name": "plan_add_on_id", "comment": null}, "quantity": {"type": "integer", "index": 7, "name": "quantity", "comment": null}, "subscription_id": {"type": "text", "index": 8, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 9, "name": "unit_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_add_on_history_tmp"}, "model.recurly_source.stg_recurly__subscription_change_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__subscription_change_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_change_id": {"type": "character varying", "index": 1, "name": "subscription_change_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "activate_at": {"type": "timestamp without time zone", "index": 3, "name": "activate_at", "comment": null}, "activated": {"type": "boolean", "index": 4, "name": "activated", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 6, "name": "deleted_at", "comment": null}, "object": {"type": "character varying", "index": 7, "name": "object", "comment": null}, "plan_id": {"type": "character varying", "index": 8, "name": "plan_id", "comment": null}, "quantity": {"type": "bigint", "index": 9, "name": "quantity", "comment": null}, "subscription_id": {"type": "character varying", "index": 10, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 11, "name": "unit_amount", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_change_history"}, "model.recurly_source.stg_recurly__subscription_change_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__subscription_change_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "plan_id": {"type": "character varying", "index": 4, "name": "plan_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 5, "name": "subscription_id", "comment": null}, "object": {"type": "character varying", "index": 6, "name": "object", "comment": null}, "unit_amount": {"type": "double precision", "index": 7, "name": "unit_amount", "comment": null}, "quantity": {"type": "bigint", "index": 8, "name": "quantity", "comment": null}, "activate_at": {"type": "timestamp without time zone", "index": 9, "name": "activate_at", "comment": null}, "activated": {"type": "boolean", "index": 10, "name": "activated", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 12, "name": "deleted_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_change_history_tmp"}, "model.recurly_source.stg_recurly__subscription_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__subscription_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 4, "name": "activated_at", "comment": null}, "add_ons_total": {"type": "double precision", "index": 5, "name": "add_ons_total", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "collection_method": {"type": "text", "index": 7, "name": "collection_method", "comment": null}, "converted_at": {"type": "timestamp without time zone", "index": 8, "name": "converted_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "current_period_ended_at": {"type": "timestamp without time zone", "index": 11, "name": "current_period_ended_at", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 12, "name": "current_period_started_at", "comment": null}, "current_term_ended_at": {"type": "timestamp without time zone", "index": 13, "name": "current_term_ended_at", "comment": null}, "current_term_started_at": {"type": "timestamp without time zone", "index": 14, "name": "current_term_started_at", "comment": null}, "expiration_reason": {"type": "text", "index": 15, "name": "expiration_reason", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 16, "name": "expires_at", "comment": null}, "has_auto_renew": {"type": "boolean", "index": 17, "name": "has_auto_renew", "comment": null}, "has_started_with_gift": {"type": "boolean", "index": 18, "name": "has_started_with_gift", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 19, "name": "is_most_recent_record", "comment": null}, "object": {"type": "text", "index": 20, "name": "object", "comment": null}, "paused_at": {"type": "timestamp without time zone", "index": 21, "name": "paused_at", "comment": null}, "plan_id": {"type": "text", "index": 22, "name": "plan_id", "comment": null}, "quantity": {"type": "integer", "index": 23, "name": "quantity", "comment": null}, "remaining_billing_cycles": {"type": "integer", "index": 24, "name": "remaining_billing_cycles", "comment": null}, "remaining_pause_cycles": {"type": "integer", "index": 25, "name": "remaining_pause_cycles", "comment": null}, "renewal_billing_cycles": {"type": "integer", "index": 26, "name": "renewal_billing_cycles", "comment": null}, "state": {"type": "text", "index": 27, "name": "state", "comment": null}, "subtotal": {"type": "double precision", "index": 28, "name": "subtotal", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 29, "name": "total_billing_cycles", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 30, "name": "trial_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 31, "name": "trial_started_at", "comment": null}, "unit_amount": {"type": "double precision", "index": 32, "name": "unit_amount", "comment": null}, "uuid": {"type": "text", "index": 33, "name": "uuid", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_history"}, "model.recurly_source.stg_recurly__subscription_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__subscription_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 5, "name": "activated_at", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 7, "name": "expires_at", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "plan_id": {"type": "text", "index": 9, "name": "plan_id", "comment": null}, "object": {"type": "text", "index": 10, "name": "object", "comment": null}, "uuid": {"type": "text", "index": 11, "name": "uuid", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 13, "name": "current_period_started_at", "comment": null}, "current_period_ends_at": {"type": "timestamp without time zone", "index": 14, "name": "current_period_ends_at", "comment": null}, "current_term_started_at": {"type": "timestamp without time zone", "index": 15, "name": "current_term_started_at", "comment": null}, "current_term_ends_at": {"type": "timestamp without time zone", "index": 16, "name": "current_term_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 17, "name": "trial_started_at", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 18, "name": "trial_ends_at", "comment": null}, "remaining_billing_cycles": {"type": "integer", "index": 19, "name": "remaining_billing_cycles", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 20, "name": "total_billing_cycles", "comment": null}, "renewal_billing_cycles": {"type": "integer", "index": 21, "name": "renewal_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 22, "name": "auto_renew", "comment": null}, "paused_at": {"type": "timestamp without time zone", "index": 23, "name": "paused_at", "comment": null}, "remaining_pause_cycles": {"type": "integer", "index": 24, "name": "remaining_pause_cycles", "comment": null}, "currency": {"type": "text", "index": 25, "name": "currency", "comment": null}, "unit_amount": {"type": "double precision", "index": 26, "name": "unit_amount", "comment": null}, "quantity": {"type": "integer", "index": 27, "name": "quantity", "comment": null}, "add_ons_total": {"type": "double precision", "index": 28, "name": "add_ons_total", "comment": null}, "subtotal": {"type": "double precision", "index": 29, "name": "subtotal", "comment": null}, "collection_method": {"type": "text", "index": 30, "name": "collection_method", "comment": null}, "expiration_reason": {"type": "text", "index": 31, "name": "expiration_reason", "comment": null}, "started_with_gift": {"type": "boolean", "index": 32, "name": "started_with_gift", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_history_tmp"}, "model.recurly_source.stg_recurly__transaction": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__transaction", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "billing_city": {"type": "text", "index": 5, "name": "billing_city", "comment": null}, "billing_country": {"type": "text", "index": 6, "name": "billing_country", "comment": null}, "billing_first_name": {"type": "text", "index": 7, "name": "billing_first_name", "comment": null}, "billing_last_name": {"type": "text", "index": 8, "name": "billing_last_name", "comment": null}, "billing_phone": {"type": "text", "index": 9, "name": "billing_phone", "comment": null}, "billing_postal_code": {"type": "text", "index": 10, "name": "billing_postal_code", "comment": null}, "billing_region": {"type": "text", "index": 11, "name": "billing_region", "comment": null}, "billing_street_1": {"type": "text", "index": 12, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 13, "name": "billing_street_2", "comment": null}, "collected_at": {"type": "timestamp without time zone", "index": 14, "name": "collected_at", "comment": null}, "collection_method": {"type": "text", "index": 15, "name": "collection_method", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "customer_message": {"type": "text", "index": 17, "name": "customer_message", "comment": null}, "customer_message_locale": {"type": "text", "index": 18, "name": "customer_message_locale", "comment": null}, "gateway_approval_code": {"type": "integer", "index": 19, "name": "gateway_approval_code", "comment": null}, "gateway_message": {"type": "text", "index": 20, "name": "gateway_message", "comment": null}, "gateway_reference": {"type": "integer", "index": 21, "name": "gateway_reference", "comment": null}, "gateway_response_code": {"type": "integer", "index": 22, "name": "gateway_response_code", "comment": null}, "gateway_response_time": {"type": "double precision", "index": 23, "name": "gateway_response_time", "comment": null}, "gateway_response_values": {"type": "text", "index": 24, "name": "gateway_response_values", "comment": null}, "invoice_id": {"type": "text", "index": 25, "name": "invoice_id", "comment": null}, "is_refunded": {"type": "boolean", "index": 26, "name": "is_refunded", "comment": null}, "is_successful": {"type": "boolean", "index": 27, "name": "is_successful", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 28, "name": "is_most_recent_record", "comment": null}, "origin": {"type": "text", "index": 29, "name": "origin", "comment": null}, "original_transaction_id": {"type": "integer", "index": 30, "name": "original_transaction_id", "comment": null}, "payment_gateway_id": {"type": "integer", "index": 31, "name": "payment_gateway_id", "comment": null}, "payment_gateway_name": {"type": "text", "index": 32, "name": "payment_gateway_name", "comment": null}, "payment_gateway_type": {"type": "text", "index": 33, "name": "payment_gateway_type", "comment": null}, "payment_method_object": {"type": "text", "index": 34, "name": "payment_method_object", "comment": null}, "status": {"type": "text", "index": 35, "name": "status", "comment": null}, "status_code": {"type": "text", "index": 36, "name": "status_code", "comment": null}, "status_message": {"type": "text", "index": 37, "name": "status_message", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "uuid": {"type": "text", "index": 39, "name": "uuid", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 40, "name": "voided_at", "comment": null}, "voided_by_invoice_id": {"type": "text", "index": 41, "name": "voided_by_invoice_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__transaction"}, "model.recurly_source.stg_recurly__transaction_subscription": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__transaction_subscription", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "subscription_id": {"type": "text", "index": 2, "name": "subscription_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__transaction_subscription"}, "model.recurly_source.stg_recurly__transaction_subscription_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__transaction_subscription_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__transaction_subscription_tmp"}, "model.recurly_source.stg_recurly__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integration_tests_recurly_source", "name": "stg_recurly__transaction_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 4, "name": "voided_at", "comment": null}, "collected_at": {"type": "timestamp without time zone", "index": 5, "name": "collected_at", "comment": null}, "original_transaction_id": {"type": "integer", "index": 6, "name": "original_transaction_id", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "voided_by_invoice_id": {"type": "text", "index": 9, "name": "voided_by_invoice_id", "comment": null}, "uuid": {"type": "text", "index": 10, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 11, "name": "type", "comment": null}, "origin": {"type": "text", "index": 12, "name": "origin", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "success": {"type": "boolean", "index": 16, "name": "success", "comment": null}, "refunded": {"type": "boolean", "index": 17, "name": "refunded", "comment": null}, "billing_first_name": {"type": "text", "index": 18, "name": "billing_first_name", "comment": null}, "billing_last_name": {"type": "text", "index": 19, "name": "billing_last_name", "comment": null}, "billing_phone": {"type": "text", "index": 20, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 21, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 22, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 23, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 24, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 25, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 26, "name": "billing_country", "comment": null}, "collection_method": {"type": "text", "index": 27, "name": "collection_method", "comment": null}, "payment_method_object": {"type": "text", "index": 28, "name": "payment_method_object", "comment": null}, "status_code": {"type": "text", "index": 29, "name": "status_code", "comment": null}, "status_message": {"type": "text", "index": 30, "name": "status_message", "comment": null}, "customer_message": {"type": "text", "index": 31, "name": "customer_message", "comment": null}, "customer_message_locale": {"type": "text", "index": 32, "name": "customer_message_locale", "comment": null}, "gateway_message": {"type": "text", "index": 33, "name": "gateway_message", "comment": null}, "gateway_reference": {"type": "integer", "index": 34, "name": "gateway_reference", "comment": null}, "gateway_approval_code": {"type": "integer", "index": 35, "name": "gateway_approval_code", "comment": null}, "gateway_response_code": {"type": "integer", "index": 36, "name": "gateway_response_code", "comment": null}, "gateway_response_time": {"type": "double precision", "index": 37, "name": "gateway_response_time", "comment": null}, "payment_gateway_id": {"type": "integer", "index": 38, "name": "payment_gateway_id", "comment": null}, "payment_gateway_name": {"type": "text", "index": 39, "name": "payment_gateway_name", "comment": null}, "gateway_response_values": {"type": "text", "index": 40, "name": "gateway_response_values", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__transaction_tmp"}}, "sources": {"source.recurly_source.recurly.account_balance_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "account_balance_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "past_due": {"type": "boolean", "index": 6, "name": "past_due", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.account_balance_history"}, "source.recurly_source.recurly.account_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "bill_to": {"type": "text", "index": 7, "name": "bill_to", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "username": {"type": "text", "index": 9, "name": "username", "comment": null}, "account_first_name": {"type": "integer", "index": 10, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "integer", "index": 11, "name": "account_last_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "cc_emails": {"type": "text", "index": 13, "name": "cc_emails", "comment": null}, "company": {"type": "text", "index": 14, "name": "company", "comment": null}, "vat_number": {"type": "text", "index": 15, "name": "vat_number", "comment": null}, "tax_exempt": {"type": "boolean", "index": 16, "name": "tax_exempt", "comment": null}, "account_country": {"type": "text", "index": 17, "name": "account_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.account_history"}, "source.recurly_source.recurly.account_note_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "account_note_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "object": {"type": "text", "index": 7, "name": "object", "comment": null}, "user_email": {"type": "text", "index": 8, "name": "user_email", "comment": null}, "user_id": {"type": "text", "index": 9, "name": "user_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.account_note_history"}, "source.recurly_source.recurly.billing_info_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "billing_info_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "first_name": {"type": "text", "index": 5, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 6, "name": "last_name", "comment": null}, "billing_phone": {"type": "text", "index": 7, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 8, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 9, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 10, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 11, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 12, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 13, "name": "billing_country", "comment": null}, "vat_number": {"type": "text", "index": 14, "name": "vat_number", "comment": null}, "valid": {"type": "boolean", "index": 15, "name": "valid", "comment": null}, "payment_method_object": {"type": "text", "index": 16, "name": "payment_method_object", "comment": null}, "payment_method_credit_type": {"type": "text", "index": 17, "name": "payment_method_credit_type", "comment": null}, "payment_method_first_six": {"type": "text", "index": 18, "name": "payment_method_first_six", "comment": null}, "payment_method_last_four": {"type": "text", "index": 19, "name": "payment_method_last_four", "comment": null}, "payment_method_exp_month": {"type": "text", "index": 20, "name": "payment_method_exp_month", "comment": null}, "payment_method_exp_year": {"type": "text", "index": 21, "name": "payment_method_exp_year", "comment": null}, "fraud_score": {"type": "integer", "index": 22, "name": "fraud_score", "comment": null}, "fraud_decision": {"type": "integer", "index": 23, "name": "fraud_decision", "comment": null}, "fraud_risk_rules_triggered": {"type": "integer", "index": 24, "name": "fraud_risk_rules_triggered", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 25, "name": "created_at", "comment": null}, "updated_by_ip": {"type": "integer", "index": 26, "name": "updated_by_ip", "comment": null}, "updated_by_country": {"type": "integer", "index": 27, "name": "updated_by_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.billing_info_history"}, "source.recurly_source.recurly.coupon_discount": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "coupon_discount_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_id": {"type": "text", "index": 1, "name": "coupon_id", "comment": null}, "fivetran_id": {"type": "text", "index": 2, "name": "fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "percentage": {"type": "integer", "index": 6, "name": "percentage", "comment": null}, "trial_length": {"type": "integer", "index": 7, "name": "trial_length", "comment": null}, "trial_unit": {"type": "integer", "index": 8, "name": "trial_unit", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.coupon_discount"}, "source.recurly_source.recurly.coupon_redemption_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "coupon_redemption_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "coupon_id": {"type": "text", "index": 5, "name": "coupon_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "discounted": {"type": "double precision", "index": 8, "name": "discounted", "comment": null}, "removed_at": {"type": "timestamp without time zone", "index": 9, "name": "removed_at", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.coupon_redemption_history"}, "source.recurly_source.recurly.credit_payment_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "credit_payment_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "account_id": {"type": "character varying", "index": 4, "name": "account_id", "comment": null}, "applied_to_invoice_id": {"type": "character varying", "index": 5, "name": "applied_to_invoice_id", "comment": null}, "original_invoice_id": {"type": "character varying", "index": 6, "name": "original_invoice_id", "comment": null}, "refund_transaction_id": {"type": "character varying", "index": 7, "name": "refund_transaction_id", "comment": null}, "original_credit_payment_id": {"type": "character varying", "index": 8, "name": "original_credit_payment_id", "comment": null}, "uuid": {"type": "character varying", "index": 9, "name": "uuid", "comment": null}, "action": {"type": "text", "index": 10, "name": "action", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 12, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 13, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 14, "name": "voided_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.credit_payment_history"}, "source.recurly_source.recurly.invoice_coupon_redemption_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "invoice_coupon_redemption_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "invoice_id": {"type": "text", "index": 2, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.invoice_coupon_redemption_history"}, "source.recurly_source.recurly.invoice_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "invoice_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "due_at": {"type": "timestamp without time zone", "index": 5, "name": "due_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 6, "name": "closed_at", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "previous_invoice_id": {"type": "integer", "index": 8, "name": "previous_invoice_id", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "origin": {"type": "text", "index": 10, "name": "origin", "comment": null}, "state": {"type": "text", "index": 11, "name": "state", "comment": null}, "number": {"type": "integer", "index": 12, "name": "number", "comment": null}, "collection_method": {"type": "text", "index": 13, "name": "collection_method", "comment": null}, "po_number": {"type": "integer", "index": 14, "name": "po_number", "comment": null}, "net_terms": {"type": "integer", "index": 15, "name": "net_terms", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "balance": {"type": "double precision", "index": 17, "name": "balance", "comment": null}, "paid": {"type": "double precision", "index": 18, "name": "paid", "comment": null}, "total": {"type": "double precision", "index": 19, "name": "total", "comment": null}, "subtotal": {"type": "double precision", "index": 20, "name": "subtotal", "comment": null}, "refundable_amount": {"type": "double precision", "index": 21, "name": "refundable_amount", "comment": null}, "discount": {"type": "double precision", "index": 22, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 23, "name": "tax", "comment": null}, "tax_type": {"type": "integer", "index": 24, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 25, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 26, "name": "tax_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.invoice_history"}, "source.recurly_source.recurly.invoice_subscription_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "invoice_subscription_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "subscription_id": {"type": "text", "index": 2, "name": "subscription_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.invoice_subscription_history"}, "source.recurly_source.recurly.line_item_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "line_item_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 5, "name": "account_id", "comment": null}, "plan_id": {"type": "integer", "index": 6, "name": "plan_id", "comment": null}, "add_on_id": {"type": "integer", "index": 7, "name": "add_on_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 9, "name": "previous_line_item_id", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 10, "name": "original_line_item_invoice_id", "comment": null}, "subscription_id": {"type": "integer", "index": 11, "name": "subscription_id", "comment": null}, "uuid": {"type": "text", "index": 12, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 13, "name": "type", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "plan_code": {"type": "integer", "index": 15, "name": "plan_code", "comment": null}, "add_on_code": {"type": "integer", "index": 16, "name": "add_on_code", "comment": null}, "invoice_number": {"type": "integer", "index": 17, "name": "invoice_number", "comment": null}, "origin": {"type": "text", "index": 18, "name": "origin", "comment": null}, "product_code": {"type": "integer", "index": 19, "name": "product_code", "comment": null}, "currency": {"type": "text", "index": 20, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 21, "name": "amount", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 23, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 24, "name": "unit_amount", "comment": null}, "subtotal": {"type": "double precision", "index": 25, "name": "subtotal", "comment": null}, "discount": {"type": "double precision", "index": 26, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 27, "name": "tax", "comment": null}, "taxable": {"type": "boolean", "index": 28, "name": "taxable", "comment": null}, "tax_exempt": {"type": "boolean", "index": 29, "name": "tax_exempt", "comment": null}, "tax_code": {"type": "integer", "index": 30, "name": "tax_code", "comment": null}, "tax_type": {"type": "integer", "index": 31, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 32, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 33, "name": "tax_rate", "comment": null}, "proration_rate": {"type": "integer", "index": 34, "name": "proration_rate", "comment": null}, "refund": {"type": "boolean", "index": 35, "name": "refund", "comment": null}, "refunded_quantity": {"type": "integer", "index": 36, "name": "refunded_quantity", "comment": null}, "credit_applied": {"type": "double precision", "index": 37, "name": "credit_applied", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 39, "name": "end_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.line_item_history"}, "source.recurly_source.recurly.plan_currency_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "plan_currency_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "plan_id": {"type": "text", "index": 2, "name": "plan_id", "comment": null}, "plan_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "plan_updated_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "setup_fees": {"type": "double precision", "index": 5, "name": "setup_fees", "comment": null}, "unit_amount": {"type": "double precision", "index": 6, "name": "unit_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.plan_currency_history"}, "source.recurly_source.recurly.plan_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "plan_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "state": {"type": "text", "index": 7, "name": "state", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "description": {"type": "integer", "index": 9, "name": "description", "comment": null}, "interval_unit": {"type": "text", "index": 10, "name": "interval_unit", "comment": null}, "interval_length": {"type": "integer", "index": 11, "name": "interval_length", "comment": null}, "trial_unit": {"type": "text", "index": 12, "name": "trial_unit", "comment": null}, "trial_length": {"type": "integer", "index": 13, "name": "trial_length", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 14, "name": "total_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 15, "name": "auto_renew", "comment": null}, "accounting_code": {"type": "text", "index": 16, "name": "accounting_code", "comment": null}, "setup_fee_accounting_code": {"type": "text", "index": 17, "name": "setup_fee_accounting_code", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "tax_exempt": {"type": "boolean", "index": 19, "name": "tax_exempt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.plan_history"}, "source.recurly_source.recurly.subscription_add_on_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "subscription_add_on_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "expired_at": {"type": "timestamp without time zone", "index": 3, "name": "expired_at", "comment": null}, "id": {"type": "text", "index": 4, "name": "id", "comment": null}, "object": {"type": "text", "index": 5, "name": "object", "comment": null}, "plan_add_on_id": {"type": "text", "index": 6, "name": "plan_add_on_id", "comment": null}, "quantity": {"type": "integer", "index": 7, "name": "quantity", "comment": null}, "subscription_id": {"type": "text", "index": 8, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 9, "name": "unit_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.subscription_add_on_history"}, "source.recurly_source.recurly.subscription_change_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "subscription_change_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "plan_id": {"type": "character varying", "index": 4, "name": "plan_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 5, "name": "subscription_id", "comment": null}, "object": {"type": "character varying", "index": 6, "name": "object", "comment": null}, "unit_amount": {"type": "double precision", "index": 7, "name": "unit_amount", "comment": null}, "quantity": {"type": "bigint", "index": 8, "name": "quantity", "comment": null}, "activate_at": {"type": "timestamp without time zone", "index": 9, "name": "activate_at", "comment": null}, "activated": {"type": "boolean", "index": 10, "name": "activated", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 12, "name": "deleted_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.subscription_change_history"}, "source.recurly_source.recurly.subscription_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "subscription_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 5, "name": "activated_at", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 7, "name": "expires_at", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "plan_id": {"type": "text", "index": 9, "name": "plan_id", "comment": null}, "object": {"type": "text", "index": 10, "name": "object", "comment": null}, "uuid": {"type": "text", "index": 11, "name": "uuid", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 13, "name": "current_period_started_at", "comment": null}, "current_period_ends_at": {"type": "timestamp without time zone", "index": 14, "name": "current_period_ends_at", "comment": null}, "current_term_started_at": {"type": "timestamp without time zone", "index": 15, "name": "current_term_started_at", "comment": null}, "current_term_ends_at": {"type": "timestamp without time zone", "index": 16, "name": "current_term_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 17, "name": "trial_started_at", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 18, "name": "trial_ends_at", "comment": null}, "remaining_billing_cycles": {"type": "integer", "index": 19, "name": "remaining_billing_cycles", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 20, "name": "total_billing_cycles", "comment": null}, "renewal_billing_cycles": {"type": "integer", "index": 21, "name": "renewal_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 22, "name": "auto_renew", "comment": null}, "paused_at": {"type": "timestamp without time zone", "index": 23, "name": "paused_at", "comment": null}, "remaining_pause_cycles": {"type": "integer", "index": 24, "name": "remaining_pause_cycles", "comment": null}, "currency": {"type": "text", "index": 25, "name": "currency", "comment": null}, "unit_amount": {"type": "double precision", "index": 26, "name": "unit_amount", "comment": null}, "quantity": {"type": "integer", "index": 27, "name": "quantity", "comment": null}, "add_ons_total": {"type": "double precision", "index": 28, "name": "add_ons_total", "comment": null}, "subtotal": {"type": "double precision", "index": 29, "name": "subtotal", "comment": null}, "collection_method": {"type": "text", "index": 30, "name": "collection_method", "comment": null}, "expiration_reason": {"type": "text", "index": 31, "name": "expiration_reason", "comment": null}, "started_with_gift": {"type": "boolean", "index": 32, "name": "started_with_gift", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.subscription_history"}, "source.recurly_source.recurly.transaction": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 4, "name": "voided_at", "comment": null}, "collected_at": {"type": "timestamp without time zone", "index": 5, "name": "collected_at", "comment": null}, "original_transaction_id": {"type": "integer", "index": 6, "name": "original_transaction_id", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "voided_by_invoice_id": {"type": "text", "index": 9, "name": "voided_by_invoice_id", "comment": null}, "uuid": {"type": "text", "index": 10, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 11, "name": "type", "comment": null}, "origin": {"type": "text", "index": 12, "name": "origin", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "success": {"type": "boolean", "index": 16, "name": "success", "comment": null}, "refunded": {"type": "boolean", "index": 17, "name": "refunded", "comment": null}, "billing_first_name": {"type": "text", "index": 18, "name": "billing_first_name", "comment": null}, "billing_last_name": {"type": "text", "index": 19, "name": "billing_last_name", "comment": null}, "billing_phone": {"type": "text", "index": 20, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 21, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 22, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 23, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 24, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 25, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 26, "name": "billing_country", "comment": null}, "collection_method": {"type": "text", "index": 27, "name": "collection_method", "comment": null}, "payment_method_object": {"type": "text", "index": 28, "name": "payment_method_object", "comment": null}, "status_code": {"type": "text", "index": 29, "name": "status_code", "comment": null}, "status_message": {"type": "text", "index": 30, "name": "status_message", "comment": null}, "customer_message": {"type": "text", "index": 31, "name": "customer_message", "comment": null}, "customer_message_locale": {"type": "text", "index": 32, "name": "customer_message_locale", "comment": null}, "gateway_message": {"type": "text", "index": 33, "name": "gateway_message", "comment": null}, "gateway_reference": {"type": "integer", "index": 34, "name": "gateway_reference", "comment": null}, "gateway_approval_code": {"type": "integer", "index": 35, "name": "gateway_approval_code", "comment": null}, "gateway_response_code": {"type": "integer", "index": 36, "name": "gateway_response_code", "comment": null}, "gateway_response_time": {"type": "double precision", "index": 37, "name": "gateway_response_time", "comment": null}, "payment_gateway_id": {"type": "integer", "index": 38, "name": "payment_gateway_id", "comment": null}, "payment_gateway_name": {"type": "text", "index": 39, "name": "payment_gateway_name", "comment": null}, "gateway_response_values": {"type": "text", "index": 40, "name": "gateway_response_values", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.transaction"}, "source.recurly_source.recurly.transaction_subscription": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integration_tests", "name": "transaction_subscription_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.transaction_subscription"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.8.4", "generated_at": "2024-08-05T20:29:58.208402Z", "invocation_id": "4c437b48-74bf-4ea2-95ea-46d227d4d619", "env": {}}, "nodes": {"seed.recurly_integration_tests.account_balance_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "account_balance_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "past_due": {"type": "boolean", "index": 6, "name": "past_due", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.account_balance_history_data"}, "seed.recurly_integration_tests.account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "bill_to": {"type": "text", "index": 7, "name": "bill_to", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "username": {"type": "text", "index": 9, "name": "username", "comment": null}, "account_first_name": {"type": "integer", "index": 10, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "integer", "index": 11, "name": "account_last_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "cc_emails": {"type": "text", "index": 13, "name": "cc_emails", "comment": null}, "company": {"type": "text", "index": 14, "name": "company", "comment": null}, "vat_number": {"type": "text", "index": 15, "name": "vat_number", "comment": null}, "tax_exempt": {"type": "boolean", "index": 16, "name": "tax_exempt", "comment": null}, "account_country": {"type": "text", "index": 17, "name": "account_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.account_history_data"}, "seed.recurly_integration_tests.account_note_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "account_note_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "object": {"type": "text", "index": 7, "name": "object", "comment": null}, "user_email": {"type": "text", "index": 8, "name": "user_email", "comment": null}, "user_id": {"type": "text", "index": 9, "name": "user_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.account_note_history_data"}, "seed.recurly_integration_tests.billing_info_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "billing_info_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "first_name": {"type": "text", "index": 5, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 6, "name": "last_name", "comment": null}, "billing_phone": {"type": "text", "index": 7, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 8, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 9, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 10, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 11, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 12, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 13, "name": "billing_country", "comment": null}, "vat_number": {"type": "text", "index": 14, "name": "vat_number", "comment": null}, "valid": {"type": "boolean", "index": 15, "name": "valid", "comment": null}, "payment_method_object": {"type": "text", "index": 16, "name": "payment_method_object", "comment": null}, "payment_method_credit_type": {"type": "text", "index": 17, "name": "payment_method_credit_type", "comment": null}, "payment_method_first_six": {"type": "text", "index": 18, "name": "payment_method_first_six", "comment": null}, "payment_method_last_four": {"type": "text", "index": 19, "name": "payment_method_last_four", "comment": null}, "payment_method_exp_month": {"type": "text", "index": 20, "name": "payment_method_exp_month", "comment": null}, "payment_method_exp_year": {"type": "text", "index": 21, "name": "payment_method_exp_year", "comment": null}, "fraud_score": {"type": "integer", "index": 22, "name": "fraud_score", "comment": null}, "fraud_decision": {"type": "integer", "index": 23, "name": "fraud_decision", "comment": null}, "fraud_risk_rules_triggered": {"type": "integer", "index": 24, "name": "fraud_risk_rules_triggered", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 25, "name": "created_at", "comment": null}, "updated_by_ip": {"type": "integer", "index": 26, "name": "updated_by_ip", "comment": null}, "updated_by_country": {"type": "integer", "index": 27, "name": "updated_by_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.billing_info_history_data"}, "seed.recurly_integration_tests.coupon_discount_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "coupon_discount_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_id": {"type": "text", "index": 1, "name": "coupon_id", "comment": null}, "fivetran_id": {"type": "text", "index": 2, "name": "fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "percentage": {"type": "integer", "index": 6, "name": "percentage", "comment": null}, "trial_length": {"type": "integer", "index": 7, "name": "trial_length", "comment": null}, "trial_unit": {"type": "integer", "index": 8, "name": "trial_unit", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.coupon_discount_data"}, "seed.recurly_integration_tests.coupon_redemption_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "coupon_redemption_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "coupon_id": {"type": "text", "index": 5, "name": "coupon_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "discounted": {"type": "double precision", "index": 8, "name": "discounted", "comment": null}, "removed_at": {"type": "timestamp without time zone", "index": 9, "name": "removed_at", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.coupon_redemption_history_data"}, "seed.recurly_integration_tests.credit_payment_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "credit_payment_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "account_id": {"type": "character varying", "index": 4, "name": "account_id", "comment": null}, "applied_to_invoice_id": {"type": "character varying", "index": 5, "name": "applied_to_invoice_id", "comment": null}, "original_invoice_id": {"type": "character varying", "index": 6, "name": "original_invoice_id", "comment": null}, "refund_transaction_id": {"type": "character varying", "index": 7, "name": "refund_transaction_id", "comment": null}, "original_credit_payment_id": {"type": "character varying", "index": 8, "name": "original_credit_payment_id", "comment": null}, "uuid": {"type": "character varying", "index": 9, "name": "uuid", "comment": null}, "action": {"type": "text", "index": 10, "name": "action", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 12, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 13, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 14, "name": "voided_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.credit_payment_history_data"}, "seed.recurly_integration_tests.invoice_coupon_redemption_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "invoice_coupon_redemption_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "invoice_id": {"type": "text", "index": 2, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.invoice_coupon_redemption_history_data"}, "seed.recurly_integration_tests.invoice_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "invoice_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "due_at": {"type": "timestamp without time zone", "index": 5, "name": "due_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 6, "name": "closed_at", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "previous_invoice_id": {"type": "integer", "index": 8, "name": "previous_invoice_id", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "origin": {"type": "text", "index": 10, "name": "origin", "comment": null}, "state": {"type": "text", "index": 11, "name": "state", "comment": null}, "number": {"type": "integer", "index": 12, "name": "number", "comment": null}, "collection_method": {"type": "text", "index": 13, "name": "collection_method", "comment": null}, "po_number": {"type": "integer", "index": 14, "name": "po_number", "comment": null}, "net_terms": {"type": "integer", "index": 15, "name": "net_terms", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "balance": {"type": "double precision", "index": 17, "name": "balance", "comment": null}, "paid": {"type": "double precision", "index": 18, "name": "paid", "comment": null}, "total": {"type": "double precision", "index": 19, "name": "total", "comment": null}, "subtotal": {"type": "double precision", "index": 20, "name": "subtotal", "comment": null}, "refundable_amount": {"type": "double precision", "index": 21, "name": "refundable_amount", "comment": null}, "discount": {"type": "double precision", "index": 22, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 23, "name": "tax", "comment": null}, "tax_type": {"type": "integer", "index": 24, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 25, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 26, "name": "tax_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.invoice_history_data"}, "seed.recurly_integration_tests.invoice_subscription_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "invoice_subscription_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "subscription_id": {"type": "text", "index": 2, "name": "subscription_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.invoice_subscription_history_data"}, "seed.recurly_integration_tests.line_item_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "line_item_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 5, "name": "account_id", "comment": null}, "plan_id": {"type": "integer", "index": 6, "name": "plan_id", "comment": null}, "add_on_id": {"type": "integer", "index": 7, "name": "add_on_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 9, "name": "previous_line_item_id", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 10, "name": "original_line_item_invoice_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 11, "name": "subscription_id", "comment": null}, "uuid": {"type": "text", "index": 12, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 13, "name": "type", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "plan_code": {"type": "integer", "index": 15, "name": "plan_code", "comment": null}, "add_on_code": {"type": "integer", "index": 16, "name": "add_on_code", "comment": null}, "invoice_number": {"type": "integer", "index": 17, "name": "invoice_number", "comment": null}, "origin": {"type": "text", "index": 18, "name": "origin", "comment": null}, "product_code": {"type": "integer", "index": 19, "name": "product_code", "comment": null}, "currency": {"type": "text", "index": 20, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 21, "name": "amount", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 23, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 24, "name": "unit_amount", "comment": null}, "subtotal": {"type": "double precision", "index": 25, "name": "subtotal", "comment": null}, "discount": {"type": "double precision", "index": 26, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 27, "name": "tax", "comment": null}, "taxable": {"type": "boolean", "index": 28, "name": "taxable", "comment": null}, "tax_exempt": {"type": "boolean", "index": 29, "name": "tax_exempt", "comment": null}, "tax_code": {"type": "integer", "index": 30, "name": "tax_code", "comment": null}, "tax_type": {"type": "integer", "index": 31, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 32, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 33, "name": "tax_rate", "comment": null}, "proration_rate": {"type": "integer", "index": 34, "name": "proration_rate", "comment": null}, "refund": {"type": "boolean", "index": 35, "name": "refund", "comment": null}, "refunded_quantity": {"type": "integer", "index": 36, "name": "refunded_quantity", "comment": null}, "credit_applied": {"type": "double precision", "index": 37, "name": "credit_applied", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 39, "name": "end_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.line_item_history_data"}, "seed.recurly_integration_tests.plan_currency_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "plan_currency_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "plan_id": {"type": "text", "index": 2, "name": "plan_id", "comment": null}, "plan_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "plan_updated_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "setup_fees": {"type": "double precision", "index": 5, "name": "setup_fees", "comment": null}, "unit_amount": {"type": "double precision", "index": 6, "name": "unit_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.plan_currency_history_data"}, "seed.recurly_integration_tests.plan_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "plan_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "state": {"type": "text", "index": 7, "name": "state", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "description": {"type": "integer", "index": 9, "name": "description", "comment": null}, "interval_unit": {"type": "text", "index": 10, "name": "interval_unit", "comment": null}, "interval_length": {"type": "integer", "index": 11, "name": "interval_length", "comment": null}, "trial_unit": {"type": "text", "index": 12, "name": "trial_unit", "comment": null}, "trial_length": {"type": "integer", "index": 13, "name": "trial_length", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 14, "name": "total_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 15, "name": "auto_renew", "comment": null}, "accounting_code": {"type": "text", "index": 16, "name": "accounting_code", "comment": null}, "setup_fee_accounting_code": {"type": "text", "index": 17, "name": "setup_fee_accounting_code", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "tax_exempt": {"type": "boolean", "index": 19, "name": "tax_exempt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.plan_history_data"}, "seed.recurly_integration_tests.subscription_add_on_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "subscription_add_on_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "expired_at": {"type": "timestamp without time zone", "index": 3, "name": "expired_at", "comment": null}, "id": {"type": "text", "index": 4, "name": "id", "comment": null}, "object": {"type": "text", "index": 5, "name": "object", "comment": null}, "plan_add_on_id": {"type": "text", "index": 6, "name": "plan_add_on_id", "comment": null}, "quantity": {"type": "integer", "index": 7, "name": "quantity", "comment": null}, "subscription_id": {"type": "text", "index": 8, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 9, "name": "unit_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.subscription_add_on_history_data"}, "seed.recurly_integration_tests.subscription_change_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "subscription_change_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "plan_id": {"type": "character varying", "index": 4, "name": "plan_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 5, "name": "subscription_id", "comment": null}, "object": {"type": "character varying", "index": 6, "name": "object", "comment": null}, "unit_amount": {"type": "double precision", "index": 7, "name": "unit_amount", "comment": null}, "quantity": {"type": "bigint", "index": 8, "name": "quantity", "comment": null}, "activate_at": {"type": "timestamp without time zone", "index": 9, "name": "activate_at", "comment": null}, "activated": {"type": "boolean", "index": 10, "name": "activated", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 12, "name": "deleted_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.subscription_change_history_data"}, "seed.recurly_integration_tests.subscription_history_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "subscription_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 5, "name": "activated_at", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 7, "name": "expires_at", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "plan_id": {"type": "text", "index": 9, "name": "plan_id", "comment": null}, "object": {"type": "text", "index": 10, "name": "object", "comment": null}, "uuid": {"type": "text", "index": 11, "name": "uuid", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 13, "name": "current_period_started_at", "comment": null}, "current_period_ends_at": {"type": "timestamp without time zone", "index": 14, "name": "current_period_ends_at", "comment": null}, "current_term_started_at": {"type": "timestamp without time zone", "index": 15, "name": "current_term_started_at", "comment": null}, "current_term_ends_at": {"type": "timestamp without time zone", "index": 16, "name": "current_term_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 17, "name": "trial_started_at", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 18, "name": "trial_ends_at", "comment": null}, "remaining_billing_cycles": {"type": "integer", "index": 19, "name": "remaining_billing_cycles", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 20, "name": "total_billing_cycles", "comment": null}, "renewal_billing_cycles": {"type": "integer", "index": 21, "name": "renewal_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 22, "name": "auto_renew", "comment": null}, "paused_at": {"type": "timestamp without time zone", "index": 23, "name": "paused_at", "comment": null}, "remaining_pause_cycles": {"type": "integer", "index": 24, "name": "remaining_pause_cycles", "comment": null}, "currency": {"type": "text", "index": 25, "name": "currency", "comment": null}, "unit_amount": {"type": "double precision", "index": 26, "name": "unit_amount", "comment": null}, "quantity": {"type": "integer", "index": 27, "name": "quantity", "comment": null}, "add_ons_total": {"type": "double precision", "index": 28, "name": "add_ons_total", "comment": null}, "subtotal": {"type": "double precision", "index": 29, "name": "subtotal", "comment": null}, "collection_method": {"type": "text", "index": 30, "name": "collection_method", "comment": null}, "expiration_reason": {"type": "text", "index": 31, "name": "expiration_reason", "comment": null}, "started_with_gift": {"type": "boolean", "index": 32, "name": "started_with_gift", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.subscription_history_data"}, "seed.recurly_integration_tests.transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 4, "name": "voided_at", "comment": null}, "collected_at": {"type": "timestamp without time zone", "index": 5, "name": "collected_at", "comment": null}, "original_transaction_id": {"type": "integer", "index": 6, "name": "original_transaction_id", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "voided_by_invoice_id": {"type": "text", "index": 9, "name": "voided_by_invoice_id", "comment": null}, "uuid": {"type": "text", "index": 10, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 11, "name": "type", "comment": null}, "origin": {"type": "text", "index": 12, "name": "origin", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "success": {"type": "boolean", "index": 16, "name": "success", "comment": null}, "refunded": {"type": "boolean", "index": 17, "name": "refunded", "comment": null}, "billing_first_name": {"type": "text", "index": 18, "name": "billing_first_name", "comment": null}, "billing_last_name": {"type": "text", "index": 19, "name": "billing_last_name", "comment": null}, "billing_phone": {"type": "text", "index": 20, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 21, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 22, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 23, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 24, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 25, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 26, "name": "billing_country", "comment": null}, "collection_method": {"type": "text", "index": 27, "name": "collection_method", "comment": null}, "payment_method_object": {"type": "text", "index": 28, "name": "payment_method_object", "comment": null}, "status_code": {"type": "text", "index": 29, "name": "status_code", "comment": null}, "status_message": {"type": "text", "index": 30, "name": "status_message", "comment": null}, "customer_message": {"type": "text", "index": 31, "name": "customer_message", "comment": null}, "customer_message_locale": {"type": "text", "index": 32, "name": "customer_message_locale", "comment": null}, "gateway_message": {"type": "text", "index": 33, "name": "gateway_message", "comment": null}, "gateway_reference": {"type": "integer", "index": 34, "name": "gateway_reference", "comment": null}, "gateway_approval_code": {"type": "integer", "index": 35, "name": "gateway_approval_code", "comment": null}, "gateway_response_code": {"type": "integer", "index": 36, "name": "gateway_response_code", "comment": null}, "gateway_response_time": {"type": "double precision", "index": 37, "name": "gateway_response_time", "comment": null}, "payment_gateway_id": {"type": "integer", "index": 38, "name": "payment_gateway_id", "comment": null}, "payment_gateway_name": {"type": "text", "index": 39, "name": "payment_gateway_name", "comment": null}, "gateway_response_values": {"type": "text", "index": 40, "name": "gateway_response_values", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.transaction_data"}, "seed.recurly_integration_tests.transaction_subscription_data": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "transaction_subscription_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.recurly_integration_tests.transaction_subscription_data"}, "model.recurly.recurly__account_daily_overview": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly", "name": "recurly__account_daily_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 2, "name": "account_created_at", "comment": null}, "account_city": {"type": "text", "index": 3, "name": "account_city", "comment": null}, "account_company": {"type": "text", "index": 4, "name": "account_company", "comment": null}, "account_country": {"type": "text", "index": 5, "name": "account_country", "comment": null}, "account_code": {"type": "text", "index": 6, "name": "account_code", "comment": null}, "account_email": {"type": "text", "index": 7, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 8, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "text", "index": 9, "name": "account_last_name", "comment": null}, "account_is_tax_exempt": {"type": "boolean", "index": 10, "name": "account_is_tax_exempt", "comment": null}, "account_postal_code": {"type": "text", "index": 11, "name": "account_postal_code", "comment": null}, "account_region": {"type": "text", "index": 12, "name": "account_region", "comment": null}, "account_state": {"type": "text", "index": 13, "name": "account_state", "comment": null}, "account_username": {"type": "text", "index": 14, "name": "account_username", "comment": null}, "account_daily_id": {"type": "text", "index": 15, "name": "account_daily_id", "comment": null}, "date_day": {"type": "date", "index": 16, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 17, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 18, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 19, "name": "date_year", "comment": null}, "date_index": {"type": "bigint", "index": 20, "name": "date_index", "comment": null}, "daily_transaction_count": {"type": "bigint", "index": 21, "name": "daily_transaction_count", "comment": null}, "daily_net_change": {"type": "double precision", "index": 22, "name": "daily_net_change", "comment": null}, "daily_invoice_count": {"type": "bigint", "index": 23, "name": "daily_invoice_count", "comment": null}, "daily_charges": {"type": "double precision", "index": 24, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 25, "name": "daily_credits", "comment": null}, "daily_discounts": {"type": "double precision", "index": 26, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 27, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 28, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 29, "name": "daily_credit_count", "comment": null}, "rolling_account_balance": {"type": "double precision", "index": 30, "name": "rolling_account_balance", "comment": null}, "rolling_invoices": {"type": "numeric", "index": 31, "name": "rolling_invoices", "comment": null}, "rolling_transactions": {"type": "numeric", "index": 32, "name": "rolling_transactions", "comment": null}, "rolling_charge_balance": {"type": "double precision", "index": 33, "name": "rolling_charge_balance", "comment": null}, "rolling_credit_balance": {"type": "double precision", "index": 34, "name": "rolling_credit_balance", "comment": null}, "rolling_discount_balance": {"type": "double precision", "index": 35, "name": "rolling_discount_balance", "comment": null}, "rolling_tax_balance": {"type": "double precision", "index": 36, "name": "rolling_tax_balance", "comment": null}, "rolling_charges": {"type": "numeric", "index": 37, "name": "rolling_charges", "comment": null}, "rolling_credits": {"type": "numeric", "index": 38, "name": "rolling_credits", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__account_daily_overview"}, "model.recurly.recurly__account_overview": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly", "name": "recurly__account_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 2, "name": "account_created_at", "comment": null}, "account_city": {"type": "text", "index": 3, "name": "account_city", "comment": null}, "account_code": {"type": "text", "index": 4, "name": "account_code", "comment": null}, "account_company": {"type": "text", "index": 5, "name": "account_company", "comment": null}, "account_country": {"type": "text", "index": 6, "name": "account_country", "comment": null}, "account_email": {"type": "text", "index": 7, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 8, "name": "account_first_name", "comment": null}, "account_is_tax_exempt": {"type": "boolean", "index": 9, "name": "account_is_tax_exempt", "comment": null}, "account_last_name": {"type": "text", "index": 10, "name": "account_last_name", "comment": null}, "account_postal_code": {"type": "text", "index": 11, "name": "account_postal_code", "comment": null}, "account_region": {"type": "text", "index": 12, "name": "account_region", "comment": null}, "account_state": {"type": "text", "index": 13, "name": "account_state", "comment": null}, "account_username": {"type": "text", "index": 14, "name": "account_username", "comment": null}, "total_transactions": {"type": "numeric", "index": 15, "name": "total_transactions", "comment": null}, "total_invoices": {"type": "numeric", "index": 16, "name": "total_invoices", "comment": null}, "total_charges": {"type": "double precision", "index": 17, "name": "total_charges", "comment": null}, "total_credits": {"type": "double precision", "index": 18, "name": "total_credits", "comment": null}, "total_balance": {"type": "double precision", "index": 19, "name": "total_balance", "comment": null}, "total_discounts": {"type": "double precision", "index": 20, "name": "total_discounts", "comment": null}, "total_taxes": {"type": "double precision", "index": 21, "name": "total_taxes", "comment": null}, "total_charge_count": {"type": "numeric", "index": 22, "name": "total_charge_count", "comment": null}, "total_credit_count": {"type": "numeric", "index": 23, "name": "total_credit_count", "comment": null}, "transactions_this_month": {"type": "numeric", "index": 24, "name": "transactions_this_month", "comment": null}, "invoices_this_month": {"type": "numeric", "index": 25, "name": "invoices_this_month", "comment": null}, "charges_this_month": {"type": "double precision", "index": 26, "name": "charges_this_month", "comment": null}, "credits_this_month": {"type": "double precision", "index": 27, "name": "credits_this_month", "comment": null}, "balance_this_month": {"type": "double precision", "index": 28, "name": "balance_this_month", "comment": null}, "discounts_this_month": {"type": "double precision", "index": 29, "name": "discounts_this_month", "comment": null}, "taxes_this_month": {"type": "double precision", "index": 30, "name": "taxes_this_month", "comment": null}, "first_charge_date": {"type": "timestamp without time zone", "index": 31, "name": "first_charge_date", "comment": null}, "most_recent_charge_date": {"type": "timestamp without time zone", "index": 32, "name": "most_recent_charge_date", "comment": null}, "first_invoice_date": {"type": "timestamp without time zone", "index": 33, "name": "first_invoice_date", "comment": null}, "most_recent_invoice_date": {"type": "timestamp without time zone", "index": 34, "name": "most_recent_invoice_date", "comment": null}, "next_invoice_due_at": {"type": "timestamp without time zone", "index": 35, "name": "next_invoice_due_at", "comment": null}, "first_transaction_date": {"type": "timestamp without time zone", "index": 36, "name": "first_transaction_date", "comment": null}, "most_recent_transaction_date": {"type": "timestamp without time zone", "index": 37, "name": "most_recent_transaction_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__account_overview"}, "model.recurly.recurly__balance_transactions": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly", "name": "recurly__balance_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"balance_transaction_id": {"type": "text", "index": 1, "name": "balance_transaction_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "invoice_id": {"type": "text", "index": 5, "name": "invoice_id", "comment": null}, "invoice_number": {"type": "integer", "index": 6, "name": "invoice_number", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "origin": {"type": "text", "index": 9, "name": "origin", "comment": null}, "product_code": {"type": "integer", "index": 10, "name": "product_code", "comment": null}, "discount": {"type": "double precision", "index": 11, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 12, "name": "tax", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "plan_code": {"type": "integer", "index": 14, "name": "plan_code", "comment": null}, "add_on_code": {"type": "integer", "index": 15, "name": "add_on_code", "comment": null}, "has_refund": {"type": "boolean", "index": 16, "name": "has_refund", "comment": null}, "refunded_quantity": {"type": "integer", "index": 17, "name": "refunded_quantity", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 19, "name": "amount", "comment": null}, "credit_applied": {"type": "double precision", "index": 20, "name": "credit_applied", "comment": null}, "quantity": {"type": "integer", "index": 21, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 22, "name": "unit_amount", "comment": null}, "subtotal": {"type": "double precision", "index": 23, "name": "subtotal", "comment": null}, "started_at": {"type": "timestamp without time zone", "index": 24, "name": "started_at", "comment": null}, "ended_at": {"type": "timestamp without time zone", "index": 25, "name": "ended_at", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 26, "name": "original_line_item_invoice_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 27, "name": "previous_line_item_id", "comment": null}, "invoice_state": {"type": "text", "index": 28, "name": "invoice_state", "comment": null}, "invoice_origin": {"type": "text", "index": 29, "name": "invoice_origin", "comment": null}, "invoice_type": {"type": "text", "index": 30, "name": "invoice_type", "comment": null}, "invoice_created_at": {"type": "timestamp without time zone", "index": 31, "name": "invoice_created_at", "comment": null}, "invoice_due_at": {"type": "timestamp without time zone", "index": 32, "name": "invoice_due_at", "comment": null}, "invoice_closed_at": {"type": "timestamp without time zone", "index": 33, "name": "invoice_closed_at", "comment": null}, "transaction_id": {"type": "text", "index": 34, "name": "transaction_id", "comment": null}, "transaction_created_at": {"type": "timestamp without time zone", "index": 35, "name": "transaction_created_at", "comment": null}, "transaction_type": {"type": "text", "index": 36, "name": "transaction_type", "comment": null}, "transaction_origin": {"type": "text", "index": 37, "name": "transaction_origin", "comment": null}, "transaction_status": {"type": "text", "index": 38, "name": "transaction_status", "comment": null}, "transaction_billing_country": {"type": "text", "index": 39, "name": "transaction_billing_country", "comment": null}, "transaction_status_message": {"type": "text", "index": 40, "name": "transaction_status_message", "comment": null}, "transaction_payment_method_object": {"type": "text", "index": 41, "name": "transaction_payment_method_object", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__balance_transactions"}, "model.recurly.recurly__churn_analysis": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly", "name": "recurly__churn_analysis", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "character varying", "index": 1, "name": "subscription_id", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 2, "name": "activated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_state": {"type": "text", "index": 4, "name": "account_state", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 5, "name": "canceled_at", "comment": null}, "current_period_ended_at": {"type": "timestamp without time zone", "index": 6, "name": "current_period_ended_at", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 7, "name": "current_period_started_at", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 8, "name": "expires_at", "comment": null}, "expiration_reason": {"type": "text", "index": 9, "name": "expiration_reason", "comment": null}, "has_auto_renew": {"type": "boolean", "index": 10, "name": "has_auto_renew", "comment": null}, "plan_name": {"type": "text", "index": 11, "name": "plan_name", "comment": null}, "plan_state": {"type": "text", "index": 12, "name": "plan_state", "comment": null}, "subscription_end_date": {"type": "timestamp without time zone", "index": 13, "name": "subscription_end_date", "comment": null}, "subscription_interval_days": {"type": "integer", "index": 14, "name": "subscription_interval_days", "comment": null}, "subscription_period": {"type": "bigint", "index": 15, "name": "subscription_period", "comment": null}, "subscription_state": {"type": "text", "index": 16, "name": "subscription_state", "comment": null}, "subtotal": {"type": "double precision", "index": 17, "name": "subtotal", "comment": null}, "unit_amount": {"type": "double precision", "index": 18, "name": "unit_amount", "comment": null}, "churn_reason": {"type": "text", "index": 19, "name": "churn_reason", "comment": null}, "churn_reason_type": {"type": "text", "index": 20, "name": "churn_reason_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__churn_analysis"}, "model.recurly.recurly__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly", "name": "recurly__line_item_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"header_id": {"type": "text", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "text", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "integer", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "integer", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "double precision", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "timestamp without time zone", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "numeric(28,6)", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "character varying", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "text", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__line_item_enhanced"}, "model.recurly.recurly__monthly_recurring_revenue": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly", "name": "recurly__monthly_recurring_revenue", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_monthly_id": {"type": "text", "index": 1, "name": "account_monthly_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "account_month": {"type": "timestamp without time zone", "index": 3, "name": "account_month", "comment": null}, "account_month_number": {"type": "bigint", "index": 4, "name": "account_month_number", "comment": null}, "current_month_mrr": {"type": "double precision", "index": 5, "name": "current_month_mrr", "comment": null}, "previous_month_mrr": {"type": "double precision", "index": 6, "name": "previous_month_mrr", "comment": null}, "mrr_type": {"type": "text", "index": 7, "name": "mrr_type", "comment": null}, "account_code": {"type": "text", "index": 8, "name": "account_code", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 9, "name": "account_created_at", "comment": null}, "account_email": {"type": "text", "index": 10, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 11, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "text", "index": 12, "name": "account_last_name", "comment": null}, "account_username": {"type": "text", "index": 13, "name": "account_username", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__monthly_recurring_revenue"}, "model.recurly.recurly__subscription_overview": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly", "name": "recurly__subscription_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "character varying", "index": 1, "name": "subscription_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "subscription_key": {"type": "text", "index": 3, "name": "subscription_key", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 4, "name": "activated_at", "comment": null}, "add_ons_total": {"type": "double precision", "index": 5, "name": "add_ons_total", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "current_period_ended_at": {"type": "timestamp without time zone", "index": 7, "name": "current_period_ended_at", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 8, "name": "current_period_started_at", "comment": null}, "expiration_reason": {"type": "text", "index": 9, "name": "expiration_reason", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 10, "name": "expires_at", "comment": null}, "has_auto_renew": {"type": "boolean", "index": 11, "name": "has_auto_renew", "comment": null}, "subscription_period": {"type": "bigint", "index": 12, "name": "subscription_period", "comment": null}, "subscription_state": {"type": "text", "index": 13, "name": "subscription_state", "comment": null}, "subscription_end_date": {"type": "timestamp without time zone", "index": 14, "name": "subscription_end_date", "comment": null}, "subscription_interval_days": {"type": "integer", "index": 15, "name": "subscription_interval_days", "comment": null}, "subtotal": {"type": "double precision", "index": 16, "name": "subtotal", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 17, "name": "trial_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 18, "name": "trial_started_at", "comment": null}, "trial_interval_days": {"type": "integer", "index": 19, "name": "trial_interval_days", "comment": null}, "unit_amount": {"type": "double precision", "index": 20, "name": "unit_amount", "comment": null}, "account_id": {"type": "text", "index": 21, "name": "account_id", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 22, "name": "account_created_at", "comment": null}, "account_email": {"type": "text", "index": 23, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 24, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "text", "index": 25, "name": "account_last_name", "comment": null}, "account_state": {"type": "text", "index": 26, "name": "account_state", "comment": null}, "plan_code": {"type": "text", "index": 27, "name": "plan_code", "comment": null}, "plan_created_at": {"type": "timestamp without time zone", "index": 28, "name": "plan_created_at", "comment": null}, "plan_deleted_at": {"type": "timestamp without time zone", "index": 29, "name": "plan_deleted_at", "comment": null}, "plan_interval_days": {"type": "integer", "index": 30, "name": "plan_interval_days", "comment": null}, "plan_is_tax_exempt": {"type": "boolean", "index": 31, "name": "plan_is_tax_exempt", "comment": null}, "plan_name": {"type": "text", "index": 32, "name": "plan_name", "comment": null}, "plan_state": {"type": "text", "index": 33, "name": "plan_state", "comment": null}, "plan_total_billing_cycles": {"type": "integer", "index": 34, "name": "plan_total_billing_cycles", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.recurly__subscription_overview"}, "model.recurly.int_recurly__account_cumulatives": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_int", "name": "int_recurly__account_cumulatives", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "total_transactions": {"type": "numeric", "index": 2, "name": "total_transactions", "comment": null}, "total_invoices": {"type": "numeric", "index": 3, "name": "total_invoices", "comment": null}, "total_charges": {"type": "double precision", "index": 4, "name": "total_charges", "comment": null}, "total_credits": {"type": "double precision", "index": 5, "name": "total_credits", "comment": null}, "total_balance": {"type": "double precision", "index": 6, "name": "total_balance", "comment": null}, "total_discounts": {"type": "double precision", "index": 7, "name": "total_discounts", "comment": null}, "total_taxes": {"type": "double precision", "index": 8, "name": "total_taxes", "comment": null}, "total_charge_count": {"type": "numeric", "index": 9, "name": "total_charge_count", "comment": null}, "total_credit_count": {"type": "numeric", "index": 10, "name": "total_credit_count", "comment": null}, "transactions_this_month": {"type": "numeric", "index": 11, "name": "transactions_this_month", "comment": null}, "invoices_this_month": {"type": "numeric", "index": 12, "name": "invoices_this_month", "comment": null}, "balance_this_month": {"type": "double precision", "index": 13, "name": "balance_this_month", "comment": null}, "charges_this_month": {"type": "double precision", "index": 14, "name": "charges_this_month", "comment": null}, "credits_this_month": {"type": "double precision", "index": 15, "name": "credits_this_month", "comment": null}, "discounts_this_month": {"type": "double precision", "index": 16, "name": "discounts_this_month", "comment": null}, "taxes_this_month": {"type": "double precision", "index": 17, "name": "taxes_this_month", "comment": null}, "first_charge_date": {"type": "timestamp without time zone", "index": 18, "name": "first_charge_date", "comment": null}, "most_recent_charge_date": {"type": "timestamp without time zone", "index": 19, "name": "most_recent_charge_date", "comment": null}, "first_invoice_date": {"type": "timestamp without time zone", "index": 20, "name": "first_invoice_date", "comment": null}, "most_recent_invoice_date": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_invoice_date", "comment": null}, "first_transaction_date": {"type": "timestamp without time zone", "index": 22, "name": "first_transaction_date", "comment": null}, "most_recent_transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_transaction_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__account_cumulatives"}, "model.recurly.int_recurly__account_partitions": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_int", "name": "int_recurly__account_partitions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 3, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 4, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 5, "name": "date_year", "comment": null}, "daily_transactions": {"type": "bigint", "index": 6, "name": "daily_transactions", "comment": null}, "daily_balance": {"type": "double precision", "index": 7, "name": "daily_balance", "comment": null}, "daily_invoices": {"type": "bigint", "index": 8, "name": "daily_invoices", "comment": null}, "daily_charges": {"type": "double precision", "index": 9, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 10, "name": "daily_credits", "comment": null}, "daily_discounts": {"type": "double precision", "index": 11, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 12, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 13, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 14, "name": "daily_credit_count", "comment": null}, "rolling_account_balance": {"type": "double precision", "index": 15, "name": "rolling_account_balance", "comment": null}, "rolling_invoices": {"type": "numeric", "index": 16, "name": "rolling_invoices", "comment": null}, "rolling_transactions": {"type": "numeric", "index": 17, "name": "rolling_transactions", "comment": null}, "rolling_charge_balance": {"type": "double precision", "index": 18, "name": "rolling_charge_balance", "comment": null}, "rolling_credit_balance": {"type": "double precision", "index": 19, "name": "rolling_credit_balance", "comment": null}, "rolling_discount_balance": {"type": "double precision", "index": 20, "name": "rolling_discount_balance", "comment": null}, "rolling_tax_balance": {"type": "double precision", "index": 21, "name": "rolling_tax_balance", "comment": null}, "rolling_charges": {"type": "numeric", "index": 22, "name": "rolling_charges", "comment": null}, "rolling_credits": {"type": "numeric", "index": 23, "name": "rolling_credits", "comment": null}, "date_index": {"type": "bigint", "index": 24, "name": "date_index", "comment": null}, "rolling_account_balance_partition": {"type": "bigint", "index": 25, "name": "rolling_account_balance_partition", "comment": null}, "rolling_invoices_partition": {"type": "bigint", "index": 26, "name": "rolling_invoices_partition", "comment": null}, "rolling_transactions_partition": {"type": "bigint", "index": 27, "name": "rolling_transactions_partition", "comment": null}, "rolling_charge_balance_partition": {"type": "bigint", "index": 28, "name": "rolling_charge_balance_partition", "comment": null}, "rolling_credit_balance_partition": {"type": "bigint", "index": 29, "name": "rolling_credit_balance_partition", "comment": null}, "rolling_discount_balance_partition": {"type": "bigint", "index": 30, "name": "rolling_discount_balance_partition", "comment": null}, "rolling_tax_balance_partition": {"type": "bigint", "index": 31, "name": "rolling_tax_balance_partition", "comment": null}, "rolling_charges_partition": {"type": "bigint", "index": 32, "name": "rolling_charges_partition", "comment": null}, "rolling_credits_partition": {"type": "bigint", "index": 33, "name": "rolling_credits_partition", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__account_partitions"}, "model.recurly.int_recurly__account_rolling_totals": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_int", "name": "int_recurly__account_rolling_totals", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 3, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 4, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 5, "name": "date_year", "comment": null}, "daily_transactions": {"type": "bigint", "index": 6, "name": "daily_transactions", "comment": null}, "daily_balance": {"type": "double precision", "index": 7, "name": "daily_balance", "comment": null}, "daily_invoices": {"type": "bigint", "index": 8, "name": "daily_invoices", "comment": null}, "daily_charges": {"type": "double precision", "index": 9, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 10, "name": "daily_credits", "comment": null}, "daily_discounts": {"type": "double precision", "index": 11, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 12, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 13, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 14, "name": "daily_credit_count", "comment": null}, "rolling_account_balance": {"type": "double precision", "index": 15, "name": "rolling_account_balance", "comment": null}, "rolling_invoices": {"type": "numeric", "index": 16, "name": "rolling_invoices", "comment": null}, "rolling_transactions": {"type": "numeric", "index": 17, "name": "rolling_transactions", "comment": null}, "rolling_charge_balance": {"type": "double precision", "index": 18, "name": "rolling_charge_balance", "comment": null}, "rolling_credit_balance": {"type": "double precision", "index": 19, "name": "rolling_credit_balance", "comment": null}, "rolling_discount_balance": {"type": "double precision", "index": 20, "name": "rolling_discount_balance", "comment": null}, "rolling_tax_balance": {"type": "double precision", "index": 21, "name": "rolling_tax_balance", "comment": null}, "rolling_charges": {"type": "numeric", "index": 22, "name": "rolling_charges", "comment": null}, "rolling_credits": {"type": "numeric", "index": 23, "name": "rolling_credits", "comment": null}, "date_index": {"type": "bigint", "index": 24, "name": "date_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__account_rolling_totals"}, "model.recurly.int_recurly__account_running_totals": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_int", "name": "int_recurly__account_running_totals", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_created_at": {"type": "timestamp without time zone", "index": 2, "name": "account_created_at", "comment": null}, "account_city": {"type": "text", "index": 3, "name": "account_city", "comment": null}, "account_company": {"type": "text", "index": 4, "name": "account_company", "comment": null}, "account_country": {"type": "text", "index": 5, "name": "account_country", "comment": null}, "account_code": {"type": "text", "index": 6, "name": "account_code", "comment": null}, "account_email": {"type": "text", "index": 7, "name": "account_email", "comment": null}, "account_first_name": {"type": "text", "index": 8, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "text", "index": 9, "name": "account_last_name", "comment": null}, "account_is_tax_exempt": {"type": "boolean", "index": 10, "name": "account_is_tax_exempt", "comment": null}, "account_postal_code": {"type": "text", "index": 11, "name": "account_postal_code", "comment": null}, "account_region": {"type": "text", "index": 12, "name": "account_region", "comment": null}, "account_state": {"type": "text", "index": 13, "name": "account_state", "comment": null}, "account_username": {"type": "text", "index": 14, "name": "account_username", "comment": null}, "account_daily_id": {"type": "text", "index": 15, "name": "account_daily_id", "comment": null}, "date_day": {"type": "date", "index": 16, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 17, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 18, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 19, "name": "date_year", "comment": null}, "date_index": {"type": "bigint", "index": 20, "name": "date_index", "comment": null}, "daily_transaction_count": {"type": "bigint", "index": 21, "name": "daily_transaction_count", "comment": null}, "daily_net_change": {"type": "double precision", "index": 22, "name": "daily_net_change", "comment": null}, "daily_invoice_count": {"type": "bigint", "index": 23, "name": "daily_invoice_count", "comment": null}, "daily_charges": {"type": "double precision", "index": 24, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 25, "name": "daily_credits", "comment": null}, "daily_discounts": {"type": "double precision", "index": 26, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 27, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 28, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 29, "name": "daily_credit_count", "comment": null}, "rolling_account_balance": {"type": "double precision", "index": 30, "name": "rolling_account_balance", "comment": null}, "rolling_invoices": {"type": "numeric", "index": 31, "name": "rolling_invoices", "comment": null}, "rolling_transactions": {"type": "numeric", "index": 32, "name": "rolling_transactions", "comment": null}, "rolling_charge_balance": {"type": "double precision", "index": 33, "name": "rolling_charge_balance", "comment": null}, "rolling_credit_balance": {"type": "double precision", "index": 34, "name": "rolling_credit_balance", "comment": null}, "rolling_discount_balance": {"type": "double precision", "index": 35, "name": "rolling_discount_balance", "comment": null}, "rolling_tax_balance": {"type": "double precision", "index": 36, "name": "rolling_tax_balance", "comment": null}, "rolling_charges": {"type": "numeric", "index": 37, "name": "rolling_charges", "comment": null}, "rolling_credits": {"type": "numeric", "index": 38, "name": "rolling_credits", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__account_running_totals"}, "model.recurly.int_recurly__transactions_date_spine": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_int", "name": "int_recurly__transactions_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 3, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 4, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 5, "name": "date_year", "comment": null}, "date_index": {"type": "bigint", "index": 6, "name": "date_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__transactions_date_spine"}, "model.recurly.int_recurly__transactions_grouped": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_int", "name": "int_recurly__transactions_grouped", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "date_week": {"type": "date", "index": 3, "name": "date_week", "comment": null}, "date_month": {"type": "date", "index": 4, "name": "date_month", "comment": null}, "date_year": {"type": "date", "index": 5, "name": "date_year", "comment": null}, "daily_transactions": {"type": "bigint", "index": 6, "name": "daily_transactions", "comment": null}, "daily_invoices": {"type": "bigint", "index": 7, "name": "daily_invoices", "comment": null}, "daily_charges": {"type": "double precision", "index": 8, "name": "daily_charges", "comment": null}, "daily_credits": {"type": "double precision", "index": 9, "name": "daily_credits", "comment": null}, "daily_balance": {"type": "double precision", "index": 10, "name": "daily_balance", "comment": null}, "daily_discounts": {"type": "double precision", "index": 11, "name": "daily_discounts", "comment": null}, "daily_taxes": {"type": "double precision", "index": 12, "name": "daily_taxes", "comment": null}, "daily_charge_count": {"type": "bigint", "index": 13, "name": "daily_charge_count", "comment": null}, "daily_credit_count": {"type": "bigint", "index": 14, "name": "daily_credit_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly.int_recurly__transactions_grouped"}, "model.recurly_source.stg_recurly__account_balance_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__account_balance_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "past_due": {"type": "boolean", "index": 5, "name": "past_due", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_balance_history"}, "model.recurly_source.stg_recurly__account_balance_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__account_balance_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "past_due": {"type": "boolean", "index": 6, "name": "past_due", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_balance_history_tmp"}, "model.recurly_source.stg_recurly__account_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_city": {"type": "text", "index": 3, "name": "account_city", "comment": null}, "account_country": {"type": "text", "index": 4, "name": "account_country", "comment": null}, "account_postal_code": {"type": "text", "index": 5, "name": "account_postal_code", "comment": null}, "account_region": {"type": "text", "index": 6, "name": "account_region", "comment": null}, "bill_to": {"type": "text", "index": 7, "name": "bill_to", "comment": null}, "cc_emails": {"type": "text", "index": 8, "name": "cc_emails", "comment": null}, "code": {"type": "text", "index": 9, "name": "code", "comment": null}, "company": {"type": "text", "index": 10, "name": "company", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 12, "name": "deleted_at", "comment": null}, "email": {"type": "text", "index": 13, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 14, "name": "first_name", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 15, "name": "is_most_recent_record", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 16, "name": "is_tax_exempt", "comment": null}, "last_name": {"type": "text", "index": 17, "name": "last_name", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "username": {"type": "text", "index": 19, "name": "username", "comment": null}, "vat_number": {"type": "text", "index": 20, "name": "vat_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_history"}, "model.recurly_source.stg_recurly__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "bill_to": {"type": "text", "index": 7, "name": "bill_to", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "username": {"type": "text", "index": 9, "name": "username", "comment": null}, "account_first_name": {"type": "integer", "index": 10, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "integer", "index": 11, "name": "account_last_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "cc_emails": {"type": "text", "index": 13, "name": "cc_emails", "comment": null}, "company": {"type": "text", "index": 14, "name": "company", "comment": null}, "vat_number": {"type": "text", "index": 15, "name": "vat_number", "comment": null}, "tax_exempt": {"type": "boolean", "index": 16, "name": "tax_exempt", "comment": null}, "account_country": {"type": "text", "index": 17, "name": "account_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_history_tmp"}, "model.recurly_source.stg_recurly__account_note_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__account_note_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_note_id": {"type": "text", "index": 1, "name": "account_note_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "account_updated_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "message": {"type": "text", "index": 5, "name": "message", "comment": null}, "object": {"type": "text", "index": 6, "name": "object", "comment": null}, "user_email": {"type": "text", "index": 7, "name": "user_email", "comment": null}, "user_id": {"type": "text", "index": 8, "name": "user_id", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_note_history"}, "model.recurly_source.stg_recurly__account_note_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__account_note_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "object": {"type": "text", "index": 7, "name": "object", "comment": null}, "user_email": {"type": "text", "index": 8, "name": "user_email", "comment": null}, "user_id": {"type": "text", "index": 9, "name": "user_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__account_note_history_tmp"}, "model.recurly_source.stg_recurly__billing_info_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__billing_info_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"billing_id": {"type": "text", "index": 1, "name": "billing_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "billing_city": {"type": "text", "index": 4, "name": "billing_city", "comment": null}, "billing_country": {"type": "text", "index": 5, "name": "billing_country", "comment": null}, "billing_phone": {"type": "text", "index": 6, "name": "billing_phone", "comment": null}, "billing_postal_code": {"type": "text", "index": 7, "name": "billing_postal_code", "comment": null}, "billing_region": {"type": "text", "index": 8, "name": "billing_region", "comment": null}, "billing_street_1": {"type": "text", "index": 9, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 10, "name": "billing_street_2", "comment": null}, "company": {"type": "text", "index": 11, "name": "company", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "is_valid": {"type": "boolean", "index": 14, "name": "is_valid", "comment": null}, "last_name": {"type": "text", "index": 15, "name": "last_name", "comment": null}, "payment_method_card_type": {"type": "text", "index": 16, "name": "payment_method_card_type", "comment": null}, "payment_method_object": {"type": "text", "index": 17, "name": "payment_method_object", "comment": null}, "updated_by_country": {"type": "integer", "index": 18, "name": "updated_by_country", "comment": null}, "updated_by_ip": {"type": "integer", "index": 19, "name": "updated_by_ip", "comment": null}, "vat_number": {"type": "text", "index": 20, "name": "vat_number", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 21, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__billing_info_history"}, "model.recurly_source.stg_recurly__billing_info_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__billing_info_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "first_name": {"type": "text", "index": 5, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 6, "name": "last_name", "comment": null}, "billing_phone": {"type": "text", "index": 7, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 8, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 9, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 10, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 11, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 12, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 13, "name": "billing_country", "comment": null}, "vat_number": {"type": "text", "index": 14, "name": "vat_number", "comment": null}, "valid": {"type": "boolean", "index": 15, "name": "valid", "comment": null}, "payment_method_object": {"type": "text", "index": 16, "name": "payment_method_object", "comment": null}, "payment_method_credit_type": {"type": "text", "index": 17, "name": "payment_method_credit_type", "comment": null}, "payment_method_first_six": {"type": "text", "index": 18, "name": "payment_method_first_six", "comment": null}, "payment_method_last_four": {"type": "text", "index": 19, "name": "payment_method_last_four", "comment": null}, "payment_method_exp_month": {"type": "text", "index": 20, "name": "payment_method_exp_month", "comment": null}, "payment_method_exp_year": {"type": "text", "index": 21, "name": "payment_method_exp_year", "comment": null}, "fraud_score": {"type": "integer", "index": 22, "name": "fraud_score", "comment": null}, "fraud_decision": {"type": "integer", "index": 23, "name": "fraud_decision", "comment": null}, "fraud_risk_rules_triggered": {"type": "integer", "index": 24, "name": "fraud_risk_rules_triggered", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 25, "name": "created_at", "comment": null}, "updated_by_ip": {"type": "integer", "index": 26, "name": "updated_by_ip", "comment": null}, "updated_by_country": {"type": "integer", "index": 27, "name": "updated_by_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__billing_info_history_tmp"}, "model.recurly_source.stg_recurly__coupon_discount": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__coupon_discount", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_id": {"type": "text", "index": 1, "name": "coupon_id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "fivetran_id": {"type": "text", "index": 4, "name": "fivetran_id", "comment": null}, "percentage": {"type": "integer", "index": 5, "name": "percentage", "comment": null}, "trial_length": {"type": "integer", "index": 6, "name": "trial_length", "comment": null}, "trial_unit": {"type": "integer", "index": 7, "name": "trial_unit", "comment": null}, "type": {"type": "text", "index": 8, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__coupon_discount"}, "model.recurly_source.stg_recurly__coupon_discount_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__coupon_discount_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_id": {"type": "text", "index": 1, "name": "coupon_id", "comment": null}, "fivetran_id": {"type": "text", "index": 2, "name": "fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "percentage": {"type": "integer", "index": 6, "name": "percentage", "comment": null}, "trial_length": {"type": "integer", "index": 7, "name": "trial_length", "comment": null}, "trial_unit": {"type": "integer", "index": 8, "name": "trial_unit", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__coupon_discount_tmp"}, "model.recurly_source.stg_recurly__coupon_redemption_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__coupon_redemption_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "coupon_id": {"type": "text", "index": 4, "name": "coupon_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "discounted": {"type": "double precision", "index": 7, "name": "discounted", "comment": null}, "removed_at": {"type": "timestamp without time zone", "index": 8, "name": "removed_at", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__coupon_redemption_history"}, "model.recurly_source.stg_recurly__coupon_redemption_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__coupon_redemption_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "coupon_id": {"type": "text", "index": 5, "name": "coupon_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "discounted": {"type": "double precision", "index": 8, "name": "discounted", "comment": null}, "removed_at": {"type": "timestamp without time zone", "index": 9, "name": "removed_at", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__coupon_redemption_history_tmp"}, "model.recurly_source.stg_recurly__credit_payment_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__credit_payment_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_payment_id": {"type": "character varying", "index": 1, "name": "credit_payment_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "character varying", "index": 3, "name": "account_id", "comment": null}, "action": {"type": "text", "index": 4, "name": "action", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "applied_to_invoice_id": {"type": "character varying", "index": 6, "name": "applied_to_invoice_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "refund_transaction_id": {"type": "character varying", "index": 9, "name": "refund_transaction_id", "comment": null}, "original_credit_payment_id": {"type": "character varying", "index": 10, "name": "original_credit_payment_id", "comment": null}, "original_invoice_id": {"type": "character varying", "index": 11, "name": "original_invoice_id", "comment": null}, "uuid": {"type": "character varying", "index": 12, "name": "uuid", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 13, "name": "voided_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__credit_payment_history"}, "model.recurly_source.stg_recurly__credit_payment_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__credit_payment_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "account_id": {"type": "character varying", "index": 4, "name": "account_id", "comment": null}, "applied_to_invoice_id": {"type": "character varying", "index": 5, "name": "applied_to_invoice_id", "comment": null}, "original_invoice_id": {"type": "character varying", "index": 6, "name": "original_invoice_id", "comment": null}, "refund_transaction_id": {"type": "character varying", "index": 7, "name": "refund_transaction_id", "comment": null}, "original_credit_payment_id": {"type": "character varying", "index": 8, "name": "original_credit_payment_id", "comment": null}, "uuid": {"type": "character varying", "index": 9, "name": "uuid", "comment": null}, "action": {"type": "text", "index": 10, "name": "action", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 12, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 13, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 14, "name": "voided_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__credit_payment_history_tmp"}, "model.recurly_source.stg_recurly__invoice_coupon_redemption_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__invoice_coupon_redemption_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "invoice_id": {"type": "text", "index": 2, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 4, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_coupon_redemption_history"}, "model.recurly_source.stg_recurly__invoice_coupon_redemption_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__invoice_coupon_redemption_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "invoice_id": {"type": "text", "index": 2, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_coupon_redemption_history_tmp"}, "model.recurly_source.stg_recurly__invoice_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__invoice_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "balance": {"type": "double precision", "index": 4, "name": "balance", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 5, "name": "closed_at", "comment": null}, "collection_method": {"type": "text", "index": 6, "name": "collection_method", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "discount": {"type": "double precision", "index": 9, "name": "discount", "comment": null}, "due_at": {"type": "timestamp without time zone", "index": 10, "name": "due_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 11, "name": "is_most_recent_record", "comment": null}, "net_terms": {"type": "integer", "index": 12, "name": "net_terms", "comment": null}, "number": {"type": "integer", "index": 13, "name": "number", "comment": null}, "origin": {"type": "text", "index": 14, "name": "origin", "comment": null}, "paid": {"type": "double precision", "index": 15, "name": "paid", "comment": null}, "po_number": {"type": "integer", "index": 16, "name": "po_number", "comment": null}, "previous_invoice_id": {"type": "integer", "index": 17, "name": "previous_invoice_id", "comment": null}, "refundable_amount": {"type": "double precision", "index": 18, "name": "refundable_amount", "comment": null}, "state": {"type": "text", "index": 19, "name": "state", "comment": null}, "subtotal": {"type": "double precision", "index": 20, "name": "subtotal", "comment": null}, "tax": {"type": "double precision", "index": 21, "name": "tax", "comment": null}, "tax_rate": {"type": "integer", "index": 22, "name": "tax_rate", "comment": null}, "tax_region": {"type": "integer", "index": 23, "name": "tax_region", "comment": null}, "tax_type": {"type": "integer", "index": 24, "name": "tax_type", "comment": null}, "total": {"type": "double precision", "index": 25, "name": "total", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_history"}, "model.recurly_source.stg_recurly__invoice_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__invoice_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "due_at": {"type": "timestamp without time zone", "index": 5, "name": "due_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 6, "name": "closed_at", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "previous_invoice_id": {"type": "integer", "index": 8, "name": "previous_invoice_id", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "origin": {"type": "text", "index": 10, "name": "origin", "comment": null}, "state": {"type": "text", "index": 11, "name": "state", "comment": null}, "number": {"type": "integer", "index": 12, "name": "number", "comment": null}, "collection_method": {"type": "text", "index": 13, "name": "collection_method", "comment": null}, "po_number": {"type": "integer", "index": 14, "name": "po_number", "comment": null}, "net_terms": {"type": "integer", "index": 15, "name": "net_terms", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "balance": {"type": "double precision", "index": 17, "name": "balance", "comment": null}, "paid": {"type": "double precision", "index": 18, "name": "paid", "comment": null}, "total": {"type": "double precision", "index": 19, "name": "total", "comment": null}, "subtotal": {"type": "double precision", "index": 20, "name": "subtotal", "comment": null}, "refundable_amount": {"type": "double precision", "index": 21, "name": "refundable_amount", "comment": null}, "discount": {"type": "double precision", "index": 22, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 23, "name": "tax", "comment": null}, "tax_type": {"type": "integer", "index": 24, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 25, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 26, "name": "tax_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_history_tmp"}, "model.recurly_source.stg_recurly__invoice_subscription_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__invoice_subscription_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "invoice_updated_at", "comment": null}, "subscription_id": {"type": "text", "index": 3, "name": "subscription_id", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 4, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_subscription_history"}, "model.recurly_source.stg_recurly__invoice_subscription_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__invoice_subscription_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "subscription_id": {"type": "text", "index": 2, "name": "subscription_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__invoice_subscription_history_tmp"}, "model.recurly_source.stg_recurly__line_item_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__line_item_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"line_item_id": {"type": "text", "index": 1, "name": "line_item_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "add_on_code": {"type": "integer", "index": 4, "name": "add_on_code", "comment": null}, "add_on_id": {"type": "integer", "index": 5, "name": "add_on_id", "comment": null}, "amount": {"type": "double precision", "index": 6, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "credit_applied": {"type": "double precision", "index": 8, "name": "credit_applied", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "discount": {"type": "double precision", "index": 11, "name": "discount", "comment": null}, "ended_at": {"type": "timestamp without time zone", "index": 12, "name": "ended_at", "comment": null}, "has_refund": {"type": "boolean", "index": 13, "name": "has_refund", "comment": null}, "invoice_id": {"type": "text", "index": 14, "name": "invoice_id", "comment": null}, "invoice_number": {"type": "integer", "index": 15, "name": "invoice_number", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 16, "name": "is_most_recent_record", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 18, "name": "original_line_item_invoice_id", "comment": null}, "origin": {"type": "text", "index": 19, "name": "origin", "comment": null}, "plan_code": {"type": "integer", "index": 20, "name": "plan_code", "comment": null}, "plan_id": {"type": "integer", "index": 21, "name": "plan_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 22, "name": "previous_line_item_id", "comment": null}, "product_code": {"type": "integer", "index": 23, "name": "product_code", "comment": null}, "proration_rate": {"type": "integer", "index": 24, "name": "proration_rate", "comment": null}, "quantity": {"type": "integer", "index": 25, "name": "quantity", "comment": null}, "refunded_quantity": {"type": "integer", "index": 26, "name": "refunded_quantity", "comment": null}, "started_at": {"type": "timestamp without time zone", "index": 27, "name": "started_at", "comment": null}, "state": {"type": "text", "index": 28, "name": "state", "comment": null}, "subscription_id": {"type": "character varying", "index": 29, "name": "subscription_id", "comment": null}, "subtotal": {"type": "double precision", "index": 30, "name": "subtotal", "comment": null}, "tax": {"type": "double precision", "index": 31, "name": "tax", "comment": null}, "tax_code": {"type": "integer", "index": 32, "name": "tax_code", "comment": null}, "tax_exempt": {"type": "boolean", "index": 33, "name": "tax_exempt", "comment": null}, "tax_region": {"type": "integer", "index": 34, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 35, "name": "tax_rate", "comment": null}, "tax_type": {"type": "integer", "index": 36, "name": "tax_type", "comment": null}, "type": {"type": "text", "index": 37, "name": "type", "comment": null}, "unit_amount": {"type": "double precision", "index": 38, "name": "unit_amount", "comment": null}, "uuid": {"type": "text", "index": 39, "name": "uuid", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__line_item_history"}, "model.recurly_source.stg_recurly__line_item_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__line_item_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 5, "name": "account_id", "comment": null}, "plan_id": {"type": "integer", "index": 6, "name": "plan_id", "comment": null}, "add_on_id": {"type": "integer", "index": 7, "name": "add_on_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 9, "name": "previous_line_item_id", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 10, "name": "original_line_item_invoice_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 11, "name": "subscription_id", "comment": null}, "uuid": {"type": "text", "index": 12, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 13, "name": "type", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "plan_code": {"type": "integer", "index": 15, "name": "plan_code", "comment": null}, "add_on_code": {"type": "integer", "index": 16, "name": "add_on_code", "comment": null}, "invoice_number": {"type": "integer", "index": 17, "name": "invoice_number", "comment": null}, "origin": {"type": "text", "index": 18, "name": "origin", "comment": null}, "product_code": {"type": "integer", "index": 19, "name": "product_code", "comment": null}, "currency": {"type": "text", "index": 20, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 21, "name": "amount", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 23, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 24, "name": "unit_amount", "comment": null}, "subtotal": {"type": "double precision", "index": 25, "name": "subtotal", "comment": null}, "discount": {"type": "double precision", "index": 26, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 27, "name": "tax", "comment": null}, "taxable": {"type": "boolean", "index": 28, "name": "taxable", "comment": null}, "tax_exempt": {"type": "boolean", "index": 29, "name": "tax_exempt", "comment": null}, "tax_code": {"type": "integer", "index": 30, "name": "tax_code", "comment": null}, "tax_type": {"type": "integer", "index": 31, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 32, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 33, "name": "tax_rate", "comment": null}, "proration_rate": {"type": "integer", "index": 34, "name": "proration_rate", "comment": null}, "refund": {"type": "boolean", "index": 35, "name": "refund", "comment": null}, "refunded_quantity": {"type": "integer", "index": 36, "name": "refunded_quantity", "comment": null}, "credit_applied": {"type": "double precision", "index": 37, "name": "credit_applied", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 39, "name": "end_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__line_item_history_tmp"}, "model.recurly_source.stg_recurly__plan_currency_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__plan_currency_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"plan_id": {"type": "text", "index": 1, "name": "plan_id", "comment": null}, "plan_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "plan_updated_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "setup_fees": {"type": "double precision", "index": 4, "name": "setup_fees", "comment": null}, "unit_amount": {"type": "double precision", "index": 5, "name": "unit_amount", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__plan_currency_history"}, "model.recurly_source.stg_recurly__plan_currency_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__plan_currency_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "plan_id": {"type": "text", "index": 2, "name": "plan_id", "comment": null}, "plan_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "plan_updated_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "setup_fees": {"type": "double precision", "index": 5, "name": "setup_fees", "comment": null}, "unit_amount": {"type": "double precision", "index": 6, "name": "unit_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__plan_currency_history_tmp"}, "model.recurly_source.stg_recurly__plan_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__plan_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"plan_id": {"type": "text", "index": 1, "name": "plan_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "accounting_code": {"type": "text", "index": 3, "name": "accounting_code", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 6, "name": "deleted_at", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "has_auto_renew": {"type": "boolean", "index": 8, "name": "has_auto_renew", "comment": null}, "interval_length": {"type": "integer", "index": 9, "name": "interval_length", "comment": null}, "interval_unit": {"type": "text", "index": 10, "name": "interval_unit", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 11, "name": "is_most_recent_record", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 12, "name": "is_tax_exempt", "comment": null}, "name": {"type": "text", "index": 13, "name": "name", "comment": null}, "setup_fee_accounting_code": {"type": "text", "index": 14, "name": "setup_fee_accounting_code", "comment": null}, "state": {"type": "text", "index": 15, "name": "state", "comment": null}, "tax_code": {"type": "integer", "index": 16, "name": "tax_code", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 17, "name": "total_billing_cycles", "comment": null}, "trial_length": {"type": "integer", "index": 18, "name": "trial_length", "comment": null}, "trial_unit": {"type": "text", "index": 19, "name": "trial_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__plan_history"}, "model.recurly_source.stg_recurly__plan_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__plan_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "state": {"type": "text", "index": 7, "name": "state", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "description": {"type": "integer", "index": 9, "name": "description", "comment": null}, "interval_unit": {"type": "text", "index": 10, "name": "interval_unit", "comment": null}, "interval_length": {"type": "integer", "index": 11, "name": "interval_length", "comment": null}, "trial_unit": {"type": "text", "index": 12, "name": "trial_unit", "comment": null}, "trial_length": {"type": "integer", "index": 13, "name": "trial_length", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 14, "name": "total_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 15, "name": "auto_renew", "comment": null}, "accounting_code": {"type": "text", "index": 16, "name": "accounting_code", "comment": null}, "setup_fee_accounting_code": {"type": "text", "index": 17, "name": "setup_fee_accounting_code", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "tax_exempt": {"type": "boolean", "index": 19, "name": "tax_exempt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__plan_history_tmp"}, "model.recurly_source.stg_recurly__subscription_add_on_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__subscription_add_on_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_add_on_id": {"type": "text", "index": 1, "name": "subscription_add_on_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "expired_at": {"type": "timestamp without time zone", "index": 4, "name": "expired_at", "comment": null}, "object": {"type": "text", "index": 5, "name": "object", "comment": null}, "plan_add_on_id": {"type": "text", "index": 6, "name": "plan_add_on_id", "comment": null}, "quantity": {"type": "integer", "index": 7, "name": "quantity", "comment": null}, "subscription_id": {"type": "text", "index": 8, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 9, "name": "unit_amount", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_add_on_history"}, "model.recurly_source.stg_recurly__subscription_add_on_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__subscription_add_on_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "expired_at": {"type": "timestamp without time zone", "index": 3, "name": "expired_at", "comment": null}, "id": {"type": "text", "index": 4, "name": "id", "comment": null}, "object": {"type": "text", "index": 5, "name": "object", "comment": null}, "plan_add_on_id": {"type": "text", "index": 6, "name": "plan_add_on_id", "comment": null}, "quantity": {"type": "integer", "index": 7, "name": "quantity", "comment": null}, "subscription_id": {"type": "text", "index": 8, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 9, "name": "unit_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_add_on_history_tmp"}, "model.recurly_source.stg_recurly__subscription_change_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__subscription_change_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_change_id": {"type": "character varying", "index": 1, "name": "subscription_change_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "activate_at": {"type": "timestamp without time zone", "index": 3, "name": "activate_at", "comment": null}, "activated": {"type": "boolean", "index": 4, "name": "activated", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 6, "name": "deleted_at", "comment": null}, "object": {"type": "character varying", "index": 7, "name": "object", "comment": null}, "plan_id": {"type": "character varying", "index": 8, "name": "plan_id", "comment": null}, "quantity": {"type": "bigint", "index": 9, "name": "quantity", "comment": null}, "subscription_id": {"type": "character varying", "index": 10, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 11, "name": "unit_amount", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_change_history"}, "model.recurly_source.stg_recurly__subscription_change_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__subscription_change_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "plan_id": {"type": "character varying", "index": 4, "name": "plan_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 5, "name": "subscription_id", "comment": null}, "object": {"type": "character varying", "index": 6, "name": "object", "comment": null}, "unit_amount": {"type": "double precision", "index": 7, "name": "unit_amount", "comment": null}, "quantity": {"type": "bigint", "index": 8, "name": "quantity", "comment": null}, "activate_at": {"type": "timestamp without time zone", "index": 9, "name": "activate_at", "comment": null}, "activated": {"type": "boolean", "index": 10, "name": "activated", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 12, "name": "deleted_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_change_history_tmp"}, "model.recurly_source.stg_recurly__subscription_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__subscription_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "character varying", "index": 1, "name": "subscription_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 4, "name": "activated_at", "comment": null}, "add_ons_total": {"type": "double precision", "index": 5, "name": "add_ons_total", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "collection_method": {"type": "text", "index": 7, "name": "collection_method", "comment": null}, "converted_at": {"type": "timestamp without time zone", "index": 8, "name": "converted_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "current_period_ended_at": {"type": "timestamp without time zone", "index": 11, "name": "current_period_ended_at", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 12, "name": "current_period_started_at", "comment": null}, "current_term_ended_at": {"type": "timestamp without time zone", "index": 13, "name": "current_term_ended_at", "comment": null}, "current_term_started_at": {"type": "timestamp without time zone", "index": 14, "name": "current_term_started_at", "comment": null}, "expiration_reason": {"type": "text", "index": 15, "name": "expiration_reason", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 16, "name": "expires_at", "comment": null}, "has_auto_renew": {"type": "boolean", "index": 17, "name": "has_auto_renew", "comment": null}, "has_started_with_gift": {"type": "boolean", "index": 18, "name": "has_started_with_gift", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 19, "name": "is_most_recent_record", "comment": null}, "object": {"type": "text", "index": 20, "name": "object", "comment": null}, "paused_at": {"type": "timestamp without time zone", "index": 21, "name": "paused_at", "comment": null}, "plan_id": {"type": "text", "index": 22, "name": "plan_id", "comment": null}, "quantity": {"type": "integer", "index": 23, "name": "quantity", "comment": null}, "remaining_billing_cycles": {"type": "integer", "index": 24, "name": "remaining_billing_cycles", "comment": null}, "remaining_pause_cycles": {"type": "integer", "index": 25, "name": "remaining_pause_cycles", "comment": null}, "renewal_billing_cycles": {"type": "integer", "index": 26, "name": "renewal_billing_cycles", "comment": null}, "state": {"type": "text", "index": 27, "name": "state", "comment": null}, "subtotal": {"type": "double precision", "index": 28, "name": "subtotal", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 29, "name": "total_billing_cycles", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 30, "name": "trial_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 31, "name": "trial_started_at", "comment": null}, "unit_amount": {"type": "double precision", "index": 32, "name": "unit_amount", "comment": null}, "uuid": {"type": "text", "index": 33, "name": "uuid", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_history"}, "model.recurly_source.stg_recurly__subscription_history_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__subscription_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 5, "name": "activated_at", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 7, "name": "expires_at", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "plan_id": {"type": "text", "index": 9, "name": "plan_id", "comment": null}, "object": {"type": "text", "index": 10, "name": "object", "comment": null}, "uuid": {"type": "text", "index": 11, "name": "uuid", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 13, "name": "current_period_started_at", "comment": null}, "current_period_ends_at": {"type": "timestamp without time zone", "index": 14, "name": "current_period_ends_at", "comment": null}, "current_term_started_at": {"type": "timestamp without time zone", "index": 15, "name": "current_term_started_at", "comment": null}, "current_term_ends_at": {"type": "timestamp without time zone", "index": 16, "name": "current_term_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 17, "name": "trial_started_at", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 18, "name": "trial_ends_at", "comment": null}, "remaining_billing_cycles": {"type": "integer", "index": 19, "name": "remaining_billing_cycles", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 20, "name": "total_billing_cycles", "comment": null}, "renewal_billing_cycles": {"type": "integer", "index": 21, "name": "renewal_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 22, "name": "auto_renew", "comment": null}, "paused_at": {"type": "timestamp without time zone", "index": 23, "name": "paused_at", "comment": null}, "remaining_pause_cycles": {"type": "integer", "index": 24, "name": "remaining_pause_cycles", "comment": null}, "currency": {"type": "text", "index": 25, "name": "currency", "comment": null}, "unit_amount": {"type": "double precision", "index": 26, "name": "unit_amount", "comment": null}, "quantity": {"type": "integer", "index": 27, "name": "quantity", "comment": null}, "add_ons_total": {"type": "double precision", "index": 28, "name": "add_ons_total", "comment": null}, "subtotal": {"type": "double precision", "index": 29, "name": "subtotal", "comment": null}, "collection_method": {"type": "text", "index": 30, "name": "collection_method", "comment": null}, "expiration_reason": {"type": "text", "index": 31, "name": "expiration_reason", "comment": null}, "started_with_gift": {"type": "boolean", "index": 32, "name": "started_with_gift", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__subscription_history_tmp"}, "model.recurly_source.stg_recurly__transaction": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__transaction", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "billing_city": {"type": "text", "index": 5, "name": "billing_city", "comment": null}, "billing_country": {"type": "text", "index": 6, "name": "billing_country", "comment": null}, "billing_first_name": {"type": "text", "index": 7, "name": "billing_first_name", "comment": null}, "billing_last_name": {"type": "text", "index": 8, "name": "billing_last_name", "comment": null}, "billing_phone": {"type": "text", "index": 9, "name": "billing_phone", "comment": null}, "billing_postal_code": {"type": "text", "index": 10, "name": "billing_postal_code", "comment": null}, "billing_region": {"type": "text", "index": 11, "name": "billing_region", "comment": null}, "billing_street_1": {"type": "text", "index": 12, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 13, "name": "billing_street_2", "comment": null}, "collected_at": {"type": "timestamp without time zone", "index": 14, "name": "collected_at", "comment": null}, "collection_method": {"type": "text", "index": 15, "name": "collection_method", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "customer_message": {"type": "text", "index": 17, "name": "customer_message", "comment": null}, "customer_message_locale": {"type": "text", "index": 18, "name": "customer_message_locale", "comment": null}, "gateway_approval_code": {"type": "integer", "index": 19, "name": "gateway_approval_code", "comment": null}, "gateway_message": {"type": "text", "index": 20, "name": "gateway_message", "comment": null}, "gateway_reference": {"type": "integer", "index": 21, "name": "gateway_reference", "comment": null}, "gateway_response_code": {"type": "integer", "index": 22, "name": "gateway_response_code", "comment": null}, "gateway_response_time": {"type": "double precision", "index": 23, "name": "gateway_response_time", "comment": null}, "gateway_response_values": {"type": "text", "index": 24, "name": "gateway_response_values", "comment": null}, "invoice_id": {"type": "text", "index": 25, "name": "invoice_id", "comment": null}, "is_refunded": {"type": "boolean", "index": 26, "name": "is_refunded", "comment": null}, "is_successful": {"type": "boolean", "index": 27, "name": "is_successful", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 28, "name": "is_most_recent_record", "comment": null}, "origin": {"type": "text", "index": 29, "name": "origin", "comment": null}, "original_transaction_id": {"type": "integer", "index": 30, "name": "original_transaction_id", "comment": null}, "payment_gateway_id": {"type": "integer", "index": 31, "name": "payment_gateway_id", "comment": null}, "payment_gateway_name": {"type": "text", "index": 32, "name": "payment_gateway_name", "comment": null}, "payment_gateway_type": {"type": "text", "index": 33, "name": "payment_gateway_type", "comment": null}, "payment_method_object": {"type": "text", "index": 34, "name": "payment_method_object", "comment": null}, "status": {"type": "text", "index": 35, "name": "status", "comment": null}, "status_code": {"type": "text", "index": 36, "name": "status_code", "comment": null}, "status_message": {"type": "text", "index": 37, "name": "status_message", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "uuid": {"type": "text", "index": 39, "name": "uuid", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 40, "name": "voided_at", "comment": null}, "voided_by_invoice_id": {"type": "text", "index": 41, "name": "voided_by_invoice_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__transaction"}, "model.recurly_source.stg_recurly__transaction_subscription": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__transaction_subscription", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "subscription_id": {"type": "text", "index": 2, "name": "subscription_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__transaction_subscription"}, "model.recurly_source.stg_recurly__transaction_subscription_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__transaction_subscription_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__transaction_subscription_tmp"}, "model.recurly_source.stg_recurly__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "recurly_integrations_tests_recurly_source", "name": "stg_recurly__transaction_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 4, "name": "voided_at", "comment": null}, "collected_at": {"type": "timestamp without time zone", "index": 5, "name": "collected_at", "comment": null}, "original_transaction_id": {"type": "integer", "index": 6, "name": "original_transaction_id", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "voided_by_invoice_id": {"type": "text", "index": 9, "name": "voided_by_invoice_id", "comment": null}, "uuid": {"type": "text", "index": 10, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 11, "name": "type", "comment": null}, "origin": {"type": "text", "index": 12, "name": "origin", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "success": {"type": "boolean", "index": 16, "name": "success", "comment": null}, "refunded": {"type": "boolean", "index": 17, "name": "refunded", "comment": null}, "billing_first_name": {"type": "text", "index": 18, "name": "billing_first_name", "comment": null}, "billing_last_name": {"type": "text", "index": 19, "name": "billing_last_name", "comment": null}, "billing_phone": {"type": "text", "index": 20, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 21, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 22, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 23, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 24, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 25, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 26, "name": "billing_country", "comment": null}, "collection_method": {"type": "text", "index": 27, "name": "collection_method", "comment": null}, "payment_method_object": {"type": "text", "index": 28, "name": "payment_method_object", "comment": null}, "status_code": {"type": "text", "index": 29, "name": "status_code", "comment": null}, "status_message": {"type": "text", "index": 30, "name": "status_message", "comment": null}, "customer_message": {"type": "text", "index": 31, "name": "customer_message", "comment": null}, "customer_message_locale": {"type": "text", "index": 32, "name": "customer_message_locale", "comment": null}, "gateway_message": {"type": "text", "index": 33, "name": "gateway_message", "comment": null}, "gateway_reference": {"type": "integer", "index": 34, "name": "gateway_reference", "comment": null}, "gateway_approval_code": {"type": "integer", "index": 35, "name": "gateway_approval_code", "comment": null}, "gateway_response_code": {"type": "integer", "index": 36, "name": "gateway_response_code", "comment": null}, "gateway_response_time": {"type": "double precision", "index": 37, "name": "gateway_response_time", "comment": null}, "payment_gateway_id": {"type": "integer", "index": 38, "name": "payment_gateway_id", "comment": null}, "payment_gateway_name": {"type": "text", "index": 39, "name": "payment_gateway_name", "comment": null}, "gateway_response_values": {"type": "text", "index": 40, "name": "gateway_response_values", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.recurly_source.stg_recurly__transaction_tmp"}}, "sources": {"source.recurly_source.recurly.account_balance_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "account_balance_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "past_due": {"type": "boolean", "index": 6, "name": "past_due", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.account_balance_history"}, "source.recurly_source.recurly.account_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "bill_to": {"type": "text", "index": 7, "name": "bill_to", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "username": {"type": "text", "index": 9, "name": "username", "comment": null}, "account_first_name": {"type": "integer", "index": 10, "name": "account_first_name", "comment": null}, "account_last_name": {"type": "integer", "index": 11, "name": "account_last_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "cc_emails": {"type": "text", "index": 13, "name": "cc_emails", "comment": null}, "company": {"type": "text", "index": 14, "name": "company", "comment": null}, "vat_number": {"type": "text", "index": 15, "name": "vat_number", "comment": null}, "tax_exempt": {"type": "boolean", "index": 16, "name": "tax_exempt", "comment": null}, "account_country": {"type": "text", "index": 17, "name": "account_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.account_history"}, "source.recurly_source.recurly.account_note_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "account_note_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_updated_at": {"type": "timestamp without time zone", "index": 2, "name": "account_updated_at", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "object": {"type": "text", "index": 7, "name": "object", "comment": null}, "user_email": {"type": "text", "index": 8, "name": "user_email", "comment": null}, "user_id": {"type": "text", "index": 9, "name": "user_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.account_note_history"}, "source.recurly_source.recurly.billing_info_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "billing_info_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "first_name": {"type": "text", "index": 5, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 6, "name": "last_name", "comment": null}, "billing_phone": {"type": "text", "index": 7, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 8, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 9, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 10, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 11, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 12, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 13, "name": "billing_country", "comment": null}, "vat_number": {"type": "text", "index": 14, "name": "vat_number", "comment": null}, "valid": {"type": "boolean", "index": 15, "name": "valid", "comment": null}, "payment_method_object": {"type": "text", "index": 16, "name": "payment_method_object", "comment": null}, "payment_method_credit_type": {"type": "text", "index": 17, "name": "payment_method_credit_type", "comment": null}, "payment_method_first_six": {"type": "text", "index": 18, "name": "payment_method_first_six", "comment": null}, "payment_method_last_four": {"type": "text", "index": 19, "name": "payment_method_last_four", "comment": null}, "payment_method_exp_month": {"type": "text", "index": 20, "name": "payment_method_exp_month", "comment": null}, "payment_method_exp_year": {"type": "text", "index": 21, "name": "payment_method_exp_year", "comment": null}, "fraud_score": {"type": "integer", "index": 22, "name": "fraud_score", "comment": null}, "fraud_decision": {"type": "integer", "index": 23, "name": "fraud_decision", "comment": null}, "fraud_risk_rules_triggered": {"type": "integer", "index": 24, "name": "fraud_risk_rules_triggered", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 25, "name": "created_at", "comment": null}, "updated_by_ip": {"type": "integer", "index": 26, "name": "updated_by_ip", "comment": null}, "updated_by_country": {"type": "integer", "index": 27, "name": "updated_by_country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.billing_info_history"}, "source.recurly_source.recurly.coupon_discount": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "coupon_discount_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_id": {"type": "text", "index": 1, "name": "coupon_id", "comment": null}, "fivetran_id": {"type": "text", "index": 2, "name": "fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "percentage": {"type": "integer", "index": 6, "name": "percentage", "comment": null}, "trial_length": {"type": "integer", "index": 7, "name": "trial_length", "comment": null}, "trial_unit": {"type": "integer", "index": 8, "name": "trial_unit", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.coupon_discount"}, "source.recurly_source.recurly.coupon_redemption_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "coupon_redemption_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "coupon_id": {"type": "text", "index": 5, "name": "coupon_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "discounted": {"type": "double precision", "index": 8, "name": "discounted", "comment": null}, "removed_at": {"type": "timestamp without time zone", "index": 9, "name": "removed_at", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.coupon_redemption_history"}, "source.recurly_source.recurly.credit_payment_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "credit_payment_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "account_id": {"type": "character varying", "index": 4, "name": "account_id", "comment": null}, "applied_to_invoice_id": {"type": "character varying", "index": 5, "name": "applied_to_invoice_id", "comment": null}, "original_invoice_id": {"type": "character varying", "index": 6, "name": "original_invoice_id", "comment": null}, "refund_transaction_id": {"type": "character varying", "index": 7, "name": "refund_transaction_id", "comment": null}, "original_credit_payment_id": {"type": "character varying", "index": 8, "name": "original_credit_payment_id", "comment": null}, "uuid": {"type": "character varying", "index": 9, "name": "uuid", "comment": null}, "action": {"type": "text", "index": 10, "name": "action", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 12, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 13, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 14, "name": "voided_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.credit_payment_history"}, "source.recurly_source.recurly.invoice_coupon_redemption_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "invoice_coupon_redemption_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"coupon_redemption_id": {"type": "text", "index": 1, "name": "coupon_redemption_id", "comment": null}, "invoice_id": {"type": "text", "index": 2, "name": "invoice_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.invoice_coupon_redemption_history"}, "source.recurly_source.recurly.invoice_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "invoice_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "due_at": {"type": "timestamp without time zone", "index": 5, "name": "due_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 6, "name": "closed_at", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "previous_invoice_id": {"type": "integer", "index": 8, "name": "previous_invoice_id", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "origin": {"type": "text", "index": 10, "name": "origin", "comment": null}, "state": {"type": "text", "index": 11, "name": "state", "comment": null}, "number": {"type": "integer", "index": 12, "name": "number", "comment": null}, "collection_method": {"type": "text", "index": 13, "name": "collection_method", "comment": null}, "po_number": {"type": "integer", "index": 14, "name": "po_number", "comment": null}, "net_terms": {"type": "integer", "index": 15, "name": "net_terms", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "balance": {"type": "double precision", "index": 17, "name": "balance", "comment": null}, "paid": {"type": "double precision", "index": 18, "name": "paid", "comment": null}, "total": {"type": "double precision", "index": 19, "name": "total", "comment": null}, "subtotal": {"type": "double precision", "index": 20, "name": "subtotal", "comment": null}, "refundable_amount": {"type": "double precision", "index": 21, "name": "refundable_amount", "comment": null}, "discount": {"type": "double precision", "index": 22, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 23, "name": "tax", "comment": null}, "tax_type": {"type": "integer", "index": 24, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 25, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 26, "name": "tax_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.invoice_history"}, "source.recurly_source.recurly.invoice_subscription_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "invoice_subscription_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "subscription_id": {"type": "text", "index": 2, "name": "subscription_id", "comment": null}, "invoice_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "invoice_updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.invoice_subscription_history"}, "source.recurly_source.recurly.line_item_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "line_item_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "account_id": {"type": "text", "index": 5, "name": "account_id", "comment": null}, "plan_id": {"type": "integer", "index": 6, "name": "plan_id", "comment": null}, "add_on_id": {"type": "integer", "index": 7, "name": "add_on_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "previous_line_item_id": {"type": "integer", "index": 9, "name": "previous_line_item_id", "comment": null}, "original_line_item_invoice_id": {"type": "integer", "index": 10, "name": "original_line_item_invoice_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 11, "name": "subscription_id", "comment": null}, "uuid": {"type": "text", "index": 12, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 13, "name": "type", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "plan_code": {"type": "integer", "index": 15, "name": "plan_code", "comment": null}, "add_on_code": {"type": "integer", "index": 16, "name": "add_on_code", "comment": null}, "invoice_number": {"type": "integer", "index": 17, "name": "invoice_number", "comment": null}, "origin": {"type": "text", "index": 18, "name": "origin", "comment": null}, "product_code": {"type": "integer", "index": 19, "name": "product_code", "comment": null}, "currency": {"type": "text", "index": 20, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 21, "name": "amount", "comment": null}, "description": {"type": "text", "index": 22, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 23, "name": "quantity", "comment": null}, "unit_amount": {"type": "double precision", "index": 24, "name": "unit_amount", "comment": null}, "subtotal": {"type": "double precision", "index": 25, "name": "subtotal", "comment": null}, "discount": {"type": "double precision", "index": 26, "name": "discount", "comment": null}, "tax": {"type": "double precision", "index": 27, "name": "tax", "comment": null}, "taxable": {"type": "boolean", "index": 28, "name": "taxable", "comment": null}, "tax_exempt": {"type": "boolean", "index": 29, "name": "tax_exempt", "comment": null}, "tax_code": {"type": "integer", "index": 30, "name": "tax_code", "comment": null}, "tax_type": {"type": "integer", "index": 31, "name": "tax_type", "comment": null}, "tax_region": {"type": "integer", "index": 32, "name": "tax_region", "comment": null}, "tax_rate": {"type": "integer", "index": 33, "name": "tax_rate", "comment": null}, "proration_rate": {"type": "integer", "index": 34, "name": "proration_rate", "comment": null}, "refund": {"type": "boolean", "index": 35, "name": "refund", "comment": null}, "refunded_quantity": {"type": "integer", "index": 36, "name": "refunded_quantity", "comment": null}, "credit_applied": {"type": "double precision", "index": 37, "name": "credit_applied", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 39, "name": "end_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.line_item_history"}, "source.recurly_source.recurly.plan_currency_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "plan_currency_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "plan_id": {"type": "text", "index": 2, "name": "plan_id", "comment": null}, "plan_updated_at": {"type": "timestamp without time zone", "index": 3, "name": "plan_updated_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "setup_fees": {"type": "double precision", "index": 5, "name": "setup_fees", "comment": null}, "unit_amount": {"type": "double precision", "index": 6, "name": "unit_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.plan_currency_history"}, "source.recurly_source.recurly.plan_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "plan_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 5, "name": "deleted_at", "comment": null}, "code": {"type": "text", "index": 6, "name": "code", "comment": null}, "state": {"type": "text", "index": 7, "name": "state", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "description": {"type": "integer", "index": 9, "name": "description", "comment": null}, "interval_unit": {"type": "text", "index": 10, "name": "interval_unit", "comment": null}, "interval_length": {"type": "integer", "index": 11, "name": "interval_length", "comment": null}, "trial_unit": {"type": "text", "index": 12, "name": "trial_unit", "comment": null}, "trial_length": {"type": "integer", "index": 13, "name": "trial_length", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 14, "name": "total_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 15, "name": "auto_renew", "comment": null}, "accounting_code": {"type": "text", "index": 16, "name": "accounting_code", "comment": null}, "setup_fee_accounting_code": {"type": "text", "index": 17, "name": "setup_fee_accounting_code", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "tax_exempt": {"type": "boolean", "index": 19, "name": "tax_exempt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.plan_history"}, "source.recurly_source.recurly.subscription_add_on_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "subscription_add_on_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "expired_at": {"type": "timestamp without time zone", "index": 3, "name": "expired_at", "comment": null}, "id": {"type": "text", "index": 4, "name": "id", "comment": null}, "object": {"type": "text", "index": 5, "name": "object", "comment": null}, "plan_add_on_id": {"type": "text", "index": 6, "name": "plan_add_on_id", "comment": null}, "quantity": {"type": "integer", "index": 7, "name": "quantity", "comment": null}, "subscription_id": {"type": "text", "index": 8, "name": "subscription_id", "comment": null}, "unit_amount": {"type": "double precision", "index": 9, "name": "unit_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.subscription_add_on_history"}, "source.recurly_source.recurly.subscription_change_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "subscription_change_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "plan_id": {"type": "character varying", "index": 4, "name": "plan_id", "comment": null}, "subscription_id": {"type": "character varying", "index": 5, "name": "subscription_id", "comment": null}, "object": {"type": "character varying", "index": 6, "name": "object", "comment": null}, "unit_amount": {"type": "double precision", "index": 7, "name": "unit_amount", "comment": null}, "quantity": {"type": "bigint", "index": 8, "name": "quantity", "comment": null}, "activate_at": {"type": "timestamp without time zone", "index": 9, "name": "activate_at", "comment": null}, "activated": {"type": "boolean", "index": 10, "name": "activated", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "deleted_at": {"type": "timestamp without time zone", "index": 12, "name": "deleted_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.subscription_change_history"}, "source.recurly_source.recurly.subscription_history": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "subscription_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "character varying", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "activated_at": {"type": "timestamp without time zone", "index": 5, "name": "activated_at", "comment": null}, "canceled_at": {"type": "timestamp without time zone", "index": 6, "name": "canceled_at", "comment": null}, "expires_at": {"type": "timestamp without time zone", "index": 7, "name": "expires_at", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "plan_id": {"type": "text", "index": 9, "name": "plan_id", "comment": null}, "object": {"type": "text", "index": 10, "name": "object", "comment": null}, "uuid": {"type": "text", "index": 11, "name": "uuid", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "current_period_started_at": {"type": "timestamp without time zone", "index": 13, "name": "current_period_started_at", "comment": null}, "current_period_ends_at": {"type": "timestamp without time zone", "index": 14, "name": "current_period_ends_at", "comment": null}, "current_term_started_at": {"type": "timestamp without time zone", "index": 15, "name": "current_term_started_at", "comment": null}, "current_term_ends_at": {"type": "timestamp without time zone", "index": 16, "name": "current_term_ends_at", "comment": null}, "trial_started_at": {"type": "timestamp without time zone", "index": 17, "name": "trial_started_at", "comment": null}, "trial_ends_at": {"type": "timestamp without time zone", "index": 18, "name": "trial_ends_at", "comment": null}, "remaining_billing_cycles": {"type": "integer", "index": 19, "name": "remaining_billing_cycles", "comment": null}, "total_billing_cycles": {"type": "integer", "index": 20, "name": "total_billing_cycles", "comment": null}, "renewal_billing_cycles": {"type": "integer", "index": 21, "name": "renewal_billing_cycles", "comment": null}, "auto_renew": {"type": "boolean", "index": 22, "name": "auto_renew", "comment": null}, "paused_at": {"type": "timestamp without time zone", "index": 23, "name": "paused_at", "comment": null}, "remaining_pause_cycles": {"type": "integer", "index": 24, "name": "remaining_pause_cycles", "comment": null}, "currency": {"type": "text", "index": 25, "name": "currency", "comment": null}, "unit_amount": {"type": "double precision", "index": 26, "name": "unit_amount", "comment": null}, "quantity": {"type": "integer", "index": 27, "name": "quantity", "comment": null}, "add_ons_total": {"type": "double precision", "index": 28, "name": "add_ons_total", "comment": null}, "subtotal": {"type": "double precision", "index": 29, "name": "subtotal", "comment": null}, "collection_method": {"type": "text", "index": 30, "name": "collection_method", "comment": null}, "expiration_reason": {"type": "text", "index": 31, "name": "expiration_reason", "comment": null}, "started_with_gift": {"type": "boolean", "index": 32, "name": "started_with_gift", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.subscription_history"}, "source.recurly_source.recurly.transaction": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 2, "name": "id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "voided_at": {"type": "timestamp without time zone", "index": 4, "name": "voided_at", "comment": null}, "collected_at": {"type": "timestamp without time zone", "index": 5, "name": "collected_at", "comment": null}, "original_transaction_id": {"type": "integer", "index": 6, "name": "original_transaction_id", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "invoice_id": {"type": "text", "index": 8, "name": "invoice_id", "comment": null}, "voided_by_invoice_id": {"type": "text", "index": 9, "name": "voided_by_invoice_id", "comment": null}, "uuid": {"type": "text", "index": 10, "name": "uuid", "comment": null}, "type": {"type": "text", "index": 11, "name": "type", "comment": null}, "origin": {"type": "text", "index": 12, "name": "origin", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "success": {"type": "boolean", "index": 16, "name": "success", "comment": null}, "refunded": {"type": "boolean", "index": 17, "name": "refunded", "comment": null}, "billing_first_name": {"type": "text", "index": 18, "name": "billing_first_name", "comment": null}, "billing_last_name": {"type": "text", "index": 19, "name": "billing_last_name", "comment": null}, "billing_phone": {"type": "text", "index": 20, "name": "billing_phone", "comment": null}, "billing_street_1": {"type": "text", "index": 21, "name": "billing_street_1", "comment": null}, "billing_street_2": {"type": "text", "index": 22, "name": "billing_street_2", "comment": null}, "billing_city": {"type": "text", "index": 23, "name": "billing_city", "comment": null}, "billing_region": {"type": "text", "index": 24, "name": "billing_region", "comment": null}, "billing_postal_code": {"type": "text", "index": 25, "name": "billing_postal_code", "comment": null}, "billing_country": {"type": "text", "index": 26, "name": "billing_country", "comment": null}, "collection_method": {"type": "text", "index": 27, "name": "collection_method", "comment": null}, "payment_method_object": {"type": "text", "index": 28, "name": "payment_method_object", "comment": null}, "status_code": {"type": "text", "index": 29, "name": "status_code", "comment": null}, "status_message": {"type": "text", "index": 30, "name": "status_message", "comment": null}, "customer_message": {"type": "text", "index": 31, "name": "customer_message", "comment": null}, "customer_message_locale": {"type": "text", "index": 32, "name": "customer_message_locale", "comment": null}, "gateway_message": {"type": "text", "index": 33, "name": "gateway_message", "comment": null}, "gateway_reference": {"type": "integer", "index": 34, "name": "gateway_reference", "comment": null}, "gateway_approval_code": {"type": "integer", "index": 35, "name": "gateway_approval_code", "comment": null}, "gateway_response_code": {"type": "integer", "index": 36, "name": "gateway_response_code", "comment": null}, "gateway_response_time": {"type": "double precision", "index": 37, "name": "gateway_response_time", "comment": null}, "payment_gateway_id": {"type": "integer", "index": 38, "name": "payment_gateway_id", "comment": null}, "payment_gateway_name": {"type": "text", "index": 39, "name": "payment_gateway_name", "comment": null}, "gateway_response_values": {"type": "text", "index": 40, "name": "gateway_response_values", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.transaction"}, "source.recurly_source.recurly.transaction_subscription": {"metadata": {"type": "BASE TABLE", "schema": "recurly_integrations_tests", "name": "transaction_subscription_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subscription_id": {"type": "text", "index": 1, "name": "subscription_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.recurly_source.recurly.transaction_subscription"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 182b6b4..c580ce9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,30 +1,4 @@ - - -
- - - -Source | \nTable | \nDescription | \nLink | \nMore? | \n
---|---|---|---|---|
\n \n {{ source.source_name }}\n \n | \n \n {{ source.name }}\n | \n \n\n View docs\n | \n\n \n \n \n \n \n \n \n \n | \n|
\n \n \n \n \n Description\n \n | \n