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