# Description Very minimal, first version of Hubspot deals. I intentionally didn't include here sales related information or additional attributes since I don't need them for Churn related topics. This can be done in future PRs. This Deal version includes the name of the Hubspot pipeline and the Stage. It also excludes deals assigned to Guardhog pipeline (~3k) based on my discussion with Alex. # Checklist - [X] The edited models and dependants run properly with production data. - [X] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [X] I have checked for DRY opportunities with other models and docs. - [X] I've picked the right materialization for the affected models. **Left as a view since there's not that many records, can be changed in the future if needed** # Other - [ ] Check if a full-refresh is required after this PR is merged. Related work items: #22689
83 lines
2.6 KiB
YAML
83 lines
2.6 KiB
YAML
version: 2
|
|
|
|
models:
|
|
- name: int_hubspot__deal
|
|
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.
|
|
|
|
Note that deals that follow the Guardhog pipeline are excluded from this
|
|
table.
|
|
|
|
columns:
|
|
- name: id_deal
|
|
data_type: character varying
|
|
description: Unique ID for this deal.
|
|
tests:
|
|
- unique
|
|
- not_null
|
|
|
|
- name: deal_name
|
|
data_type: text
|
|
description: Name of the deal.
|
|
|
|
- name: contract_signed_date_utc
|
|
data_type: date
|
|
description: Date in which the contract was signed
|
|
|
|
- name: onboarding_date_utc
|
|
data_type: date
|
|
description: Date in which the contract was onboarded
|
|
|
|
- name: live_date_utc
|
|
data_type: date
|
|
description: Date in which the account went live
|
|
|
|
- name: cancellation_date_utc
|
|
data_type: date
|
|
description: Date in which an account that was being used was cancelled
|
|
|
|
- name: account_manager
|
|
data_type: text
|
|
description: |
|
|
The name of the account manager that is currently taking care of this
|
|
deal.
|
|
|
|
- name: deal_pipeline
|
|
data_type: text
|
|
description: |
|
|
The name of the hubspot pipeline for this deal.
|
|
|
|
- name: deal_hubspot_stage
|
|
data_type: text
|
|
description: |
|
|
The name of the hubspot stage this deal is currently in. The different
|
|
stages a deal can be in depend on the hubspot pipeline.
|
|
|
|
- name: cancellation_category
|
|
data_type: text
|
|
description: Categorization as to why they cancelled the account
|
|
|
|
- name: cancellation_details
|
|
data_type: text
|
|
description: Free text with additional comments on why they cancelled the account
|
|
|
|
- name: created_at_utc
|
|
data_type: timestamp with time zone
|
|
description: Timestamp of when the record was created in Hubspot
|
|
|
|
- name: created_date_utc
|
|
data_type: date
|
|
description: Date of when the record was created in Hubspot
|
|
|
|
- name: updated_at_utc
|
|
data_type: timestamp with time zone
|
|
description: Timestamp of when the record was last updated in Hubspot
|
|
|
|
- name: updated_date_utc
|
|
data_type: date
|
|
description: Date of when the record was last updated in Hubspot
|