create-m5kdev 0.35.0 → 0.37.2

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 (61) hide show
  1. package/package.json +3 -3
  2. package/templates/minimal-app/.dockerignore.tpl +6 -0
  3. package/templates/minimal-app/apps/e2e/playwright.config.ts.tpl +3 -0
  4. package/templates/minimal-app/apps/e2e/servers.ts.tpl +4 -0
  5. package/templates/minimal-app/apps/e2e/tests/expo-helpers.ts.tpl +2 -34
  6. package/templates/minimal-app/apps/e2e/tests/expo-standard.spec.ts.tpl +225 -5
  7. package/templates/minimal-app/apps/e2e/tests/helpers.ts.tpl +47 -1
  8. package/templates/minimal-app/apps/e2e/tests/mcp-helpers.ts.tpl +406 -0
  9. package/templates/minimal-app/apps/e2e/tests/mcp.spec.ts.tpl +108 -0
  10. package/templates/minimal-app/apps/e2e/tests/standard.spec.ts.tpl +290 -8
  11. package/templates/minimal-app/apps/expo/app.json.tpl +1 -0
  12. package/templates/minimal-app/apps/expo/package.json.tpl +4 -0
  13. package/templates/minimal-app/apps/expo/src/app/_layout.tsx.tpl +4 -1
  14. package/templates/minimal-app/apps/expo/src/app/notifications.tsx.tpl +70 -0
  15. package/templates/minimal-app/apps/expo/src/app/organization/accept-invitation.tsx.tpl +8 -16
  16. package/templates/minimal-app/apps/expo/src/app/posts.tsx.tpl +4 -1
  17. package/templates/minimal-app/apps/expo/src/lib/trpc.ts.tpl +11 -2
  18. package/templates/minimal-app/apps/landing/vite.config.ts.tpl +2 -3
  19. package/templates/minimal-app/apps/server/AGENTS.md.tpl +10 -0
  20. package/templates/minimal-app/apps/server/db.e2e.ts.tpl +6 -40
  21. package/templates/minimal-app/apps/server/db.ts.tpl +6 -42
  22. package/templates/minimal-app/apps/server/drizzle/{0000_wealthy_absorbing_man.sql → 0000_whole_echo.sql} +102 -3
  23. package/templates/minimal-app/apps/server/drizzle/0001_yummy_spectrum.sql +26 -0
  24. package/templates/minimal-app/apps/server/drizzle/0002_crazy_lilith.sql +47 -0
  25. package/templates/minimal-app/apps/server/drizzle/0003_freezing_fantastic_four.sql +4 -0
  26. package/templates/minimal-app/apps/server/drizzle/0004_slow_ezekiel_stane.sql +99 -0
  27. package/templates/minimal-app/apps/server/drizzle/0005_wonderful_the_professor.sql +2 -0
  28. package/templates/minimal-app/apps/server/drizzle/0006_lazy_blue_marvel.sql +159 -0
  29. package/templates/minimal-app/apps/server/drizzle/0007_abnormal_ultimo.sql +2 -0
  30. package/templates/minimal-app/apps/server/drizzle/0008_steady_nekra.sql +87 -0
  31. package/templates/minimal-app/apps/server/drizzle/meta/0000_snapshot.json.tpl +2625 -1780
  32. package/templates/minimal-app/apps/server/drizzle/meta/0001_snapshot.json.tpl +2671 -1796
  33. package/templates/minimal-app/apps/server/drizzle/meta/0002_snapshot.json.tpl +2716 -1818
  34. package/templates/minimal-app/apps/server/drizzle/meta/0003_snapshot.json.tpl +715 -164
  35. package/templates/minimal-app/apps/server/drizzle/meta/0004_snapshot.json.tpl +2498 -0
  36. package/templates/minimal-app/apps/server/drizzle/meta/0005_snapshot.json.tpl +2484 -0
  37. package/templates/minimal-app/apps/server/drizzle/meta/0006_snapshot.json.tpl +3603 -0
  38. package/templates/minimal-app/apps/server/drizzle/meta/0007_snapshot.json.tpl +3620 -0
  39. package/templates/minimal-app/apps/server/drizzle/meta/0008_snapshot.json.tpl +3620 -0
  40. package/templates/minimal-app/apps/server/drizzle/meta/_journal.json.tpl +44 -9
  41. package/templates/minimal-app/apps/server/src/app.ts.tpl +12 -2
  42. package/templates/minimal-app/apps/server/src/modules/posts/posts.db.ts.tpl +2 -2
  43. package/templates/minimal-app/apps/server/src/modules/posts/posts.mcp.ts.tpl +17 -0
  44. package/templates/minimal-app/apps/server/src/modules/posts/posts.module.ts.tpl +11 -0
  45. package/templates/minimal-app/apps/server/src/modules/posts/posts.service.ts.tpl +14 -5
  46. package/templates/minimal-app/apps/server/src/modules/test-harness/test-harness.module.ts.tpl +13 -36
  47. package/templates/minimal-app/apps/server/src/schema.ts.tpl +16 -2
  48. package/templates/minimal-app/apps/shared/package.json.tpl +1 -0
  49. package/templates/minimal-app/apps/shared/src/modules/app/app.constants.ts.tpl +1 -1
  50. package/templates/minimal-app/apps/shared/src/modules/notification/notification.constants.ts.tpl +5 -0
  51. package/templates/minimal-app/apps/shared/src/modules/notification/notification.schema.ts.tpl +1 -1
  52. package/templates/minimal-app/apps/webapp/src/Layout.tsx.tpl +17 -1
  53. package/templates/minimal-app/apps/webapp/src/Router.tsx.tpl +10 -8
  54. package/templates/minimal-app/apps/webapp/src/modules/notification/NotificationPreferencesRoute.tsx.tpl +29 -0
  55. package/templates/minimal-app/apps/webapp/src/modules/notification/StarterWebPush.tsx.tpl +44 -0
  56. package/templates/minimal-app/apps/webapp/translations/en/{{APP_SLUG}}.json.tpl +8 -0
  57. package/templates/minimal-app/pnpm-workspace.yaml.tpl +14 -13
  58. package/templates/minimal-app/template.manifest.json +9 -0
  59. package/templates/minimal-app/apps/server/drizzle/0001_third_ink.sql +0 -1
  60. package/templates/minimal-app/apps/server/drizzle/0002_concerned_proudstar.sql +0 -3
  61. package/templates/minimal-app/apps/server/drizzle/0003_silly_the_liberteens.sql +0 -27
@@ -0,0 +1,3620 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "c4e23f01-9be6-46ac-ae2d-dbc48209cb74",
5
+ "prevId": "9d826407-c14a-4236-a5df-a42d1417bebe",
6
+ "tables": {
7
+ "account_claim_magic_links": {
8
+ "name": "account_claim_magic_links",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "claim_id": {
18
+ "name": "claim_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "user_id": {
25
+ "name": "user_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "email": {
32
+ "name": "email",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "token": {
39
+ "name": "token",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "url": {
46
+ "name": "url",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "expires_at": {
53
+ "name": "expires_at",
54
+ "type": "integer",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "created_at": {
60
+ "name": "created_at",
61
+ "type": "integer",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false
65
+ }
66
+ },
67
+ "indexes": {},
68
+ "foreignKeys": {
69
+ "account_claim_magic_links_claim_id_account_claims_id_fk": {
70
+ "name": "account_claim_magic_links_claim_id_account_claims_id_fk",
71
+ "tableFrom": "account_claim_magic_links",
72
+ "tableTo": "account_claims",
73
+ "columnsFrom": [
74
+ "claim_id"
75
+ ],
76
+ "columnsTo": [
77
+ "id"
78
+ ],
79
+ "onDelete": "cascade",
80
+ "onUpdate": "no action"
81
+ },
82
+ "account_claim_magic_links_user_id_users_id_fk": {
83
+ "name": "account_claim_magic_links_user_id_users_id_fk",
84
+ "tableFrom": "account_claim_magic_links",
85
+ "tableTo": "users",
86
+ "columnsFrom": [
87
+ "user_id"
88
+ ],
89
+ "columnsTo": [
90
+ "id"
91
+ ],
92
+ "onDelete": "cascade",
93
+ "onUpdate": "no action"
94
+ }
95
+ },
96
+ "compositePrimaryKeys": {},
97
+ "uniqueConstraints": {},
98
+ "checkConstraints": {}
99
+ },
100
+ "account_claims": {
101
+ "name": "account_claims",
102
+ "columns": {
103
+ "id": {
104
+ "name": "id",
105
+ "type": "text",
106
+ "primaryKey": true,
107
+ "notNull": true,
108
+ "autoincrement": false
109
+ },
110
+ "claim_user_id": {
111
+ "name": "claim_user_id",
112
+ "type": "text",
113
+ "primaryKey": false,
114
+ "notNull": true,
115
+ "autoincrement": false
116
+ },
117
+ "status": {
118
+ "name": "status",
119
+ "type": "text",
120
+ "primaryKey": false,
121
+ "notNull": true,
122
+ "autoincrement": false
123
+ },
124
+ "code": {
125
+ "name": "code",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": false,
129
+ "autoincrement": false
130
+ },
131
+ "expires_at": {
132
+ "name": "expires_at",
133
+ "type": "integer",
134
+ "primaryKey": false,
135
+ "notNull": false,
136
+ "autoincrement": false
137
+ },
138
+ "claimed_at": {
139
+ "name": "claimed_at",
140
+ "type": "integer",
141
+ "primaryKey": false,
142
+ "notNull": false,
143
+ "autoincrement": false
144
+ },
145
+ "claimed_email": {
146
+ "name": "claimed_email",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": false,
150
+ "autoincrement": false
151
+ },
152
+ "created_at": {
153
+ "name": "created_at",
154
+ "type": "integer",
155
+ "primaryKey": false,
156
+ "notNull": true,
157
+ "autoincrement": false
158
+ },
159
+ "updated_at": {
160
+ "name": "updated_at",
161
+ "type": "integer",
162
+ "primaryKey": false,
163
+ "notNull": false,
164
+ "autoincrement": false
165
+ }
166
+ },
167
+ "indexes": {},
168
+ "foreignKeys": {
169
+ "account_claims_claim_user_id_users_id_fk": {
170
+ "name": "account_claims_claim_user_id_users_id_fk",
171
+ "tableFrom": "account_claims",
172
+ "tableTo": "users",
173
+ "columnsFrom": [
174
+ "claim_user_id"
175
+ ],
176
+ "columnsTo": [
177
+ "id"
178
+ ],
179
+ "onDelete": "no action",
180
+ "onUpdate": "no action"
181
+ }
182
+ },
183
+ "compositePrimaryKeys": {},
184
+ "uniqueConstraints": {},
185
+ "checkConstraints": {}
186
+ },
187
+ "accounts": {
188
+ "name": "accounts",
189
+ "columns": {
190
+ "id": {
191
+ "name": "id",
192
+ "type": "text",
193
+ "primaryKey": true,
194
+ "notNull": true,
195
+ "autoincrement": false
196
+ },
197
+ "account_id": {
198
+ "name": "account_id",
199
+ "type": "text",
200
+ "primaryKey": false,
201
+ "notNull": true,
202
+ "autoincrement": false
203
+ },
204
+ "issuer": {
205
+ "name": "issuer",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": true,
209
+ "autoincrement": false,
210
+ "default": "'local:credential'"
211
+ },
212
+ "provider_id": {
213
+ "name": "provider_id",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": true,
217
+ "autoincrement": false
218
+ },
219
+ "user_id": {
220
+ "name": "user_id",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": true,
224
+ "autoincrement": false
225
+ },
226
+ "access_token": {
227
+ "name": "access_token",
228
+ "type": "text",
229
+ "primaryKey": false,
230
+ "notNull": false,
231
+ "autoincrement": false
232
+ },
233
+ "refresh_token": {
234
+ "name": "refresh_token",
235
+ "type": "text",
236
+ "primaryKey": false,
237
+ "notNull": false,
238
+ "autoincrement": false
239
+ },
240
+ "id_token": {
241
+ "name": "id_token",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": false,
245
+ "autoincrement": false
246
+ },
247
+ "access_token_expires_at": {
248
+ "name": "access_token_expires_at",
249
+ "type": "integer",
250
+ "primaryKey": false,
251
+ "notNull": false,
252
+ "autoincrement": false
253
+ },
254
+ "refresh_token_expires_at": {
255
+ "name": "refresh_token_expires_at",
256
+ "type": "integer",
257
+ "primaryKey": false,
258
+ "notNull": false,
259
+ "autoincrement": false
260
+ },
261
+ "scope": {
262
+ "name": "scope",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": false,
266
+ "autoincrement": false
267
+ },
268
+ "password": {
269
+ "name": "password",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": false,
273
+ "autoincrement": false
274
+ },
275
+ "created_at": {
276
+ "name": "created_at",
277
+ "type": "integer",
278
+ "primaryKey": false,
279
+ "notNull": true,
280
+ "autoincrement": false
281
+ },
282
+ "updated_at": {
283
+ "name": "updated_at",
284
+ "type": "integer",
285
+ "primaryKey": false,
286
+ "notNull": true,
287
+ "autoincrement": false
288
+ }
289
+ },
290
+ "indexes": {
291
+ "accounts_issuer_account_id_unique": {
292
+ "name": "accounts_issuer_account_id_unique",
293
+ "columns": [
294
+ "issuer",
295
+ "account_id"
296
+ ],
297
+ "isUnique": true
298
+ }
299
+ },
300
+ "foreignKeys": {
301
+ "accounts_user_id_users_id_fk": {
302
+ "name": "accounts_user_id_users_id_fk",
303
+ "tableFrom": "accounts",
304
+ "tableTo": "users",
305
+ "columnsFrom": [
306
+ "user_id"
307
+ ],
308
+ "columnsTo": [
309
+ "id"
310
+ ],
311
+ "onDelete": "cascade",
312
+ "onUpdate": "no action"
313
+ }
314
+ },
315
+ "compositePrimaryKeys": {},
316
+ "uniqueConstraints": {},
317
+ "checkConstraints": {}
318
+ },
319
+ "ai_usage": {
320
+ "name": "ai_usage",
321
+ "columns": {
322
+ "id": {
323
+ "name": "id",
324
+ "type": "text",
325
+ "primaryKey": true,
326
+ "notNull": true,
327
+ "autoincrement": false
328
+ },
329
+ "user_id": {
330
+ "name": "user_id",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": false,
334
+ "autoincrement": false
335
+ },
336
+ "member_id": {
337
+ "name": "member_id",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": false,
341
+ "autoincrement": false
342
+ },
343
+ "team_id": {
344
+ "name": "team_id",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": false,
348
+ "autoincrement": false
349
+ },
350
+ "organization_id": {
351
+ "name": "organization_id",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": false,
355
+ "autoincrement": false
356
+ },
357
+ "feature": {
358
+ "name": "feature",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "autoincrement": false
363
+ },
364
+ "provider": {
365
+ "name": "provider",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false
370
+ },
371
+ "model": {
372
+ "name": "model",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false
377
+ },
378
+ "input_tokens": {
379
+ "name": "input_tokens",
380
+ "type": "integer",
381
+ "primaryKey": false,
382
+ "notNull": false,
383
+ "autoincrement": false
384
+ },
385
+ "output_tokens": {
386
+ "name": "output_tokens",
387
+ "type": "integer",
388
+ "primaryKey": false,
389
+ "notNull": false,
390
+ "autoincrement": false
391
+ },
392
+ "total_tokens": {
393
+ "name": "total_tokens",
394
+ "type": "integer",
395
+ "primaryKey": false,
396
+ "notNull": false,
397
+ "autoincrement": false
398
+ },
399
+ "cost": {
400
+ "name": "cost",
401
+ "type": "real",
402
+ "primaryKey": false,
403
+ "notNull": false,
404
+ "autoincrement": false
405
+ },
406
+ "trace_id": {
407
+ "name": "trace_id",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": false,
411
+ "autoincrement": false
412
+ },
413
+ "created_at": {
414
+ "name": "created_at",
415
+ "type": "integer",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "autoincrement": false
419
+ },
420
+ "metadata": {
421
+ "name": "metadata",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": false,
425
+ "autoincrement": false
426
+ }
427
+ },
428
+ "indexes": {},
429
+ "foreignKeys": {
430
+ "ai_usage_user_id_users_id_fk": {
431
+ "name": "ai_usage_user_id_users_id_fk",
432
+ "tableFrom": "ai_usage",
433
+ "tableTo": "users",
434
+ "columnsFrom": [
435
+ "user_id"
436
+ ],
437
+ "columnsTo": [
438
+ "id"
439
+ ],
440
+ "onDelete": "set null",
441
+ "onUpdate": "no action"
442
+ },
443
+ "ai_usage_member_id_members_id_fk": {
444
+ "name": "ai_usage_member_id_members_id_fk",
445
+ "tableFrom": "ai_usage",
446
+ "tableTo": "members",
447
+ "columnsFrom": [
448
+ "member_id"
449
+ ],
450
+ "columnsTo": [
451
+ "id"
452
+ ],
453
+ "onDelete": "set null",
454
+ "onUpdate": "no action"
455
+ },
456
+ "ai_usage_organization_id_organizations_id_fk": {
457
+ "name": "ai_usage_organization_id_organizations_id_fk",
458
+ "tableFrom": "ai_usage",
459
+ "tableTo": "organizations",
460
+ "columnsFrom": [
461
+ "organization_id"
462
+ ],
463
+ "columnsTo": [
464
+ "id"
465
+ ],
466
+ "onDelete": "set null",
467
+ "onUpdate": "no action"
468
+ }
469
+ },
470
+ "compositePrimaryKeys": {},
471
+ "uniqueConstraints": {},
472
+ "checkConstraints": {}
473
+ },
474
+ "apikeys": {
475
+ "name": "apikeys",
476
+ "columns": {
477
+ "id": {
478
+ "name": "id",
479
+ "type": "text",
480
+ "primaryKey": true,
481
+ "notNull": true,
482
+ "autoincrement": false
483
+ },
484
+ "name": {
485
+ "name": "name",
486
+ "type": "text",
487
+ "primaryKey": false,
488
+ "notNull": false,
489
+ "autoincrement": false
490
+ },
491
+ "start": {
492
+ "name": "start",
493
+ "type": "text",
494
+ "primaryKey": false,
495
+ "notNull": false,
496
+ "autoincrement": false
497
+ },
498
+ "prefix": {
499
+ "name": "prefix",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": false,
503
+ "autoincrement": false
504
+ },
505
+ "key": {
506
+ "name": "key",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "autoincrement": false
511
+ },
512
+ "user_id": {
513
+ "name": "user_id",
514
+ "type": "text",
515
+ "primaryKey": false,
516
+ "notNull": true,
517
+ "autoincrement": false
518
+ },
519
+ "refill_interval": {
520
+ "name": "refill_interval",
521
+ "type": "integer",
522
+ "primaryKey": false,
523
+ "notNull": false,
524
+ "autoincrement": false
525
+ },
526
+ "refill_amount": {
527
+ "name": "refill_amount",
528
+ "type": "integer",
529
+ "primaryKey": false,
530
+ "notNull": false,
531
+ "autoincrement": false
532
+ },
533
+ "last_refill_at": {
534
+ "name": "last_refill_at",
535
+ "type": "integer",
536
+ "primaryKey": false,
537
+ "notNull": false,
538
+ "autoincrement": false
539
+ },
540
+ "enabled": {
541
+ "name": "enabled",
542
+ "type": "integer",
543
+ "primaryKey": false,
544
+ "notNull": true,
545
+ "autoincrement": false
546
+ },
547
+ "rate_limit_enabled": {
548
+ "name": "rate_limit_enabled",
549
+ "type": "integer",
550
+ "primaryKey": false,
551
+ "notNull": true,
552
+ "autoincrement": false
553
+ },
554
+ "rate_limit_time_window": {
555
+ "name": "rate_limit_time_window",
556
+ "type": "integer",
557
+ "primaryKey": false,
558
+ "notNull": false,
559
+ "autoincrement": false
560
+ },
561
+ "rate_limit_max": {
562
+ "name": "rate_limit_max",
563
+ "type": "integer",
564
+ "primaryKey": false,
565
+ "notNull": false,
566
+ "autoincrement": false
567
+ },
568
+ "request_count": {
569
+ "name": "request_count",
570
+ "type": "integer",
571
+ "primaryKey": false,
572
+ "notNull": true,
573
+ "autoincrement": false
574
+ },
575
+ "remaining": {
576
+ "name": "remaining",
577
+ "type": "integer",
578
+ "primaryKey": false,
579
+ "notNull": false,
580
+ "autoincrement": false
581
+ },
582
+ "last_request": {
583
+ "name": "last_request",
584
+ "type": "integer",
585
+ "primaryKey": false,
586
+ "notNull": false,
587
+ "autoincrement": false
588
+ },
589
+ "expires_at": {
590
+ "name": "expires_at",
591
+ "type": "integer",
592
+ "primaryKey": false,
593
+ "notNull": false,
594
+ "autoincrement": false
595
+ },
596
+ "created_at": {
597
+ "name": "created_at",
598
+ "type": "integer",
599
+ "primaryKey": false,
600
+ "notNull": true,
601
+ "autoincrement": false
602
+ },
603
+ "updated_at": {
604
+ "name": "updated_at",
605
+ "type": "integer",
606
+ "primaryKey": false,
607
+ "notNull": true,
608
+ "autoincrement": false
609
+ },
610
+ "permissions": {
611
+ "name": "permissions",
612
+ "type": "text",
613
+ "primaryKey": false,
614
+ "notNull": false,
615
+ "autoincrement": false
616
+ },
617
+ "metadata": {
618
+ "name": "metadata",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": false,
622
+ "autoincrement": false
623
+ }
624
+ },
625
+ "indexes": {},
626
+ "foreignKeys": {
627
+ "apikeys_user_id_users_id_fk": {
628
+ "name": "apikeys_user_id_users_id_fk",
629
+ "tableFrom": "apikeys",
630
+ "tableTo": "users",
631
+ "columnsFrom": [
632
+ "user_id"
633
+ ],
634
+ "columnsTo": [
635
+ "id"
636
+ ],
637
+ "onDelete": "no action",
638
+ "onUpdate": "no action"
639
+ }
640
+ },
641
+ "compositePrimaryKeys": {},
642
+ "uniqueConstraints": {},
643
+ "checkConstraints": {}
644
+ },
645
+ "chats": {
646
+ "name": "chats",
647
+ "columns": {
648
+ "id": {
649
+ "name": "id",
650
+ "type": "text",
651
+ "primaryKey": true,
652
+ "notNull": true,
653
+ "autoincrement": false
654
+ },
655
+ "user_id": {
656
+ "name": "user_id",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": true,
660
+ "autoincrement": false
661
+ },
662
+ "title": {
663
+ "name": "title",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": false,
667
+ "autoincrement": false
668
+ },
669
+ "type": {
670
+ "name": "type",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": false,
674
+ "autoincrement": false
675
+ },
676
+ "conversation": {
677
+ "name": "conversation",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": false,
681
+ "autoincrement": false
682
+ },
683
+ "created_at": {
684
+ "name": "created_at",
685
+ "type": "integer",
686
+ "primaryKey": false,
687
+ "notNull": false,
688
+ "autoincrement": false
689
+ },
690
+ "updated_at": {
691
+ "name": "updated_at",
692
+ "type": "integer",
693
+ "primaryKey": false,
694
+ "notNull": true,
695
+ "autoincrement": false
696
+ }
697
+ },
698
+ "indexes": {},
699
+ "foreignKeys": {
700
+ "chats_user_id_users_id_fk": {
701
+ "name": "chats_user_id_users_id_fk",
702
+ "tableFrom": "chats",
703
+ "tableTo": "users",
704
+ "columnsFrom": [
705
+ "user_id"
706
+ ],
707
+ "columnsTo": [
708
+ "id"
709
+ ],
710
+ "onDelete": "cascade",
711
+ "onUpdate": "no action"
712
+ }
713
+ },
714
+ "compositePrimaryKeys": {},
715
+ "uniqueConstraints": {},
716
+ "checkConstraints": {}
717
+ },
718
+ "files": {
719
+ "name": "files",
720
+ "columns": {
721
+ "id": {
722
+ "name": "id",
723
+ "type": "text",
724
+ "primaryKey": true,
725
+ "notNull": true,
726
+ "autoincrement": false
727
+ },
728
+ "created_at": {
729
+ "name": "created_at",
730
+ "type": "integer",
731
+ "primaryKey": false,
732
+ "notNull": true,
733
+ "autoincrement": false
734
+ },
735
+ "updated_at": {
736
+ "name": "updated_at",
737
+ "type": "integer",
738
+ "primaryKey": false,
739
+ "notNull": false,
740
+ "autoincrement": false
741
+ },
742
+ "deleted_at": {
743
+ "name": "deleted_at",
744
+ "type": "integer",
745
+ "primaryKey": false,
746
+ "notNull": false,
747
+ "autoincrement": false
748
+ },
749
+ "user_id": {
750
+ "name": "user_id",
751
+ "type": "text",
752
+ "primaryKey": false,
753
+ "notNull": false,
754
+ "autoincrement": false
755
+ },
756
+ "member_id": {
757
+ "name": "member_id",
758
+ "type": "text",
759
+ "primaryKey": false,
760
+ "notNull": false,
761
+ "autoincrement": false
762
+ },
763
+ "organization_id": {
764
+ "name": "organization_id",
765
+ "type": "text",
766
+ "primaryKey": false,
767
+ "notNull": false,
768
+ "autoincrement": false
769
+ },
770
+ "team_id": {
771
+ "name": "team_id",
772
+ "type": "text",
773
+ "primaryKey": false,
774
+ "notNull": false,
775
+ "autoincrement": false
776
+ },
777
+ "bucket": {
778
+ "name": "bucket",
779
+ "type": "text",
780
+ "primaryKey": false,
781
+ "notNull": true,
782
+ "autoincrement": false
783
+ },
784
+ "key": {
785
+ "name": "key",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": true,
789
+ "autoincrement": false
790
+ },
791
+ "original_name": {
792
+ "name": "original_name",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": true,
796
+ "autoincrement": false
797
+ },
798
+ "original_extension": {
799
+ "name": "original_extension",
800
+ "type": "text",
801
+ "primaryKey": false,
802
+ "notNull": false,
803
+ "autoincrement": false
804
+ },
805
+ "content_type": {
806
+ "name": "content_type",
807
+ "type": "text",
808
+ "primaryKey": false,
809
+ "notNull": true,
810
+ "autoincrement": false
811
+ },
812
+ "size_bytes": {
813
+ "name": "size_bytes",
814
+ "type": "integer",
815
+ "primaryKey": false,
816
+ "notNull": false,
817
+ "autoincrement": false
818
+ },
819
+ "etag": {
820
+ "name": "etag",
821
+ "type": "text",
822
+ "primaryKey": false,
823
+ "notNull": false,
824
+ "autoincrement": false
825
+ },
826
+ "checksum_sha256": {
827
+ "name": "checksum_sha256",
828
+ "type": "text",
829
+ "primaryKey": false,
830
+ "notNull": false,
831
+ "autoincrement": false
832
+ },
833
+ "metadata": {
834
+ "name": "metadata",
835
+ "type": "text",
836
+ "primaryKey": false,
837
+ "notNull": false,
838
+ "autoincrement": false
839
+ },
840
+ "status": {
841
+ "name": "status",
842
+ "type": "text",
843
+ "primaryKey": false,
844
+ "notNull": true,
845
+ "autoincrement": false
846
+ },
847
+ "uploaded_at": {
848
+ "name": "uploaded_at",
849
+ "type": "integer",
850
+ "primaryKey": false,
851
+ "notNull": false,
852
+ "autoincrement": false
853
+ }
854
+ },
855
+ "indexes": {
856
+ "files_bucket_key_unique": {
857
+ "name": "files_bucket_key_unique",
858
+ "columns": [
859
+ "bucket",
860
+ "key"
861
+ ],
862
+ "isUnique": true
863
+ }
864
+ },
865
+ "foreignKeys": {
866
+ "files_user_id_users_id_fk": {
867
+ "name": "files_user_id_users_id_fk",
868
+ "tableFrom": "files",
869
+ "tableTo": "users",
870
+ "columnsFrom": [
871
+ "user_id"
872
+ ],
873
+ "columnsTo": [
874
+ "id"
875
+ ],
876
+ "onDelete": "set null",
877
+ "onUpdate": "no action"
878
+ },
879
+ "files_member_id_members_id_fk": {
880
+ "name": "files_member_id_members_id_fk",
881
+ "tableFrom": "files",
882
+ "tableTo": "members",
883
+ "columnsFrom": [
884
+ "member_id"
885
+ ],
886
+ "columnsTo": [
887
+ "id"
888
+ ],
889
+ "onDelete": "set null",
890
+ "onUpdate": "no action"
891
+ },
892
+ "files_organization_id_organizations_id_fk": {
893
+ "name": "files_organization_id_organizations_id_fk",
894
+ "tableFrom": "files",
895
+ "tableTo": "organizations",
896
+ "columnsFrom": [
897
+ "organization_id"
898
+ ],
899
+ "columnsTo": [
900
+ "id"
901
+ ],
902
+ "onDelete": "set null",
903
+ "onUpdate": "no action"
904
+ }
905
+ },
906
+ "compositePrimaryKeys": {},
907
+ "uniqueConstraints": {},
908
+ "checkConstraints": {}
909
+ },
910
+ "invitations": {
911
+ "name": "invitations",
912
+ "columns": {
913
+ "id": {
914
+ "name": "id",
915
+ "type": "text",
916
+ "primaryKey": true,
917
+ "notNull": true,
918
+ "autoincrement": false
919
+ },
920
+ "organization_id": {
921
+ "name": "organization_id",
922
+ "type": "text",
923
+ "primaryKey": false,
924
+ "notNull": true,
925
+ "autoincrement": false
926
+ },
927
+ "member_id": {
928
+ "name": "member_id",
929
+ "type": "text",
930
+ "primaryKey": false,
931
+ "notNull": false,
932
+ "autoincrement": false
933
+ },
934
+ "email": {
935
+ "name": "email",
936
+ "type": "text",
937
+ "primaryKey": false,
938
+ "notNull": true,
939
+ "autoincrement": false
940
+ },
941
+ "role": {
942
+ "name": "role",
943
+ "type": "text",
944
+ "primaryKey": false,
945
+ "notNull": false,
946
+ "autoincrement": false
947
+ },
948
+ "status": {
949
+ "name": "status",
950
+ "type": "text",
951
+ "primaryKey": false,
952
+ "notNull": true,
953
+ "autoincrement": false
954
+ },
955
+ "created_at": {
956
+ "name": "created_at",
957
+ "type": "integer",
958
+ "primaryKey": false,
959
+ "notNull": true,
960
+ "autoincrement": false
961
+ },
962
+ "expires_at": {
963
+ "name": "expires_at",
964
+ "type": "integer",
965
+ "primaryKey": false,
966
+ "notNull": true,
967
+ "autoincrement": false
968
+ },
969
+ "inviter_id": {
970
+ "name": "inviter_id",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": true,
974
+ "autoincrement": false
975
+ }
976
+ },
977
+ "indexes": {},
978
+ "foreignKeys": {
979
+ "invitations_organization_id_organizations_id_fk": {
980
+ "name": "invitations_organization_id_organizations_id_fk",
981
+ "tableFrom": "invitations",
982
+ "tableTo": "organizations",
983
+ "columnsFrom": [
984
+ "organization_id"
985
+ ],
986
+ "columnsTo": [
987
+ "id"
988
+ ],
989
+ "onDelete": "no action",
990
+ "onUpdate": "no action"
991
+ },
992
+ "invitations_member_id_members_id_fk": {
993
+ "name": "invitations_member_id_members_id_fk",
994
+ "tableFrom": "invitations",
995
+ "tableTo": "members",
996
+ "columnsFrom": [
997
+ "member_id"
998
+ ],
999
+ "columnsTo": [
1000
+ "id"
1001
+ ],
1002
+ "onDelete": "no action",
1003
+ "onUpdate": "no action"
1004
+ },
1005
+ "invitations_inviter_id_users_id_fk": {
1006
+ "name": "invitations_inviter_id_users_id_fk",
1007
+ "tableFrom": "invitations",
1008
+ "tableTo": "users",
1009
+ "columnsFrom": [
1010
+ "inviter_id"
1011
+ ],
1012
+ "columnsTo": [
1013
+ "id"
1014
+ ],
1015
+ "onDelete": "no action",
1016
+ "onUpdate": "no action"
1017
+ }
1018
+ },
1019
+ "compositePrimaryKeys": {},
1020
+ "uniqueConstraints": {},
1021
+ "checkConstraints": {}
1022
+ },
1023
+ "jwks": {
1024
+ "name": "jwks",
1025
+ "columns": {
1026
+ "id": {
1027
+ "name": "id",
1028
+ "type": "text",
1029
+ "primaryKey": true,
1030
+ "notNull": true,
1031
+ "autoincrement": false
1032
+ },
1033
+ "public_key": {
1034
+ "name": "public_key",
1035
+ "type": "text",
1036
+ "primaryKey": false,
1037
+ "notNull": true,
1038
+ "autoincrement": false
1039
+ },
1040
+ "private_key": {
1041
+ "name": "private_key",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": true,
1045
+ "autoincrement": false
1046
+ },
1047
+ "created_at": {
1048
+ "name": "created_at",
1049
+ "type": "integer",
1050
+ "primaryKey": false,
1051
+ "notNull": true,
1052
+ "autoincrement": false
1053
+ },
1054
+ "expires_at": {
1055
+ "name": "expires_at",
1056
+ "type": "integer",
1057
+ "primaryKey": false,
1058
+ "notNull": false,
1059
+ "autoincrement": false
1060
+ },
1061
+ "alg": {
1062
+ "name": "alg",
1063
+ "type": "text",
1064
+ "primaryKey": false,
1065
+ "notNull": false,
1066
+ "autoincrement": false
1067
+ },
1068
+ "crv": {
1069
+ "name": "crv",
1070
+ "type": "text",
1071
+ "primaryKey": false,
1072
+ "notNull": false,
1073
+ "autoincrement": false
1074
+ }
1075
+ },
1076
+ "indexes": {},
1077
+ "foreignKeys": {},
1078
+ "compositePrimaryKeys": {},
1079
+ "uniqueConstraints": {},
1080
+ "checkConstraints": {}
1081
+ },
1082
+ "mcp_allowlist_entries": {
1083
+ "name": "mcp_allowlist_entries",
1084
+ "columns": {
1085
+ "id": {
1086
+ "name": "id",
1087
+ "type": "text",
1088
+ "primaryKey": true,
1089
+ "notNull": true,
1090
+ "autoincrement": false
1091
+ },
1092
+ "oauth_client_id": {
1093
+ "name": "oauth_client_id",
1094
+ "type": "text",
1095
+ "primaryKey": false,
1096
+ "notNull": true,
1097
+ "autoincrement": false
1098
+ },
1099
+ "user_id": {
1100
+ "name": "user_id",
1101
+ "type": "text",
1102
+ "primaryKey": false,
1103
+ "notNull": true,
1104
+ "autoincrement": false
1105
+ },
1106
+ "organization_id": {
1107
+ "name": "organization_id",
1108
+ "type": "text",
1109
+ "primaryKey": false,
1110
+ "notNull": true,
1111
+ "autoincrement": false
1112
+ },
1113
+ "created_at": {
1114
+ "name": "created_at",
1115
+ "type": "integer",
1116
+ "primaryKey": false,
1117
+ "notNull": true,
1118
+ "autoincrement": false
1119
+ }
1120
+ },
1121
+ "indexes": {
1122
+ "mcp_allowlist_client_user_org_unique": {
1123
+ "name": "mcp_allowlist_client_user_org_unique",
1124
+ "columns": [
1125
+ "oauth_client_id",
1126
+ "user_id",
1127
+ "organization_id"
1128
+ ],
1129
+ "isUnique": true
1130
+ }
1131
+ },
1132
+ "foreignKeys": {
1133
+ "mcp_allowlist_entries_user_id_users_id_fk": {
1134
+ "name": "mcp_allowlist_entries_user_id_users_id_fk",
1135
+ "tableFrom": "mcp_allowlist_entries",
1136
+ "tableTo": "users",
1137
+ "columnsFrom": [
1138
+ "user_id"
1139
+ ],
1140
+ "columnsTo": [
1141
+ "id"
1142
+ ],
1143
+ "onDelete": "cascade",
1144
+ "onUpdate": "no action"
1145
+ },
1146
+ "mcp_allowlist_entries_organization_id_organizations_id_fk": {
1147
+ "name": "mcp_allowlist_entries_organization_id_organizations_id_fk",
1148
+ "tableFrom": "mcp_allowlist_entries",
1149
+ "tableTo": "organizations",
1150
+ "columnsFrom": [
1151
+ "organization_id"
1152
+ ],
1153
+ "columnsTo": [
1154
+ "id"
1155
+ ],
1156
+ "onDelete": "cascade",
1157
+ "onUpdate": "no action"
1158
+ }
1159
+ },
1160
+ "compositePrimaryKeys": {},
1161
+ "uniqueConstraints": {},
1162
+ "checkConstraints": {}
1163
+ },
1164
+ "members": {
1165
+ "name": "members",
1166
+ "columns": {
1167
+ "id": {
1168
+ "name": "id",
1169
+ "type": "text",
1170
+ "primaryKey": true,
1171
+ "notNull": true,
1172
+ "autoincrement": false
1173
+ },
1174
+ "organization_id": {
1175
+ "name": "organization_id",
1176
+ "type": "text",
1177
+ "primaryKey": false,
1178
+ "notNull": true,
1179
+ "autoincrement": false
1180
+ },
1181
+ "user_id": {
1182
+ "name": "user_id",
1183
+ "type": "text",
1184
+ "primaryKey": false,
1185
+ "notNull": false,
1186
+ "autoincrement": false
1187
+ },
1188
+ "email": {
1189
+ "name": "email",
1190
+ "type": "text",
1191
+ "primaryKey": false,
1192
+ "notNull": false,
1193
+ "autoincrement": false
1194
+ },
1195
+ "name": {
1196
+ "name": "name",
1197
+ "type": "text",
1198
+ "primaryKey": false,
1199
+ "notNull": true,
1200
+ "autoincrement": false,
1201
+ "default": "''"
1202
+ },
1203
+ "image": {
1204
+ "name": "image",
1205
+ "type": "text",
1206
+ "primaryKey": false,
1207
+ "notNull": false,
1208
+ "autoincrement": false
1209
+ },
1210
+ "role": {
1211
+ "name": "role",
1212
+ "type": "text",
1213
+ "primaryKey": false,
1214
+ "notNull": true,
1215
+ "autoincrement": false
1216
+ },
1217
+ "created_at": {
1218
+ "name": "created_at",
1219
+ "type": "integer",
1220
+ "primaryKey": false,
1221
+ "notNull": true,
1222
+ "autoincrement": false
1223
+ },
1224
+ "deleted_at": {
1225
+ "name": "deleted_at",
1226
+ "type": "integer",
1227
+ "primaryKey": false,
1228
+ "notNull": false,
1229
+ "autoincrement": false
1230
+ },
1231
+ "preferences": {
1232
+ "name": "preferences",
1233
+ "type": "text",
1234
+ "primaryKey": false,
1235
+ "notNull": false,
1236
+ "autoincrement": false,
1237
+ "default": "'{}'"
1238
+ },
1239
+ "metadata": {
1240
+ "name": "metadata",
1241
+ "type": "text",
1242
+ "primaryKey": false,
1243
+ "notNull": false,
1244
+ "autoincrement": false,
1245
+ "default": "'{}'"
1246
+ },
1247
+ "onboarding": {
1248
+ "name": "onboarding",
1249
+ "type": "integer",
1250
+ "primaryKey": false,
1251
+ "notNull": false,
1252
+ "autoincrement": false
1253
+ },
1254
+ "flags": {
1255
+ "name": "flags",
1256
+ "type": "text",
1257
+ "primaryKey": false,
1258
+ "notNull": false,
1259
+ "autoincrement": false,
1260
+ "default": "'[]'"
1261
+ }
1262
+ },
1263
+ "indexes": {
1264
+ "members_attached_user_organization_unique": {
1265
+ "name": "members_attached_user_organization_unique",
1266
+ "columns": [
1267
+ "user_id",
1268
+ "organization_id"
1269
+ ],
1270
+ "isUnique": true,
1271
+ "where": "\"members\".\"user_id\" is not null"
1272
+ },
1273
+ "members_live_pending_email_organization_unique": {
1274
+ "name": "members_live_pending_email_organization_unique",
1275
+ "columns": [
1276
+ "email",
1277
+ "organization_id"
1278
+ ],
1279
+ "isUnique": true,
1280
+ "where": "\"members\".\"user_id\" is null and \"members\".\"deleted_at\" is null"
1281
+ }
1282
+ },
1283
+ "foreignKeys": {
1284
+ "members_organization_id_organizations_id_fk": {
1285
+ "name": "members_organization_id_organizations_id_fk",
1286
+ "tableFrom": "members",
1287
+ "tableTo": "organizations",
1288
+ "columnsFrom": [
1289
+ "organization_id"
1290
+ ],
1291
+ "columnsTo": [
1292
+ "id"
1293
+ ],
1294
+ "onDelete": "no action",
1295
+ "onUpdate": "no action"
1296
+ },
1297
+ "members_user_id_users_id_fk": {
1298
+ "name": "members_user_id_users_id_fk",
1299
+ "tableFrom": "members",
1300
+ "tableTo": "users",
1301
+ "columnsFrom": [
1302
+ "user_id"
1303
+ ],
1304
+ "columnsTo": [
1305
+ "id"
1306
+ ],
1307
+ "onDelete": "no action",
1308
+ "onUpdate": "no action"
1309
+ }
1310
+ },
1311
+ "compositePrimaryKeys": {},
1312
+ "uniqueConstraints": {},
1313
+ "checkConstraints": {}
1314
+ },
1315
+ "notification_devices": {
1316
+ "name": "notification_devices",
1317
+ "columns": {
1318
+ "id": {
1319
+ "name": "id",
1320
+ "type": "text",
1321
+ "primaryKey": true,
1322
+ "notNull": true,
1323
+ "autoincrement": false
1324
+ },
1325
+ "user_id": {
1326
+ "name": "user_id",
1327
+ "type": "text",
1328
+ "primaryKey": false,
1329
+ "notNull": true,
1330
+ "autoincrement": false
1331
+ },
1332
+ "platform": {
1333
+ "name": "platform",
1334
+ "type": "text",
1335
+ "primaryKey": false,
1336
+ "notNull": true,
1337
+ "autoincrement": false
1338
+ },
1339
+ "endpoint": {
1340
+ "name": "endpoint",
1341
+ "type": "text",
1342
+ "primaryKey": false,
1343
+ "notNull": false,
1344
+ "autoincrement": false
1345
+ },
1346
+ "subscription": {
1347
+ "name": "subscription",
1348
+ "type": "text",
1349
+ "primaryKey": false,
1350
+ "notNull": false,
1351
+ "autoincrement": false
1352
+ },
1353
+ "token": {
1354
+ "name": "token",
1355
+ "type": "text",
1356
+ "primaryKey": false,
1357
+ "notNull": false,
1358
+ "autoincrement": false
1359
+ },
1360
+ "label": {
1361
+ "name": "label",
1362
+ "type": "text",
1363
+ "primaryKey": false,
1364
+ "notNull": false,
1365
+ "autoincrement": false
1366
+ },
1367
+ "enabled": {
1368
+ "name": "enabled",
1369
+ "type": "integer",
1370
+ "primaryKey": false,
1371
+ "notNull": true,
1372
+ "autoincrement": false,
1373
+ "default": true
1374
+ },
1375
+ "created_at": {
1376
+ "name": "created_at",
1377
+ "type": "integer",
1378
+ "primaryKey": false,
1379
+ "notNull": true,
1380
+ "autoincrement": false
1381
+ },
1382
+ "updated_at": {
1383
+ "name": "updated_at",
1384
+ "type": "integer",
1385
+ "primaryKey": false,
1386
+ "notNull": true,
1387
+ "autoincrement": false
1388
+ }
1389
+ },
1390
+ "indexes": {
1391
+ "notification_devices_endpoint_unique": {
1392
+ "name": "notification_devices_endpoint_unique",
1393
+ "columns": [
1394
+ "endpoint"
1395
+ ],
1396
+ "isUnique": true
1397
+ },
1398
+ "notification_devices_token_unique": {
1399
+ "name": "notification_devices_token_unique",
1400
+ "columns": [
1401
+ "token"
1402
+ ],
1403
+ "isUnique": true
1404
+ }
1405
+ },
1406
+ "foreignKeys": {
1407
+ "notification_devices_user_id_users_id_fk": {
1408
+ "name": "notification_devices_user_id_users_id_fk",
1409
+ "tableFrom": "notification_devices",
1410
+ "tableTo": "users",
1411
+ "columnsFrom": [
1412
+ "user_id"
1413
+ ],
1414
+ "columnsTo": [
1415
+ "id"
1416
+ ],
1417
+ "onDelete": "cascade",
1418
+ "onUpdate": "no action"
1419
+ }
1420
+ },
1421
+ "compositePrimaryKeys": {},
1422
+ "uniqueConstraints": {},
1423
+ "checkConstraints": {}
1424
+ },
1425
+ "notification_preferences": {
1426
+ "name": "notification_preferences",
1427
+ "columns": {
1428
+ "id": {
1429
+ "name": "id",
1430
+ "type": "text",
1431
+ "primaryKey": true,
1432
+ "notNull": true,
1433
+ "autoincrement": false
1434
+ },
1435
+ "member_id": {
1436
+ "name": "member_id",
1437
+ "type": "text",
1438
+ "primaryKey": false,
1439
+ "notNull": true,
1440
+ "autoincrement": false
1441
+ },
1442
+ "kind": {
1443
+ "name": "kind",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": true,
1447
+ "autoincrement": false
1448
+ },
1449
+ "channel": {
1450
+ "name": "channel",
1451
+ "type": "text",
1452
+ "primaryKey": false,
1453
+ "notNull": true,
1454
+ "autoincrement": false
1455
+ },
1456
+ "created_at": {
1457
+ "name": "created_at",
1458
+ "type": "integer",
1459
+ "primaryKey": false,
1460
+ "notNull": true,
1461
+ "autoincrement": false
1462
+ },
1463
+ "updated_at": {
1464
+ "name": "updated_at",
1465
+ "type": "integer",
1466
+ "primaryKey": false,
1467
+ "notNull": true,
1468
+ "autoincrement": false
1469
+ }
1470
+ },
1471
+ "indexes": {
1472
+ "notification_preferences_member_kind_channel_unique": {
1473
+ "name": "notification_preferences_member_kind_channel_unique",
1474
+ "columns": [
1475
+ "member_id",
1476
+ "kind",
1477
+ "channel"
1478
+ ],
1479
+ "isUnique": true
1480
+ }
1481
+ },
1482
+ "foreignKeys": {
1483
+ "notification_preferences_member_id_members_id_fk": {
1484
+ "name": "notification_preferences_member_id_members_id_fk",
1485
+ "tableFrom": "notification_preferences",
1486
+ "tableTo": "members",
1487
+ "columnsFrom": [
1488
+ "member_id"
1489
+ ],
1490
+ "columnsTo": [
1491
+ "id"
1492
+ ],
1493
+ "onDelete": "cascade",
1494
+ "onUpdate": "no action"
1495
+ }
1496
+ },
1497
+ "compositePrimaryKeys": {},
1498
+ "uniqueConstraints": {},
1499
+ "checkConstraints": {}
1500
+ },
1501
+ "notification_send_logs": {
1502
+ "name": "notification_send_logs",
1503
+ "columns": {
1504
+ "id": {
1505
+ "name": "id",
1506
+ "type": "text",
1507
+ "primaryKey": true,
1508
+ "notNull": true,
1509
+ "autoincrement": false
1510
+ },
1511
+ "batch_id": {
1512
+ "name": "batch_id",
1513
+ "type": "text",
1514
+ "primaryKey": false,
1515
+ "notNull": true,
1516
+ "autoincrement": false
1517
+ },
1518
+ "notification_id": {
1519
+ "name": "notification_id",
1520
+ "type": "text",
1521
+ "primaryKey": false,
1522
+ "notNull": true,
1523
+ "autoincrement": false
1524
+ },
1525
+ "user_id": {
1526
+ "name": "user_id",
1527
+ "type": "text",
1528
+ "primaryKey": false,
1529
+ "notNull": true,
1530
+ "autoincrement": false
1531
+ },
1532
+ "device_id": {
1533
+ "name": "device_id",
1534
+ "type": "text",
1535
+ "primaryKey": false,
1536
+ "notNull": false,
1537
+ "autoincrement": false
1538
+ },
1539
+ "channel": {
1540
+ "name": "channel",
1541
+ "type": "text",
1542
+ "primaryKey": false,
1543
+ "notNull": true,
1544
+ "autoincrement": false
1545
+ },
1546
+ "provider": {
1547
+ "name": "provider",
1548
+ "type": "text",
1549
+ "primaryKey": false,
1550
+ "notNull": false,
1551
+ "autoincrement": false
1552
+ },
1553
+ "title": {
1554
+ "name": "title",
1555
+ "type": "text",
1556
+ "primaryKey": false,
1557
+ "notNull": true,
1558
+ "autoincrement": false
1559
+ },
1560
+ "body": {
1561
+ "name": "body",
1562
+ "type": "text",
1563
+ "primaryKey": false,
1564
+ "notNull": true,
1565
+ "autoincrement": false
1566
+ },
1567
+ "data": {
1568
+ "name": "data",
1569
+ "type": "text",
1570
+ "primaryKey": false,
1571
+ "notNull": false,
1572
+ "autoincrement": false
1573
+ },
1574
+ "status": {
1575
+ "name": "status",
1576
+ "type": "text",
1577
+ "primaryKey": false,
1578
+ "notNull": true,
1579
+ "autoincrement": false
1580
+ },
1581
+ "error": {
1582
+ "name": "error",
1583
+ "type": "text",
1584
+ "primaryKey": false,
1585
+ "notNull": false,
1586
+ "autoincrement": false
1587
+ },
1588
+ "job_id": {
1589
+ "name": "job_id",
1590
+ "type": "text",
1591
+ "primaryKey": false,
1592
+ "notNull": false,
1593
+ "autoincrement": false
1594
+ },
1595
+ "created_at": {
1596
+ "name": "created_at",
1597
+ "type": "integer",
1598
+ "primaryKey": false,
1599
+ "notNull": true,
1600
+ "autoincrement": false
1601
+ },
1602
+ "updated_at": {
1603
+ "name": "updated_at",
1604
+ "type": "integer",
1605
+ "primaryKey": false,
1606
+ "notNull": true,
1607
+ "autoincrement": false
1608
+ }
1609
+ },
1610
+ "indexes": {},
1611
+ "foreignKeys": {
1612
+ "notification_send_logs_notification_id_notifications_id_fk": {
1613
+ "name": "notification_send_logs_notification_id_notifications_id_fk",
1614
+ "tableFrom": "notification_send_logs",
1615
+ "tableTo": "notifications",
1616
+ "columnsFrom": [
1617
+ "notification_id"
1618
+ ],
1619
+ "columnsTo": [
1620
+ "id"
1621
+ ],
1622
+ "onDelete": "cascade",
1623
+ "onUpdate": "no action"
1624
+ },
1625
+ "notification_send_logs_user_id_users_id_fk": {
1626
+ "name": "notification_send_logs_user_id_users_id_fk",
1627
+ "tableFrom": "notification_send_logs",
1628
+ "tableTo": "users",
1629
+ "columnsFrom": [
1630
+ "user_id"
1631
+ ],
1632
+ "columnsTo": [
1633
+ "id"
1634
+ ],
1635
+ "onDelete": "cascade",
1636
+ "onUpdate": "no action"
1637
+ },
1638
+ "notification_send_logs_device_id_notification_devices_id_fk": {
1639
+ "name": "notification_send_logs_device_id_notification_devices_id_fk",
1640
+ "tableFrom": "notification_send_logs",
1641
+ "tableTo": "notification_devices",
1642
+ "columnsFrom": [
1643
+ "device_id"
1644
+ ],
1645
+ "columnsTo": [
1646
+ "id"
1647
+ ],
1648
+ "onDelete": "set null",
1649
+ "onUpdate": "no action"
1650
+ }
1651
+ },
1652
+ "compositePrimaryKeys": {},
1653
+ "uniqueConstraints": {},
1654
+ "checkConstraints": {}
1655
+ },
1656
+ "notifications": {
1657
+ "name": "notifications",
1658
+ "columns": {
1659
+ "id": {
1660
+ "name": "id",
1661
+ "type": "text",
1662
+ "primaryKey": true,
1663
+ "notNull": true,
1664
+ "autoincrement": false
1665
+ },
1666
+ "member_id": {
1667
+ "name": "member_id",
1668
+ "type": "text",
1669
+ "primaryKey": false,
1670
+ "notNull": true,
1671
+ "autoincrement": false
1672
+ },
1673
+ "user_id": {
1674
+ "name": "user_id",
1675
+ "type": "text",
1676
+ "primaryKey": false,
1677
+ "notNull": true,
1678
+ "autoincrement": false
1679
+ },
1680
+ "kind": {
1681
+ "name": "kind",
1682
+ "type": "text",
1683
+ "primaryKey": false,
1684
+ "notNull": true,
1685
+ "autoincrement": false
1686
+ },
1687
+ "title": {
1688
+ "name": "title",
1689
+ "type": "text",
1690
+ "primaryKey": false,
1691
+ "notNull": true,
1692
+ "autoincrement": false
1693
+ },
1694
+ "body": {
1695
+ "name": "body",
1696
+ "type": "text",
1697
+ "primaryKey": false,
1698
+ "notNull": true,
1699
+ "autoincrement": false
1700
+ },
1701
+ "data": {
1702
+ "name": "data",
1703
+ "type": "text",
1704
+ "primaryKey": false,
1705
+ "notNull": false,
1706
+ "autoincrement": false
1707
+ },
1708
+ "visible_in_inbox": {
1709
+ "name": "visible_in_inbox",
1710
+ "type": "integer",
1711
+ "primaryKey": false,
1712
+ "notNull": true,
1713
+ "autoincrement": false,
1714
+ "default": false
1715
+ },
1716
+ "armed_channels": {
1717
+ "name": "armed_channels",
1718
+ "type": "text",
1719
+ "primaryKey": false,
1720
+ "notNull": true,
1721
+ "autoincrement": false,
1722
+ "default": "'[]'"
1723
+ },
1724
+ "web_pushed_at": {
1725
+ "name": "web_pushed_at",
1726
+ "type": "integer",
1727
+ "primaryKey": false,
1728
+ "notNull": false,
1729
+ "autoincrement": false
1730
+ },
1731
+ "mobile_pushed_at": {
1732
+ "name": "mobile_pushed_at",
1733
+ "type": "integer",
1734
+ "primaryKey": false,
1735
+ "notNull": false,
1736
+ "autoincrement": false
1737
+ },
1738
+ "emailed_at": {
1739
+ "name": "emailed_at",
1740
+ "type": "integer",
1741
+ "primaryKey": false,
1742
+ "notNull": false,
1743
+ "autoincrement": false
1744
+ },
1745
+ "read_at": {
1746
+ "name": "read_at",
1747
+ "type": "integer",
1748
+ "primaryKey": false,
1749
+ "notNull": false,
1750
+ "autoincrement": false
1751
+ },
1752
+ "created_at": {
1753
+ "name": "created_at",
1754
+ "type": "integer",
1755
+ "primaryKey": false,
1756
+ "notNull": true,
1757
+ "autoincrement": false
1758
+ },
1759
+ "updated_at": {
1760
+ "name": "updated_at",
1761
+ "type": "integer",
1762
+ "primaryKey": false,
1763
+ "notNull": true,
1764
+ "autoincrement": false
1765
+ }
1766
+ },
1767
+ "indexes": {},
1768
+ "foreignKeys": {
1769
+ "notifications_member_id_members_id_fk": {
1770
+ "name": "notifications_member_id_members_id_fk",
1771
+ "tableFrom": "notifications",
1772
+ "tableTo": "members",
1773
+ "columnsFrom": [
1774
+ "member_id"
1775
+ ],
1776
+ "columnsTo": [
1777
+ "id"
1778
+ ],
1779
+ "onDelete": "cascade",
1780
+ "onUpdate": "no action"
1781
+ },
1782
+ "notifications_user_id_users_id_fk": {
1783
+ "name": "notifications_user_id_users_id_fk",
1784
+ "tableFrom": "notifications",
1785
+ "tableTo": "users",
1786
+ "columnsFrom": [
1787
+ "user_id"
1788
+ ],
1789
+ "columnsTo": [
1790
+ "id"
1791
+ ],
1792
+ "onDelete": "cascade",
1793
+ "onUpdate": "no action"
1794
+ }
1795
+ },
1796
+ "compositePrimaryKeys": {},
1797
+ "uniqueConstraints": {},
1798
+ "checkConstraints": {}
1799
+ },
1800
+ "oauth_access_tokens": {
1801
+ "name": "oauth_access_tokens",
1802
+ "columns": {
1803
+ "id": {
1804
+ "name": "id",
1805
+ "type": "text",
1806
+ "primaryKey": true,
1807
+ "notNull": true,
1808
+ "autoincrement": false
1809
+ },
1810
+ "token": {
1811
+ "name": "token",
1812
+ "type": "text",
1813
+ "primaryKey": false,
1814
+ "notNull": false,
1815
+ "autoincrement": false
1816
+ },
1817
+ "client_id": {
1818
+ "name": "client_id",
1819
+ "type": "text",
1820
+ "primaryKey": false,
1821
+ "notNull": true,
1822
+ "autoincrement": false
1823
+ },
1824
+ "session_id": {
1825
+ "name": "session_id",
1826
+ "type": "text",
1827
+ "primaryKey": false,
1828
+ "notNull": false,
1829
+ "autoincrement": false
1830
+ },
1831
+ "user_id": {
1832
+ "name": "user_id",
1833
+ "type": "text",
1834
+ "primaryKey": false,
1835
+ "notNull": false,
1836
+ "autoincrement": false
1837
+ },
1838
+ "reference_id": {
1839
+ "name": "reference_id",
1840
+ "type": "text",
1841
+ "primaryKey": false,
1842
+ "notNull": false,
1843
+ "autoincrement": false
1844
+ },
1845
+ "authorization_code_id": {
1846
+ "name": "authorization_code_id",
1847
+ "type": "text",
1848
+ "primaryKey": false,
1849
+ "notNull": false,
1850
+ "autoincrement": false
1851
+ },
1852
+ "resources": {
1853
+ "name": "resources",
1854
+ "type": "text",
1855
+ "primaryKey": false,
1856
+ "notNull": false,
1857
+ "autoincrement": false
1858
+ },
1859
+ "requested_user_info_claims": {
1860
+ "name": "requested_user_info_claims",
1861
+ "type": "text",
1862
+ "primaryKey": false,
1863
+ "notNull": false,
1864
+ "autoincrement": false
1865
+ },
1866
+ "refresh_id": {
1867
+ "name": "refresh_id",
1868
+ "type": "text",
1869
+ "primaryKey": false,
1870
+ "notNull": false,
1871
+ "autoincrement": false
1872
+ },
1873
+ "expires_at": {
1874
+ "name": "expires_at",
1875
+ "type": "integer",
1876
+ "primaryKey": false,
1877
+ "notNull": true,
1878
+ "autoincrement": false
1879
+ },
1880
+ "created_at": {
1881
+ "name": "created_at",
1882
+ "type": "integer",
1883
+ "primaryKey": false,
1884
+ "notNull": true,
1885
+ "autoincrement": false
1886
+ },
1887
+ "revoked": {
1888
+ "name": "revoked",
1889
+ "type": "integer",
1890
+ "primaryKey": false,
1891
+ "notNull": false,
1892
+ "autoincrement": false
1893
+ },
1894
+ "confirmation": {
1895
+ "name": "confirmation",
1896
+ "type": "text",
1897
+ "primaryKey": false,
1898
+ "notNull": false,
1899
+ "autoincrement": false
1900
+ },
1901
+ "scopes": {
1902
+ "name": "scopes",
1903
+ "type": "text",
1904
+ "primaryKey": false,
1905
+ "notNull": true,
1906
+ "autoincrement": false
1907
+ }
1908
+ },
1909
+ "indexes": {
1910
+ "oauth_access_tokens_token_unique": {
1911
+ "name": "oauth_access_tokens_token_unique",
1912
+ "columns": [
1913
+ "token"
1914
+ ],
1915
+ "isUnique": true
1916
+ }
1917
+ },
1918
+ "foreignKeys": {
1919
+ "oauth_access_tokens_client_id_oauth_clients_client_id_fk": {
1920
+ "name": "oauth_access_tokens_client_id_oauth_clients_client_id_fk",
1921
+ "tableFrom": "oauth_access_tokens",
1922
+ "tableTo": "oauth_clients",
1923
+ "columnsFrom": [
1924
+ "client_id"
1925
+ ],
1926
+ "columnsTo": [
1927
+ "client_id"
1928
+ ],
1929
+ "onDelete": "no action",
1930
+ "onUpdate": "no action"
1931
+ },
1932
+ "oauth_access_tokens_session_id_sessions_id_fk": {
1933
+ "name": "oauth_access_tokens_session_id_sessions_id_fk",
1934
+ "tableFrom": "oauth_access_tokens",
1935
+ "tableTo": "sessions",
1936
+ "columnsFrom": [
1937
+ "session_id"
1938
+ ],
1939
+ "columnsTo": [
1940
+ "id"
1941
+ ],
1942
+ "onDelete": "set null",
1943
+ "onUpdate": "no action"
1944
+ },
1945
+ "oauth_access_tokens_user_id_users_id_fk": {
1946
+ "name": "oauth_access_tokens_user_id_users_id_fk",
1947
+ "tableFrom": "oauth_access_tokens",
1948
+ "tableTo": "users",
1949
+ "columnsFrom": [
1950
+ "user_id"
1951
+ ],
1952
+ "columnsTo": [
1953
+ "id"
1954
+ ],
1955
+ "onDelete": "no action",
1956
+ "onUpdate": "no action"
1957
+ },
1958
+ "oauth_access_tokens_refresh_id_oauth_refresh_tokens_id_fk": {
1959
+ "name": "oauth_access_tokens_refresh_id_oauth_refresh_tokens_id_fk",
1960
+ "tableFrom": "oauth_access_tokens",
1961
+ "tableTo": "oauth_refresh_tokens",
1962
+ "columnsFrom": [
1963
+ "refresh_id"
1964
+ ],
1965
+ "columnsTo": [
1966
+ "id"
1967
+ ],
1968
+ "onDelete": "no action",
1969
+ "onUpdate": "no action"
1970
+ }
1971
+ },
1972
+ "compositePrimaryKeys": {},
1973
+ "uniqueConstraints": {},
1974
+ "checkConstraints": {}
1975
+ },
1976
+ "oauth_client_assertions": {
1977
+ "name": "oauth_client_assertions",
1978
+ "columns": {
1979
+ "id": {
1980
+ "name": "id",
1981
+ "type": "text",
1982
+ "primaryKey": true,
1983
+ "notNull": true,
1984
+ "autoincrement": false
1985
+ },
1986
+ "expires_at": {
1987
+ "name": "expires_at",
1988
+ "type": "integer",
1989
+ "primaryKey": false,
1990
+ "notNull": true,
1991
+ "autoincrement": false
1992
+ }
1993
+ },
1994
+ "indexes": {},
1995
+ "foreignKeys": {},
1996
+ "compositePrimaryKeys": {},
1997
+ "uniqueConstraints": {},
1998
+ "checkConstraints": {}
1999
+ },
2000
+ "oauth_client_resources": {
2001
+ "name": "oauth_client_resources",
2002
+ "columns": {
2003
+ "id": {
2004
+ "name": "id",
2005
+ "type": "text",
2006
+ "primaryKey": true,
2007
+ "notNull": true,
2008
+ "autoincrement": false
2009
+ },
2010
+ "client_id": {
2011
+ "name": "client_id",
2012
+ "type": "text",
2013
+ "primaryKey": false,
2014
+ "notNull": true,
2015
+ "autoincrement": false
2016
+ },
2017
+ "resource_id": {
2018
+ "name": "resource_id",
2019
+ "type": "text",
2020
+ "primaryKey": false,
2021
+ "notNull": true,
2022
+ "autoincrement": false
2023
+ },
2024
+ "metadata": {
2025
+ "name": "metadata",
2026
+ "type": "text",
2027
+ "primaryKey": false,
2028
+ "notNull": false,
2029
+ "autoincrement": false
2030
+ },
2031
+ "created_at": {
2032
+ "name": "created_at",
2033
+ "type": "integer",
2034
+ "primaryKey": false,
2035
+ "notNull": false,
2036
+ "autoincrement": false
2037
+ }
2038
+ },
2039
+ "indexes": {
2040
+ "oauth_client_resources_client_resource_unique": {
2041
+ "name": "oauth_client_resources_client_resource_unique",
2042
+ "columns": [
2043
+ "client_id",
2044
+ "resource_id"
2045
+ ],
2046
+ "isUnique": true
2047
+ }
2048
+ },
2049
+ "foreignKeys": {
2050
+ "oauth_client_resources_client_id_oauth_clients_client_id_fk": {
2051
+ "name": "oauth_client_resources_client_id_oauth_clients_client_id_fk",
2052
+ "tableFrom": "oauth_client_resources",
2053
+ "tableTo": "oauth_clients",
2054
+ "columnsFrom": [
2055
+ "client_id"
2056
+ ],
2057
+ "columnsTo": [
2058
+ "client_id"
2059
+ ],
2060
+ "onDelete": "cascade",
2061
+ "onUpdate": "no action"
2062
+ },
2063
+ "oauth_client_resources_resource_id_oauth_resources_identifier_fk": {
2064
+ "name": "oauth_client_resources_resource_id_oauth_resources_identifier_fk",
2065
+ "tableFrom": "oauth_client_resources",
2066
+ "tableTo": "oauth_resources",
2067
+ "columnsFrom": [
2068
+ "resource_id"
2069
+ ],
2070
+ "columnsTo": [
2071
+ "identifier"
2072
+ ],
2073
+ "onDelete": "cascade",
2074
+ "onUpdate": "no action"
2075
+ }
2076
+ },
2077
+ "compositePrimaryKeys": {},
2078
+ "uniqueConstraints": {},
2079
+ "checkConstraints": {}
2080
+ },
2081
+ "oauth_clients": {
2082
+ "name": "oauth_clients",
2083
+ "columns": {
2084
+ "id": {
2085
+ "name": "id",
2086
+ "type": "text",
2087
+ "primaryKey": true,
2088
+ "notNull": true,
2089
+ "autoincrement": false
2090
+ },
2091
+ "client_id": {
2092
+ "name": "client_id",
2093
+ "type": "text",
2094
+ "primaryKey": false,
2095
+ "notNull": true,
2096
+ "autoincrement": false
2097
+ },
2098
+ "client_secret": {
2099
+ "name": "client_secret",
2100
+ "type": "text",
2101
+ "primaryKey": false,
2102
+ "notNull": false,
2103
+ "autoincrement": false
2104
+ },
2105
+ "client_discovery_id": {
2106
+ "name": "client_discovery_id",
2107
+ "type": "text",
2108
+ "primaryKey": false,
2109
+ "notNull": false,
2110
+ "autoincrement": false
2111
+ },
2112
+ "disabled": {
2113
+ "name": "disabled",
2114
+ "type": "integer",
2115
+ "primaryKey": false,
2116
+ "notNull": false,
2117
+ "autoincrement": false,
2118
+ "default": false
2119
+ },
2120
+ "skip_consent": {
2121
+ "name": "skip_consent",
2122
+ "type": "integer",
2123
+ "primaryKey": false,
2124
+ "notNull": false,
2125
+ "autoincrement": false
2126
+ },
2127
+ "enable_end_session": {
2128
+ "name": "enable_end_session",
2129
+ "type": "integer",
2130
+ "primaryKey": false,
2131
+ "notNull": false,
2132
+ "autoincrement": false
2133
+ },
2134
+ "subject_type": {
2135
+ "name": "subject_type",
2136
+ "type": "text",
2137
+ "primaryKey": false,
2138
+ "notNull": false,
2139
+ "autoincrement": false
2140
+ },
2141
+ "scopes": {
2142
+ "name": "scopes",
2143
+ "type": "text",
2144
+ "primaryKey": false,
2145
+ "notNull": false,
2146
+ "autoincrement": false
2147
+ },
2148
+ "client_credentials_scopes": {
2149
+ "name": "client_credentials_scopes",
2150
+ "type": "text",
2151
+ "primaryKey": false,
2152
+ "notNull": false,
2153
+ "autoincrement": false,
2154
+ "default": "'[]'"
2155
+ },
2156
+ "user_id": {
2157
+ "name": "user_id",
2158
+ "type": "text",
2159
+ "primaryKey": false,
2160
+ "notNull": false,
2161
+ "autoincrement": false
2162
+ },
2163
+ "created_at": {
2164
+ "name": "created_at",
2165
+ "type": "integer",
2166
+ "primaryKey": false,
2167
+ "notNull": false,
2168
+ "autoincrement": false
2169
+ },
2170
+ "updated_at": {
2171
+ "name": "updated_at",
2172
+ "type": "integer",
2173
+ "primaryKey": false,
2174
+ "notNull": false,
2175
+ "autoincrement": false
2176
+ },
2177
+ "name": {
2178
+ "name": "name",
2179
+ "type": "text",
2180
+ "primaryKey": false,
2181
+ "notNull": false,
2182
+ "autoincrement": false
2183
+ },
2184
+ "uri": {
2185
+ "name": "uri",
2186
+ "type": "text",
2187
+ "primaryKey": false,
2188
+ "notNull": false,
2189
+ "autoincrement": false
2190
+ },
2191
+ "icon": {
2192
+ "name": "icon",
2193
+ "type": "text",
2194
+ "primaryKey": false,
2195
+ "notNull": false,
2196
+ "autoincrement": false
2197
+ },
2198
+ "contacts": {
2199
+ "name": "contacts",
2200
+ "type": "text",
2201
+ "primaryKey": false,
2202
+ "notNull": false,
2203
+ "autoincrement": false
2204
+ },
2205
+ "tos": {
2206
+ "name": "tos",
2207
+ "type": "text",
2208
+ "primaryKey": false,
2209
+ "notNull": false,
2210
+ "autoincrement": false
2211
+ },
2212
+ "policy": {
2213
+ "name": "policy",
2214
+ "type": "text",
2215
+ "primaryKey": false,
2216
+ "notNull": false,
2217
+ "autoincrement": false
2218
+ },
2219
+ "software_id": {
2220
+ "name": "software_id",
2221
+ "type": "text",
2222
+ "primaryKey": false,
2223
+ "notNull": false,
2224
+ "autoincrement": false
2225
+ },
2226
+ "software_version": {
2227
+ "name": "software_version",
2228
+ "type": "text",
2229
+ "primaryKey": false,
2230
+ "notNull": false,
2231
+ "autoincrement": false
2232
+ },
2233
+ "software_statement": {
2234
+ "name": "software_statement",
2235
+ "type": "text",
2236
+ "primaryKey": false,
2237
+ "notNull": false,
2238
+ "autoincrement": false
2239
+ },
2240
+ "redirect_uris": {
2241
+ "name": "redirect_uris",
2242
+ "type": "text",
2243
+ "primaryKey": false,
2244
+ "notNull": true,
2245
+ "autoincrement": false
2246
+ },
2247
+ "post_logout_redirect_uris": {
2248
+ "name": "post_logout_redirect_uris",
2249
+ "type": "text",
2250
+ "primaryKey": false,
2251
+ "notNull": false,
2252
+ "autoincrement": false
2253
+ },
2254
+ "backchannel_logout_uri": {
2255
+ "name": "backchannel_logout_uri",
2256
+ "type": "text",
2257
+ "primaryKey": false,
2258
+ "notNull": false,
2259
+ "autoincrement": false
2260
+ },
2261
+ "backchannel_logout_session_required": {
2262
+ "name": "backchannel_logout_session_required",
2263
+ "type": "integer",
2264
+ "primaryKey": false,
2265
+ "notNull": false,
2266
+ "autoincrement": false
2267
+ },
2268
+ "token_endpoint_auth_method": {
2269
+ "name": "token_endpoint_auth_method",
2270
+ "type": "text",
2271
+ "primaryKey": false,
2272
+ "notNull": false,
2273
+ "autoincrement": false
2274
+ },
2275
+ "application_type": {
2276
+ "name": "application_type",
2277
+ "type": "text",
2278
+ "primaryKey": false,
2279
+ "notNull": false,
2280
+ "autoincrement": false
2281
+ },
2282
+ "jwks": {
2283
+ "name": "jwks",
2284
+ "type": "text",
2285
+ "primaryKey": false,
2286
+ "notNull": false,
2287
+ "autoincrement": false
2288
+ },
2289
+ "jwks_uri": {
2290
+ "name": "jwks_uri",
2291
+ "type": "text",
2292
+ "primaryKey": false,
2293
+ "notNull": false,
2294
+ "autoincrement": false
2295
+ },
2296
+ "grant_types": {
2297
+ "name": "grant_types",
2298
+ "type": "text",
2299
+ "primaryKey": false,
2300
+ "notNull": false,
2301
+ "autoincrement": false
2302
+ },
2303
+ "response_types": {
2304
+ "name": "response_types",
2305
+ "type": "text",
2306
+ "primaryKey": false,
2307
+ "notNull": false,
2308
+ "autoincrement": false
2309
+ },
2310
+ "require_pkce": {
2311
+ "name": "require_pkce",
2312
+ "type": "integer",
2313
+ "primaryKey": false,
2314
+ "notNull": false,
2315
+ "autoincrement": false
2316
+ },
2317
+ "dpop_bound_access_tokens": {
2318
+ "name": "dpop_bound_access_tokens",
2319
+ "type": "integer",
2320
+ "primaryKey": false,
2321
+ "notNull": false,
2322
+ "autoincrement": false,
2323
+ "default": false
2324
+ },
2325
+ "reference_id": {
2326
+ "name": "reference_id",
2327
+ "type": "text",
2328
+ "primaryKey": false,
2329
+ "notNull": false,
2330
+ "autoincrement": false
2331
+ },
2332
+ "metadata": {
2333
+ "name": "metadata",
2334
+ "type": "text",
2335
+ "primaryKey": false,
2336
+ "notNull": false,
2337
+ "autoincrement": false
2338
+ }
2339
+ },
2340
+ "indexes": {
2341
+ "oauth_clients_client_id_unique": {
2342
+ "name": "oauth_clients_client_id_unique",
2343
+ "columns": [
2344
+ "client_id"
2345
+ ],
2346
+ "isUnique": true
2347
+ }
2348
+ },
2349
+ "foreignKeys": {
2350
+ "oauth_clients_user_id_users_id_fk": {
2351
+ "name": "oauth_clients_user_id_users_id_fk",
2352
+ "tableFrom": "oauth_clients",
2353
+ "tableTo": "users",
2354
+ "columnsFrom": [
2355
+ "user_id"
2356
+ ],
2357
+ "columnsTo": [
2358
+ "id"
2359
+ ],
2360
+ "onDelete": "no action",
2361
+ "onUpdate": "no action"
2362
+ }
2363
+ },
2364
+ "compositePrimaryKeys": {},
2365
+ "uniqueConstraints": {},
2366
+ "checkConstraints": {}
2367
+ },
2368
+ "oauth_consents": {
2369
+ "name": "oauth_consents",
2370
+ "columns": {
2371
+ "id": {
2372
+ "name": "id",
2373
+ "type": "text",
2374
+ "primaryKey": true,
2375
+ "notNull": true,
2376
+ "autoincrement": false
2377
+ },
2378
+ "client_id": {
2379
+ "name": "client_id",
2380
+ "type": "text",
2381
+ "primaryKey": false,
2382
+ "notNull": true,
2383
+ "autoincrement": false
2384
+ },
2385
+ "user_id": {
2386
+ "name": "user_id",
2387
+ "type": "text",
2388
+ "primaryKey": false,
2389
+ "notNull": false,
2390
+ "autoincrement": false
2391
+ },
2392
+ "reference_id": {
2393
+ "name": "reference_id",
2394
+ "type": "text",
2395
+ "primaryKey": false,
2396
+ "notNull": false,
2397
+ "autoincrement": false
2398
+ },
2399
+ "resources": {
2400
+ "name": "resources",
2401
+ "type": "text",
2402
+ "primaryKey": false,
2403
+ "notNull": false,
2404
+ "autoincrement": false
2405
+ },
2406
+ "requested_user_info_claims": {
2407
+ "name": "requested_user_info_claims",
2408
+ "type": "text",
2409
+ "primaryKey": false,
2410
+ "notNull": false,
2411
+ "autoincrement": false
2412
+ },
2413
+ "scopes": {
2414
+ "name": "scopes",
2415
+ "type": "text",
2416
+ "primaryKey": false,
2417
+ "notNull": true,
2418
+ "autoincrement": false
2419
+ },
2420
+ "created_at": {
2421
+ "name": "created_at",
2422
+ "type": "integer",
2423
+ "primaryKey": false,
2424
+ "notNull": true,
2425
+ "autoincrement": false
2426
+ },
2427
+ "updated_at": {
2428
+ "name": "updated_at",
2429
+ "type": "integer",
2430
+ "primaryKey": false,
2431
+ "notNull": true,
2432
+ "autoincrement": false
2433
+ }
2434
+ },
2435
+ "indexes": {},
2436
+ "foreignKeys": {
2437
+ "oauth_consents_client_id_oauth_clients_client_id_fk": {
2438
+ "name": "oauth_consents_client_id_oauth_clients_client_id_fk",
2439
+ "tableFrom": "oauth_consents",
2440
+ "tableTo": "oauth_clients",
2441
+ "columnsFrom": [
2442
+ "client_id"
2443
+ ],
2444
+ "columnsTo": [
2445
+ "client_id"
2446
+ ],
2447
+ "onDelete": "no action",
2448
+ "onUpdate": "no action"
2449
+ },
2450
+ "oauth_consents_user_id_users_id_fk": {
2451
+ "name": "oauth_consents_user_id_users_id_fk",
2452
+ "tableFrom": "oauth_consents",
2453
+ "tableTo": "users",
2454
+ "columnsFrom": [
2455
+ "user_id"
2456
+ ],
2457
+ "columnsTo": [
2458
+ "id"
2459
+ ],
2460
+ "onDelete": "no action",
2461
+ "onUpdate": "no action"
2462
+ }
2463
+ },
2464
+ "compositePrimaryKeys": {},
2465
+ "uniqueConstraints": {},
2466
+ "checkConstraints": {}
2467
+ },
2468
+ "oauth_refresh_tokens": {
2469
+ "name": "oauth_refresh_tokens",
2470
+ "columns": {
2471
+ "id": {
2472
+ "name": "id",
2473
+ "type": "text",
2474
+ "primaryKey": true,
2475
+ "notNull": true,
2476
+ "autoincrement": false
2477
+ },
2478
+ "token": {
2479
+ "name": "token",
2480
+ "type": "text",
2481
+ "primaryKey": false,
2482
+ "notNull": true,
2483
+ "autoincrement": false
2484
+ },
2485
+ "client_id": {
2486
+ "name": "client_id",
2487
+ "type": "text",
2488
+ "primaryKey": false,
2489
+ "notNull": true,
2490
+ "autoincrement": false
2491
+ },
2492
+ "session_id": {
2493
+ "name": "session_id",
2494
+ "type": "text",
2495
+ "primaryKey": false,
2496
+ "notNull": false,
2497
+ "autoincrement": false
2498
+ },
2499
+ "user_id": {
2500
+ "name": "user_id",
2501
+ "type": "text",
2502
+ "primaryKey": false,
2503
+ "notNull": true,
2504
+ "autoincrement": false
2505
+ },
2506
+ "reference_id": {
2507
+ "name": "reference_id",
2508
+ "type": "text",
2509
+ "primaryKey": false,
2510
+ "notNull": false,
2511
+ "autoincrement": false
2512
+ },
2513
+ "authorization_code_id": {
2514
+ "name": "authorization_code_id",
2515
+ "type": "text",
2516
+ "primaryKey": false,
2517
+ "notNull": false,
2518
+ "autoincrement": false
2519
+ },
2520
+ "resources": {
2521
+ "name": "resources",
2522
+ "type": "text",
2523
+ "primaryKey": false,
2524
+ "notNull": false,
2525
+ "autoincrement": false
2526
+ },
2527
+ "requested_user_info_claims": {
2528
+ "name": "requested_user_info_claims",
2529
+ "type": "text",
2530
+ "primaryKey": false,
2531
+ "notNull": false,
2532
+ "autoincrement": false
2533
+ },
2534
+ "expires_at": {
2535
+ "name": "expires_at",
2536
+ "type": "integer",
2537
+ "primaryKey": false,
2538
+ "notNull": true,
2539
+ "autoincrement": false
2540
+ },
2541
+ "created_at": {
2542
+ "name": "created_at",
2543
+ "type": "integer",
2544
+ "primaryKey": false,
2545
+ "notNull": true,
2546
+ "autoincrement": false
2547
+ },
2548
+ "revoked": {
2549
+ "name": "revoked",
2550
+ "type": "integer",
2551
+ "primaryKey": false,
2552
+ "notNull": false,
2553
+ "autoincrement": false
2554
+ },
2555
+ "rotated_at": {
2556
+ "name": "rotated_at",
2557
+ "type": "integer",
2558
+ "primaryKey": false,
2559
+ "notNull": false,
2560
+ "autoincrement": false
2561
+ },
2562
+ "rotation_replay_response": {
2563
+ "name": "rotation_replay_response",
2564
+ "type": "text",
2565
+ "primaryKey": false,
2566
+ "notNull": false,
2567
+ "autoincrement": false
2568
+ },
2569
+ "rotation_replay_expires_at": {
2570
+ "name": "rotation_replay_expires_at",
2571
+ "type": "integer",
2572
+ "primaryKey": false,
2573
+ "notNull": false,
2574
+ "autoincrement": false
2575
+ },
2576
+ "auth_time": {
2577
+ "name": "auth_time",
2578
+ "type": "integer",
2579
+ "primaryKey": false,
2580
+ "notNull": false,
2581
+ "autoincrement": false
2582
+ },
2583
+ "confirmation": {
2584
+ "name": "confirmation",
2585
+ "type": "text",
2586
+ "primaryKey": false,
2587
+ "notNull": false,
2588
+ "autoincrement": false
2589
+ },
2590
+ "scopes": {
2591
+ "name": "scopes",
2592
+ "type": "text",
2593
+ "primaryKey": false,
2594
+ "notNull": true,
2595
+ "autoincrement": false
2596
+ }
2597
+ },
2598
+ "indexes": {
2599
+ "oauth_refresh_tokens_token_unique": {
2600
+ "name": "oauth_refresh_tokens_token_unique",
2601
+ "columns": [
2602
+ "token"
2603
+ ],
2604
+ "isUnique": true
2605
+ }
2606
+ },
2607
+ "foreignKeys": {
2608
+ "oauth_refresh_tokens_client_id_oauth_clients_client_id_fk": {
2609
+ "name": "oauth_refresh_tokens_client_id_oauth_clients_client_id_fk",
2610
+ "tableFrom": "oauth_refresh_tokens",
2611
+ "tableTo": "oauth_clients",
2612
+ "columnsFrom": [
2613
+ "client_id"
2614
+ ],
2615
+ "columnsTo": [
2616
+ "client_id"
2617
+ ],
2618
+ "onDelete": "no action",
2619
+ "onUpdate": "no action"
2620
+ },
2621
+ "oauth_refresh_tokens_session_id_sessions_id_fk": {
2622
+ "name": "oauth_refresh_tokens_session_id_sessions_id_fk",
2623
+ "tableFrom": "oauth_refresh_tokens",
2624
+ "tableTo": "sessions",
2625
+ "columnsFrom": [
2626
+ "session_id"
2627
+ ],
2628
+ "columnsTo": [
2629
+ "id"
2630
+ ],
2631
+ "onDelete": "set null",
2632
+ "onUpdate": "no action"
2633
+ },
2634
+ "oauth_refresh_tokens_user_id_users_id_fk": {
2635
+ "name": "oauth_refresh_tokens_user_id_users_id_fk",
2636
+ "tableFrom": "oauth_refresh_tokens",
2637
+ "tableTo": "users",
2638
+ "columnsFrom": [
2639
+ "user_id"
2640
+ ],
2641
+ "columnsTo": [
2642
+ "id"
2643
+ ],
2644
+ "onDelete": "no action",
2645
+ "onUpdate": "no action"
2646
+ }
2647
+ },
2648
+ "compositePrimaryKeys": {},
2649
+ "uniqueConstraints": {},
2650
+ "checkConstraints": {}
2651
+ },
2652
+ "oauth_resources": {
2653
+ "name": "oauth_resources",
2654
+ "columns": {
2655
+ "id": {
2656
+ "name": "id",
2657
+ "type": "text",
2658
+ "primaryKey": true,
2659
+ "notNull": true,
2660
+ "autoincrement": false
2661
+ },
2662
+ "identifier": {
2663
+ "name": "identifier",
2664
+ "type": "text",
2665
+ "primaryKey": false,
2666
+ "notNull": true,
2667
+ "autoincrement": false
2668
+ },
2669
+ "name": {
2670
+ "name": "name",
2671
+ "type": "text",
2672
+ "primaryKey": false,
2673
+ "notNull": true,
2674
+ "autoincrement": false
2675
+ },
2676
+ "access_token_ttl": {
2677
+ "name": "access_token_ttl",
2678
+ "type": "integer",
2679
+ "primaryKey": false,
2680
+ "notNull": false,
2681
+ "autoincrement": false
2682
+ },
2683
+ "refresh_token_ttl": {
2684
+ "name": "refresh_token_ttl",
2685
+ "type": "integer",
2686
+ "primaryKey": false,
2687
+ "notNull": false,
2688
+ "autoincrement": false
2689
+ },
2690
+ "signing_algorithm": {
2691
+ "name": "signing_algorithm",
2692
+ "type": "text",
2693
+ "primaryKey": false,
2694
+ "notNull": false,
2695
+ "autoincrement": false
2696
+ },
2697
+ "signing_key_id": {
2698
+ "name": "signing_key_id",
2699
+ "type": "text",
2700
+ "primaryKey": false,
2701
+ "notNull": false,
2702
+ "autoincrement": false
2703
+ },
2704
+ "allowed_scopes": {
2705
+ "name": "allowed_scopes",
2706
+ "type": "text",
2707
+ "primaryKey": false,
2708
+ "notNull": false,
2709
+ "autoincrement": false
2710
+ },
2711
+ "custom_claims": {
2712
+ "name": "custom_claims",
2713
+ "type": "text",
2714
+ "primaryKey": false,
2715
+ "notNull": false,
2716
+ "autoincrement": false
2717
+ },
2718
+ "dpop_bound_access_tokens_required": {
2719
+ "name": "dpop_bound_access_tokens_required",
2720
+ "type": "integer",
2721
+ "primaryKey": false,
2722
+ "notNull": false,
2723
+ "autoincrement": false,
2724
+ "default": false
2725
+ },
2726
+ "disabled": {
2727
+ "name": "disabled",
2728
+ "type": "integer",
2729
+ "primaryKey": false,
2730
+ "notNull": false,
2731
+ "autoincrement": false,
2732
+ "default": false
2733
+ },
2734
+ "created_at": {
2735
+ "name": "created_at",
2736
+ "type": "integer",
2737
+ "primaryKey": false,
2738
+ "notNull": false,
2739
+ "autoincrement": false
2740
+ },
2741
+ "updated_at": {
2742
+ "name": "updated_at",
2743
+ "type": "integer",
2744
+ "primaryKey": false,
2745
+ "notNull": false,
2746
+ "autoincrement": false
2747
+ },
2748
+ "policy_version": {
2749
+ "name": "policy_version",
2750
+ "type": "integer",
2751
+ "primaryKey": false,
2752
+ "notNull": false,
2753
+ "autoincrement": false,
2754
+ "default": 1
2755
+ },
2756
+ "metadata": {
2757
+ "name": "metadata",
2758
+ "type": "text",
2759
+ "primaryKey": false,
2760
+ "notNull": false,
2761
+ "autoincrement": false
2762
+ }
2763
+ },
2764
+ "indexes": {
2765
+ "oauth_resources_identifier_unique": {
2766
+ "name": "oauth_resources_identifier_unique",
2767
+ "columns": [
2768
+ "identifier"
2769
+ ],
2770
+ "isUnique": true
2771
+ }
2772
+ },
2773
+ "foreignKeys": {},
2774
+ "compositePrimaryKeys": {},
2775
+ "uniqueConstraints": {},
2776
+ "checkConstraints": {}
2777
+ },
2778
+ "organizations": {
2779
+ "name": "organizations",
2780
+ "columns": {
2781
+ "id": {
2782
+ "name": "id",
2783
+ "type": "text",
2784
+ "primaryKey": true,
2785
+ "notNull": true,
2786
+ "autoincrement": false
2787
+ },
2788
+ "name": {
2789
+ "name": "name",
2790
+ "type": "text",
2791
+ "primaryKey": false,
2792
+ "notNull": true,
2793
+ "autoincrement": false
2794
+ },
2795
+ "slug": {
2796
+ "name": "slug",
2797
+ "type": "text",
2798
+ "primaryKey": false,
2799
+ "notNull": false,
2800
+ "autoincrement": false
2801
+ },
2802
+ "logo": {
2803
+ "name": "logo",
2804
+ "type": "text",
2805
+ "primaryKey": false,
2806
+ "notNull": false,
2807
+ "autoincrement": false
2808
+ },
2809
+ "type": {
2810
+ "name": "type",
2811
+ "type": "text",
2812
+ "primaryKey": false,
2813
+ "notNull": false,
2814
+ "autoincrement": false
2815
+ },
2816
+ "parent_id": {
2817
+ "name": "parent_id",
2818
+ "type": "text",
2819
+ "primaryKey": false,
2820
+ "notNull": false,
2821
+ "autoincrement": false
2822
+ },
2823
+ "created_at": {
2824
+ "name": "created_at",
2825
+ "type": "integer",
2826
+ "primaryKey": false,
2827
+ "notNull": true,
2828
+ "autoincrement": false
2829
+ },
2830
+ "onboarding": {
2831
+ "name": "onboarding",
2832
+ "type": "integer",
2833
+ "primaryKey": false,
2834
+ "notNull": false,
2835
+ "autoincrement": false
2836
+ },
2837
+ "preferences": {
2838
+ "name": "preferences",
2839
+ "type": "text",
2840
+ "primaryKey": false,
2841
+ "notNull": false,
2842
+ "autoincrement": false,
2843
+ "default": "'{}'"
2844
+ },
2845
+ "metadata": {
2846
+ "name": "metadata",
2847
+ "type": "text",
2848
+ "primaryKey": false,
2849
+ "notNull": false,
2850
+ "autoincrement": false,
2851
+ "default": "'{}'"
2852
+ },
2853
+ "flags": {
2854
+ "name": "flags",
2855
+ "type": "text",
2856
+ "primaryKey": false,
2857
+ "notNull": false,
2858
+ "autoincrement": false,
2859
+ "default": "'[]'"
2860
+ },
2861
+ "locale": {
2862
+ "name": "locale",
2863
+ "type": "text",
2864
+ "primaryKey": false,
2865
+ "notNull": false,
2866
+ "autoincrement": false
2867
+ }
2868
+ },
2869
+ "indexes": {
2870
+ "organizations_slug_unique": {
2871
+ "name": "organizations_slug_unique",
2872
+ "columns": [
2873
+ "slug"
2874
+ ],
2875
+ "isUnique": true
2876
+ }
2877
+ },
2878
+ "foreignKeys": {
2879
+ "organizations_parent_id_organizations_id_fk": {
2880
+ "name": "organizations_parent_id_organizations_id_fk",
2881
+ "tableFrom": "organizations",
2882
+ "tableTo": "organizations",
2883
+ "columnsFrom": [
2884
+ "parent_id"
2885
+ ],
2886
+ "columnsTo": [
2887
+ "id"
2888
+ ],
2889
+ "onDelete": "set null",
2890
+ "onUpdate": "no action"
2891
+ }
2892
+ },
2893
+ "compositePrimaryKeys": {},
2894
+ "uniqueConstraints": {},
2895
+ "checkConstraints": {}
2896
+ },
2897
+ "posts": {
2898
+ "name": "posts",
2899
+ "columns": {
2900
+ "id": {
2901
+ "name": "id",
2902
+ "type": "text",
2903
+ "primaryKey": true,
2904
+ "notNull": true,
2905
+ "autoincrement": false
2906
+ },
2907
+ "author_user_id": {
2908
+ "name": "author_user_id",
2909
+ "type": "text",
2910
+ "primaryKey": false,
2911
+ "notNull": false,
2912
+ "autoincrement": false
2913
+ },
2914
+ "member_id": {
2915
+ "name": "member_id",
2916
+ "type": "text",
2917
+ "primaryKey": false,
2918
+ "notNull": false,
2919
+ "autoincrement": false
2920
+ },
2921
+ "organization_id": {
2922
+ "name": "organization_id",
2923
+ "type": "text",
2924
+ "primaryKey": false,
2925
+ "notNull": false,
2926
+ "autoincrement": false
2927
+ },
2928
+ "team_id": {
2929
+ "name": "team_id",
2930
+ "type": "text",
2931
+ "primaryKey": false,
2932
+ "notNull": false,
2933
+ "autoincrement": false
2934
+ },
2935
+ "title": {
2936
+ "name": "title",
2937
+ "type": "text",
2938
+ "primaryKey": false,
2939
+ "notNull": true,
2940
+ "autoincrement": false
2941
+ },
2942
+ "slug": {
2943
+ "name": "slug",
2944
+ "type": "text",
2945
+ "primaryKey": false,
2946
+ "notNull": true,
2947
+ "autoincrement": false
2948
+ },
2949
+ "excerpt": {
2950
+ "name": "excerpt",
2951
+ "type": "text",
2952
+ "primaryKey": false,
2953
+ "notNull": false,
2954
+ "autoincrement": false
2955
+ },
2956
+ "content": {
2957
+ "name": "content",
2958
+ "type": "text",
2959
+ "primaryKey": false,
2960
+ "notNull": true,
2961
+ "autoincrement": false
2962
+ },
2963
+ "status": {
2964
+ "name": "status",
2965
+ "type": "text",
2966
+ "primaryKey": false,
2967
+ "notNull": true,
2968
+ "autoincrement": false,
2969
+ "default": "'draft'"
2970
+ },
2971
+ "published_at": {
2972
+ "name": "published_at",
2973
+ "type": "integer",
2974
+ "primaryKey": false,
2975
+ "notNull": false,
2976
+ "autoincrement": false
2977
+ },
2978
+ "created_at": {
2979
+ "name": "created_at",
2980
+ "type": "integer",
2981
+ "primaryKey": false,
2982
+ "notNull": true,
2983
+ "autoincrement": false
2984
+ },
2985
+ "updated_at": {
2986
+ "name": "updated_at",
2987
+ "type": "integer",
2988
+ "primaryKey": false,
2989
+ "notNull": false,
2990
+ "autoincrement": false
2991
+ },
2992
+ "deleted_at": {
2993
+ "name": "deleted_at",
2994
+ "type": "integer",
2995
+ "primaryKey": false,
2996
+ "notNull": false,
2997
+ "autoincrement": false
2998
+ }
2999
+ },
3000
+ "indexes": {
3001
+ "posts_slug_unique": {
3002
+ "name": "posts_slug_unique",
3003
+ "columns": [
3004
+ "slug"
3005
+ ],
3006
+ "isUnique": true
3007
+ }
3008
+ },
3009
+ "foreignKeys": {
3010
+ "posts_author_user_id_users_id_fk": {
3011
+ "name": "posts_author_user_id_users_id_fk",
3012
+ "tableFrom": "posts",
3013
+ "tableTo": "users",
3014
+ "columnsFrom": [
3015
+ "author_user_id"
3016
+ ],
3017
+ "columnsTo": [
3018
+ "id"
3019
+ ],
3020
+ "onDelete": "set null",
3021
+ "onUpdate": "no action"
3022
+ },
3023
+ "posts_member_id_members_id_fk": {
3024
+ "name": "posts_member_id_members_id_fk",
3025
+ "tableFrom": "posts",
3026
+ "tableTo": "members",
3027
+ "columnsFrom": [
3028
+ "member_id"
3029
+ ],
3030
+ "columnsTo": [
3031
+ "id"
3032
+ ],
3033
+ "onDelete": "set null",
3034
+ "onUpdate": "no action"
3035
+ },
3036
+ "posts_organization_id_organizations_id_fk": {
3037
+ "name": "posts_organization_id_organizations_id_fk",
3038
+ "tableFrom": "posts",
3039
+ "tableTo": "organizations",
3040
+ "columnsFrom": [
3041
+ "organization_id"
3042
+ ],
3043
+ "columnsTo": [
3044
+ "id"
3045
+ ],
3046
+ "onDelete": "set null",
3047
+ "onUpdate": "no action"
3048
+ }
3049
+ },
3050
+ "compositePrimaryKeys": {},
3051
+ "uniqueConstraints": {},
3052
+ "checkConstraints": {}
3053
+ },
3054
+ "sessions": {
3055
+ "name": "sessions",
3056
+ "columns": {
3057
+ "id": {
3058
+ "name": "id",
3059
+ "type": "text",
3060
+ "primaryKey": true,
3061
+ "notNull": true,
3062
+ "autoincrement": false
3063
+ },
3064
+ "expires_at": {
3065
+ "name": "expires_at",
3066
+ "type": "integer",
3067
+ "primaryKey": false,
3068
+ "notNull": true,
3069
+ "autoincrement": false
3070
+ },
3071
+ "token": {
3072
+ "name": "token",
3073
+ "type": "text",
3074
+ "primaryKey": false,
3075
+ "notNull": true,
3076
+ "autoincrement": false
3077
+ },
3078
+ "created_at": {
3079
+ "name": "created_at",
3080
+ "type": "integer",
3081
+ "primaryKey": false,
3082
+ "notNull": true,
3083
+ "autoincrement": false
3084
+ },
3085
+ "updated_at": {
3086
+ "name": "updated_at",
3087
+ "type": "integer",
3088
+ "primaryKey": false,
3089
+ "notNull": true,
3090
+ "autoincrement": false
3091
+ },
3092
+ "ip_address": {
3093
+ "name": "ip_address",
3094
+ "type": "text",
3095
+ "primaryKey": false,
3096
+ "notNull": false,
3097
+ "autoincrement": false
3098
+ },
3099
+ "user_agent": {
3100
+ "name": "user_agent",
3101
+ "type": "text",
3102
+ "primaryKey": false,
3103
+ "notNull": false,
3104
+ "autoincrement": false
3105
+ },
3106
+ "user_id": {
3107
+ "name": "user_id",
3108
+ "type": "text",
3109
+ "primaryKey": false,
3110
+ "notNull": true,
3111
+ "autoincrement": false
3112
+ },
3113
+ "impersonated_by": {
3114
+ "name": "impersonated_by",
3115
+ "type": "text",
3116
+ "primaryKey": false,
3117
+ "notNull": false,
3118
+ "autoincrement": false
3119
+ },
3120
+ "active_organization_id": {
3121
+ "name": "active_organization_id",
3122
+ "type": "text",
3123
+ "primaryKey": false,
3124
+ "notNull": false,
3125
+ "autoincrement": false
3126
+ },
3127
+ "active_organization_member_id": {
3128
+ "name": "active_organization_member_id",
3129
+ "type": "text",
3130
+ "primaryKey": false,
3131
+ "notNull": false,
3132
+ "autoincrement": false
3133
+ },
3134
+ "active_organization_role": {
3135
+ "name": "active_organization_role",
3136
+ "type": "text",
3137
+ "primaryKey": false,
3138
+ "notNull": false,
3139
+ "autoincrement": false
3140
+ },
3141
+ "active_organization_type": {
3142
+ "name": "active_organization_type",
3143
+ "type": "text",
3144
+ "primaryKey": false,
3145
+ "notNull": false,
3146
+ "autoincrement": false
3147
+ }
3148
+ },
3149
+ "indexes": {
3150
+ "sessions_token_unique": {
3151
+ "name": "sessions_token_unique",
3152
+ "columns": [
3153
+ "token"
3154
+ ],
3155
+ "isUnique": true
3156
+ }
3157
+ },
3158
+ "foreignKeys": {
3159
+ "sessions_user_id_users_id_fk": {
3160
+ "name": "sessions_user_id_users_id_fk",
3161
+ "tableFrom": "sessions",
3162
+ "tableTo": "users",
3163
+ "columnsFrom": [
3164
+ "user_id"
3165
+ ],
3166
+ "columnsTo": [
3167
+ "id"
3168
+ ],
3169
+ "onDelete": "cascade",
3170
+ "onUpdate": "no action"
3171
+ }
3172
+ },
3173
+ "compositePrimaryKeys": {},
3174
+ "uniqueConstraints": {},
3175
+ "checkConstraints": {}
3176
+ },
3177
+ "users": {
3178
+ "name": "users",
3179
+ "columns": {
3180
+ "id": {
3181
+ "name": "id",
3182
+ "type": "text",
3183
+ "primaryKey": true,
3184
+ "notNull": true,
3185
+ "autoincrement": false
3186
+ },
3187
+ "name": {
3188
+ "name": "name",
3189
+ "type": "text",
3190
+ "primaryKey": false,
3191
+ "notNull": true,
3192
+ "autoincrement": false
3193
+ },
3194
+ "email": {
3195
+ "name": "email",
3196
+ "type": "text",
3197
+ "primaryKey": false,
3198
+ "notNull": true,
3199
+ "autoincrement": false
3200
+ },
3201
+ "email_verified": {
3202
+ "name": "email_verified",
3203
+ "type": "integer",
3204
+ "primaryKey": false,
3205
+ "notNull": true,
3206
+ "autoincrement": false
3207
+ },
3208
+ "image": {
3209
+ "name": "image",
3210
+ "type": "text",
3211
+ "primaryKey": false,
3212
+ "notNull": false,
3213
+ "autoincrement": false
3214
+ },
3215
+ "created_at": {
3216
+ "name": "created_at",
3217
+ "type": "integer",
3218
+ "primaryKey": false,
3219
+ "notNull": true,
3220
+ "autoincrement": false
3221
+ },
3222
+ "updated_at": {
3223
+ "name": "updated_at",
3224
+ "type": "integer",
3225
+ "primaryKey": false,
3226
+ "notNull": true,
3227
+ "autoincrement": false
3228
+ },
3229
+ "role": {
3230
+ "name": "role",
3231
+ "type": "text",
3232
+ "primaryKey": false,
3233
+ "notNull": false,
3234
+ "autoincrement": false
3235
+ },
3236
+ "banned": {
3237
+ "name": "banned",
3238
+ "type": "integer",
3239
+ "primaryKey": false,
3240
+ "notNull": false,
3241
+ "autoincrement": false
3242
+ },
3243
+ "ban_reason": {
3244
+ "name": "ban_reason",
3245
+ "type": "text",
3246
+ "primaryKey": false,
3247
+ "notNull": false,
3248
+ "autoincrement": false
3249
+ },
3250
+ "ban_expires": {
3251
+ "name": "ban_expires",
3252
+ "type": "integer",
3253
+ "primaryKey": false,
3254
+ "notNull": false,
3255
+ "autoincrement": false
3256
+ },
3257
+ "stripe_customer_id": {
3258
+ "name": "stripe_customer_id",
3259
+ "type": "text",
3260
+ "primaryKey": false,
3261
+ "notNull": false,
3262
+ "autoincrement": false
3263
+ },
3264
+ "preferences": {
3265
+ "name": "preferences",
3266
+ "type": "text",
3267
+ "primaryKey": false,
3268
+ "notNull": false,
3269
+ "autoincrement": false,
3270
+ "default": "'{}'"
3271
+ },
3272
+ "metadata": {
3273
+ "name": "metadata",
3274
+ "type": "text",
3275
+ "primaryKey": false,
3276
+ "notNull": false,
3277
+ "autoincrement": false,
3278
+ "default": "'{}'"
3279
+ },
3280
+ "onboarding": {
3281
+ "name": "onboarding",
3282
+ "type": "integer",
3283
+ "primaryKey": false,
3284
+ "notNull": false,
3285
+ "autoincrement": false
3286
+ },
3287
+ "flags": {
3288
+ "name": "flags",
3289
+ "type": "text",
3290
+ "primaryKey": false,
3291
+ "notNull": false,
3292
+ "autoincrement": false,
3293
+ "default": "'[]'"
3294
+ },
3295
+ "locale": {
3296
+ "name": "locale",
3297
+ "type": "text",
3298
+ "primaryKey": false,
3299
+ "notNull": false,
3300
+ "autoincrement": false
3301
+ }
3302
+ },
3303
+ "indexes": {
3304
+ "users_email_unique": {
3305
+ "name": "users_email_unique",
3306
+ "columns": [
3307
+ "email"
3308
+ ],
3309
+ "isUnique": true
3310
+ },
3311
+ "users_stripe_customer_id_unique": {
3312
+ "name": "users_stripe_customer_id_unique",
3313
+ "columns": [
3314
+ "stripe_customer_id"
3315
+ ],
3316
+ "isUnique": true
3317
+ }
3318
+ },
3319
+ "foreignKeys": {},
3320
+ "compositePrimaryKeys": {},
3321
+ "uniqueConstraints": {},
3322
+ "checkConstraints": {}
3323
+ },
3324
+ "verifications": {
3325
+ "name": "verifications",
3326
+ "columns": {
3327
+ "id": {
3328
+ "name": "id",
3329
+ "type": "text",
3330
+ "primaryKey": true,
3331
+ "notNull": true,
3332
+ "autoincrement": false
3333
+ },
3334
+ "identifier": {
3335
+ "name": "identifier",
3336
+ "type": "text",
3337
+ "primaryKey": false,
3338
+ "notNull": true,
3339
+ "autoincrement": false
3340
+ },
3341
+ "value": {
3342
+ "name": "value",
3343
+ "type": "text",
3344
+ "primaryKey": false,
3345
+ "notNull": true,
3346
+ "autoincrement": false
3347
+ },
3348
+ "expires_at": {
3349
+ "name": "expires_at",
3350
+ "type": "integer",
3351
+ "primaryKey": false,
3352
+ "notNull": true,
3353
+ "autoincrement": false
3354
+ },
3355
+ "created_at": {
3356
+ "name": "created_at",
3357
+ "type": "integer",
3358
+ "primaryKey": false,
3359
+ "notNull": false,
3360
+ "autoincrement": false
3361
+ },
3362
+ "updated_at": {
3363
+ "name": "updated_at",
3364
+ "type": "integer",
3365
+ "primaryKey": false,
3366
+ "notNull": false,
3367
+ "autoincrement": false
3368
+ }
3369
+ },
3370
+ "indexes": {},
3371
+ "foreignKeys": {},
3372
+ "compositePrimaryKeys": {},
3373
+ "uniqueConstraints": {},
3374
+ "checkConstraints": {}
3375
+ },
3376
+ "waitlist": {
3377
+ "name": "waitlist",
3378
+ "columns": {
3379
+ "id": {
3380
+ "name": "id",
3381
+ "type": "text",
3382
+ "primaryKey": true,
3383
+ "notNull": true,
3384
+ "autoincrement": false
3385
+ },
3386
+ "name": {
3387
+ "name": "name",
3388
+ "type": "text",
3389
+ "primaryKey": false,
3390
+ "notNull": false,
3391
+ "autoincrement": false
3392
+ },
3393
+ "email": {
3394
+ "name": "email",
3395
+ "type": "text",
3396
+ "primaryKey": false,
3397
+ "notNull": false,
3398
+ "autoincrement": false
3399
+ },
3400
+ "created_at": {
3401
+ "name": "created_at",
3402
+ "type": "integer",
3403
+ "primaryKey": false,
3404
+ "notNull": true,
3405
+ "autoincrement": false
3406
+ },
3407
+ "updated_at": {
3408
+ "name": "updated_at",
3409
+ "type": "integer",
3410
+ "primaryKey": false,
3411
+ "notNull": false,
3412
+ "autoincrement": false
3413
+ },
3414
+ "status": {
3415
+ "name": "status",
3416
+ "type": "text",
3417
+ "primaryKey": false,
3418
+ "notNull": true,
3419
+ "autoincrement": false,
3420
+ "default": "'WAITLIST'"
3421
+ },
3422
+ "code": {
3423
+ "name": "code",
3424
+ "type": "text",
3425
+ "primaryKey": false,
3426
+ "notNull": false,
3427
+ "autoincrement": false
3428
+ },
3429
+ "expires_at": {
3430
+ "name": "expires_at",
3431
+ "type": "integer",
3432
+ "primaryKey": false,
3433
+ "notNull": false,
3434
+ "autoincrement": false
3435
+ },
3436
+ "user_id": {
3437
+ "name": "user_id",
3438
+ "type": "text",
3439
+ "primaryKey": false,
3440
+ "notNull": false,
3441
+ "autoincrement": false
3442
+ }
3443
+ },
3444
+ "indexes": {},
3445
+ "foreignKeys": {
3446
+ "waitlist_user_id_users_id_fk": {
3447
+ "name": "waitlist_user_id_users_id_fk",
3448
+ "tableFrom": "waitlist",
3449
+ "tableTo": "users",
3450
+ "columnsFrom": [
3451
+ "user_id"
3452
+ ],
3453
+ "columnsTo": [
3454
+ "id"
3455
+ ],
3456
+ "onDelete": "no action",
3457
+ "onUpdate": "no action"
3458
+ }
3459
+ },
3460
+ "compositePrimaryKeys": {},
3461
+ "uniqueConstraints": {},
3462
+ "checkConstraints": {}
3463
+ },
3464
+ "workflows": {
3465
+ "name": "workflows",
3466
+ "columns": {
3467
+ "id": {
3468
+ "name": "id",
3469
+ "type": "text",
3470
+ "primaryKey": true,
3471
+ "notNull": true,
3472
+ "autoincrement": false
3473
+ },
3474
+ "user_id": {
3475
+ "name": "user_id",
3476
+ "type": "text",
3477
+ "primaryKey": false,
3478
+ "notNull": false,
3479
+ "autoincrement": false
3480
+ },
3481
+ "job_id": {
3482
+ "name": "job_id",
3483
+ "type": "text",
3484
+ "primaryKey": false,
3485
+ "notNull": true,
3486
+ "autoincrement": false
3487
+ },
3488
+ "job_name": {
3489
+ "name": "job_name",
3490
+ "type": "text",
3491
+ "primaryKey": false,
3492
+ "notNull": true,
3493
+ "autoincrement": false
3494
+ },
3495
+ "queue_name": {
3496
+ "name": "queue_name",
3497
+ "type": "text",
3498
+ "primaryKey": false,
3499
+ "notNull": true,
3500
+ "autoincrement": false
3501
+ },
3502
+ "timeout": {
3503
+ "name": "timeout",
3504
+ "type": "integer",
3505
+ "primaryKey": false,
3506
+ "notNull": false,
3507
+ "autoincrement": false
3508
+ },
3509
+ "tags": {
3510
+ "name": "tags",
3511
+ "type": "text",
3512
+ "primaryKey": false,
3513
+ "notNull": false,
3514
+ "autoincrement": false
3515
+ },
3516
+ "input": {
3517
+ "name": "input",
3518
+ "type": "text",
3519
+ "primaryKey": false,
3520
+ "notNull": false,
3521
+ "autoincrement": false
3522
+ },
3523
+ "output": {
3524
+ "name": "output",
3525
+ "type": "text",
3526
+ "primaryKey": false,
3527
+ "notNull": false,
3528
+ "autoincrement": false
3529
+ },
3530
+ "status": {
3531
+ "name": "status",
3532
+ "type": "text",
3533
+ "primaryKey": false,
3534
+ "notNull": true,
3535
+ "autoincrement": false
3536
+ },
3537
+ "error": {
3538
+ "name": "error",
3539
+ "type": "text",
3540
+ "primaryKey": false,
3541
+ "notNull": false,
3542
+ "autoincrement": false
3543
+ },
3544
+ "retries": {
3545
+ "name": "retries",
3546
+ "type": "integer",
3547
+ "primaryKey": false,
3548
+ "notNull": true,
3549
+ "autoincrement": false,
3550
+ "default": 0
3551
+ },
3552
+ "finished_at": {
3553
+ "name": "finished_at",
3554
+ "type": "integer",
3555
+ "primaryKey": false,
3556
+ "notNull": false,
3557
+ "autoincrement": false
3558
+ },
3559
+ "processed_at": {
3560
+ "name": "processed_at",
3561
+ "type": "integer",
3562
+ "primaryKey": false,
3563
+ "notNull": false,
3564
+ "autoincrement": false
3565
+ },
3566
+ "created_at": {
3567
+ "name": "created_at",
3568
+ "type": "integer",
3569
+ "primaryKey": false,
3570
+ "notNull": true,
3571
+ "autoincrement": false
3572
+ },
3573
+ "updated_at": {
3574
+ "name": "updated_at",
3575
+ "type": "integer",
3576
+ "primaryKey": false,
3577
+ "notNull": true,
3578
+ "autoincrement": false
3579
+ }
3580
+ },
3581
+ "indexes": {
3582
+ "workflows_job_id_unique": {
3583
+ "name": "workflows_job_id_unique",
3584
+ "columns": [
3585
+ "job_id"
3586
+ ],
3587
+ "isUnique": true
3588
+ }
3589
+ },
3590
+ "foreignKeys": {
3591
+ "workflows_user_id_users_id_fk": {
3592
+ "name": "workflows_user_id_users_id_fk",
3593
+ "tableFrom": "workflows",
3594
+ "tableTo": "users",
3595
+ "columnsFrom": [
3596
+ "user_id"
3597
+ ],
3598
+ "columnsTo": [
3599
+ "id"
3600
+ ],
3601
+ "onDelete": "cascade",
3602
+ "onUpdate": "no action"
3603
+ }
3604
+ },
3605
+ "compositePrimaryKeys": {},
3606
+ "uniqueConstraints": {},
3607
+ "checkConstraints": {}
3608
+ }
3609
+ },
3610
+ "views": {},
3611
+ "enums": {},
3612
+ "_meta": {
3613
+ "schemas": {},
3614
+ "tables": {},
3615
+ "columns": {}
3616
+ },
3617
+ "internal": {
3618
+ "indexes": {}
3619
+ }
3620
+ }