@maudecode/kanvil 0.0.0-stage → 0.1.0

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