with int_xero__contacts as (select * from {{ ref("int_xero__contacts") }})
select
    id_contact as id_contact,
    account_number as account_number,
    id_deal as id_deal,
    contact_name as contact_name,
    is_customer as is_customer,
    is_supplier as is_supplier,
    tax_number as tax_number,
    contact_first_name as contact_first_name,
    contact_last_name as contact_last_name,
    phones as phones,
    website as website,
    balances as balances,
    discount as discount,
    addresses as addresses,
    attachments as attachments,
    email_addresses as email_addresses,
    payment_terms as payment_terms,
    batch_payments as batch_payments,
    branding_theme as branding_theme,
    contact_groups as contact_groups,
    contact_number as contact_number,
    contact_status as contact_status,
    skyper_user_name as skyper_user_name,
    contact_persons as contact_persons,
    has_attachments as has_attachments,
    updated_at_utc as updated_at_utc,
    updated_date_utc as updated_date_utc,
    xero_network_key as xero_network_key,
    default_currency_iso_4217 as default_currency_iso_4217,
    validation_errors as validation_errors,
    bank_account_details as bank_account_details,
    has_validation_errors as has_validation_errors,
    tracking_category_name as tracking_category_name,
    account_payable_tax_type as account_payable_tax_type,
    tracking_category_option as tracking_category_option,
    sales_default_account_code as sales_default_account_code,
    sales_tracking_categories as sales_tracking_categories,
    account_receivable_tax_type as account_receivable_tax_type,
    purchases_default_account_code as purchases_default_account_code,
    purchases_tracking_categories as purchases_tracking_categories,
    dwh_extracted_at_utc as dwh_extracted_at_utc
from int_xero__contacts
