partial schema. Not doing more because deals is a monster

This commit is contained in:
Pablo Martin 2024-10-15 15:41:20 +02:00
parent e5b18f2ce7
commit d9a90d7d24

View file

@ -259,3 +259,199 @@ models:
- name: dwh_extracted_at_utc
data_type: timestamp
description: Timestamp of when the record was read from source.
- name: stg_hubspot__deals
description: |
Our deals in Hubspot. A deal is a commercial relationship with a client
company. It's possible for a single company to have multiple deals, but
it's frequent for them to only have one.
Deals are one of the spines of Superhog's data. You will find references
to Deal Ids in both our in-house systems and Xero.
columns:
- name: id_deal
data_type: character varying
description: Unique ID for this deal.
tests:
- unique
- not_null
- name: archived
data_type: boolean
description: Whether the deal is archived.
- name: contacts
data_type: jsonb
description: An array of contact IDs.
- name: companies
data_type: jsonb
description: An array of company IDs.
- name: line_items
data_type: jsonb
description: ""
- name: id_hubspot_account_owner
data_type: text
description: |
The ID of the owner of the Deal. This is typically the Superhog
employee who closed the deal, so most probably one of our sales
colleagues.
You can join this with the Owners table.
- name: account_manager
data_type: text
description: |
The name of the account manager that is currently taking care of this
deal.
- name: contract_signed_date_utc
data_type: text
description: Date in which the contract was signed
- name: live_date_utc
data_type: text
description: Date in which the account went live
- name: cancellation_date_utc
data_type: text
description: Date in which an account that was being used was cancelled
- name: deal_name
data_type: text
description: ""
- name: sales_stage
data_type: text
description: ""
- name: id_deal_stage
data_type: text
description: |
ID of the stage the deal is in. Can be denormalized with our
deal_pipeline_stages table.
- name: deal_source
data_type: text
description: |
General indicator of the source of this deal.
- name: lead_source
data_type: text
description: |
Whether the deal was inbound sourced (they came to us) or outbound
sourced (we reached out proactively to the customer).
- name: amount_of_properties
data_type: integer
description: amount of properties the owner told us they manage
- name: is_demo_scheduled
data_type: text
description: ""
- name: demo_scheduled_date_utc
data_type: text
description: date at which the demo is scheduled for
- name: is_demo_completed
data_type: text
description: ""
- name: demo_details
data_type: text
description: ""
- name: onboarding_date_utc
data_type: text
description: ""
- name: onboarding_stage
data_type: text
description: ""
- name: onboarding_owner
data_type: text
description: ""
- name: onboarding_owner__cloned_
data_type: text
description: ""
- name: is_onboarding_call_completed
data_type: text
description: boolean for completed onboarding
- name: is_onboarding_scheduled
data_type: text
description: ""
- name: cancellation_category
data_type: text
description: categorization as to why they cancelled the account
- name: cancellation_details
data_type: text
description: ""
- name: last_nps_survey_date_utc
data_type: text
description: ""
- name: last_nps_survey_rating
data_type: integer
description: ""
- name: last_nps_survey_comment
data_type: text
description: ""
- name: customer_nps_sentiment
data_type: text
description: ""
- name: last_contacted_at_utc
data_type: text
description: ""
- name: last_contacted_date_utc
data_type: date
description: ""
- name: amount_times_contacted
data_type: integer
description: ""
- name: free_trial_start_date_utc
data_type: text
description: ""
- name: free_trial_end_date_utc
data_type: text
description: ""
- name: properties
data_type: jsonb
description: ""
- name: created_at_utc
data_type: timestamp with time zone
description: ""
- name: created_date_utc
data_type: date
description: ""
- name: updated_at_utc
data_type: timestamp with time zone
description: ""
- name: updated_date_utc
data_type: date
description: ""
- name: dwh_extracted_at_utc
data_type: timestamp with time zone
description: ""