lytx 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/.env.example +37 -0
  2. package/README.md +486 -0
  3. package/alchemy.run.ts +155 -0
  4. package/cli/bootstrap-admin.ts +284 -0
  5. package/cli/deploy-staging.ts +692 -0
  6. package/cli/import-events.ts +628 -0
  7. package/cli/import-sites.ts +518 -0
  8. package/cli/index.ts +609 -0
  9. package/cli/init-db.ts +269 -0
  10. package/cli/migrate-to-durable-objects.ts +564 -0
  11. package/cli/migration-worker.ts +300 -0
  12. package/cli/performance-test.ts +588 -0
  13. package/cli/pg/client.ts +4 -0
  14. package/cli/pg/new-site.ts +153 -0
  15. package/cli/rollback-durable-objects.ts +622 -0
  16. package/cli/seed-data.ts +459 -0
  17. package/cli/setup.js +18 -0
  18. package/cli/setup.ts +463 -0
  19. package/cli/validate-migration.ts +200 -0
  20. package/cli/wrangler-migration.jsonc +28 -0
  21. package/db/adapter.ts +166 -0
  22. package/db/analytics_engine/client.ts +0 -0
  23. package/db/analytics_engine/sites.ts +0 -0
  24. package/db/client.ts +16 -0
  25. package/db/d1/client.ts +8 -0
  26. package/db/d1/drizzle.config.ts +35 -0
  27. package/db/d1/migrations/0000_true_maelstrom.sql +165 -0
  28. package/db/d1/migrations/0001_wonderful_bloodaxe.sql +12 -0
  29. package/db/d1/migrations/0002_late_frightful_four.sql +1 -0
  30. package/db/d1/migrations/0003_cuddly_obadiah_stane.sql +16 -0
  31. package/db/d1/migrations/0004_mute_stardust.sql +1 -0
  32. package/db/d1/migrations/0005_awesome_silvermane.sql +3 -0
  33. package/db/d1/migrations/0006_volatile_shriek.sql +2 -0
  34. package/db/d1/migrations/0007_superb_lila_cheney.sql +1 -0
  35. package/db/d1/migrations/0008_bitter_longshot.sql +17 -0
  36. package/db/d1/migrations/0009_wonderful_madame_masque.sql +28 -0
  37. package/db/d1/migrations/meta/0000_snapshot.json +1112 -0
  38. package/db/d1/migrations/meta/0001_snapshot.json +1187 -0
  39. package/db/d1/migrations/meta/0002_snapshot.json +1194 -0
  40. package/db/d1/migrations/meta/0003_snapshot.json +1296 -0
  41. package/db/d1/migrations/meta/0004_snapshot.json +1303 -0
  42. package/db/d1/migrations/meta/0005_snapshot.json +1325 -0
  43. package/db/d1/migrations/meta/0006_snapshot.json +1339 -0
  44. package/db/d1/migrations/meta/0007_snapshot.json +1347 -0
  45. package/db/d1/migrations/meta/0008_snapshot.json +1464 -0
  46. package/db/d1/migrations/meta/0009_snapshot.json +1648 -0
  47. package/db/d1/migrations/meta/_journal.json +76 -0
  48. package/db/d1/schema.ts +407 -0
  49. package/db/d1/sites.ts +374 -0
  50. package/db/d1/teamAiUsage.ts +101 -0
  51. package/db/d1/teams.ts +127 -0
  52. package/db/durable/drizzle.config.ts +8 -0
  53. package/db/durable/durableObjectClient.ts +480 -0
  54. package/db/durable/events.ts +100 -0
  55. package/db/durable/migrations/0000_fair_bucky.sql +38 -0
  56. package/db/durable/migrations/meta/0000_snapshot.json +278 -0
  57. package/db/durable/migrations/meta/_journal.json +13 -0
  58. package/db/durable/migrations/migrations.js +10 -0
  59. package/db/durable/schema.ts +5 -0
  60. package/db/durable/siteDurableObject.ts +1352 -0
  61. package/db/durable/types.ts +53 -0
  62. package/db/postgres/client.ts +13 -0
  63. package/db/postgres/drizzle.config.ts +12 -0
  64. package/db/postgres/migrations/0000_brainy_sprite.sql +116 -0
  65. package/db/postgres/migrations/meta/0000_snapshot.json +681 -0
  66. package/db/postgres/migrations/meta/_journal.json +13 -0
  67. package/db/postgres/schema.ts +145 -0
  68. package/db/postgres/sites.ts +118 -0
  69. package/db/tranformReports.ts +595 -0
  70. package/db/types.ts +55 -0
  71. package/endpoints/api_worker.tsx +1854 -0
  72. package/endpoints/site_do_worker.ts +11 -0
  73. package/index.d.ts +63 -0
  74. package/index.ts +83 -0
  75. package/lib/auth.ts +279 -0
  76. package/lib/geojson/world_countries.json +45307 -0
  77. package/lib/random_name.ts +41 -0
  78. package/lib/sendMail.ts +252 -0
  79. package/package.json +142 -0
  80. package/public/favicon.ico +0 -0
  81. package/public/images/android-chrome-192x192.png +0 -0
  82. package/public/images/android-chrome-512x512.png +0 -0
  83. package/public/images/apple-touch-icon.png +0 -0
  84. package/public/images/favicon-16x16.png +0 -0
  85. package/public/images/favicon-32x32.png +0 -0
  86. package/public/images/lytx_dark_dashboard.png +0 -0
  87. package/public/images/lytx_light_dashboard.png +0 -0
  88. package/public/images/safari-pinned-tab.svg +4 -0
  89. package/public/logo.png +0 -0
  90. package/public/site.webmanifest +26 -0
  91. package/public/sw.js +107 -0
  92. package/src/Document.tsx +86 -0
  93. package/src/api/ai_api.ts +1156 -0
  94. package/src/api/authMiddleware.ts +45 -0
  95. package/src/api/auth_api.ts +465 -0
  96. package/src/api/event_labels_api.ts +193 -0
  97. package/src/api/events_api.ts +210 -0
  98. package/src/api/queueWorker.ts +303 -0
  99. package/src/api/reports_api.ts +278 -0
  100. package/src/api/seed_api.ts +288 -0
  101. package/src/api/sites_api.ts +904 -0
  102. package/src/api/tag_api.ts +458 -0
  103. package/src/api/tag_api_v2.ts +289 -0
  104. package/src/api/team_api.ts +456 -0
  105. package/src/app/Dashboard.tsx +1339 -0
  106. package/src/app/Events.tsx +974 -0
  107. package/src/app/Explore.tsx +312 -0
  108. package/src/app/Layout.tsx +58 -0
  109. package/src/app/Settings.tsx +1302 -0
  110. package/src/app/components/DashboardCard.tsx +118 -0
  111. package/src/app/components/EditableCell.tsx +123 -0
  112. package/src/app/components/EventForm.tsx +93 -0
  113. package/src/app/components/MarketingFooter.tsx +49 -0
  114. package/src/app/components/MarketingNav.tsx +150 -0
  115. package/src/app/components/Nav.tsx +755 -0
  116. package/src/app/components/NewSiteSetup.tsx +298 -0
  117. package/src/app/components/SQLEditor.tsx +740 -0
  118. package/src/app/components/SiteSelector.tsx +126 -0
  119. package/src/app/components/SiteTag.tsx +42 -0
  120. package/src/app/components/SiteTagInstallCard.tsx +241 -0
  121. package/src/app/components/WorldMapCard.tsx +337 -0
  122. package/src/app/components/charts/ChartComponents.tsx +1481 -0
  123. package/src/app/components/charts/EventFunnel.tsx +45 -0
  124. package/src/app/components/charts/EventSummary.tsx +194 -0
  125. package/src/app/components/charts/SankeyFlows.tsx +72 -0
  126. package/src/app/components/marketing/CheckIcon.tsx +16 -0
  127. package/src/app/components/marketing/MarketingLayout.tsx +23 -0
  128. package/src/app/components/marketing/SectionHeading.tsx +35 -0
  129. package/src/app/components/reports/AskAiWorkspace.tsx +371 -0
  130. package/src/app/components/reports/CreateReportStarter.tsx +74 -0
  131. package/src/app/components/reports/DashboardRouteFiltersContext.tsx +14 -0
  132. package/src/app/components/reports/DashboardToolbar.tsx +154 -0
  133. package/src/app/components/reports/DashboardWorkspaceLayout.tsx +63 -0
  134. package/src/app/components/reports/DashboardWorkspaceShell.tsx +118 -0
  135. package/src/app/components/reports/ReportBuilderWorkspace.tsx +76 -0
  136. package/src/app/components/reports/custom/CustomReportBuilderPage.tsx +1667 -0
  137. package/src/app/components/reports/custom/ReportWidgetChart.tsx +297 -0
  138. package/src/app/components/reports/custom/buildWidgetSql.ts +151 -0
  139. package/src/app/components/reports/custom/chartPalettes.ts +18 -0
  140. package/src/app/components/reports/custom/types.ts +50 -0
  141. package/src/app/components/reports/reportBuilderMenuItems.ts +17 -0
  142. package/src/app/components/reports/useDashboardToolbarControls.tsx +235 -0
  143. package/src/app/components/ui/AlertBanner.tsx +101 -0
  144. package/src/app/components/ui/Button.tsx +55 -0
  145. package/src/app/components/ui/Card.tsx +80 -0
  146. package/src/app/components/ui/Input.tsx +72 -0
  147. package/src/app/components/ui/Link.tsx +23 -0
  148. package/src/app/components/ui/ReportBuilderMenu.tsx +246 -0
  149. package/src/app/components/ui/ThemeToggle.tsx +54 -0
  150. package/src/app/constants.ts +6 -0
  151. package/src/app/headers.ts +33 -0
  152. package/src/app/providers/AuthProvider.tsx +189 -0
  153. package/src/app/providers/ClientProviders.tsx +18 -0
  154. package/src/app/providers/QueryProvider.tsx +23 -0
  155. package/src/app/providers/ThemeProvider.tsx +88 -0
  156. package/src/app/utils/chartThemes.ts +146 -0
  157. package/src/app/utils/keybinds.ts +96 -0
  158. package/src/app/utils/media.tsx +24 -0
  159. package/src/client.tsx +114 -0
  160. package/src/config/createLytxAppConfig.ts +252 -0
  161. package/src/config/resourceNames.ts +88 -0
  162. package/src/db/index.ts +67 -0
  163. package/src/index.css +285 -0
  164. package/src/lib/featureFlags.ts +69 -0
  165. package/src/pages/GetStarted.tsx +290 -0
  166. package/src/pages/Home.tsx +268 -0
  167. package/src/pages/Login.tsx +283 -0
  168. package/src/pages/PrivacyPolicy.tsx +120 -0
  169. package/src/pages/Signup.tsx +267 -0
  170. package/src/pages/TermsOfService.tsx +126 -0
  171. package/src/pages/VerifyEmail.tsx +56 -0
  172. package/src/session/durableObject.ts +7 -0
  173. package/src/session/siteSchema.ts +86 -0
  174. package/src/session/types.ts +36 -0
  175. package/src/templates/README.md +80 -0
  176. package/src/templates/cleanFunctions.js +44 -0
  177. package/src/templates/embedFunctions.js +52 -0
  178. package/src/templates/lytx-shared.ts +662 -0
  179. package/src/templates/lytxpixel-core.ts +144 -0
  180. package/src/templates/lytxpixel.ts +267 -0
  181. package/src/templates/lytxpixelBrowser.js +634 -0
  182. package/src/templates/lytxpixelBrowser.mjs +634 -0
  183. package/src/templates/parseData.js +12 -0
  184. package/src/templates/script.ts +31 -0
  185. package/src/templates/template.tsx +50 -0
  186. package/src/templates/test.js +3 -0
  187. package/src/templates/trackWebEvents.ts +177 -0
  188. package/src/templates/vendors/clickcease.ts +8 -0
  189. package/src/templates/vendors/google.ts +174 -0
  190. package/src/templates/vendors/linkedin.ts +23 -0
  191. package/src/templates/vendors/meta.ts +56 -0
  192. package/src/templates/vendors/quantcast.ts +22 -0
  193. package/src/templates/vendors/simplfi.ts +7 -0
  194. package/src/types/app-context.ts +16 -0
  195. package/src/utilities/dashboardParams.ts +188 -0
  196. package/src/utilities/dashboardQueries.ts +537 -0
  197. package/src/utilities/dashboardTransforms.ts +167 -0
  198. package/src/utilities/dataValidation.ts +414 -0
  199. package/src/utilities/detector.ts +73 -0
  200. package/src/utilities/encrypt.ts +103 -0
  201. package/src/utilities/index.ts +13 -0
  202. package/src/utilities/parser.ts +117 -0
  203. package/src/utilities/performanceMonitoring.ts +570 -0
  204. package/src/utilities/route_interuptors.ts +24 -0
  205. package/src/worker.tsx +675 -0
  206. package/tsconfig.json +78 -0
  207. package/types/env.d.ts +16 -0
  208. package/types/rw.d.ts +7 -0
  209. package/types/shims.d.ts +53 -0
  210. package/types/vite.d.ts +19 -0
  211. package/vite/vite-plugin-pixel-bundle.ts +126 -0
  212. package/vite.config.ts +53 -0
  213. package/worker-configuration.d.ts +8401 -0
@@ -0,0 +1,681 @@
1
+ {
2
+ "id": "cfaf5eae-50ea-4023-8f76-41eb5535dcf4",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accounts": {
8
+ "name": "accounts",
9
+ "schema": "",
10
+ "columns": {
11
+ "account_id": {
12
+ "name": "account_id",
13
+ "type": "serial",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "api_key": {
18
+ "name": "api_key",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false
22
+ },
23
+ "created_at": {
24
+ "name": "created_at",
25
+ "type": "timestamp",
26
+ "primaryKey": false,
27
+ "notNull": false
28
+ },
29
+ "created_by": {
30
+ "name": "created_by",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "name": {
36
+ "name": "name",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "website": {
42
+ "name": "website",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ }
47
+ },
48
+ "indexes": {},
49
+ "foreignKeys": {},
50
+ "compositePrimaryKeys": {},
51
+ "uniqueConstraints": {},
52
+ "policies": {},
53
+ "checkConstraints": {},
54
+ "isRLSEnabled": false
55
+ },
56
+ "public.dataStore": {
57
+ "name": "dataStore",
58
+ "schema": "",
59
+ "columns": {
60
+ "id": {
61
+ "name": "id",
62
+ "type": "serial",
63
+ "primaryKey": true,
64
+ "notNull": true
65
+ },
66
+ "uuid": {
67
+ "name": "uuid",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": true
71
+ },
72
+ "account": {
73
+ "name": "account",
74
+ "type": "text",
75
+ "primaryKey": false,
76
+ "notNull": false
77
+ },
78
+ "adServer": {
79
+ "name": "adServer",
80
+ "type": "text",
81
+ "primaryKey": false,
82
+ "notNull": false
83
+ },
84
+ "adServerData": {
85
+ "name": "adServerData",
86
+ "type": "jsonb",
87
+ "primaryKey": false,
88
+ "notNull": false
89
+ },
90
+ "adServerType": {
91
+ "name": "adServerType",
92
+ "type": "text",
93
+ "primaryKey": false,
94
+ "notNull": false
95
+ },
96
+ "city": {
97
+ "name": "city",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": false
101
+ },
102
+ "client_ip": {
103
+ "name": "client_ip",
104
+ "type": "text",
105
+ "primaryKey": false,
106
+ "notNull": false
107
+ },
108
+ "country": {
109
+ "name": "country",
110
+ "type": "text",
111
+ "primaryKey": false,
112
+ "notNull": false
113
+ },
114
+ "created_at": {
115
+ "name": "created_at",
116
+ "type": "timestamp",
117
+ "primaryKey": false,
118
+ "notNull": false
119
+ },
120
+ "customData": {
121
+ "name": "customData",
122
+ "type": "jsonb",
123
+ "primaryKey": false,
124
+ "notNull": false
125
+ },
126
+ "customType": {
127
+ "name": "customType",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": false
131
+ },
132
+ "data_event": {
133
+ "name": "data_event",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": false
137
+ },
138
+ "data_passback": {
139
+ "name": "data_passback",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": false
143
+ },
144
+ "host": {
145
+ "name": "host",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": false
149
+ },
150
+ "labels": {
151
+ "name": "labels",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": false
155
+ },
156
+ "lat": {
157
+ "name": "lat",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": false
161
+ },
162
+ "long": {
163
+ "name": "long",
164
+ "type": "text",
165
+ "primaryKey": false,
166
+ "notNull": false
167
+ },
168
+ "message": {
169
+ "name": "message",
170
+ "type": "text",
171
+ "primaryKey": false,
172
+ "notNull": false
173
+ },
174
+ "method": {
175
+ "name": "method",
176
+ "type": "text",
177
+ "primaryKey": false,
178
+ "notNull": false
179
+ },
180
+ "path": {
181
+ "name": "path",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": false
185
+ },
186
+ "referer": {
187
+ "name": "referer",
188
+ "type": "text",
189
+ "primaryKey": false,
190
+ "notNull": false
191
+ },
192
+ "referrer": {
193
+ "name": "referrer",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": false
197
+ },
198
+ "region": {
199
+ "name": "region",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": false
203
+ },
204
+ "screen_height": {
205
+ "name": "screen_height",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": false
209
+ },
210
+ "screen_width": {
211
+ "name": "screen_width",
212
+ "type": "text",
213
+ "primaryKey": false,
214
+ "notNull": false
215
+ },
216
+ "thirdPartyId": {
217
+ "name": "thirdPartyId",
218
+ "type": "text",
219
+ "primaryKey": false,
220
+ "notNull": false
221
+ },
222
+ "user_agent": {
223
+ "name": "user_agent",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": false
227
+ },
228
+ "zip": {
229
+ "name": "zip",
230
+ "type": "text",
231
+ "primaryKey": false,
232
+ "notNull": false
233
+ }
234
+ },
235
+ "indexes": {},
236
+ "foreignKeys": {},
237
+ "compositePrimaryKeys": {},
238
+ "uniqueConstraints": {},
239
+ "policies": {},
240
+ "checkConstraints": {},
241
+ "isRLSEnabled": false
242
+ },
243
+ "public.events": {
244
+ "name": "events",
245
+ "schema": "",
246
+ "columns": {
247
+ "id": {
248
+ "name": "id",
249
+ "type": "serial",
250
+ "primaryKey": true,
251
+ "notNull": true
252
+ },
253
+ "account_id": {
254
+ "name": "account_id",
255
+ "type": "integer",
256
+ "primaryKey": false,
257
+ "notNull": false
258
+ },
259
+ "clickCease": {
260
+ "name": "clickCease",
261
+ "type": "jsonb",
262
+ "primaryKey": false,
263
+ "notNull": false
264
+ },
265
+ "condition": {
266
+ "name": "condition",
267
+ "type": "text",
268
+ "primaryKey": false,
269
+ "notNull": false
270
+ },
271
+ "created_at": {
272
+ "name": "created_at",
273
+ "type": "timestamp",
274
+ "primaryKey": false,
275
+ "notNull": false
276
+ },
277
+ "data_passback": {
278
+ "name": "data_passback",
279
+ "type": "text",
280
+ "primaryKey": false,
281
+ "notNull": false
282
+ },
283
+ "event_name": {
284
+ "name": "event_name",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": false
288
+ },
289
+ "google_ads_conversion": {
290
+ "name": "google_ads_conversion",
291
+ "type": "jsonb",
292
+ "primaryKey": false,
293
+ "notNull": false
294
+ },
295
+ "google_ads_script": {
296
+ "name": "google_ads_script",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": false
300
+ },
301
+ "google_analytics": {
302
+ "name": "google_analytics",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": false
306
+ },
307
+ "notes": {
308
+ "name": "notes",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": false
312
+ },
313
+ "param_config": {
314
+ "name": "param_config",
315
+ "type": "jsonb",
316
+ "primaryKey": false,
317
+ "notNull": false
318
+ },
319
+ "parameters": {
320
+ "name": "parameters",
321
+ "type": "text",
322
+ "primaryKey": false,
323
+ "notNull": false
324
+ },
325
+ "quantcast_pixel_id": {
326
+ "name": "quantcast_pixel_id",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": false
330
+ },
331
+ "rules": {
332
+ "name": "rules",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": false
336
+ },
337
+ "simplfi_pixel_id": {
338
+ "name": "simplfi_pixel_id",
339
+ "type": "text",
340
+ "primaryKey": false,
341
+ "notNull": false
342
+ },
343
+ "site_id": {
344
+ "name": "site_id",
345
+ "type": "integer",
346
+ "primaryKey": false,
347
+ "notNull": false
348
+ }
349
+ },
350
+ "indexes": {},
351
+ "foreignKeys": {},
352
+ "compositePrimaryKeys": {},
353
+ "uniqueConstraints": {},
354
+ "policies": {},
355
+ "checkConstraints": {},
356
+ "isRLSEnabled": false
357
+ },
358
+ "public.site_events": {
359
+ "name": "site_events",
360
+ "schema": "",
361
+ "columns": {
362
+ "id": {
363
+ "name": "id",
364
+ "type": "serial",
365
+ "primaryKey": true,
366
+ "notNull": true
367
+ },
368
+ "account_id": {
369
+ "name": "account_id",
370
+ "type": "integer",
371
+ "primaryKey": false,
372
+ "notNull": false
373
+ },
374
+ "bot_data": {
375
+ "name": "bot_data",
376
+ "type": "jsonb",
377
+ "primaryKey": false,
378
+ "notNull": false
379
+ },
380
+ "browser": {
381
+ "name": "browser",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": false
385
+ },
386
+ "city": {
387
+ "name": "city",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": false
391
+ },
392
+ "client_page_url": {
393
+ "name": "client_page_url",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": false
397
+ },
398
+ "country": {
399
+ "name": "country",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": false
403
+ },
404
+ "created_at": {
405
+ "name": "created_at",
406
+ "type": "timestamp",
407
+ "primaryKey": false,
408
+ "notNull": false
409
+ },
410
+ "custom_data": {
411
+ "name": "custom_data",
412
+ "type": "jsonb",
413
+ "primaryKey": false,
414
+ "notNull": false
415
+ },
416
+ "device_type": {
417
+ "name": "device_type",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": false
421
+ },
422
+ "event": {
423
+ "name": "event",
424
+ "type": "text",
425
+ "primaryKey": false,
426
+ "notNull": false
427
+ },
428
+ "operating_system": {
429
+ "name": "operating_system",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": false
433
+ },
434
+ "page_url": {
435
+ "name": "page_url",
436
+ "type": "text",
437
+ "primaryKey": false,
438
+ "notNull": false
439
+ },
440
+ "postal": {
441
+ "name": "postal",
442
+ "type": "text",
443
+ "primaryKey": false,
444
+ "notNull": false
445
+ },
446
+ "query_params": {
447
+ "name": "query_params",
448
+ "type": "jsonb",
449
+ "primaryKey": false,
450
+ "notNull": false
451
+ },
452
+ "referer": {
453
+ "name": "referer",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": false
457
+ },
458
+ "region": {
459
+ "name": "region",
460
+ "type": "text",
461
+ "primaryKey": false,
462
+ "notNull": false
463
+ },
464
+ "rid": {
465
+ "name": "rid",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": false
469
+ },
470
+ "screen_height": {
471
+ "name": "screen_height",
472
+ "type": "integer",
473
+ "primaryKey": false,
474
+ "notNull": false
475
+ },
476
+ "screen_width": {
477
+ "name": "screen_width",
478
+ "type": "integer",
479
+ "primaryKey": false,
480
+ "notNull": false
481
+ },
482
+ "site_id": {
483
+ "name": "site_id",
484
+ "type": "integer",
485
+ "primaryKey": false,
486
+ "notNull": false
487
+ },
488
+ "tag_id": {
489
+ "name": "tag_id",
490
+ "type": "text",
491
+ "primaryKey": false,
492
+ "notNull": false
493
+ }
494
+ },
495
+ "indexes": {},
496
+ "foreignKeys": {},
497
+ "compositePrimaryKeys": {},
498
+ "uniqueConstraints": {},
499
+ "policies": {},
500
+ "checkConstraints": {},
501
+ "isRLSEnabled": false
502
+ },
503
+ "public.site_personalization": {
504
+ "name": "site_personalization",
505
+ "schema": "",
506
+ "columns": {
507
+ "id": {
508
+ "name": "id",
509
+ "type": "serial",
510
+ "primaryKey": true,
511
+ "notNull": true
512
+ },
513
+ "created_at": {
514
+ "name": "created_at",
515
+ "type": "timestamp",
516
+ "primaryKey": false,
517
+ "notNull": true
518
+ },
519
+ "client_page_url": {
520
+ "name": "client_page_url",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": false
524
+ },
525
+ "rid": {
526
+ "name": "rid",
527
+ "type": "text",
528
+ "primaryKey": false,
529
+ "notNull": false
530
+ }
531
+ },
532
+ "indexes": {},
533
+ "foreignKeys": {},
534
+ "compositePrimaryKeys": {},
535
+ "uniqueConstraints": {},
536
+ "policies": {},
537
+ "checkConstraints": {},
538
+ "isRLSEnabled": false
539
+ },
540
+ "public.sites": {
541
+ "name": "sites",
542
+ "schema": "",
543
+ "columns": {
544
+ "site_id": {
545
+ "name": "site_id",
546
+ "type": "serial",
547
+ "primaryKey": true,
548
+ "notNull": true
549
+ },
550
+ "tag_id": {
551
+ "name": "tag_id",
552
+ "type": "text",
553
+ "primaryKey": false,
554
+ "notNull": true
555
+ },
556
+ "track_web_events": {
557
+ "name": "track_web_events",
558
+ "type": "boolean",
559
+ "primaryKey": false,
560
+ "notNull": true,
561
+ "default": false
562
+ },
563
+ "account_id": {
564
+ "name": "account_id",
565
+ "type": "integer",
566
+ "primaryKey": false,
567
+ "notNull": false
568
+ },
569
+ "client": {
570
+ "name": "client",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": false
574
+ },
575
+ "created_at": {
576
+ "name": "created_at",
577
+ "type": "timestamp",
578
+ "primaryKey": false,
579
+ "notNull": false
580
+ },
581
+ "domain": {
582
+ "name": "domain",
583
+ "type": "text",
584
+ "primaryKey": false,
585
+ "notNull": false
586
+ },
587
+ "gdpr": {
588
+ "name": "gdpr",
589
+ "type": "boolean",
590
+ "primaryKey": false,
591
+ "notNull": false
592
+ },
593
+ "rid_salt": {
594
+ "name": "rid_salt",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": false
598
+ },
599
+ "rid_salt_expire": {
600
+ "name": "rid_salt_expire",
601
+ "type": "timestamp",
602
+ "primaryKey": false,
603
+ "notNull": false
604
+ },
605
+ "tag_id_override": {
606
+ "name": "tag_id_override",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": false
610
+ }
611
+ },
612
+ "indexes": {},
613
+ "foreignKeys": {},
614
+ "compositePrimaryKeys": {},
615
+ "uniqueConstraints": {},
616
+ "policies": {},
617
+ "checkConstraints": {},
618
+ "isRLSEnabled": false
619
+ },
620
+ "public.waitlist": {
621
+ "name": "waitlist",
622
+ "schema": "",
623
+ "columns": {
624
+ "id": {
625
+ "name": "id",
626
+ "type": "serial",
627
+ "primaryKey": true,
628
+ "notNull": true
629
+ },
630
+ "company": {
631
+ "name": "company",
632
+ "type": "text",
633
+ "primaryKey": false,
634
+ "notNull": false
635
+ },
636
+ "created_at": {
637
+ "name": "created_at",
638
+ "type": "timestamp",
639
+ "primaryKey": false,
640
+ "notNull": false
641
+ },
642
+ "email_address": {
643
+ "name": "email_address",
644
+ "type": "text",
645
+ "primaryKey": false,
646
+ "notNull": false
647
+ },
648
+ "name": {
649
+ "name": "name",
650
+ "type": "text",
651
+ "primaryKey": false,
652
+ "notNull": false
653
+ },
654
+ "website": {
655
+ "name": "website",
656
+ "type": "text",
657
+ "primaryKey": false,
658
+ "notNull": false
659
+ }
660
+ },
661
+ "indexes": {},
662
+ "foreignKeys": {},
663
+ "compositePrimaryKeys": {},
664
+ "uniqueConstraints": {},
665
+ "policies": {},
666
+ "checkConstraints": {},
667
+ "isRLSEnabled": false
668
+ }
669
+ },
670
+ "enums": {},
671
+ "schemas": {},
672
+ "sequences": {},
673
+ "roles": {},
674
+ "policies": {},
675
+ "views": {},
676
+ "_meta": {
677
+ "columns": {},
678
+ "schemas": {},
679
+ "tables": {}
680
+ }
681
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "postgresql",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "7",
8
+ "when": 1750184554761,
9
+ "tag": "0000_brainy_sprite",
10
+ "breakpoints": true
11
+ }
12
+ ]
13
+ }