@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,3216 @@
1
+ {
2
+ "id": "6accbf3b-6dc4-4839-b158-8c685a0a4131",
3
+ "prevId": "1c171085-0030-4387-ad7a-2e18692ba468",
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.attachments": {
1772
+ "name": "attachments",
1773
+ "schema": "",
1774
+ "columns": {
1775
+ "id": {
1776
+ "name": "id",
1777
+ "type": "uuid",
1778
+ "primaryKey": true,
1779
+ "notNull": true,
1780
+ "default": "gen_random_uuid()"
1781
+ },
1782
+ "project_id": {
1783
+ "name": "project_id",
1784
+ "type": "uuid",
1785
+ "primaryKey": false,
1786
+ "notNull": true
1787
+ },
1788
+ "ticket_id": {
1789
+ "name": "ticket_id",
1790
+ "type": "uuid",
1791
+ "primaryKey": false,
1792
+ "notNull": true
1793
+ },
1794
+ "actor_id": {
1795
+ "name": "actor_id",
1796
+ "type": "text",
1797
+ "primaryKey": false,
1798
+ "notNull": true
1799
+ },
1800
+ "name": {
1801
+ "name": "name",
1802
+ "type": "text",
1803
+ "primaryKey": false,
1804
+ "notNull": true
1805
+ },
1806
+ "content_type": {
1807
+ "name": "content_type",
1808
+ "type": "text",
1809
+ "primaryKey": false,
1810
+ "notNull": true
1811
+ },
1812
+ "size": {
1813
+ "name": "size",
1814
+ "type": "integer",
1815
+ "primaryKey": false,
1816
+ "notNull": true
1817
+ },
1818
+ "created_at": {
1819
+ "name": "created_at",
1820
+ "type": "timestamp with time zone",
1821
+ "primaryKey": false,
1822
+ "notNull": true,
1823
+ "default": "now()"
1824
+ }
1825
+ },
1826
+ "indexes": {},
1827
+ "foreignKeys": {
1828
+ "attachments_project_id_projects_id_fk": {
1829
+ "name": "attachments_project_id_projects_id_fk",
1830
+ "tableFrom": "attachments",
1831
+ "tableTo": "projects",
1832
+ "columnsFrom": [
1833
+ "project_id"
1834
+ ],
1835
+ "columnsTo": [
1836
+ "id"
1837
+ ],
1838
+ "onDelete": "cascade",
1839
+ "onUpdate": "no action"
1840
+ },
1841
+ "attachments_ticket_id_tickets_id_fk": {
1842
+ "name": "attachments_ticket_id_tickets_id_fk",
1843
+ "tableFrom": "attachments",
1844
+ "tableTo": "tickets",
1845
+ "columnsFrom": [
1846
+ "ticket_id"
1847
+ ],
1848
+ "columnsTo": [
1849
+ "id"
1850
+ ],
1851
+ "onDelete": "cascade",
1852
+ "onUpdate": "no action"
1853
+ },
1854
+ "attachments_actor_id_user_id_fk": {
1855
+ "name": "attachments_actor_id_user_id_fk",
1856
+ "tableFrom": "attachments",
1857
+ "tableTo": "user",
1858
+ "columnsFrom": [
1859
+ "actor_id"
1860
+ ],
1861
+ "columnsTo": [
1862
+ "id"
1863
+ ],
1864
+ "onDelete": "no action",
1865
+ "onUpdate": "no action"
1866
+ }
1867
+ },
1868
+ "compositePrimaryKeys": {},
1869
+ "uniqueConstraints": {},
1870
+ "policies": {},
1871
+ "checkConstraints": {},
1872
+ "isRLSEnabled": false
1873
+ },
1874
+ "public.claims": {
1875
+ "name": "claims",
1876
+ "schema": "",
1877
+ "columns": {
1878
+ "id": {
1879
+ "name": "id",
1880
+ "type": "uuid",
1881
+ "primaryKey": true,
1882
+ "notNull": true,
1883
+ "default": "gen_random_uuid()"
1884
+ },
1885
+ "project_id": {
1886
+ "name": "project_id",
1887
+ "type": "uuid",
1888
+ "primaryKey": false,
1889
+ "notNull": true
1890
+ },
1891
+ "ticket_id": {
1892
+ "name": "ticket_id",
1893
+ "type": "uuid",
1894
+ "primaryKey": false,
1895
+ "notNull": true
1896
+ },
1897
+ "actor_id": {
1898
+ "name": "actor_id",
1899
+ "type": "text",
1900
+ "primaryKey": false,
1901
+ "notNull": true
1902
+ },
1903
+ "owner_id": {
1904
+ "name": "owner_id",
1905
+ "type": "text",
1906
+ "primaryKey": false,
1907
+ "notNull": true
1908
+ },
1909
+ "worker_id": {
1910
+ "name": "worker_id",
1911
+ "type": "text",
1912
+ "primaryKey": false,
1913
+ "notNull": true
1914
+ },
1915
+ "expires_at": {
1916
+ "name": "expires_at",
1917
+ "type": "timestamp with time zone",
1918
+ "primaryKey": false,
1919
+ "notNull": true
1920
+ },
1921
+ "created_at": {
1922
+ "name": "created_at",
1923
+ "type": "timestamp with time zone",
1924
+ "primaryKey": false,
1925
+ "notNull": true,
1926
+ "default": "now()"
1927
+ }
1928
+ },
1929
+ "indexes": {},
1930
+ "foreignKeys": {
1931
+ "claims_project_id_projects_id_fk": {
1932
+ "name": "claims_project_id_projects_id_fk",
1933
+ "tableFrom": "claims",
1934
+ "tableTo": "projects",
1935
+ "columnsFrom": [
1936
+ "project_id"
1937
+ ],
1938
+ "columnsTo": [
1939
+ "id"
1940
+ ],
1941
+ "onDelete": "cascade",
1942
+ "onUpdate": "no action"
1943
+ },
1944
+ "claims_ticket_id_tickets_id_fk": {
1945
+ "name": "claims_ticket_id_tickets_id_fk",
1946
+ "tableFrom": "claims",
1947
+ "tableTo": "tickets",
1948
+ "columnsFrom": [
1949
+ "ticket_id"
1950
+ ],
1951
+ "columnsTo": [
1952
+ "id"
1953
+ ],
1954
+ "onDelete": "cascade",
1955
+ "onUpdate": "no action"
1956
+ },
1957
+ "claims_actor_id_user_id_fk": {
1958
+ "name": "claims_actor_id_user_id_fk",
1959
+ "tableFrom": "claims",
1960
+ "tableTo": "user",
1961
+ "columnsFrom": [
1962
+ "actor_id"
1963
+ ],
1964
+ "columnsTo": [
1965
+ "id"
1966
+ ],
1967
+ "onDelete": "no action",
1968
+ "onUpdate": "no action"
1969
+ }
1970
+ },
1971
+ "compositePrimaryKeys": {},
1972
+ "uniqueConstraints": {
1973
+ "claims_ticket_id_unique": {
1974
+ "name": "claims_ticket_id_unique",
1975
+ "nullsNotDistinct": false,
1976
+ "columns": [
1977
+ "ticket_id"
1978
+ ]
1979
+ }
1980
+ },
1981
+ "policies": {},
1982
+ "checkConstraints": {},
1983
+ "isRLSEnabled": false
1984
+ },
1985
+ "public.comments": {
1986
+ "name": "comments",
1987
+ "schema": "",
1988
+ "columns": {
1989
+ "id": {
1990
+ "name": "id",
1991
+ "type": "uuid",
1992
+ "primaryKey": true,
1993
+ "notNull": true,
1994
+ "default": "gen_random_uuid()"
1995
+ },
1996
+ "project_id": {
1997
+ "name": "project_id",
1998
+ "type": "uuid",
1999
+ "primaryKey": false,
2000
+ "notNull": true
2001
+ },
2002
+ "ticket_id": {
2003
+ "name": "ticket_id",
2004
+ "type": "uuid",
2005
+ "primaryKey": false,
2006
+ "notNull": true
2007
+ },
2008
+ "actor_id": {
2009
+ "name": "actor_id",
2010
+ "type": "text",
2011
+ "primaryKey": false,
2012
+ "notNull": true
2013
+ },
2014
+ "body": {
2015
+ "name": "body",
2016
+ "type": "text",
2017
+ "primaryKey": false,
2018
+ "notNull": true
2019
+ },
2020
+ "version": {
2021
+ "name": "version",
2022
+ "type": "integer",
2023
+ "primaryKey": false,
2024
+ "notNull": true,
2025
+ "default": 1
2026
+ },
2027
+ "created_at": {
2028
+ "name": "created_at",
2029
+ "type": "timestamp with time zone",
2030
+ "primaryKey": false,
2031
+ "notNull": true,
2032
+ "default": "now()"
2033
+ },
2034
+ "updated_at": {
2035
+ "name": "updated_at",
2036
+ "type": "timestamp with time zone",
2037
+ "primaryKey": false,
2038
+ "notNull": true,
2039
+ "default": "now()"
2040
+ }
2041
+ },
2042
+ "indexes": {
2043
+ "comment_ticket": {
2044
+ "name": "comment_ticket",
2045
+ "columns": [
2046
+ {
2047
+ "expression": "ticket_id",
2048
+ "isExpression": false,
2049
+ "asc": true,
2050
+ "nulls": "last"
2051
+ }
2052
+ ],
2053
+ "isUnique": false,
2054
+ "concurrently": false,
2055
+ "method": "btree",
2056
+ "with": {}
2057
+ }
2058
+ },
2059
+ "foreignKeys": {
2060
+ "comments_project_id_projects_id_fk": {
2061
+ "name": "comments_project_id_projects_id_fk",
2062
+ "tableFrom": "comments",
2063
+ "tableTo": "projects",
2064
+ "columnsFrom": [
2065
+ "project_id"
2066
+ ],
2067
+ "columnsTo": [
2068
+ "id"
2069
+ ],
2070
+ "onDelete": "cascade",
2071
+ "onUpdate": "no action"
2072
+ },
2073
+ "comments_ticket_id_tickets_id_fk": {
2074
+ "name": "comments_ticket_id_tickets_id_fk",
2075
+ "tableFrom": "comments",
2076
+ "tableTo": "tickets",
2077
+ "columnsFrom": [
2078
+ "ticket_id"
2079
+ ],
2080
+ "columnsTo": [
2081
+ "id"
2082
+ ],
2083
+ "onDelete": "cascade",
2084
+ "onUpdate": "no action"
2085
+ },
2086
+ "comments_actor_id_user_id_fk": {
2087
+ "name": "comments_actor_id_user_id_fk",
2088
+ "tableFrom": "comments",
2089
+ "tableTo": "user",
2090
+ "columnsFrom": [
2091
+ "actor_id"
2092
+ ],
2093
+ "columnsTo": [
2094
+ "id"
2095
+ ],
2096
+ "onDelete": "no action",
2097
+ "onUpdate": "no action"
2098
+ }
2099
+ },
2100
+ "compositePrimaryKeys": {},
2101
+ "uniqueConstraints": {},
2102
+ "policies": {},
2103
+ "checkConstraints": {},
2104
+ "isRLSEnabled": false
2105
+ },
2106
+ "public.event_clock": {
2107
+ "name": "event_clock",
2108
+ "schema": "",
2109
+ "columns": {
2110
+ "id": {
2111
+ "name": "id",
2112
+ "type": "integer",
2113
+ "primaryKey": true,
2114
+ "notNull": true
2115
+ },
2116
+ "value": {
2117
+ "name": "value",
2118
+ "type": "bigint",
2119
+ "primaryKey": false,
2120
+ "notNull": true,
2121
+ "default": "0"
2122
+ },
2123
+ "floor": {
2124
+ "name": "floor",
2125
+ "type": "bigint",
2126
+ "primaryKey": false,
2127
+ "notNull": true,
2128
+ "default": "0"
2129
+ }
2130
+ },
2131
+ "indexes": {},
2132
+ "foreignKeys": {},
2133
+ "compositePrimaryKeys": {},
2134
+ "uniqueConstraints": {},
2135
+ "policies": {},
2136
+ "checkConstraints": {},
2137
+ "isRLSEnabled": false
2138
+ },
2139
+ "public.events": {
2140
+ "name": "events",
2141
+ "schema": "",
2142
+ "columns": {
2143
+ "id": {
2144
+ "name": "id",
2145
+ "type": "bigint",
2146
+ "primaryKey": true,
2147
+ "notNull": true
2148
+ },
2149
+ "project_id": {
2150
+ "name": "project_id",
2151
+ "type": "uuid",
2152
+ "primaryKey": false,
2153
+ "notNull": true
2154
+ },
2155
+ "ticket_id": {
2156
+ "name": "ticket_id",
2157
+ "type": "uuid",
2158
+ "primaryKey": false,
2159
+ "notNull": false
2160
+ },
2161
+ "actor_id": {
2162
+ "name": "actor_id",
2163
+ "type": "text",
2164
+ "primaryKey": false,
2165
+ "notNull": true
2166
+ },
2167
+ "type": {
2168
+ "name": "type",
2169
+ "type": "text",
2170
+ "primaryKey": false,
2171
+ "notNull": true
2172
+ },
2173
+ "data": {
2174
+ "name": "data",
2175
+ "type": "jsonb",
2176
+ "primaryKey": false,
2177
+ "notNull": true
2178
+ },
2179
+ "created_at": {
2180
+ "name": "created_at",
2181
+ "type": "timestamp with time zone",
2182
+ "primaryKey": false,
2183
+ "notNull": true,
2184
+ "default": "now()"
2185
+ }
2186
+ },
2187
+ "indexes": {
2188
+ "event_project_cursor": {
2189
+ "name": "event_project_cursor",
2190
+ "columns": [
2191
+ {
2192
+ "expression": "project_id",
2193
+ "isExpression": false,
2194
+ "asc": true,
2195
+ "nulls": "last"
2196
+ },
2197
+ {
2198
+ "expression": "id",
2199
+ "isExpression": false,
2200
+ "asc": true,
2201
+ "nulls": "last"
2202
+ }
2203
+ ],
2204
+ "isUnique": false,
2205
+ "concurrently": false,
2206
+ "method": "btree",
2207
+ "with": {}
2208
+ },
2209
+ "event_ticket": {
2210
+ "name": "event_ticket",
2211
+ "columns": [
2212
+ {
2213
+ "expression": "ticket_id",
2214
+ "isExpression": false,
2215
+ "asc": true,
2216
+ "nulls": "last"
2217
+ },
2218
+ {
2219
+ "expression": "id",
2220
+ "isExpression": false,
2221
+ "asc": true,
2222
+ "nulls": "last"
2223
+ }
2224
+ ],
2225
+ "isUnique": false,
2226
+ "concurrently": false,
2227
+ "method": "btree",
2228
+ "with": {}
2229
+ }
2230
+ },
2231
+ "foreignKeys": {
2232
+ "events_project_id_projects_id_fk": {
2233
+ "name": "events_project_id_projects_id_fk",
2234
+ "tableFrom": "events",
2235
+ "tableTo": "projects",
2236
+ "columnsFrom": [
2237
+ "project_id"
2238
+ ],
2239
+ "columnsTo": [
2240
+ "id"
2241
+ ],
2242
+ "onDelete": "cascade",
2243
+ "onUpdate": "no action"
2244
+ },
2245
+ "events_actor_id_user_id_fk": {
2246
+ "name": "events_actor_id_user_id_fk",
2247
+ "tableFrom": "events",
2248
+ "tableTo": "user",
2249
+ "columnsFrom": [
2250
+ "actor_id"
2251
+ ],
2252
+ "columnsTo": [
2253
+ "id"
2254
+ ],
2255
+ "onDelete": "no action",
2256
+ "onUpdate": "no action"
2257
+ }
2258
+ },
2259
+ "compositePrimaryKeys": {},
2260
+ "uniqueConstraints": {},
2261
+ "policies": {},
2262
+ "checkConstraints": {},
2263
+ "isRLSEnabled": false
2264
+ },
2265
+ "public.evidence": {
2266
+ "name": "evidence",
2267
+ "schema": "",
2268
+ "columns": {
2269
+ "id": {
2270
+ "name": "id",
2271
+ "type": "uuid",
2272
+ "primaryKey": true,
2273
+ "notNull": true,
2274
+ "default": "gen_random_uuid()"
2275
+ },
2276
+ "project_id": {
2277
+ "name": "project_id",
2278
+ "type": "uuid",
2279
+ "primaryKey": false,
2280
+ "notNull": true
2281
+ },
2282
+ "ticket_id": {
2283
+ "name": "ticket_id",
2284
+ "type": "uuid",
2285
+ "primaryKey": false,
2286
+ "notNull": true
2287
+ },
2288
+ "actor_id": {
2289
+ "name": "actor_id",
2290
+ "type": "text",
2291
+ "primaryKey": false,
2292
+ "notNull": true
2293
+ },
2294
+ "title": {
2295
+ "name": "title",
2296
+ "type": "text",
2297
+ "primaryKey": false,
2298
+ "notNull": true
2299
+ },
2300
+ "kind": {
2301
+ "name": "kind",
2302
+ "type": "text",
2303
+ "primaryKey": false,
2304
+ "notNull": true
2305
+ },
2306
+ "url": {
2307
+ "name": "url",
2308
+ "type": "text",
2309
+ "primaryKey": false,
2310
+ "notNull": true
2311
+ },
2312
+ "commit": {
2313
+ "name": "commit",
2314
+ "type": "text",
2315
+ "primaryKey": false,
2316
+ "notNull": false
2317
+ },
2318
+ "outcome": {
2319
+ "name": "outcome",
2320
+ "type": "text",
2321
+ "primaryKey": false,
2322
+ "notNull": true
2323
+ },
2324
+ "note": {
2325
+ "name": "note",
2326
+ "type": "text",
2327
+ "primaryKey": false,
2328
+ "notNull": true
2329
+ },
2330
+ "created_at": {
2331
+ "name": "created_at",
2332
+ "type": "timestamp with time zone",
2333
+ "primaryKey": false,
2334
+ "notNull": true,
2335
+ "default": "now()"
2336
+ }
2337
+ },
2338
+ "indexes": {},
2339
+ "foreignKeys": {
2340
+ "evidence_project_id_projects_id_fk": {
2341
+ "name": "evidence_project_id_projects_id_fk",
2342
+ "tableFrom": "evidence",
2343
+ "tableTo": "projects",
2344
+ "columnsFrom": [
2345
+ "project_id"
2346
+ ],
2347
+ "columnsTo": [
2348
+ "id"
2349
+ ],
2350
+ "onDelete": "cascade",
2351
+ "onUpdate": "no action"
2352
+ },
2353
+ "evidence_ticket_id_tickets_id_fk": {
2354
+ "name": "evidence_ticket_id_tickets_id_fk",
2355
+ "tableFrom": "evidence",
2356
+ "tableTo": "tickets",
2357
+ "columnsFrom": [
2358
+ "ticket_id"
2359
+ ],
2360
+ "columnsTo": [
2361
+ "id"
2362
+ ],
2363
+ "onDelete": "cascade",
2364
+ "onUpdate": "no action"
2365
+ },
2366
+ "evidence_actor_id_user_id_fk": {
2367
+ "name": "evidence_actor_id_user_id_fk",
2368
+ "tableFrom": "evidence",
2369
+ "tableTo": "user",
2370
+ "columnsFrom": [
2371
+ "actor_id"
2372
+ ],
2373
+ "columnsTo": [
2374
+ "id"
2375
+ ],
2376
+ "onDelete": "no action",
2377
+ "onUpdate": "no action"
2378
+ }
2379
+ },
2380
+ "compositePrimaryKeys": {},
2381
+ "uniqueConstraints": {},
2382
+ "policies": {},
2383
+ "checkConstraints": {},
2384
+ "isRLSEnabled": false
2385
+ },
2386
+ "public.project_members": {
2387
+ "name": "project_members",
2388
+ "schema": "",
2389
+ "columns": {
2390
+ "project_id": {
2391
+ "name": "project_id",
2392
+ "type": "uuid",
2393
+ "primaryKey": false,
2394
+ "notNull": true
2395
+ },
2396
+ "user_id": {
2397
+ "name": "user_id",
2398
+ "type": "text",
2399
+ "primaryKey": false,
2400
+ "notNull": true
2401
+ },
2402
+ "role": {
2403
+ "name": "role",
2404
+ "type": "text",
2405
+ "primaryKey": false,
2406
+ "notNull": true
2407
+ }
2408
+ },
2409
+ "indexes": {
2410
+ "member_user": {
2411
+ "name": "member_user",
2412
+ "columns": [
2413
+ {
2414
+ "expression": "user_id",
2415
+ "isExpression": false,
2416
+ "asc": true,
2417
+ "nulls": "last"
2418
+ }
2419
+ ],
2420
+ "isUnique": false,
2421
+ "concurrently": false,
2422
+ "method": "btree",
2423
+ "with": {}
2424
+ }
2425
+ },
2426
+ "foreignKeys": {
2427
+ "project_members_project_id_projects_id_fk": {
2428
+ "name": "project_members_project_id_projects_id_fk",
2429
+ "tableFrom": "project_members",
2430
+ "tableTo": "projects",
2431
+ "columnsFrom": [
2432
+ "project_id"
2433
+ ],
2434
+ "columnsTo": [
2435
+ "id"
2436
+ ],
2437
+ "onDelete": "cascade",
2438
+ "onUpdate": "no action"
2439
+ },
2440
+ "project_members_user_id_user_id_fk": {
2441
+ "name": "project_members_user_id_user_id_fk",
2442
+ "tableFrom": "project_members",
2443
+ "tableTo": "user",
2444
+ "columnsFrom": [
2445
+ "user_id"
2446
+ ],
2447
+ "columnsTo": [
2448
+ "id"
2449
+ ],
2450
+ "onDelete": "cascade",
2451
+ "onUpdate": "no action"
2452
+ }
2453
+ },
2454
+ "compositePrimaryKeys": {
2455
+ "project_members_project_id_user_id_pk": {
2456
+ "name": "project_members_project_id_user_id_pk",
2457
+ "columns": [
2458
+ "project_id",
2459
+ "user_id"
2460
+ ]
2461
+ }
2462
+ },
2463
+ "uniqueConstraints": {},
2464
+ "policies": {},
2465
+ "checkConstraints": {},
2466
+ "isRLSEnabled": false
2467
+ },
2468
+ "public.notifications": {
2469
+ "name": "notifications",
2470
+ "schema": "",
2471
+ "columns": {
2472
+ "id": {
2473
+ "name": "id",
2474
+ "type": "uuid",
2475
+ "primaryKey": true,
2476
+ "notNull": true,
2477
+ "default": "gen_random_uuid()"
2478
+ },
2479
+ "user_id": {
2480
+ "name": "user_id",
2481
+ "type": "text",
2482
+ "primaryKey": false,
2483
+ "notNull": true
2484
+ },
2485
+ "project_id": {
2486
+ "name": "project_id",
2487
+ "type": "uuid",
2488
+ "primaryKey": false,
2489
+ "notNull": true
2490
+ },
2491
+ "event_id": {
2492
+ "name": "event_id",
2493
+ "type": "bigint",
2494
+ "primaryKey": false,
2495
+ "notNull": true
2496
+ },
2497
+ "read_at": {
2498
+ "name": "read_at",
2499
+ "type": "timestamp with time zone",
2500
+ "primaryKey": false,
2501
+ "notNull": false
2502
+ },
2503
+ "created_at": {
2504
+ "name": "created_at",
2505
+ "type": "timestamp with time zone",
2506
+ "primaryKey": false,
2507
+ "notNull": true,
2508
+ "default": "now()"
2509
+ }
2510
+ },
2511
+ "indexes": {},
2512
+ "foreignKeys": {
2513
+ "notifications_user_id_user_id_fk": {
2514
+ "name": "notifications_user_id_user_id_fk",
2515
+ "tableFrom": "notifications",
2516
+ "tableTo": "user",
2517
+ "columnsFrom": [
2518
+ "user_id"
2519
+ ],
2520
+ "columnsTo": [
2521
+ "id"
2522
+ ],
2523
+ "onDelete": "cascade",
2524
+ "onUpdate": "no action"
2525
+ },
2526
+ "notifications_project_id_projects_id_fk": {
2527
+ "name": "notifications_project_id_projects_id_fk",
2528
+ "tableFrom": "notifications",
2529
+ "tableTo": "projects",
2530
+ "columnsFrom": [
2531
+ "project_id"
2532
+ ],
2533
+ "columnsTo": [
2534
+ "id"
2535
+ ],
2536
+ "onDelete": "cascade",
2537
+ "onUpdate": "no action"
2538
+ }
2539
+ },
2540
+ "compositePrimaryKeys": {},
2541
+ "uniqueConstraints": {},
2542
+ "policies": {},
2543
+ "checkConstraints": {},
2544
+ "isRLSEnabled": false
2545
+ },
2546
+ "public.projects": {
2547
+ "name": "projects",
2548
+ "schema": "",
2549
+ "columns": {
2550
+ "id": {
2551
+ "name": "id",
2552
+ "type": "uuid",
2553
+ "primaryKey": true,
2554
+ "notNull": true,
2555
+ "default": "gen_random_uuid()"
2556
+ },
2557
+ "key": {
2558
+ "name": "key",
2559
+ "type": "text",
2560
+ "primaryKey": false,
2561
+ "notNull": true
2562
+ },
2563
+ "name": {
2564
+ "name": "name",
2565
+ "type": "text",
2566
+ "primaryKey": false,
2567
+ "notNull": true
2568
+ },
2569
+ "description": {
2570
+ "name": "description",
2571
+ "type": "text",
2572
+ "primaryKey": false,
2573
+ "notNull": true,
2574
+ "default": "''"
2575
+ },
2576
+ "next_number": {
2577
+ "name": "next_number",
2578
+ "type": "integer",
2579
+ "primaryKey": false,
2580
+ "notNull": true,
2581
+ "default": 1
2582
+ },
2583
+ "version": {
2584
+ "name": "version",
2585
+ "type": "integer",
2586
+ "primaryKey": false,
2587
+ "notNull": true,
2588
+ "default": 1
2589
+ },
2590
+ "created_at": {
2591
+ "name": "created_at",
2592
+ "type": "timestamp with time zone",
2593
+ "primaryKey": false,
2594
+ "notNull": true,
2595
+ "default": "now()"
2596
+ },
2597
+ "updated_at": {
2598
+ "name": "updated_at",
2599
+ "type": "timestamp with time zone",
2600
+ "primaryKey": false,
2601
+ "notNull": true,
2602
+ "default": "now()"
2603
+ }
2604
+ },
2605
+ "indexes": {},
2606
+ "foreignKeys": {},
2607
+ "compositePrimaryKeys": {},
2608
+ "uniqueConstraints": {
2609
+ "projects_key_unique": {
2610
+ "name": "projects_key_unique",
2611
+ "nullsNotDistinct": false,
2612
+ "columns": [
2613
+ "key"
2614
+ ]
2615
+ }
2616
+ },
2617
+ "policies": {},
2618
+ "checkConstraints": {},
2619
+ "isRLSEnabled": false
2620
+ },
2621
+ "public.mutation_receipts": {
2622
+ "name": "mutation_receipts",
2623
+ "schema": "",
2624
+ "columns": {
2625
+ "actor_id": {
2626
+ "name": "actor_id",
2627
+ "type": "text",
2628
+ "primaryKey": false,
2629
+ "notNull": true
2630
+ },
2631
+ "request_id": {
2632
+ "name": "request_id",
2633
+ "type": "uuid",
2634
+ "primaryKey": false,
2635
+ "notNull": true
2636
+ },
2637
+ "operation": {
2638
+ "name": "operation",
2639
+ "type": "text",
2640
+ "primaryKey": false,
2641
+ "notNull": true
2642
+ },
2643
+ "hash": {
2644
+ "name": "hash",
2645
+ "type": "text",
2646
+ "primaryKey": false,
2647
+ "notNull": true
2648
+ },
2649
+ "result": {
2650
+ "name": "result",
2651
+ "type": "jsonb",
2652
+ "primaryKey": false,
2653
+ "notNull": true
2654
+ },
2655
+ "created_at": {
2656
+ "name": "created_at",
2657
+ "type": "timestamp with time zone",
2658
+ "primaryKey": false,
2659
+ "notNull": true,
2660
+ "default": "now()"
2661
+ }
2662
+ },
2663
+ "indexes": {},
2664
+ "foreignKeys": {
2665
+ "mutation_receipts_actor_id_user_id_fk": {
2666
+ "name": "mutation_receipts_actor_id_user_id_fk",
2667
+ "tableFrom": "mutation_receipts",
2668
+ "tableTo": "user",
2669
+ "columnsFrom": [
2670
+ "actor_id"
2671
+ ],
2672
+ "columnsTo": [
2673
+ "id"
2674
+ ],
2675
+ "onDelete": "no action",
2676
+ "onUpdate": "no action"
2677
+ }
2678
+ },
2679
+ "compositePrimaryKeys": {
2680
+ "mutation_receipts_actor_id_request_id_pk": {
2681
+ "name": "mutation_receipts_actor_id_request_id_pk",
2682
+ "columns": [
2683
+ "actor_id",
2684
+ "request_id"
2685
+ ]
2686
+ }
2687
+ },
2688
+ "uniqueConstraints": {},
2689
+ "policies": {},
2690
+ "checkConstraints": {},
2691
+ "isRLSEnabled": false
2692
+ },
2693
+ "public.ticket_relations": {
2694
+ "name": "ticket_relations",
2695
+ "schema": "",
2696
+ "columns": {
2697
+ "id": {
2698
+ "name": "id",
2699
+ "type": "uuid",
2700
+ "primaryKey": true,
2701
+ "notNull": true,
2702
+ "default": "gen_random_uuid()"
2703
+ },
2704
+ "project_id": {
2705
+ "name": "project_id",
2706
+ "type": "uuid",
2707
+ "primaryKey": false,
2708
+ "notNull": true
2709
+ },
2710
+ "source_id": {
2711
+ "name": "source_id",
2712
+ "type": "uuid",
2713
+ "primaryKey": false,
2714
+ "notNull": true
2715
+ },
2716
+ "target_id": {
2717
+ "name": "target_id",
2718
+ "type": "uuid",
2719
+ "primaryKey": false,
2720
+ "notNull": true
2721
+ },
2722
+ "type": {
2723
+ "name": "type",
2724
+ "type": "text",
2725
+ "primaryKey": false,
2726
+ "notNull": true
2727
+ }
2728
+ },
2729
+ "indexes": {
2730
+ "relation_target": {
2731
+ "name": "relation_target",
2732
+ "columns": [
2733
+ {
2734
+ "expression": "target_id",
2735
+ "isExpression": false,
2736
+ "asc": true,
2737
+ "nulls": "last"
2738
+ }
2739
+ ],
2740
+ "isUnique": false,
2741
+ "concurrently": false,
2742
+ "method": "btree",
2743
+ "with": {}
2744
+ }
2745
+ },
2746
+ "foreignKeys": {
2747
+ "ticket_relations_project_id_projects_id_fk": {
2748
+ "name": "ticket_relations_project_id_projects_id_fk",
2749
+ "tableFrom": "ticket_relations",
2750
+ "tableTo": "projects",
2751
+ "columnsFrom": [
2752
+ "project_id"
2753
+ ],
2754
+ "columnsTo": [
2755
+ "id"
2756
+ ],
2757
+ "onDelete": "cascade",
2758
+ "onUpdate": "no action"
2759
+ },
2760
+ "ticket_relations_source_id_tickets_id_fk": {
2761
+ "name": "ticket_relations_source_id_tickets_id_fk",
2762
+ "tableFrom": "ticket_relations",
2763
+ "tableTo": "tickets",
2764
+ "columnsFrom": [
2765
+ "source_id"
2766
+ ],
2767
+ "columnsTo": [
2768
+ "id"
2769
+ ],
2770
+ "onDelete": "cascade",
2771
+ "onUpdate": "no action"
2772
+ },
2773
+ "ticket_relations_target_id_tickets_id_fk": {
2774
+ "name": "ticket_relations_target_id_tickets_id_fk",
2775
+ "tableFrom": "ticket_relations",
2776
+ "tableTo": "tickets",
2777
+ "columnsFrom": [
2778
+ "target_id"
2779
+ ],
2780
+ "columnsTo": [
2781
+ "id"
2782
+ ],
2783
+ "onDelete": "cascade",
2784
+ "onUpdate": "no action"
2785
+ }
2786
+ },
2787
+ "compositePrimaryKeys": {},
2788
+ "uniqueConstraints": {
2789
+ "ticket_relation_edge": {
2790
+ "name": "ticket_relation_edge",
2791
+ "nullsNotDistinct": false,
2792
+ "columns": [
2793
+ "source_id",
2794
+ "target_id",
2795
+ "type"
2796
+ ]
2797
+ }
2798
+ },
2799
+ "policies": {},
2800
+ "checkConstraints": {},
2801
+ "isRLSEnabled": false
2802
+ },
2803
+ "public.subscriptions": {
2804
+ "name": "subscriptions",
2805
+ "schema": "",
2806
+ "columns": {
2807
+ "project_id": {
2808
+ "name": "project_id",
2809
+ "type": "uuid",
2810
+ "primaryKey": false,
2811
+ "notNull": true
2812
+ },
2813
+ "ticket_id": {
2814
+ "name": "ticket_id",
2815
+ "type": "uuid",
2816
+ "primaryKey": false,
2817
+ "notNull": true
2818
+ },
2819
+ "user_id": {
2820
+ "name": "user_id",
2821
+ "type": "text",
2822
+ "primaryKey": false,
2823
+ "notNull": true
2824
+ }
2825
+ },
2826
+ "indexes": {},
2827
+ "foreignKeys": {
2828
+ "subscriptions_project_id_projects_id_fk": {
2829
+ "name": "subscriptions_project_id_projects_id_fk",
2830
+ "tableFrom": "subscriptions",
2831
+ "tableTo": "projects",
2832
+ "columnsFrom": [
2833
+ "project_id"
2834
+ ],
2835
+ "columnsTo": [
2836
+ "id"
2837
+ ],
2838
+ "onDelete": "cascade",
2839
+ "onUpdate": "no action"
2840
+ },
2841
+ "subscriptions_ticket_id_tickets_id_fk": {
2842
+ "name": "subscriptions_ticket_id_tickets_id_fk",
2843
+ "tableFrom": "subscriptions",
2844
+ "tableTo": "tickets",
2845
+ "columnsFrom": [
2846
+ "ticket_id"
2847
+ ],
2848
+ "columnsTo": [
2849
+ "id"
2850
+ ],
2851
+ "onDelete": "cascade",
2852
+ "onUpdate": "no action"
2853
+ },
2854
+ "subscriptions_user_id_user_id_fk": {
2855
+ "name": "subscriptions_user_id_user_id_fk",
2856
+ "tableFrom": "subscriptions",
2857
+ "tableTo": "user",
2858
+ "columnsFrom": [
2859
+ "user_id"
2860
+ ],
2861
+ "columnsTo": [
2862
+ "id"
2863
+ ],
2864
+ "onDelete": "cascade",
2865
+ "onUpdate": "no action"
2866
+ }
2867
+ },
2868
+ "compositePrimaryKeys": {
2869
+ "subscriptions_ticket_id_user_id_pk": {
2870
+ "name": "subscriptions_ticket_id_user_id_pk",
2871
+ "columns": [
2872
+ "ticket_id",
2873
+ "user_id"
2874
+ ]
2875
+ }
2876
+ },
2877
+ "uniqueConstraints": {},
2878
+ "policies": {},
2879
+ "checkConstraints": {},
2880
+ "isRLSEnabled": false
2881
+ },
2882
+ "public.tickets": {
2883
+ "name": "tickets",
2884
+ "schema": "",
2885
+ "columns": {
2886
+ "id": {
2887
+ "name": "id",
2888
+ "type": "uuid",
2889
+ "primaryKey": true,
2890
+ "notNull": true,
2891
+ "default": "gen_random_uuid()"
2892
+ },
2893
+ "project_id": {
2894
+ "name": "project_id",
2895
+ "type": "uuid",
2896
+ "primaryKey": false,
2897
+ "notNull": true
2898
+ },
2899
+ "key": {
2900
+ "name": "key",
2901
+ "type": "text",
2902
+ "primaryKey": false,
2903
+ "notNull": true
2904
+ },
2905
+ "number": {
2906
+ "name": "number",
2907
+ "type": "integer",
2908
+ "primaryKey": false,
2909
+ "notNull": true
2910
+ },
2911
+ "title": {
2912
+ "name": "title",
2913
+ "type": "text",
2914
+ "primaryKey": false,
2915
+ "notNull": true
2916
+ },
2917
+ "description": {
2918
+ "name": "description",
2919
+ "type": "text",
2920
+ "primaryKey": false,
2921
+ "notNull": true,
2922
+ "default": "''"
2923
+ },
2924
+ "acceptance_criteria": {
2925
+ "name": "acceptance_criteria",
2926
+ "type": "text",
2927
+ "primaryKey": false,
2928
+ "notNull": true,
2929
+ "default": "''"
2930
+ },
2931
+ "status": {
2932
+ "name": "status",
2933
+ "type": "text",
2934
+ "primaryKey": false,
2935
+ "notNull": true,
2936
+ "default": "'todo'"
2937
+ },
2938
+ "priority": {
2939
+ "name": "priority",
2940
+ "type": "text",
2941
+ "primaryKey": false,
2942
+ "notNull": true,
2943
+ "default": "'medium'"
2944
+ },
2945
+ "kind": {
2946
+ "name": "kind",
2947
+ "type": "text",
2948
+ "primaryKey": false,
2949
+ "notNull": true,
2950
+ "default": "'feature'"
2951
+ },
2952
+ "difficulty": {
2953
+ "name": "difficulty",
2954
+ "type": "text",
2955
+ "primaryKey": false,
2956
+ "notNull": false
2957
+ },
2958
+ "labels": {
2959
+ "name": "labels",
2960
+ "type": "text[]",
2961
+ "primaryKey": false,
2962
+ "notNull": true,
2963
+ "default": "'{}'"
2964
+ },
2965
+ "scopes": {
2966
+ "name": "scopes",
2967
+ "type": "text[]",
2968
+ "primaryKey": false,
2969
+ "notNull": true,
2970
+ "default": "'{}'"
2971
+ },
2972
+ "assignee_id": {
2973
+ "name": "assignee_id",
2974
+ "type": "text",
2975
+ "primaryKey": false,
2976
+ "notNull": false
2977
+ },
2978
+ "parent_id": {
2979
+ "name": "parent_id",
2980
+ "type": "uuid",
2981
+ "primaryKey": false,
2982
+ "notNull": false
2983
+ },
2984
+ "automation_ready": {
2985
+ "name": "automation_ready",
2986
+ "type": "boolean",
2987
+ "primaryKey": false,
2988
+ "notNull": true,
2989
+ "default": false
2990
+ },
2991
+ "hold_reason": {
2992
+ "name": "hold_reason",
2993
+ "type": "text",
2994
+ "primaryKey": false,
2995
+ "notNull": false
2996
+ },
2997
+ "archived": {
2998
+ "name": "archived",
2999
+ "type": "boolean",
3000
+ "primaryKey": false,
3001
+ "notNull": true,
3002
+ "default": false
3003
+ },
3004
+ "created_by": {
3005
+ "name": "created_by",
3006
+ "type": "text",
3007
+ "primaryKey": false,
3008
+ "notNull": true
3009
+ },
3010
+ "version": {
3011
+ "name": "version",
3012
+ "type": "integer",
3013
+ "primaryKey": false,
3014
+ "notNull": true,
3015
+ "default": 1
3016
+ },
3017
+ "created_at": {
3018
+ "name": "created_at",
3019
+ "type": "timestamp with time zone",
3020
+ "primaryKey": false,
3021
+ "notNull": true,
3022
+ "default": "now()"
3023
+ },
3024
+ "updated_at": {
3025
+ "name": "updated_at",
3026
+ "type": "timestamp with time zone",
3027
+ "primaryKey": false,
3028
+ "notNull": true,
3029
+ "default": "now()"
3030
+ }
3031
+ },
3032
+ "indexes": {
3033
+ "ticket_project_status": {
3034
+ "name": "ticket_project_status",
3035
+ "columns": [
3036
+ {
3037
+ "expression": "project_id",
3038
+ "isExpression": false,
3039
+ "asc": true,
3040
+ "nulls": "last"
3041
+ },
3042
+ {
3043
+ "expression": "status",
3044
+ "isExpression": false,
3045
+ "asc": true,
3046
+ "nulls": "last"
3047
+ }
3048
+ ],
3049
+ "isUnique": false,
3050
+ "concurrently": false,
3051
+ "method": "btree",
3052
+ "with": {}
3053
+ },
3054
+ "ticket_parent": {
3055
+ "name": "ticket_parent",
3056
+ "columns": [
3057
+ {
3058
+ "expression": "parent_id",
3059
+ "isExpression": false,
3060
+ "asc": true,
3061
+ "nulls": "last"
3062
+ }
3063
+ ],
3064
+ "isUnique": false,
3065
+ "concurrently": false,
3066
+ "method": "btree",
3067
+ "with": {}
3068
+ }
3069
+ },
3070
+ "foreignKeys": {
3071
+ "tickets_project_id_projects_id_fk": {
3072
+ "name": "tickets_project_id_projects_id_fk",
3073
+ "tableFrom": "tickets",
3074
+ "tableTo": "projects",
3075
+ "columnsFrom": [
3076
+ "project_id"
3077
+ ],
3078
+ "columnsTo": [
3079
+ "id"
3080
+ ],
3081
+ "onDelete": "cascade",
3082
+ "onUpdate": "no action"
3083
+ },
3084
+ "tickets_assignee_id_user_id_fk": {
3085
+ "name": "tickets_assignee_id_user_id_fk",
3086
+ "tableFrom": "tickets",
3087
+ "tableTo": "user",
3088
+ "columnsFrom": [
3089
+ "assignee_id"
3090
+ ],
3091
+ "columnsTo": [
3092
+ "id"
3093
+ ],
3094
+ "onDelete": "set null",
3095
+ "onUpdate": "no action"
3096
+ },
3097
+ "tickets_created_by_user_id_fk": {
3098
+ "name": "tickets_created_by_user_id_fk",
3099
+ "tableFrom": "tickets",
3100
+ "tableTo": "user",
3101
+ "columnsFrom": [
3102
+ "created_by"
3103
+ ],
3104
+ "columnsTo": [
3105
+ "id"
3106
+ ],
3107
+ "onDelete": "no action",
3108
+ "onUpdate": "no action"
3109
+ }
3110
+ },
3111
+ "compositePrimaryKeys": {},
3112
+ "uniqueConstraints": {
3113
+ "tickets_key_unique": {
3114
+ "name": "tickets_key_unique",
3115
+ "nullsNotDistinct": false,
3116
+ "columns": [
3117
+ "key"
3118
+ ]
3119
+ },
3120
+ "ticket_project_number": {
3121
+ "name": "ticket_project_number",
3122
+ "nullsNotDistinct": false,
3123
+ "columns": [
3124
+ "project_id",
3125
+ "number"
3126
+ ]
3127
+ }
3128
+ },
3129
+ "policies": {},
3130
+ "checkConstraints": {},
3131
+ "isRLSEnabled": false
3132
+ },
3133
+ "public.saved_views": {
3134
+ "name": "saved_views",
3135
+ "schema": "",
3136
+ "columns": {
3137
+ "id": {
3138
+ "name": "id",
3139
+ "type": "uuid",
3140
+ "primaryKey": true,
3141
+ "notNull": true,
3142
+ "default": "gen_random_uuid()"
3143
+ },
3144
+ "project_id": {
3145
+ "name": "project_id",
3146
+ "type": "uuid",
3147
+ "primaryKey": false,
3148
+ "notNull": true
3149
+ },
3150
+ "user_id": {
3151
+ "name": "user_id",
3152
+ "type": "text",
3153
+ "primaryKey": false,
3154
+ "notNull": true
3155
+ },
3156
+ "name": {
3157
+ "name": "name",
3158
+ "type": "text",
3159
+ "primaryKey": false,
3160
+ "notNull": true
3161
+ },
3162
+ "filters": {
3163
+ "name": "filters",
3164
+ "type": "jsonb",
3165
+ "primaryKey": false,
3166
+ "notNull": true
3167
+ }
3168
+ },
3169
+ "indexes": {},
3170
+ "foreignKeys": {
3171
+ "saved_views_project_id_projects_id_fk": {
3172
+ "name": "saved_views_project_id_projects_id_fk",
3173
+ "tableFrom": "saved_views",
3174
+ "tableTo": "projects",
3175
+ "columnsFrom": [
3176
+ "project_id"
3177
+ ],
3178
+ "columnsTo": [
3179
+ "id"
3180
+ ],
3181
+ "onDelete": "cascade",
3182
+ "onUpdate": "no action"
3183
+ },
3184
+ "saved_views_user_id_user_id_fk": {
3185
+ "name": "saved_views_user_id_user_id_fk",
3186
+ "tableFrom": "saved_views",
3187
+ "tableTo": "user",
3188
+ "columnsFrom": [
3189
+ "user_id"
3190
+ ],
3191
+ "columnsTo": [
3192
+ "id"
3193
+ ],
3194
+ "onDelete": "cascade",
3195
+ "onUpdate": "no action"
3196
+ }
3197
+ },
3198
+ "compositePrimaryKeys": {},
3199
+ "uniqueConstraints": {},
3200
+ "policies": {},
3201
+ "checkConstraints": {},
3202
+ "isRLSEnabled": false
3203
+ }
3204
+ },
3205
+ "enums": {},
3206
+ "schemas": {},
3207
+ "sequences": {},
3208
+ "roles": {},
3209
+ "policies": {},
3210
+ "views": {},
3211
+ "_meta": {
3212
+ "columns": {},
3213
+ "schemas": {},
3214
+ "tables": {}
3215
+ }
3216
+ }