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.

fix tb stuff

Steven Tey20125a51c418
diff --git a/packages/tinybird/datasources/dub_lead_events.datasource b/packages/tinybird/datasources/dub_lead_events.datasource
index 97ec93bf67..c5e6d91222 100644
--- a/packages/tinybird/datasources/dub_lead_events.datasource
+++ b/packages/tinybird/datasources/dub_lead_events.datasource
@@ -25,7 +25,9 @@ SCHEMA >
`ua` String `json:$.ua`,
`bot` UInt8 `json:$.bot`,
`referer` String `json:$.referer`,
- `referer_url` String `json:$.referer_url`
+ `referer_url` String `json:$.referer_url`,
+ `ip` String `json:$.ip`,
+ `qr` UInt8 `json:$.qr`
ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toYYYYMM(timestamp)"
diff --git a/packages/tinybird/datasources/dub_lead_events_mv.datasource b/packages/tinybird/datasources/dub_lead_events_mv.datasource
index 82cd40bbd7..7196fd1235 100644
--- a/packages/tinybird/datasources/dub_lead_events_mv.datasource
+++ b/packages/tinybird/datasources/dub_lead_events_mv.datasource
@@ -12,7 +12,9 @@ SCHEMA >
`device` LowCardinality(String),
`browser` LowCardinality(String),
`os` LowCardinality(String),
- `referer` String
+ `referer` String,
+ `qr` UInt8,
+ `ip` String
ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toYYYYMM(timestamp)"
diff --git a/packages/tinybird/datasources/dub_sale_events.datasource b/packages/tinybird/datasources/dub_sale_events.datasource
index 9da7cc56e8..f83ae638d6 100644
--- a/packages/tinybird/datasources/dub_sale_events.datasource
+++ b/packages/tinybird/datasources/dub_sale_events.datasource
@@ -28,7 +28,9 @@ SCHEMA >
`ua` String `json:$.ua`,
`bot` UInt8 `json:$.bot`,
`referer` String `json:$.referer`,
- `referer_url` String `json:$.referer_url`
+ `referer_url` String `json:$.referer_url`,
+ `ip` String `json:$.ip`,
+ `qr` UInt8 `json:$.qr`
ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toYYYYMM(timestamp)"
diff --git a/packages/tinybird/datasources/dub_sale_events_mv.datasource b/packages/tinybird/datasources/dub_sale_events_mv.datasource
index fa8d4f8951..7f20855046 100644
--- a/packages/tinybird/datasources/dub_sale_events_mv.datasource
+++ b/packages/tinybird/datasources/dub_sale_events_mv.datasource
@@ -12,7 +12,9 @@ SCHEMA >
`device` LowCardinality(String),
`browser` LowCardinality(String),
`os` LowCardinality(String),
- `referer` String
+ `referer` String,
+ `qr` UInt8,
+ `ip` String
ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toYYYYMM(timestamp)"
diff --git a/packages/tinybird/pipes/dub_lead_events_pipe.pipe b/packages/tinybird/pipes/dub_lead_events_pipe.pipe
index 8ca619eaa0..00996cf19a 100644
--- a/packages/tinybird/pipes/dub_lead_events_pipe.pipe
+++ b/packages/tinybird/pipes/dub_lead_events_pipe.pipe
@@ -16,6 +16,8 @@ SQL >
browser,
os,
referer,
+ qr,
+ ip
FROM dub_lead_events
TYPE materialized
diff --git a/packages/tinybird/pipes/dub_sale_events_pipe.pipe b/packages/tinybird/pipes/dub_sale_events_pipe.pipe
index 2cd8a022b0..69c409e5ce 100644
--- a/packages/tinybird/pipes/dub_sale_events_pipe.pipe
+++ b/packages/tinybird/pipes/dub_sale_events_pipe.pipe
@@ -16,6 +16,8 @@ SQL >
browser,
os,
referer,
+ qr,
+ ip
FROM dub_sale_events
TYPE materialized