@maudecode/kanvil 0.0.0-stage → 0.1.2

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