Skip to content

Commit 867c5c1

Browse files
committed
add simple & custom
1 parent 29c7444 commit 867c5c1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tinybird/datasources/fixtures/resend.datasource

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
SCHEMA >
22
`time` DateTime64(3) `json:$.created_at` DEFAULT now(),
3-
`record` JSON `json:$`
3+
`type` String `json:$.type`,
4+
`data` JSON `json:$.data`
45

56
ENGINE "MergeTree"
67
ENGINE_PARTITION_KEY "toYear(time)"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SCHEMA >
2+
`time` DateTime64(3) `json:$.created_at` DEFAULT now(),
3+
`record` JSON `json:$`
4+
5+
ENGINE "MergeTree"
6+
ENGINE_PARTITION_KEY "toYear(time)"
7+
ENGINE_SORTING_KEY "time"

0 commit comments

Comments
 (0)