From 88e86ea9ed66cb8942b4edb80e2013f0ad2c805c Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Tue, 28 Jan 2025 12:41:03 +0100 Subject: [PATCH] Added schema --- models/intermediate/cross/schema.yml | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/models/intermediate/cross/schema.yml b/models/intermediate/cross/schema.yml index a19a116..71cac76 100644 --- a/models/intermediate/cross/schema.yml +++ b/models/intermediate/cross/schema.yml @@ -1779,3 +1779,54 @@ models: "Expected MRR for each new deal." data_tests: - not_null + + - name: int_mtd_agg_onboarding_mrr_metrics + description: | + This model contains the month-to-date aggregated metrics for the onboarding MRR. + It includes the expected MRR per deal and the total expected MRR, which is obtained + by summing the expected MRRs for all new deals. + + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - date + - dimension + - dimension_value + + columns: + - name: date + data_type: date + description: The date for the month-to-date metrics. + data_tests: + - not_null + + - name: dimension + data_type: string + description: The dimension or granularity of the metrics. + data_tests: + - accepted_values: + values: + - global + - by_number_of_listings + - by_billing_country + + - name: dimension_value + data_type: string + description: The value or segment available for the selected dimension. + data_tests: + - not_null + + - name: number_of_new_deals + data_type: numeric + description: Number of new deals in the month. + + - name: expected_mrr_per_deal + data_type: numeric + description: Expected Onboarding MRR per new deal. + + - name: expected_mrr + data_type: numeric + description: | + Total expected Onboarding MRR. + This is calculated by multiplying the expected MRR per deal by the number of new deals. + For the "global" dimension, it is the sum of all expected MRRs across segments.