Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update schemas

Steven Teyc24da3937041
diff --git a/packages/tinybird/datasources/dub_lead_events.datasource b/packages/tinybird/datasources/dub_lead_events.datasource
index 4c3bd952f8..71a5dc0506 100644
--- a/packages/tinybird/datasources/dub_lead_events.datasource
+++ b/packages/tinybird/datasources/dub_lead_events.datasource
@@ -30,4 +30,4 @@ SCHEMA >
ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toYYYYMM(timestamp)"
-ENGINE_SORTING_KEY "timestamp, link_id, click_id, customer_id"
+ENGINE_SORTING_KEY "timestamp, link_id, customer_id"
diff --git a/packages/tinybird/datasources/dub_sale_events.datasource b/packages/tinybird/datasources/dub_sale_events.datasource
index c702c11772..8ddf50ce1f 100644
--- a/packages/tinybird/datasources/dub_sale_events.datasource
+++ b/packages/tinybird/datasources/dub_sale_events.datasource
@@ -5,6 +5,7 @@ SCHEMA >
`metadata` String `json:$.metadata`,
`customer_id` String `json:$.customer_id`,
`payment_processor` LowCardinality(String) `json:$.payment_processor`,
+ `invoice_id` String `json:$.invoice_id`,
`product_id` String `json:$.product_id`,
`amount` UInt32 `json:$.amount`,
`currency` LowCardinality(String) `json:$.currency`,
@@ -37,4 +38,4 @@ SCHEMA >
ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toYYYYMM(timestamp)"
-ENGINE_SORTING_KEY "timestamp, link_id, click_id, customer_id"
+ENGINE_SORTING_KEY "timestamp, link_id"