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.
- package/.env.example +37 -0
- package/README.md +486 -0
- package/alchemy.run.ts +155 -0
- package/cli/bootstrap-admin.ts +284 -0
- package/cli/deploy-staging.ts +692 -0
- package/cli/import-events.ts +628 -0
- package/cli/import-sites.ts +518 -0
- package/cli/index.ts +609 -0
- package/cli/init-db.ts +269 -0
- package/cli/migrate-to-durable-objects.ts +564 -0
- package/cli/migration-worker.ts +300 -0
- package/cli/performance-test.ts +588 -0
- package/cli/pg/client.ts +4 -0
- package/cli/pg/new-site.ts +153 -0
- package/cli/rollback-durable-objects.ts +622 -0
- package/cli/seed-data.ts +459 -0
- package/cli/setup.js +18 -0
- package/cli/setup.ts +463 -0
- package/cli/validate-migration.ts +200 -0
- package/cli/wrangler-migration.jsonc +28 -0
- package/db/adapter.ts +166 -0
- package/db/analytics_engine/client.ts +0 -0
- package/db/analytics_engine/sites.ts +0 -0
- package/db/client.ts +16 -0
- package/db/d1/client.ts +8 -0
- package/db/d1/drizzle.config.ts +35 -0
- package/db/d1/migrations/0000_true_maelstrom.sql +165 -0
- package/db/d1/migrations/0001_wonderful_bloodaxe.sql +12 -0
- package/db/d1/migrations/0002_late_frightful_four.sql +1 -0
- package/db/d1/migrations/0003_cuddly_obadiah_stane.sql +16 -0
- package/db/d1/migrations/0004_mute_stardust.sql +1 -0
- package/db/d1/migrations/0005_awesome_silvermane.sql +3 -0
- package/db/d1/migrations/0006_volatile_shriek.sql +2 -0
- package/db/d1/migrations/0007_superb_lila_cheney.sql +1 -0
- package/db/d1/migrations/0008_bitter_longshot.sql +17 -0
- package/db/d1/migrations/0009_wonderful_madame_masque.sql +28 -0
- package/db/d1/migrations/meta/0000_snapshot.json +1112 -0
- package/db/d1/migrations/meta/0001_snapshot.json +1187 -0
- package/db/d1/migrations/meta/0002_snapshot.json +1194 -0
- package/db/d1/migrations/meta/0003_snapshot.json +1296 -0
- package/db/d1/migrations/meta/0004_snapshot.json +1303 -0
- package/db/d1/migrations/meta/0005_snapshot.json +1325 -0
- package/db/d1/migrations/meta/0006_snapshot.json +1339 -0
- package/db/d1/migrations/meta/0007_snapshot.json +1347 -0
- package/db/d1/migrations/meta/0008_snapshot.json +1464 -0
- package/db/d1/migrations/meta/0009_snapshot.json +1648 -0
- package/db/d1/migrations/meta/_journal.json +76 -0
- package/db/d1/schema.ts +407 -0
- package/db/d1/sites.ts +374 -0
- package/db/d1/teamAiUsage.ts +101 -0
- package/db/d1/teams.ts +127 -0
- package/db/durable/drizzle.config.ts +8 -0
- package/db/durable/durableObjectClient.ts +480 -0
- package/db/durable/events.ts +100 -0
- package/db/durable/migrations/0000_fair_bucky.sql +38 -0
- package/db/durable/migrations/meta/0000_snapshot.json +278 -0
- package/db/durable/migrations/meta/_journal.json +13 -0
- package/db/durable/migrations/migrations.js +10 -0
- package/db/durable/schema.ts +5 -0
- package/db/durable/siteDurableObject.ts +1352 -0
- package/db/durable/types.ts +53 -0
- package/db/postgres/client.ts +13 -0
- package/db/postgres/drizzle.config.ts +12 -0
- package/db/postgres/migrations/0000_brainy_sprite.sql +116 -0
- package/db/postgres/migrations/meta/0000_snapshot.json +681 -0
- package/db/postgres/migrations/meta/_journal.json +13 -0
- package/db/postgres/schema.ts +145 -0
- package/db/postgres/sites.ts +118 -0
- package/db/tranformReports.ts +595 -0
- package/db/types.ts +55 -0
- package/endpoints/api_worker.tsx +1854 -0
- package/endpoints/site_do_worker.ts +11 -0
- package/index.d.ts +63 -0
- package/index.ts +83 -0
- package/lib/auth.ts +279 -0
- package/lib/geojson/world_countries.json +45307 -0
- package/lib/random_name.ts +41 -0
- package/lib/sendMail.ts +252 -0
- package/package.json +142 -0
- package/public/favicon.ico +0 -0
- package/public/images/android-chrome-192x192.png +0 -0
- package/public/images/android-chrome-512x512.png +0 -0
- package/public/images/apple-touch-icon.png +0 -0
- package/public/images/favicon-16x16.png +0 -0
- package/public/images/favicon-32x32.png +0 -0
- package/public/images/lytx_dark_dashboard.png +0 -0
- package/public/images/lytx_light_dashboard.png +0 -0
- package/public/images/safari-pinned-tab.svg +4 -0
- package/public/logo.png +0 -0
- package/public/site.webmanifest +26 -0
- package/public/sw.js +107 -0
- package/src/Document.tsx +86 -0
- package/src/api/ai_api.ts +1156 -0
- package/src/api/authMiddleware.ts +45 -0
- package/src/api/auth_api.ts +465 -0
- package/src/api/event_labels_api.ts +193 -0
- package/src/api/events_api.ts +210 -0
- package/src/api/queueWorker.ts +303 -0
- package/src/api/reports_api.ts +278 -0
- package/src/api/seed_api.ts +288 -0
- package/src/api/sites_api.ts +904 -0
- package/src/api/tag_api.ts +458 -0
- package/src/api/tag_api_v2.ts +289 -0
- package/src/api/team_api.ts +456 -0
- package/src/app/Dashboard.tsx +1339 -0
- package/src/app/Events.tsx +974 -0
- package/src/app/Explore.tsx +312 -0
- package/src/app/Layout.tsx +58 -0
- package/src/app/Settings.tsx +1302 -0
- package/src/app/components/DashboardCard.tsx +118 -0
- package/src/app/components/EditableCell.tsx +123 -0
- package/src/app/components/EventForm.tsx +93 -0
- package/src/app/components/MarketingFooter.tsx +49 -0
- package/src/app/components/MarketingNav.tsx +150 -0
- package/src/app/components/Nav.tsx +755 -0
- package/src/app/components/NewSiteSetup.tsx +298 -0
- package/src/app/components/SQLEditor.tsx +740 -0
- package/src/app/components/SiteSelector.tsx +126 -0
- package/src/app/components/SiteTag.tsx +42 -0
- package/src/app/components/SiteTagInstallCard.tsx +241 -0
- package/src/app/components/WorldMapCard.tsx +337 -0
- package/src/app/components/charts/ChartComponents.tsx +1481 -0
- package/src/app/components/charts/EventFunnel.tsx +45 -0
- package/src/app/components/charts/EventSummary.tsx +194 -0
- package/src/app/components/charts/SankeyFlows.tsx +72 -0
- package/src/app/components/marketing/CheckIcon.tsx +16 -0
- package/src/app/components/marketing/MarketingLayout.tsx +23 -0
- package/src/app/components/marketing/SectionHeading.tsx +35 -0
- package/src/app/components/reports/AskAiWorkspace.tsx +371 -0
- package/src/app/components/reports/CreateReportStarter.tsx +74 -0
- package/src/app/components/reports/DashboardRouteFiltersContext.tsx +14 -0
- package/src/app/components/reports/DashboardToolbar.tsx +154 -0
- package/src/app/components/reports/DashboardWorkspaceLayout.tsx +63 -0
- package/src/app/components/reports/DashboardWorkspaceShell.tsx +118 -0
- package/src/app/components/reports/ReportBuilderWorkspace.tsx +76 -0
- package/src/app/components/reports/custom/CustomReportBuilderPage.tsx +1667 -0
- package/src/app/components/reports/custom/ReportWidgetChart.tsx +297 -0
- package/src/app/components/reports/custom/buildWidgetSql.ts +151 -0
- package/src/app/components/reports/custom/chartPalettes.ts +18 -0
- package/src/app/components/reports/custom/types.ts +50 -0
- package/src/app/components/reports/reportBuilderMenuItems.ts +17 -0
- package/src/app/components/reports/useDashboardToolbarControls.tsx +235 -0
- package/src/app/components/ui/AlertBanner.tsx +101 -0
- package/src/app/components/ui/Button.tsx +55 -0
- package/src/app/components/ui/Card.tsx +80 -0
- package/src/app/components/ui/Input.tsx +72 -0
- package/src/app/components/ui/Link.tsx +23 -0
- package/src/app/components/ui/ReportBuilderMenu.tsx +246 -0
- package/src/app/components/ui/ThemeToggle.tsx +54 -0
- package/src/app/constants.ts +6 -0
- package/src/app/headers.ts +33 -0
- package/src/app/providers/AuthProvider.tsx +189 -0
- package/src/app/providers/ClientProviders.tsx +18 -0
- package/src/app/providers/QueryProvider.tsx +23 -0
- package/src/app/providers/ThemeProvider.tsx +88 -0
- package/src/app/utils/chartThemes.ts +146 -0
- package/src/app/utils/keybinds.ts +96 -0
- package/src/app/utils/media.tsx +24 -0
- package/src/client.tsx +114 -0
- package/src/config/createLytxAppConfig.ts +252 -0
- package/src/config/resourceNames.ts +88 -0
- package/src/db/index.ts +67 -0
- package/src/index.css +285 -0
- package/src/lib/featureFlags.ts +69 -0
- package/src/pages/GetStarted.tsx +290 -0
- package/src/pages/Home.tsx +268 -0
- package/src/pages/Login.tsx +283 -0
- package/src/pages/PrivacyPolicy.tsx +120 -0
- package/src/pages/Signup.tsx +267 -0
- package/src/pages/TermsOfService.tsx +126 -0
- package/src/pages/VerifyEmail.tsx +56 -0
- package/src/session/durableObject.ts +7 -0
- package/src/session/siteSchema.ts +86 -0
- package/src/session/types.ts +36 -0
- package/src/templates/README.md +80 -0
- package/src/templates/cleanFunctions.js +44 -0
- package/src/templates/embedFunctions.js +52 -0
- package/src/templates/lytx-shared.ts +662 -0
- package/src/templates/lytxpixel-core.ts +144 -0
- package/src/templates/lytxpixel.ts +267 -0
- package/src/templates/lytxpixelBrowser.js +634 -0
- package/src/templates/lytxpixelBrowser.mjs +634 -0
- package/src/templates/parseData.js +12 -0
- package/src/templates/script.ts +31 -0
- package/src/templates/template.tsx +50 -0
- package/src/templates/test.js +3 -0
- package/src/templates/trackWebEvents.ts +177 -0
- package/src/templates/vendors/clickcease.ts +8 -0
- package/src/templates/vendors/google.ts +174 -0
- package/src/templates/vendors/linkedin.ts +23 -0
- package/src/templates/vendors/meta.ts +56 -0
- package/src/templates/vendors/quantcast.ts +22 -0
- package/src/templates/vendors/simplfi.ts +7 -0
- package/src/types/app-context.ts +16 -0
- package/src/utilities/dashboardParams.ts +188 -0
- package/src/utilities/dashboardQueries.ts +537 -0
- package/src/utilities/dashboardTransforms.ts +167 -0
- package/src/utilities/dataValidation.ts +414 -0
- package/src/utilities/detector.ts +73 -0
- package/src/utilities/encrypt.ts +103 -0
- package/src/utilities/index.ts +13 -0
- package/src/utilities/parser.ts +117 -0
- package/src/utilities/performanceMonitoring.ts +570 -0
- package/src/utilities/route_interuptors.ts +24 -0
- package/src/worker.tsx +675 -0
- package/tsconfig.json +78 -0
- package/types/env.d.ts +16 -0
- package/types/rw.d.ts +7 -0
- package/types/shims.d.ts +53 -0
- package/types/vite.d.ts +19 -0
- package/vite/vite-plugin-pixel-bundle.ts +126 -0
- package/vite.config.ts +53 -0
- 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
|
+
}
|