diff --git a/models/intermediate/kpis/schema.yml b/models/intermediate/kpis/schema.yml index 403f5a4..b0cb70d 100644 --- a/models/intermediate/kpis/schema.yml +++ b/models/intermediate/kpis/schema.yml @@ -310,8 +310,8 @@ models: deal regarding its activity. This information is encapsulated in the following columns: deal_lifecycle_state: contains one of the following states - - 01-New: Deals that have been created in the current month, that are not offboarded. - - 02-Never Booked: Deals that have been created before the current month, without bookings, that are not offboarded. + - 01-New: Deals that have been created in the current month according to HubSpot, that are not offboarded. + - 02-Never Booked: Deals that have been created before the current month, or in the current month but are not in HubSpot, without bookings, that are not offboarded. - 04-Active: Deals that have booking activity in the past 12 months (not reactivated), that are not offboarded. - 05-Churning: Either Deals that are offboarded in that month or Deals that are becoming inactive because of lack of bookings in the past 12 months - 06-Inactive: Either Deals that have been previously offboarded or Deals that have not had a booking for more than 12 months. @@ -488,12 +488,16 @@ models: Effective start date of the deal, this corresponds to the date a deal has gone live according to Hubspot. It can be Null if the deal doesn't appear in HubSpot. + data_tests: + - not_null - name: effective_deal_start_month data_type: date description: | This field represents the first day of the month of the effective deal start date. This is obtained by truncating the effective deal start date to the month. + data_tests: + - not_null - name: hubspot_deal_cancellation_date_utc data_type: date description: |