@sentry/junior 0.277.0 → 0.279.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 (91) hide show
  1. package/dist/{adapter-BtfBHVM5.js → adapter-phTTgw7H.js} +1 -1
  2. package/dist/{admin-DzAKbZsm.js → admin-PcpJDugZ.js} +1 -1
  3. package/dist/{agent-invocations-Crs3XHhg.js → agent-invocations-CUg_SODU.js} +0 -1
  4. package/dist/{agent-runner-BsYAbniN.js → agent-runner-DwvT1BY0.js} +321 -847
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +6 -6
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +46 -414
  9. package/dist/{app-BjEQwNVP.d.ts → app-DVs6noo7.d.ts} +6 -27
  10. package/dist/app.d.ts +2 -2
  11. package/dist/app.js +460 -78
  12. package/dist/{assistant-reply-NebRGG4G.js → assistant-reply-BXfxczd7.js} +28 -6
  13. package/dist/{automation-Cql9h2vO.js → automation-BehArCcq.js} +1 -1
  14. package/dist/{background-compaction-queue-hh18yCeU.js → background-compaction-queue-CcbuLJrZ.js} +2 -2
  15. package/dist/{briefs-BBo0Eimi.js → briefs-Dd_ezwED.js} +10 -10
  16. package/dist/{catalog-runtime-DE-F4Awo.js → catalog-runtime-BWVMeZhW.js} +2 -2
  17. package/dist/cli/chat.js +16 -16
  18. package/dist/cli/check.js +3 -3
  19. package/dist/cli/init.js +0 -2
  20. package/dist/cli/main.js +4 -4
  21. package/dist/cli/plugins.js +5 -5
  22. package/dist/cli/snapshot-create.js +4 -4
  23. package/dist/cli/upgrade.d.ts +1 -1
  24. package/dist/cli/upgrade.js +4 -4
  25. package/dist/{client-DZ8HTnYH.js → client-Bpxe4vKa.js} +8 -4
  26. package/dist/{config-D5uUtrCP.js → config-C_bmRhrJ.js} +25 -100
  27. package/dist/{connections-Do24CGP5.js → connections-B2rHe5W5.js} +10 -10
  28. package/dist/{conversation-SsASlWL7.js → conversation-CIiJtx5q.js} +56 -104
  29. package/dist/conversation-pending-messages-CnBvE6-6.js +173 -0
  30. package/dist/{conversation-privacy-VuylvlKr.js → conversation-privacy-CzOfcz0U.js} +1 -1
  31. package/dist/{credential-sync-BGQK3pOa.js → credential-sync-Dal_unpv.js} +15 -15
  32. package/dist/{db-DEiwO5Sh.d.ts → db-CyLrV9C7.d.ts} +1 -1
  33. package/dist/{executor-hPfFTH0C.js → executor-BfYH-Wws.js} +6 -4
  34. package/dist/instrumentation.d.ts +12 -0
  35. package/dist/instrumentation.js +56 -23
  36. package/dist/{logging-cI3T1dNc.js → logging-CkT3_Xxp.js} +2 -2
  37. package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
  38. package/dist/{message-DBwsAl7O.js → message-Q5dkgaJ5.js} +23 -29
  39. package/dist/nitro.d.ts +1 -1
  40. package/dist/nitro.js +18 -6
  41. package/dist/{oauth-callback-server-DXrnbplb.js → oauth-callback-server-BDRaqe8O.js} +2 -2
  42. package/dist/{oauth-relay-C6ZAyJgf.js → oauth-relay-D0G3T16m.js} +1 -1
  43. package/dist/{package-discovery-DJBompdd.js → package-discovery-DJhGdS4c.js} +1 -1
  44. package/dist/{plugins-DOm9Y6qI.js → plugins-HYh_JOdw.js} +1 -1
  45. package/dist/{projection-7EFIqzuj.js → projection-DWxX7pb1.js} +214 -138
  46. package/dist/{prompt-oRfGsxd3.js → prompt--dwus7Y-.js} +1 -1
  47. package/dist/proxy-path-BHYoKZdq.js +15 -0
  48. package/dist/{registry-Bzefs7kT.js → registry-DnrdeO4s.js} +2 -2
  49. package/dist/{resolve-CuiEY_2u.js → resolve-C_QXfqD_.js} +3 -3
  50. package/dist/{result-DrcUtFaD.js → result-DNmOxT-N.js} +10 -10
  51. package/dist/{runner-CDE4CZ52.js → runner-zd_noJ1l.js} +11 -11
  52. package/dist/{sandbox-egress-signals-0tcmGd13.js → sandbox-egress-signals-DQjv-nbG.js} +1 -1
  53. package/dist/{schema-Dzi3lkdP.js → schema-CNJNzvr8.js} +4 -4
  54. package/dist/{schema-B6N2nc6v.d.ts → schema-e90H5FIN.d.ts} +2176 -967
  55. package/dist/sentry-BRTJqumy.js +51 -0
  56. package/dist/sentry-DrKC2NeM.d.ts +1 -0
  57. package/dist/sentry-route-name-BhwWnfqj.js +51 -0
  58. package/dist/{service-account-BOz9pqOE.js → service-account-BK26XlHo.js} +3 -3
  59. package/dist/{service-account-DIyz_9Uh.js → service-account-CCH2Hv4h.js} +3 -3
  60. package/dist/{session-stop-0juF_BP0.js → session-stop-6Tf--T7G.js} +23 -16
  61. package/dist/{skills-CU5Is147.js → skills-BNrk8gi4.js} +4 -4
  62. package/dist/{spawn-6C9jHH4b.js → spawn-C75hAB9l.js} +3 -4
  63. package/dist/{stop-6FVG1c-r.js → stop-RYbf7PWi.js} +742 -207
  64. package/dist/{store-DtHZviJ1.js → store-CO5vGjwD.js} +9 -16
  65. package/dist/{store-DKs1WwdB.js → store-G3h2djJU.js} +3 -3
  66. package/dist/{task-queue-CcvFQE_p.js → task-queue-DlN58XeM.js} +3 -3
  67. package/dist/{task-runner-DBkNejLl.js → task-runner-B-Bdm23d.js} +22 -10
  68. package/dist/{thread-state-4hjEIkIq.js → thread-state-Cj_7Slru.js} +4 -4
  69. package/dist/{turn-failure-response-BZNLydC3.js → turn-failure-response-CE7gaoC7.js} +7 -7
  70. package/dist/{turn-lifecycle-BhqYjaa4.js → turn-lifecycle-7sXwXLJ6.js} +1 -1
  71. package/dist/{turn-session-routing-jnLOfBHJ.js → turn-session-routing-FBdaH1zf.js} +10 -10
  72. package/dist/{validation-BUFmsnKs.js → validation-DLWxEzWW.js} +2 -2
  73. package/dist/{version-DJTk0ZCE.js → version-DtQ8WFIZ.js} +1 -1
  74. package/dist/version.js +1 -1
  75. package/dist/{viewer-WY0RYE4E.js → viewer-vsM8_90o.js} +53 -22
  76. package/dist/{work-C5AKvXJV.js → work-DsoFRO_0.js} +12 -17
  77. package/dist/{worker-BcYVDVUy.js → worker-6kZEsCXs.js} +7 -7
  78. package/migrations/0077_drop_agent_invocation_model_profile.sql +1 -0
  79. package/migrations/0078_plugin_conversation_index.sql +20 -0
  80. package/migrations/0079_conversation_event_author_index.sql +20 -0
  81. package/migrations/meta/0075_snapshot.json +98 -314
  82. package/migrations/meta/0076_snapshot.json +98 -314
  83. package/migrations/meta/0077_snapshot.json +4141 -0
  84. package/migrations/meta/0078_snapshot.json +4175 -0
  85. package/migrations/meta/0079_snapshot.json +4203 -0
  86. package/migrations/meta/_journal.json +22 -1
  87. package/package.json +5 -5
  88. package/dist/common-Eu6sx09c.js +0 -107
  89. package/dist/model-profile-B998sjVd.js +0 -67
  90. package/dist/rolldown-runtime-nwUcYXjP.js +0 -27
  91. package/dist/sentry-MDkYAVPV.js +0 -23
@@ -0,0 +1,4175 @@
1
+ {
2
+ "id": "327dcd99-2e9b-401c-8212-57400f212633",
3
+ "prevId": "8e2b0f6c-ca38-4edf-b706-246b9d502445",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.junior_agent_bindings": {
8
+ "name": "junior_agent_bindings",
9
+ "schema": "",
10
+ "columns": {
11
+ "parent_conversation_id": {
12
+ "name": "parent_conversation_id",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "name": {
18
+ "name": "name",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "child_conversation_id": {
24
+ "name": "child_conversation_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ }
29
+ },
30
+ "indexes": {
31
+ "junior_agent_bindings_child_idx": {
32
+ "name": "junior_agent_bindings_child_idx",
33
+ "columns": [
34
+ {
35
+ "expression": "child_conversation_id",
36
+ "isExpression": false,
37
+ "asc": true,
38
+ "nulls": "last"
39
+ }
40
+ ],
41
+ "isUnique": true,
42
+ "concurrently": false,
43
+ "method": "btree",
44
+ "with": {}
45
+ }
46
+ },
47
+ "foreignKeys": {
48
+ "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk": {
49
+ "name": "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk",
50
+ "tableFrom": "junior_agent_bindings",
51
+ "tableTo": "junior_conversations",
52
+ "columnsFrom": ["parent_conversation_id"],
53
+ "columnsTo": ["conversation_id"],
54
+ "onDelete": "no action",
55
+ "onUpdate": "no action"
56
+ },
57
+ "junior_agent_bindings_child_conversation_id_junior_conversations_conversation_id_fk": {
58
+ "name": "junior_agent_bindings_child_conversation_id_junior_conversations_conversation_id_fk",
59
+ "tableFrom": "junior_agent_bindings",
60
+ "tableTo": "junior_conversations",
61
+ "columnsFrom": ["child_conversation_id"],
62
+ "columnsTo": ["conversation_id"],
63
+ "onDelete": "no action",
64
+ "onUpdate": "no action"
65
+ }
66
+ },
67
+ "compositePrimaryKeys": {
68
+ "junior_agent_bindings_parent_conversation_id_name_pk": {
69
+ "name": "junior_agent_bindings_parent_conversation_id_name_pk",
70
+ "columns": ["parent_conversation_id", "name"]
71
+ }
72
+ },
73
+ "uniqueConstraints": {},
74
+ "policies": {},
75
+ "checkConstraints": {},
76
+ "isRLSEnabled": false
77
+ },
78
+ "public.junior_agent_invocations": {
79
+ "name": "junior_agent_invocations",
80
+ "schema": "",
81
+ "columns": {
82
+ "invocation_id": {
83
+ "name": "invocation_id",
84
+ "type": "text",
85
+ "primaryKey": true,
86
+ "notNull": true
87
+ },
88
+ "parent_conversation_id": {
89
+ "name": "parent_conversation_id",
90
+ "type": "text",
91
+ "primaryKey": false,
92
+ "notNull": true
93
+ },
94
+ "child_conversation_id": {
95
+ "name": "child_conversation_id",
96
+ "type": "text",
97
+ "primaryKey": false,
98
+ "notNull": true
99
+ },
100
+ "agent_name": {
101
+ "name": "agent_name",
102
+ "type": "text",
103
+ "primaryKey": false,
104
+ "notNull": false
105
+ },
106
+ "input": {
107
+ "name": "input",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true
111
+ },
112
+ "title": {
113
+ "name": "title",
114
+ "type": "text",
115
+ "primaryKey": false,
116
+ "notNull": false
117
+ },
118
+ "actor_json": {
119
+ "name": "actor_json",
120
+ "type": "jsonb",
121
+ "primaryKey": false,
122
+ "notNull": true
123
+ },
124
+ "credential_context_json": {
125
+ "name": "credential_context_json",
126
+ "type": "jsonb",
127
+ "primaryKey": false,
128
+ "notNull": false
129
+ },
130
+ "source_json": {
131
+ "name": "source_json",
132
+ "type": "jsonb",
133
+ "primaryKey": false,
134
+ "notNull": true
135
+ },
136
+ "destination_json": {
137
+ "name": "destination_json",
138
+ "type": "jsonb",
139
+ "primaryKey": false,
140
+ "notNull": true
141
+ },
142
+ "destination_visibility": {
143
+ "name": "destination_visibility",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": false
147
+ },
148
+ "agent_type": {
149
+ "name": "agent_type",
150
+ "type": "text",
151
+ "primaryKey": false,
152
+ "notNull": false
153
+ },
154
+ "reasoning_level": {
155
+ "name": "reasoning_level",
156
+ "type": "text",
157
+ "primaryKey": false,
158
+ "notNull": false
159
+ },
160
+ "parent_tool_call_id": {
161
+ "name": "parent_tool_call_id",
162
+ "type": "text",
163
+ "primaryKey": false,
164
+ "notNull": false
165
+ },
166
+ "status": {
167
+ "name": "status",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": true
171
+ },
172
+ "mailbox_status": {
173
+ "name": "mailbox_status",
174
+ "type": "text",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "parent_mailbox_status": {
179
+ "name": "parent_mailbox_status",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": false
183
+ },
184
+ "result": {
185
+ "name": "result",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": false
189
+ },
190
+ "error_message": {
191
+ "name": "error_message",
192
+ "type": "text",
193
+ "primaryKey": false,
194
+ "notNull": false
195
+ },
196
+ "created_at": {
197
+ "name": "created_at",
198
+ "type": "timestamp with time zone",
199
+ "primaryKey": false,
200
+ "notNull": true
201
+ },
202
+ "updated_at": {
203
+ "name": "updated_at",
204
+ "type": "timestamp with time zone",
205
+ "primaryKey": false,
206
+ "notNull": true
207
+ },
208
+ "terminal_at": {
209
+ "name": "terminal_at",
210
+ "type": "timestamp with time zone",
211
+ "primaryKey": false,
212
+ "notNull": false
213
+ }
214
+ },
215
+ "indexes": {
216
+ "junior_agent_invocations_child_idx": {
217
+ "name": "junior_agent_invocations_child_idx",
218
+ "columns": [
219
+ {
220
+ "expression": "child_conversation_id",
221
+ "isExpression": false,
222
+ "asc": true,
223
+ "nulls": "last"
224
+ }
225
+ ],
226
+ "isUnique": false,
227
+ "concurrently": false,
228
+ "method": "btree",
229
+ "with": {}
230
+ },
231
+ "junior_agent_invocations_mailbox_idx": {
232
+ "name": "junior_agent_invocations_mailbox_idx",
233
+ "columns": [
234
+ {
235
+ "expression": "mailbox_status",
236
+ "isExpression": false,
237
+ "asc": true,
238
+ "nulls": "last"
239
+ },
240
+ {
241
+ "expression": "created_at",
242
+ "isExpression": false,
243
+ "asc": true,
244
+ "nulls": "last"
245
+ }
246
+ ],
247
+ "isUnique": false,
248
+ "concurrently": false,
249
+ "method": "btree",
250
+ "with": {}
251
+ },
252
+ "junior_agent_invocations_parent_mailbox_idx": {
253
+ "name": "junior_agent_invocations_parent_mailbox_idx",
254
+ "columns": [
255
+ {
256
+ "expression": "parent_mailbox_status",
257
+ "isExpression": false,
258
+ "asc": true,
259
+ "nulls": "last"
260
+ },
261
+ {
262
+ "expression": "terminal_at",
263
+ "isExpression": false,
264
+ "asc": true,
265
+ "nulls": "last"
266
+ }
267
+ ],
268
+ "isUnique": false,
269
+ "concurrently": false,
270
+ "method": "btree",
271
+ "with": {}
272
+ }
273
+ },
274
+ "foreignKeys": {
275
+ "junior_agent_invocations_parent_conversation_id_junior_conversations_conversation_id_fk": {
276
+ "name": "junior_agent_invocations_parent_conversation_id_junior_conversations_conversation_id_fk",
277
+ "tableFrom": "junior_agent_invocations",
278
+ "tableTo": "junior_conversations",
279
+ "columnsFrom": ["parent_conversation_id"],
280
+ "columnsTo": ["conversation_id"],
281
+ "onDelete": "no action",
282
+ "onUpdate": "no action"
283
+ },
284
+ "junior_agent_invocations_child_conversation_id_junior_conversations_conversation_id_fk": {
285
+ "name": "junior_agent_invocations_child_conversation_id_junior_conversations_conversation_id_fk",
286
+ "tableFrom": "junior_agent_invocations",
287
+ "tableTo": "junior_conversations",
288
+ "columnsFrom": ["child_conversation_id"],
289
+ "columnsTo": ["conversation_id"],
290
+ "onDelete": "no action",
291
+ "onUpdate": "no action"
292
+ }
293
+ },
294
+ "compositePrimaryKeys": {},
295
+ "uniqueConstraints": {},
296
+ "policies": {},
297
+ "checkConstraints": {},
298
+ "isRLSEnabled": false
299
+ },
300
+ "public.junior_api_tokens": {
301
+ "name": "junior_api_tokens",
302
+ "schema": "",
303
+ "columns": {
304
+ "id": {
305
+ "name": "id",
306
+ "type": "text",
307
+ "primaryKey": true,
308
+ "notNull": true
309
+ },
310
+ "owner_email_normalized": {
311
+ "name": "owner_email_normalized",
312
+ "type": "text",
313
+ "primaryKey": false,
314
+ "notNull": true
315
+ },
316
+ "name": {
317
+ "name": "name",
318
+ "type": "text",
319
+ "primaryKey": false,
320
+ "notNull": true
321
+ },
322
+ "token_hash": {
323
+ "name": "token_hash",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": true
327
+ },
328
+ "token_suffix": {
329
+ "name": "token_suffix",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": true
333
+ },
334
+ "created_at": {
335
+ "name": "created_at",
336
+ "type": "timestamp with time zone",
337
+ "primaryKey": false,
338
+ "notNull": true
339
+ },
340
+ "expires_at": {
341
+ "name": "expires_at",
342
+ "type": "timestamp with time zone",
343
+ "primaryKey": false,
344
+ "notNull": true
345
+ },
346
+ "last_used_at": {
347
+ "name": "last_used_at",
348
+ "type": "timestamp with time zone",
349
+ "primaryKey": false,
350
+ "notNull": false
351
+ },
352
+ "revoked_at": {
353
+ "name": "revoked_at",
354
+ "type": "timestamp with time zone",
355
+ "primaryKey": false,
356
+ "notNull": false
357
+ }
358
+ },
359
+ "indexes": {
360
+ "junior_api_tokens_token_hash_uidx": {
361
+ "name": "junior_api_tokens_token_hash_uidx",
362
+ "columns": [
363
+ {
364
+ "expression": "token_hash",
365
+ "isExpression": false,
366
+ "asc": true,
367
+ "nulls": "last"
368
+ }
369
+ ],
370
+ "isUnique": true,
371
+ "concurrently": false,
372
+ "method": "btree",
373
+ "with": {}
374
+ },
375
+ "junior_api_tokens_owner_email_idx": {
376
+ "name": "junior_api_tokens_owner_email_idx",
377
+ "columns": [
378
+ {
379
+ "expression": "owner_email_normalized",
380
+ "isExpression": false,
381
+ "asc": true,
382
+ "nulls": "last"
383
+ }
384
+ ],
385
+ "isUnique": false,
386
+ "concurrently": false,
387
+ "method": "btree",
388
+ "with": {}
389
+ }
390
+ },
391
+ "foreignKeys": {},
392
+ "compositePrimaryKeys": {},
393
+ "uniqueConstraints": {},
394
+ "policies": {},
395
+ "checkConstraints": {},
396
+ "isRLSEnabled": false
397
+ },
398
+ "public.junior_artifacts": {
399
+ "name": "junior_artifacts",
400
+ "schema": "",
401
+ "columns": {
402
+ "id": {
403
+ "name": "id",
404
+ "type": "text",
405
+ "primaryKey": true,
406
+ "notNull": true
407
+ },
408
+ "conversation_id": {
409
+ "name": "conversation_id",
410
+ "type": "text",
411
+ "primaryKey": false,
412
+ "notNull": true
413
+ },
414
+ "sha256": {
415
+ "name": "sha256",
416
+ "type": "text",
417
+ "primaryKey": false,
418
+ "notNull": true
419
+ },
420
+ "ext": {
421
+ "name": "ext",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": true
425
+ },
426
+ "storage_key": {
427
+ "name": "storage_key",
428
+ "type": "text",
429
+ "primaryKey": false,
430
+ "notNull": true
431
+ },
432
+ "content_type": {
433
+ "name": "content_type",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true
437
+ },
438
+ "bytes": {
439
+ "name": "bytes",
440
+ "type": "integer",
441
+ "primaryKey": false,
442
+ "notNull": true
443
+ },
444
+ "public": {
445
+ "name": "public",
446
+ "type": "boolean",
447
+ "primaryKey": false,
448
+ "notNull": true
449
+ },
450
+ "created_at": {
451
+ "name": "created_at",
452
+ "type": "timestamp with time zone",
453
+ "primaryKey": false,
454
+ "notNull": true
455
+ },
456
+ "delete_requested_at": {
457
+ "name": "delete_requested_at",
458
+ "type": "timestamp with time zone",
459
+ "primaryKey": false,
460
+ "notNull": false
461
+ }
462
+ },
463
+ "indexes": {
464
+ "junior_artifacts_conversation_sha_uidx": {
465
+ "name": "junior_artifacts_conversation_sha_uidx",
466
+ "columns": [
467
+ {
468
+ "expression": "conversation_id",
469
+ "isExpression": false,
470
+ "asc": true,
471
+ "nulls": "last"
472
+ },
473
+ {
474
+ "expression": "sha256",
475
+ "isExpression": false,
476
+ "asc": true,
477
+ "nulls": "last"
478
+ }
479
+ ],
480
+ "isUnique": true,
481
+ "concurrently": false,
482
+ "method": "btree",
483
+ "with": {}
484
+ },
485
+ "junior_artifacts_gc_idx": {
486
+ "name": "junior_artifacts_gc_idx",
487
+ "columns": [
488
+ {
489
+ "expression": "delete_requested_at",
490
+ "isExpression": false,
491
+ "asc": true,
492
+ "nulls": "last"
493
+ },
494
+ {
495
+ "expression": "created_at",
496
+ "isExpression": false,
497
+ "asc": true,
498
+ "nulls": "last"
499
+ }
500
+ ],
501
+ "isUnique": false,
502
+ "concurrently": false,
503
+ "method": "btree",
504
+ "with": {}
505
+ },
506
+ "junior_artifacts_conversation_idx": {
507
+ "name": "junior_artifacts_conversation_idx",
508
+ "columns": [
509
+ {
510
+ "expression": "conversation_id",
511
+ "isExpression": false,
512
+ "asc": true,
513
+ "nulls": "last"
514
+ }
515
+ ],
516
+ "isUnique": false,
517
+ "concurrently": false,
518
+ "method": "btree",
519
+ "with": {}
520
+ }
521
+ },
522
+ "foreignKeys": {},
523
+ "compositePrimaryKeys": {},
524
+ "uniqueConstraints": {},
525
+ "policies": {},
526
+ "checkConstraints": {},
527
+ "isRLSEnabled": false
528
+ },
529
+ "public.junior_attachments": {
530
+ "name": "junior_attachments",
531
+ "schema": "",
532
+ "columns": {
533
+ "id": {
534
+ "name": "id",
535
+ "type": "text",
536
+ "primaryKey": true,
537
+ "notNull": true
538
+ },
539
+ "conversation_id": {
540
+ "name": "conversation_id",
541
+ "type": "text",
542
+ "primaryKey": false,
543
+ "notNull": true
544
+ },
545
+ "storage_provider": {
546
+ "name": "storage_provider",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": true
550
+ },
551
+ "storage_key": {
552
+ "name": "storage_key",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": true
556
+ },
557
+ "provider": {
558
+ "name": "provider",
559
+ "type": "text",
560
+ "primaryKey": false,
561
+ "notNull": false
562
+ },
563
+ "provider_id": {
564
+ "name": "provider_id",
565
+ "type": "text",
566
+ "primaryKey": false,
567
+ "notNull": false
568
+ },
569
+ "filename": {
570
+ "name": "filename",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": true
574
+ },
575
+ "content_type": {
576
+ "name": "content_type",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": true
580
+ },
581
+ "bytes": {
582
+ "name": "bytes",
583
+ "type": "integer",
584
+ "primaryKey": false,
585
+ "notNull": true
586
+ },
587
+ "sha256": {
588
+ "name": "sha256",
589
+ "type": "text",
590
+ "primaryKey": false,
591
+ "notNull": true
592
+ },
593
+ "vision_summary": {
594
+ "name": "vision_summary",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": false
598
+ },
599
+ "created_at": {
600
+ "name": "created_at",
601
+ "type": "timestamp with time zone",
602
+ "primaryKey": false,
603
+ "notNull": true
604
+ },
605
+ "delete_requested_at": {
606
+ "name": "delete_requested_at",
607
+ "type": "timestamp with time zone",
608
+ "primaryKey": false,
609
+ "notNull": false
610
+ }
611
+ },
612
+ "indexes": {
613
+ "junior_attachments_conversation_idx": {
614
+ "name": "junior_attachments_conversation_idx",
615
+ "columns": [
616
+ {
617
+ "expression": "conversation_id",
618
+ "isExpression": false,
619
+ "asc": true,
620
+ "nulls": "last"
621
+ }
622
+ ],
623
+ "isUnique": false,
624
+ "concurrently": false,
625
+ "method": "btree",
626
+ "with": {}
627
+ },
628
+ "junior_attachments_provider_idx": {
629
+ "name": "junior_attachments_provider_idx",
630
+ "columns": [
631
+ {
632
+ "expression": "conversation_id",
633
+ "isExpression": false,
634
+ "asc": true,
635
+ "nulls": "last"
636
+ },
637
+ {
638
+ "expression": "provider",
639
+ "isExpression": false,
640
+ "asc": true,
641
+ "nulls": "last"
642
+ },
643
+ {
644
+ "expression": "provider_id",
645
+ "isExpression": false,
646
+ "asc": true,
647
+ "nulls": "last"
648
+ }
649
+ ],
650
+ "isUnique": false,
651
+ "concurrently": false,
652
+ "method": "btree",
653
+ "with": {}
654
+ },
655
+ "junior_attachments_gc_idx": {
656
+ "name": "junior_attachments_gc_idx",
657
+ "columns": [
658
+ {
659
+ "expression": "storage_provider",
660
+ "isExpression": false,
661
+ "asc": true,
662
+ "nulls": "last"
663
+ },
664
+ {
665
+ "expression": "delete_requested_at",
666
+ "isExpression": false,
667
+ "asc": true,
668
+ "nulls": "last"
669
+ },
670
+ {
671
+ "expression": "created_at",
672
+ "isExpression": false,
673
+ "asc": true,
674
+ "nulls": "last"
675
+ }
676
+ ],
677
+ "isUnique": false,
678
+ "concurrently": false,
679
+ "method": "btree",
680
+ "with": {}
681
+ }
682
+ },
683
+ "foreignKeys": {
684
+ "junior_attachments_conversation_id_junior_conversations_conversation_id_fk": {
685
+ "name": "junior_attachments_conversation_id_junior_conversations_conversation_id_fk",
686
+ "tableFrom": "junior_attachments",
687
+ "tableTo": "junior_conversations",
688
+ "columnsFrom": ["conversation_id"],
689
+ "columnsTo": ["conversation_id"],
690
+ "onDelete": "cascade",
691
+ "onUpdate": "no action"
692
+ }
693
+ },
694
+ "compositePrimaryKeys": {},
695
+ "uniqueConstraints": {},
696
+ "policies": {},
697
+ "checkConstraints": {},
698
+ "isRLSEnabled": false
699
+ },
700
+ "public.junior_automation_runs": {
701
+ "name": "junior_automation_runs",
702
+ "schema": "",
703
+ "columns": {
704
+ "id": {
705
+ "name": "id",
706
+ "type": "text",
707
+ "primaryKey": true,
708
+ "notNull": true
709
+ },
710
+ "automation_id": {
711
+ "name": "automation_id",
712
+ "type": "text",
713
+ "primaryKey": false,
714
+ "notNull": true
715
+ },
716
+ "conversation_id": {
717
+ "name": "conversation_id",
718
+ "type": "text",
719
+ "primaryKey": false,
720
+ "notNull": false
721
+ },
722
+ "status": {
723
+ "name": "status",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": true
727
+ },
728
+ "automation_version": {
729
+ "name": "automation_version",
730
+ "type": "integer",
731
+ "primaryKey": false,
732
+ "notNull": false
733
+ },
734
+ "scheduled_for_ms": {
735
+ "name": "scheduled_for_ms",
736
+ "type": "bigint",
737
+ "primaryKey": false,
738
+ "notNull": false
739
+ },
740
+ "attempt": {
741
+ "name": "attempt",
742
+ "type": "integer",
743
+ "primaryKey": false,
744
+ "notNull": false
745
+ },
746
+ "claimed_at_ms": {
747
+ "name": "claimed_at_ms",
748
+ "type": "bigint",
749
+ "primaryKey": false,
750
+ "notNull": false
751
+ },
752
+ "dispatch_id": {
753
+ "name": "dispatch_id",
754
+ "type": "text",
755
+ "primaryKey": false,
756
+ "notNull": false
757
+ },
758
+ "started_at_ms": {
759
+ "name": "started_at_ms",
760
+ "type": "bigint",
761
+ "primaryKey": false,
762
+ "notNull": false
763
+ },
764
+ "completed_at_ms": {
765
+ "name": "completed_at_ms",
766
+ "type": "bigint",
767
+ "primaryKey": false,
768
+ "notNull": false
769
+ },
770
+ "error_message": {
771
+ "name": "error_message",
772
+ "type": "text",
773
+ "primaryKey": false,
774
+ "notNull": false
775
+ },
776
+ "result_message_ts": {
777
+ "name": "result_message_ts",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": false
781
+ }
782
+ },
783
+ "indexes": {
784
+ "junior_automation_runs_automation_idx": {
785
+ "name": "junior_automation_runs_automation_idx",
786
+ "columns": [
787
+ {
788
+ "expression": "automation_id",
789
+ "isExpression": false,
790
+ "asc": true,
791
+ "nulls": "last"
792
+ },
793
+ {
794
+ "expression": "completed_at_ms",
795
+ "isExpression": false,
796
+ "asc": true,
797
+ "nulls": "last"
798
+ }
799
+ ],
800
+ "isUnique": false,
801
+ "concurrently": false,
802
+ "method": "btree",
803
+ "with": {}
804
+ },
805
+ "junior_automation_runs_completed_idx": {
806
+ "name": "junior_automation_runs_completed_idx",
807
+ "columns": [
808
+ {
809
+ "expression": "completed_at_ms",
810
+ "isExpression": false,
811
+ "asc": true,
812
+ "nulls": "last"
813
+ }
814
+ ],
815
+ "isUnique": false,
816
+ "concurrently": false,
817
+ "method": "btree",
818
+ "with": {}
819
+ },
820
+ "junior_automation_runs_incomplete_idx": {
821
+ "name": "junior_automation_runs_incomplete_idx",
822
+ "columns": [
823
+ {
824
+ "expression": "automation_id",
825
+ "isExpression": false,
826
+ "asc": true,
827
+ "nulls": "last"
828
+ },
829
+ {
830
+ "expression": "scheduled_for_ms",
831
+ "isExpression": false,
832
+ "asc": true,
833
+ "nulls": "last"
834
+ }
835
+ ],
836
+ "isUnique": false,
837
+ "where": "\"junior_automation_runs\".\"status\" in ('pending', 'running')",
838
+ "concurrently": false,
839
+ "method": "btree",
840
+ "with": {}
841
+ }
842
+ },
843
+ "foreignKeys": {
844
+ "junior_automation_runs_automation_id_junior_automations_id_fk": {
845
+ "name": "junior_automation_runs_automation_id_junior_automations_id_fk",
846
+ "tableFrom": "junior_automation_runs",
847
+ "tableTo": "junior_automations",
848
+ "columnsFrom": ["automation_id"],
849
+ "columnsTo": ["id"],
850
+ "onDelete": "cascade",
851
+ "onUpdate": "no action"
852
+ },
853
+ "junior_automation_runs_conversation_id_junior_conversations_conversation_id_fk": {
854
+ "name": "junior_automation_runs_conversation_id_junior_conversations_conversation_id_fk",
855
+ "tableFrom": "junior_automation_runs",
856
+ "tableTo": "junior_conversations",
857
+ "columnsFrom": ["conversation_id"],
858
+ "columnsTo": ["conversation_id"],
859
+ "onDelete": "no action",
860
+ "onUpdate": "no action"
861
+ },
862
+ "junior_automation_runs_automation_version_fk": {
863
+ "name": "junior_automation_runs_automation_version_fk",
864
+ "tableFrom": "junior_automation_runs",
865
+ "tableTo": "junior_automation_versions",
866
+ "columnsFrom": ["automation_id", "automation_version"],
867
+ "columnsTo": ["automation_id", "version"],
868
+ "onDelete": "no action",
869
+ "onUpdate": "no action"
870
+ }
871
+ },
872
+ "compositePrimaryKeys": {},
873
+ "uniqueConstraints": {
874
+ "junior_automation_runs_conversation_id_unique": {
875
+ "name": "junior_automation_runs_conversation_id_unique",
876
+ "nullsNotDistinct": false,
877
+ "columns": ["conversation_id"]
878
+ }
879
+ },
880
+ "policies": {},
881
+ "checkConstraints": {
882
+ "junior_automation_runs_status_check": {
883
+ "name": "junior_automation_runs_status_check",
884
+ "value": "\"junior_automation_runs\".\"status\" in ('pending', 'running', 'completed', 'failed', 'blocked', 'skipped')"
885
+ }
886
+ },
887
+ "isRLSEnabled": false
888
+ },
889
+ "public.junior_automation_versions": {
890
+ "name": "junior_automation_versions",
891
+ "schema": "",
892
+ "columns": {
893
+ "automation_id": {
894
+ "name": "automation_id",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": true
898
+ },
899
+ "version": {
900
+ "name": "version",
901
+ "type": "integer",
902
+ "primaryKey": false,
903
+ "notNull": true
904
+ },
905
+ "created_at_ms": {
906
+ "name": "created_at_ms",
907
+ "type": "bigint",
908
+ "primaryKey": false,
909
+ "notNull": true
910
+ },
911
+ "edited_by": {
912
+ "name": "edited_by",
913
+ "type": "jsonb",
914
+ "primaryKey": false,
915
+ "notNull": false
916
+ },
917
+ "definition": {
918
+ "name": "definition",
919
+ "type": "jsonb",
920
+ "primaryKey": false,
921
+ "notNull": true
922
+ }
923
+ },
924
+ "indexes": {},
925
+ "foreignKeys": {
926
+ "junior_automation_versions_automation_id_fk": {
927
+ "name": "junior_automation_versions_automation_id_fk",
928
+ "tableFrom": "junior_automation_versions",
929
+ "tableTo": "junior_automations",
930
+ "columnsFrom": ["automation_id"],
931
+ "columnsTo": ["id"],
932
+ "onDelete": "cascade",
933
+ "onUpdate": "no action"
934
+ }
935
+ },
936
+ "compositePrimaryKeys": {
937
+ "junior_automation_versions_pk": {
938
+ "name": "junior_automation_versions_pk",
939
+ "columns": ["automation_id", "version"]
940
+ }
941
+ },
942
+ "uniqueConstraints": {},
943
+ "policies": {},
944
+ "checkConstraints": {},
945
+ "isRLSEnabled": false
946
+ },
947
+ "public.junior_automations": {
948
+ "name": "junior_automations",
949
+ "schema": "",
950
+ "columns": {
951
+ "id": {
952
+ "name": "id",
953
+ "type": "text",
954
+ "primaryKey": true,
955
+ "notNull": true
956
+ },
957
+ "kind": {
958
+ "name": "kind",
959
+ "type": "text",
960
+ "primaryKey": false,
961
+ "notNull": true
962
+ },
963
+ "team_id": {
964
+ "name": "team_id",
965
+ "type": "text",
966
+ "primaryKey": false,
967
+ "notNull": true
968
+ },
969
+ "channel_id": {
970
+ "name": "channel_id",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": true
974
+ },
975
+ "creator_slack_user_id": {
976
+ "name": "creator_slack_user_id",
977
+ "type": "text",
978
+ "primaryKey": false,
979
+ "notNull": true
980
+ },
981
+ "creator_identity_id": {
982
+ "name": "creator_identity_id",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": true
986
+ },
987
+ "status": {
988
+ "name": "status",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": true
992
+ },
993
+ "status_reason": {
994
+ "name": "status_reason",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": false
998
+ },
999
+ "title": {
1000
+ "name": "title",
1001
+ "type": "text",
1002
+ "primaryKey": false,
1003
+ "notNull": false
1004
+ },
1005
+ "instruction": {
1006
+ "name": "instruction",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true
1010
+ },
1011
+ "created_at_ms": {
1012
+ "name": "created_at_ms",
1013
+ "type": "bigint",
1014
+ "primaryKey": false,
1015
+ "notNull": true
1016
+ },
1017
+ "next_run_at_ms": {
1018
+ "name": "next_run_at_ms",
1019
+ "type": "bigint",
1020
+ "primaryKey": false,
1021
+ "notNull": false
1022
+ },
1023
+ "run_now_at_ms": {
1024
+ "name": "run_now_at_ms",
1025
+ "type": "bigint",
1026
+ "primaryKey": false,
1027
+ "notNull": false
1028
+ },
1029
+ "namespace": {
1030
+ "name": "namespace",
1031
+ "type": "text",
1032
+ "primaryKey": false,
1033
+ "notNull": false
1034
+ },
1035
+ "identifier": {
1036
+ "name": "identifier",
1037
+ "type": "text",
1038
+ "primaryKey": false,
1039
+ "notNull": false
1040
+ },
1041
+ "record": {
1042
+ "name": "record",
1043
+ "type": "jsonb",
1044
+ "primaryKey": false,
1045
+ "notNull": true
1046
+ }
1047
+ },
1048
+ "indexes": {
1049
+ "junior_automations_team_idx": {
1050
+ "name": "junior_automations_team_idx",
1051
+ "columns": [
1052
+ {
1053
+ "expression": "team_id",
1054
+ "isExpression": false,
1055
+ "asc": true,
1056
+ "nulls": "last"
1057
+ },
1058
+ {
1059
+ "expression": "created_at_ms",
1060
+ "isExpression": false,
1061
+ "asc": true,
1062
+ "nulls": "last"
1063
+ },
1064
+ {
1065
+ "expression": "id",
1066
+ "isExpression": false,
1067
+ "asc": true,
1068
+ "nulls": "last"
1069
+ }
1070
+ ],
1071
+ "isUnique": false,
1072
+ "where": "\"junior_automations\".\"status\" <> 'deleted'",
1073
+ "concurrently": false,
1074
+ "method": "btree",
1075
+ "with": {}
1076
+ },
1077
+ "junior_automations_creator_identity_idx": {
1078
+ "name": "junior_automations_creator_identity_idx",
1079
+ "columns": [
1080
+ {
1081
+ "expression": "creator_identity_id",
1082
+ "isExpression": false,
1083
+ "asc": true,
1084
+ "nulls": "last"
1085
+ },
1086
+ {
1087
+ "expression": "created_at_ms",
1088
+ "isExpression": false,
1089
+ "asc": true,
1090
+ "nulls": "last"
1091
+ },
1092
+ {
1093
+ "expression": "id",
1094
+ "isExpression": false,
1095
+ "asc": true,
1096
+ "nulls": "last"
1097
+ }
1098
+ ],
1099
+ "isUnique": false,
1100
+ "concurrently": false,
1101
+ "method": "btree",
1102
+ "with": {}
1103
+ },
1104
+ "junior_automations_run_now_due_idx": {
1105
+ "name": "junior_automations_run_now_due_idx",
1106
+ "columns": [
1107
+ {
1108
+ "expression": "run_now_at_ms",
1109
+ "isExpression": false,
1110
+ "asc": true,
1111
+ "nulls": "last"
1112
+ },
1113
+ {
1114
+ "expression": "created_at_ms",
1115
+ "isExpression": false,
1116
+ "asc": true,
1117
+ "nulls": "last"
1118
+ },
1119
+ {
1120
+ "expression": "id",
1121
+ "isExpression": false,
1122
+ "asc": true,
1123
+ "nulls": "last"
1124
+ }
1125
+ ],
1126
+ "isUnique": false,
1127
+ "where": "\"junior_automations\".\"status\" = 'active' AND \"junior_automations\".\"run_now_at_ms\" IS NOT NULL",
1128
+ "concurrently": false,
1129
+ "method": "btree",
1130
+ "with": {}
1131
+ },
1132
+ "junior_automations_next_run_due_idx": {
1133
+ "name": "junior_automations_next_run_due_idx",
1134
+ "columns": [
1135
+ {
1136
+ "expression": "next_run_at_ms",
1137
+ "isExpression": false,
1138
+ "asc": true,
1139
+ "nulls": "last"
1140
+ },
1141
+ {
1142
+ "expression": "created_at_ms",
1143
+ "isExpression": false,
1144
+ "asc": true,
1145
+ "nulls": "last"
1146
+ },
1147
+ {
1148
+ "expression": "id",
1149
+ "isExpression": false,
1150
+ "asc": true,
1151
+ "nulls": "last"
1152
+ }
1153
+ ],
1154
+ "isUnique": false,
1155
+ "where": "\"junior_automations\".\"status\" = 'active' AND \"junior_automations\".\"next_run_at_ms\" IS NOT NULL",
1156
+ "concurrently": false,
1157
+ "method": "btree",
1158
+ "with": {}
1159
+ },
1160
+ "junior_automations_match_idx": {
1161
+ "name": "junior_automations_match_idx",
1162
+ "columns": [
1163
+ {
1164
+ "expression": "namespace",
1165
+ "isExpression": false,
1166
+ "asc": true,
1167
+ "nulls": "last"
1168
+ },
1169
+ {
1170
+ "expression": "identifier",
1171
+ "isExpression": false,
1172
+ "asc": true,
1173
+ "nulls": "last"
1174
+ },
1175
+ {
1176
+ "expression": "created_at_ms",
1177
+ "isExpression": false,
1178
+ "asc": true,
1179
+ "nulls": "last"
1180
+ },
1181
+ {
1182
+ "expression": "id",
1183
+ "isExpression": false,
1184
+ "asc": true,
1185
+ "nulls": "last"
1186
+ }
1187
+ ],
1188
+ "isUnique": false,
1189
+ "where": "\"junior_automations\".\"status\" <> 'deleted'",
1190
+ "concurrently": false,
1191
+ "method": "btree",
1192
+ "with": {}
1193
+ }
1194
+ },
1195
+ "foreignKeys": {
1196
+ "junior_automations_creator_identity_id_junior_identities_id_fk": {
1197
+ "name": "junior_automations_creator_identity_id_junior_identities_id_fk",
1198
+ "tableFrom": "junior_automations",
1199
+ "tableTo": "junior_identities",
1200
+ "columnsFrom": ["creator_identity_id"],
1201
+ "columnsTo": ["id"],
1202
+ "onDelete": "no action",
1203
+ "onUpdate": "no action"
1204
+ }
1205
+ },
1206
+ "compositePrimaryKeys": {},
1207
+ "uniqueConstraints": {},
1208
+ "policies": {},
1209
+ "checkConstraints": {
1210
+ "junior_automations_kind_check": {
1211
+ "name": "junior_automations_kind_check",
1212
+ "value": "\"junior_automations\".\"kind\" in ('scheduled', 'event')"
1213
+ },
1214
+ "junior_automations_status_check": {
1215
+ "name": "junior_automations_status_check",
1216
+ "value": "\"junior_automations\".\"status\" in ('active', 'blocked', 'paused', 'completed', 'deleted')"
1217
+ },
1218
+ "junior_automations_record_check": {
1219
+ "name": "junior_automations_record_check",
1220
+ "value": "jsonb_typeof(\"junior_automations\".\"record\") = 'object'"
1221
+ },
1222
+ "junior_automations_trigger_check": {
1223
+ "name": "junior_automations_trigger_check",
1224
+ "value": "(\"junior_automations\".\"kind\" = 'scheduled' and \"junior_automations\".\"namespace\" is null and \"junior_automations\".\"identifier\" is null) or (\"junior_automations\".\"kind\" = 'event' and \"junior_automations\".\"namespace\" is not null and \"junior_automations\".\"next_run_at_ms\" is null and \"junior_automations\".\"run_now_at_ms\" is null and \"junior_automations\".\"status\" <> 'completed')"
1225
+ }
1226
+ },
1227
+ "isRLSEnabled": false
1228
+ },
1229
+ "public.junior_code_changes": {
1230
+ "name": "junior_code_changes",
1231
+ "schema": "",
1232
+ "columns": {
1233
+ "id": {
1234
+ "name": "id",
1235
+ "type": "uuid",
1236
+ "primaryKey": true,
1237
+ "notNull": true
1238
+ },
1239
+ "closed_at": {
1240
+ "name": "closed_at",
1241
+ "type": "timestamp with time zone",
1242
+ "primaryKey": false,
1243
+ "notNull": false
1244
+ },
1245
+ "conversation_ids": {
1246
+ "name": "conversation_ids",
1247
+ "type": "text[]",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "default": "ARRAY[]::text[]"
1251
+ },
1252
+ "merged_at": {
1253
+ "name": "merged_at",
1254
+ "type": "timestamp with time zone",
1255
+ "primaryKey": false,
1256
+ "notNull": false
1257
+ },
1258
+ "number": {
1259
+ "name": "number",
1260
+ "type": "integer",
1261
+ "primaryKey": false,
1262
+ "notNull": true
1263
+ },
1264
+ "opened_at": {
1265
+ "name": "opened_at",
1266
+ "type": "timestamp with time zone",
1267
+ "primaryKey": false,
1268
+ "notNull": true
1269
+ },
1270
+ "provider": {
1271
+ "name": "provider",
1272
+ "type": "text",
1273
+ "primaryKey": false,
1274
+ "notNull": true
1275
+ },
1276
+ "provider_id": {
1277
+ "name": "provider_id",
1278
+ "type": "text",
1279
+ "primaryKey": false,
1280
+ "notNull": true
1281
+ },
1282
+ "repository_id": {
1283
+ "name": "repository_id",
1284
+ "type": "uuid",
1285
+ "primaryKey": false,
1286
+ "notNull": true
1287
+ },
1288
+ "state": {
1289
+ "name": "state",
1290
+ "type": "text",
1291
+ "primaryKey": false,
1292
+ "notNull": true
1293
+ },
1294
+ "title": {
1295
+ "name": "title",
1296
+ "type": "text",
1297
+ "primaryKey": false,
1298
+ "notNull": false
1299
+ },
1300
+ "updated_at": {
1301
+ "name": "updated_at",
1302
+ "type": "timestamp with time zone",
1303
+ "primaryKey": false,
1304
+ "notNull": true
1305
+ },
1306
+ "url": {
1307
+ "name": "url",
1308
+ "type": "text",
1309
+ "primaryKey": false,
1310
+ "notNull": false
1311
+ }
1312
+ },
1313
+ "indexes": {
1314
+ "junior_code_changes_provider_id_idx": {
1315
+ "name": "junior_code_changes_provider_id_idx",
1316
+ "columns": [
1317
+ {
1318
+ "expression": "provider",
1319
+ "isExpression": false,
1320
+ "asc": true,
1321
+ "nulls": "last"
1322
+ },
1323
+ {
1324
+ "expression": "provider_id",
1325
+ "isExpression": false,
1326
+ "asc": true,
1327
+ "nulls": "last"
1328
+ }
1329
+ ],
1330
+ "isUnique": true,
1331
+ "concurrently": false,
1332
+ "method": "btree",
1333
+ "with": {}
1334
+ },
1335
+ "junior_code_changes_opened_at_idx": {
1336
+ "name": "junior_code_changes_opened_at_idx",
1337
+ "columns": [
1338
+ {
1339
+ "expression": "opened_at",
1340
+ "isExpression": false,
1341
+ "asc": true,
1342
+ "nulls": "last"
1343
+ }
1344
+ ],
1345
+ "isUnique": false,
1346
+ "concurrently": false,
1347
+ "method": "btree",
1348
+ "with": {}
1349
+ },
1350
+ "junior_code_changes_merged_at_idx": {
1351
+ "name": "junior_code_changes_merged_at_idx",
1352
+ "columns": [
1353
+ {
1354
+ "expression": "merged_at",
1355
+ "isExpression": false,
1356
+ "asc": true,
1357
+ "nulls": "last"
1358
+ }
1359
+ ],
1360
+ "isUnique": false,
1361
+ "concurrently": false,
1362
+ "method": "btree",
1363
+ "with": {}
1364
+ },
1365
+ "junior_code_changes_closed_at_idx": {
1366
+ "name": "junior_code_changes_closed_at_idx",
1367
+ "columns": [
1368
+ {
1369
+ "expression": "closed_at",
1370
+ "isExpression": false,
1371
+ "asc": true,
1372
+ "nulls": "last"
1373
+ }
1374
+ ],
1375
+ "isUnique": false,
1376
+ "concurrently": false,
1377
+ "method": "btree",
1378
+ "with": {}
1379
+ },
1380
+ "junior_code_changes_open_idx": {
1381
+ "name": "junior_code_changes_open_idx",
1382
+ "columns": [
1383
+ {
1384
+ "expression": "id",
1385
+ "isExpression": false,
1386
+ "asc": true,
1387
+ "nulls": "last"
1388
+ }
1389
+ ],
1390
+ "isUnique": false,
1391
+ "where": "\"junior_code_changes\".\"state\" = 'open'",
1392
+ "concurrently": false,
1393
+ "method": "btree",
1394
+ "with": {}
1395
+ }
1396
+ },
1397
+ "foreignKeys": {
1398
+ "junior_code_changes_repository_id_junior_code_repositories_id_fk": {
1399
+ "name": "junior_code_changes_repository_id_junior_code_repositories_id_fk",
1400
+ "tableFrom": "junior_code_changes",
1401
+ "tableTo": "junior_code_repositories",
1402
+ "columnsFrom": ["repository_id"],
1403
+ "columnsTo": ["id"],
1404
+ "onDelete": "cascade",
1405
+ "onUpdate": "no action"
1406
+ }
1407
+ },
1408
+ "compositePrimaryKeys": {},
1409
+ "uniqueConstraints": {},
1410
+ "policies": {},
1411
+ "checkConstraints": {},
1412
+ "isRLSEnabled": false
1413
+ },
1414
+ "public.junior_code_repositories": {
1415
+ "name": "junior_code_repositories",
1416
+ "schema": "",
1417
+ "columns": {
1418
+ "id": {
1419
+ "name": "id",
1420
+ "type": "uuid",
1421
+ "primaryKey": true,
1422
+ "notNull": true
1423
+ },
1424
+ "name": {
1425
+ "name": "name",
1426
+ "type": "text",
1427
+ "primaryKey": false,
1428
+ "notNull": true
1429
+ },
1430
+ "provider": {
1431
+ "name": "provider",
1432
+ "type": "text",
1433
+ "primaryKey": false,
1434
+ "notNull": true
1435
+ },
1436
+ "provider_id": {
1437
+ "name": "provider_id",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": true
1441
+ },
1442
+ "url": {
1443
+ "name": "url",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": false
1447
+ },
1448
+ "updated_at": {
1449
+ "name": "updated_at",
1450
+ "type": "timestamp with time zone",
1451
+ "primaryKey": false,
1452
+ "notNull": true
1453
+ }
1454
+ },
1455
+ "indexes": {
1456
+ "junior_code_repositories_provider_id_idx": {
1457
+ "name": "junior_code_repositories_provider_id_idx",
1458
+ "columns": [
1459
+ {
1460
+ "expression": "provider",
1461
+ "isExpression": false,
1462
+ "asc": true,
1463
+ "nulls": "last"
1464
+ },
1465
+ {
1466
+ "expression": "provider_id",
1467
+ "isExpression": false,
1468
+ "asc": true,
1469
+ "nulls": "last"
1470
+ }
1471
+ ],
1472
+ "isUnique": true,
1473
+ "concurrently": false,
1474
+ "method": "btree",
1475
+ "with": {}
1476
+ }
1477
+ },
1478
+ "foreignKeys": {},
1479
+ "compositePrimaryKeys": {},
1480
+ "uniqueConstraints": {},
1481
+ "policies": {},
1482
+ "checkConstraints": {},
1483
+ "isRLSEnabled": false
1484
+ },
1485
+ "public.junior_conversation_annotations": {
1486
+ "name": "junior_conversation_annotations",
1487
+ "schema": "",
1488
+ "columns": {
1489
+ "conversation_id": {
1490
+ "name": "conversation_id",
1491
+ "type": "text",
1492
+ "primaryKey": false,
1493
+ "notNull": true
1494
+ },
1495
+ "plugin": {
1496
+ "name": "plugin",
1497
+ "type": "text",
1498
+ "primaryKey": false,
1499
+ "notNull": true
1500
+ },
1501
+ "kind": {
1502
+ "name": "kind",
1503
+ "type": "text",
1504
+ "primaryKey": false,
1505
+ "notNull": true
1506
+ },
1507
+ "key": {
1508
+ "name": "key",
1509
+ "type": "text",
1510
+ "primaryKey": false,
1511
+ "notNull": true
1512
+ },
1513
+ "annotation_json": {
1514
+ "name": "annotation_json",
1515
+ "type": "jsonb",
1516
+ "primaryKey": false,
1517
+ "notNull": true
1518
+ },
1519
+ "created_at": {
1520
+ "name": "created_at",
1521
+ "type": "timestamp with time zone",
1522
+ "primaryKey": false,
1523
+ "notNull": true
1524
+ },
1525
+ "updated_at": {
1526
+ "name": "updated_at",
1527
+ "type": "timestamp with time zone",
1528
+ "primaryKey": false,
1529
+ "notNull": true
1530
+ }
1531
+ },
1532
+ "indexes": {},
1533
+ "foreignKeys": {
1534
+ "junior_conversation_annotations_conversation_id_fk": {
1535
+ "name": "junior_conversation_annotations_conversation_id_fk",
1536
+ "tableFrom": "junior_conversation_annotations",
1537
+ "tableTo": "junior_conversations",
1538
+ "columnsFrom": ["conversation_id"],
1539
+ "columnsTo": ["conversation_id"],
1540
+ "onDelete": "cascade",
1541
+ "onUpdate": "no action"
1542
+ }
1543
+ },
1544
+ "compositePrimaryKeys": {
1545
+ "junior_conversation_annotations_pk": {
1546
+ "name": "junior_conversation_annotations_pk",
1547
+ "columns": ["conversation_id", "plugin", "kind", "key"]
1548
+ }
1549
+ },
1550
+ "uniqueConstraints": {},
1551
+ "policies": {},
1552
+ "checkConstraints": {},
1553
+ "isRLSEnabled": false
1554
+ },
1555
+ "public.junior_conversation_bindings": {
1556
+ "name": "junior_conversation_bindings",
1557
+ "schema": "",
1558
+ "columns": {
1559
+ "conversation_id": {
1560
+ "name": "conversation_id",
1561
+ "type": "text",
1562
+ "primaryKey": false,
1563
+ "notNull": true
1564
+ },
1565
+ "provider": {
1566
+ "name": "provider",
1567
+ "type": "text",
1568
+ "primaryKey": false,
1569
+ "notNull": true
1570
+ },
1571
+ "provider_tenant_id": {
1572
+ "name": "provider_tenant_id",
1573
+ "type": "text",
1574
+ "primaryKey": false,
1575
+ "notNull": true,
1576
+ "default": "''"
1577
+ },
1578
+ "provider_destination_id": {
1579
+ "name": "provider_destination_id",
1580
+ "type": "text",
1581
+ "primaryKey": false,
1582
+ "notNull": true
1583
+ },
1584
+ "provider_conversation_id": {
1585
+ "name": "provider_conversation_id",
1586
+ "type": "text",
1587
+ "primaryKey": false,
1588
+ "notNull": true
1589
+ },
1590
+ "created_at": {
1591
+ "name": "created_at",
1592
+ "type": "timestamp with time zone",
1593
+ "primaryKey": false,
1594
+ "notNull": true
1595
+ }
1596
+ },
1597
+ "indexes": {
1598
+ "junior_conversation_bindings_conversation_idx": {
1599
+ "name": "junior_conversation_bindings_conversation_idx",
1600
+ "columns": [
1601
+ {
1602
+ "expression": "conversation_id",
1603
+ "isExpression": false,
1604
+ "asc": true,
1605
+ "nulls": "last"
1606
+ }
1607
+ ],
1608
+ "isUnique": false,
1609
+ "concurrently": false,
1610
+ "method": "btree",
1611
+ "with": {}
1612
+ }
1613
+ },
1614
+ "foreignKeys": {
1615
+ "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk": {
1616
+ "name": "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk",
1617
+ "tableFrom": "junior_conversation_bindings",
1618
+ "tableTo": "junior_conversations",
1619
+ "columnsFrom": ["conversation_id"],
1620
+ "columnsTo": ["conversation_id"],
1621
+ "onDelete": "no action",
1622
+ "onUpdate": "no action"
1623
+ }
1624
+ },
1625
+ "compositePrimaryKeys": {
1626
+ "junior_conversation_bindings_provider_conversation_pk": {
1627
+ "name": "junior_conversation_bindings_provider_conversation_pk",
1628
+ "columns": [
1629
+ "provider",
1630
+ "provider_tenant_id",
1631
+ "provider_destination_id",
1632
+ "provider_conversation_id"
1633
+ ]
1634
+ }
1635
+ },
1636
+ "uniqueConstraints": {},
1637
+ "policies": {},
1638
+ "checkConstraints": {},
1639
+ "isRLSEnabled": false
1640
+ },
1641
+ "public.junior_conversation_briefs": {
1642
+ "name": "junior_conversation_briefs",
1643
+ "schema": "",
1644
+ "columns": {
1645
+ "conversation_id": {
1646
+ "name": "conversation_id",
1647
+ "type": "text",
1648
+ "primaryKey": false,
1649
+ "notNull": true
1650
+ },
1651
+ "version": {
1652
+ "name": "version",
1653
+ "type": "integer",
1654
+ "primaryKey": false,
1655
+ "notNull": true
1656
+ },
1657
+ "turn_id": {
1658
+ "name": "turn_id",
1659
+ "type": "text",
1660
+ "primaryKey": false,
1661
+ "notNull": true
1662
+ },
1663
+ "through_seq": {
1664
+ "name": "through_seq",
1665
+ "type": "integer",
1666
+ "primaryKey": false,
1667
+ "notNull": true
1668
+ },
1669
+ "content": {
1670
+ "name": "content",
1671
+ "type": "jsonb",
1672
+ "primaryKey": false,
1673
+ "notNull": true
1674
+ },
1675
+ "search_text": {
1676
+ "name": "search_text",
1677
+ "type": "text",
1678
+ "primaryKey": false,
1679
+ "notNull": true
1680
+ },
1681
+ "model_id": {
1682
+ "name": "model_id",
1683
+ "type": "text",
1684
+ "primaryKey": false,
1685
+ "notNull": true
1686
+ },
1687
+ "cost_usd": {
1688
+ "name": "cost_usd",
1689
+ "type": "double precision",
1690
+ "primaryKey": false,
1691
+ "notNull": false
1692
+ },
1693
+ "created_at": {
1694
+ "name": "created_at",
1695
+ "type": "timestamp with time zone",
1696
+ "primaryKey": false,
1697
+ "notNull": true,
1698
+ "default": "now()"
1699
+ }
1700
+ },
1701
+ "indexes": {
1702
+ "junior_conversation_briefs_conversation_turn_idx": {
1703
+ "name": "junior_conversation_briefs_conversation_turn_idx",
1704
+ "columns": [
1705
+ {
1706
+ "expression": "conversation_id",
1707
+ "isExpression": false,
1708
+ "asc": true,
1709
+ "nulls": "last"
1710
+ },
1711
+ {
1712
+ "expression": "turn_id",
1713
+ "isExpression": false,
1714
+ "asc": true,
1715
+ "nulls": "last"
1716
+ }
1717
+ ],
1718
+ "isUnique": true,
1719
+ "concurrently": false,
1720
+ "method": "btree",
1721
+ "with": {}
1722
+ },
1723
+ "junior_conversation_briefs_conversation_version_idx": {
1724
+ "name": "junior_conversation_briefs_conversation_version_idx",
1725
+ "columns": [
1726
+ {
1727
+ "expression": "conversation_id",
1728
+ "isExpression": false,
1729
+ "asc": true,
1730
+ "nulls": "last"
1731
+ },
1732
+ {
1733
+ "expression": "version",
1734
+ "isExpression": false,
1735
+ "asc": false,
1736
+ "nulls": "last"
1737
+ }
1738
+ ],
1739
+ "isUnique": false,
1740
+ "concurrently": false,
1741
+ "method": "btree",
1742
+ "with": {}
1743
+ },
1744
+ "junior_conversation_briefs_search_idx": {
1745
+ "name": "junior_conversation_briefs_search_idx",
1746
+ "columns": [
1747
+ {
1748
+ "expression": "to_tsvector('english', \"search_text\")",
1749
+ "asc": true,
1750
+ "isExpression": true,
1751
+ "nulls": "last"
1752
+ }
1753
+ ],
1754
+ "isUnique": false,
1755
+ "concurrently": false,
1756
+ "method": "gin",
1757
+ "with": {}
1758
+ }
1759
+ },
1760
+ "foreignKeys": {
1761
+ "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk": {
1762
+ "name": "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk",
1763
+ "tableFrom": "junior_conversation_briefs",
1764
+ "tableTo": "junior_conversations",
1765
+ "columnsFrom": ["conversation_id"],
1766
+ "columnsTo": ["conversation_id"],
1767
+ "onDelete": "cascade",
1768
+ "onUpdate": "no action"
1769
+ }
1770
+ },
1771
+ "compositePrimaryKeys": {
1772
+ "junior_conversation_briefs_conversation_id_version_pk": {
1773
+ "name": "junior_conversation_briefs_conversation_id_version_pk",
1774
+ "columns": ["conversation_id", "version"]
1775
+ }
1776
+ },
1777
+ "uniqueConstraints": {},
1778
+ "policies": {},
1779
+ "checkConstraints": {},
1780
+ "isRLSEnabled": false
1781
+ },
1782
+ "public.junior_conversation_events": {
1783
+ "name": "junior_conversation_events",
1784
+ "schema": "",
1785
+ "columns": {
1786
+ "conversation_id": {
1787
+ "name": "conversation_id",
1788
+ "type": "text",
1789
+ "primaryKey": false,
1790
+ "notNull": true
1791
+ },
1792
+ "seq": {
1793
+ "name": "seq",
1794
+ "type": "integer",
1795
+ "primaryKey": false,
1796
+ "notNull": true
1797
+ },
1798
+ "history_version": {
1799
+ "name": "history_version",
1800
+ "type": "integer",
1801
+ "primaryKey": false,
1802
+ "notNull": true
1803
+ },
1804
+ "schema_version": {
1805
+ "name": "schema_version",
1806
+ "type": "integer",
1807
+ "primaryKey": false,
1808
+ "notNull": true,
1809
+ "default": 1
1810
+ },
1811
+ "idempotency_key": {
1812
+ "name": "idempotency_key",
1813
+ "type": "text",
1814
+ "primaryKey": false,
1815
+ "notNull": false
1816
+ },
1817
+ "type": {
1818
+ "name": "type",
1819
+ "type": "text",
1820
+ "primaryKey": false,
1821
+ "notNull": true
1822
+ },
1823
+ "payload": {
1824
+ "name": "payload",
1825
+ "type": "jsonb",
1826
+ "primaryKey": false,
1827
+ "notNull": true
1828
+ },
1829
+ "actor_identity_id": {
1830
+ "name": "actor_identity_id",
1831
+ "type": "text",
1832
+ "primaryKey": false,
1833
+ "notNull": false
1834
+ },
1835
+ "created_at": {
1836
+ "name": "created_at",
1837
+ "type": "timestamp with time zone",
1838
+ "primaryKey": false,
1839
+ "notNull": true
1840
+ }
1841
+ },
1842
+ "indexes": {
1843
+ "junior_conversation_events_history_version_idx": {
1844
+ "name": "junior_conversation_events_history_version_idx",
1845
+ "columns": [
1846
+ {
1847
+ "expression": "conversation_id",
1848
+ "isExpression": false,
1849
+ "asc": true,
1850
+ "nulls": "last"
1851
+ },
1852
+ {
1853
+ "expression": "history_version",
1854
+ "isExpression": false,
1855
+ "asc": true,
1856
+ "nulls": "last"
1857
+ },
1858
+ {
1859
+ "expression": "seq",
1860
+ "isExpression": false,
1861
+ "asc": true,
1862
+ "nulls": "last"
1863
+ }
1864
+ ],
1865
+ "isUnique": false,
1866
+ "concurrently": false,
1867
+ "method": "btree",
1868
+ "with": {}
1869
+ },
1870
+ "junior_conversation_events_type_idx": {
1871
+ "name": "junior_conversation_events_type_idx",
1872
+ "columns": [
1873
+ {
1874
+ "expression": "conversation_id",
1875
+ "isExpression": false,
1876
+ "asc": true,
1877
+ "nulls": "last"
1878
+ },
1879
+ {
1880
+ "expression": "type",
1881
+ "isExpression": false,
1882
+ "asc": true,
1883
+ "nulls": "last"
1884
+ },
1885
+ {
1886
+ "expression": "seq",
1887
+ "isExpression": false,
1888
+ "asc": true,
1889
+ "nulls": "last"
1890
+ }
1891
+ ],
1892
+ "isUnique": false,
1893
+ "concurrently": false,
1894
+ "method": "btree",
1895
+ "with": {}
1896
+ },
1897
+ "junior_conversation_events_plugin_report_idx": {
1898
+ "name": "junior_conversation_events_plugin_report_idx",
1899
+ "columns": [
1900
+ {
1901
+ "expression": "(\"payload\"->>'namespace')",
1902
+ "asc": true,
1903
+ "isExpression": true,
1904
+ "nulls": "last"
1905
+ },
1906
+ {
1907
+ "expression": "(\"payload\"->>'name')",
1908
+ "asc": true,
1909
+ "isExpression": true,
1910
+ "nulls": "last"
1911
+ },
1912
+ {
1913
+ "expression": "created_at",
1914
+ "isExpression": false,
1915
+ "asc": true,
1916
+ "nulls": "last"
1917
+ }
1918
+ ],
1919
+ "isUnique": false,
1920
+ "where": "\"junior_conversation_events\".\"type\" = 'structured_event'",
1921
+ "concurrently": false,
1922
+ "method": "btree",
1923
+ "with": {}
1924
+ },
1925
+ "junior_conversation_events_plugin_conversation_idx": {
1926
+ "name": "junior_conversation_events_plugin_conversation_idx",
1927
+ "columns": [
1928
+ {
1929
+ "expression": "conversation_id",
1930
+ "isExpression": false,
1931
+ "asc": true,
1932
+ "nulls": "last"
1933
+ },
1934
+ {
1935
+ "expression": "(\"payload\"->>'namespace')",
1936
+ "asc": true,
1937
+ "isExpression": true,
1938
+ "nulls": "last"
1939
+ },
1940
+ {
1941
+ "expression": "(\"payload\"->>'name')",
1942
+ "asc": true,
1943
+ "isExpression": true,
1944
+ "nulls": "last"
1945
+ },
1946
+ {
1947
+ "expression": "seq",
1948
+ "isExpression": false,
1949
+ "asc": true,
1950
+ "nulls": "last"
1951
+ }
1952
+ ],
1953
+ "isUnique": false,
1954
+ "where": "\"junior_conversation_events\".\"type\" = 'structured_event'",
1955
+ "concurrently": false,
1956
+ "method": "btree",
1957
+ "with": {}
1958
+ },
1959
+ "junior_conversation_events_actor_identity_idx": {
1960
+ "name": "junior_conversation_events_actor_identity_idx",
1961
+ "columns": [
1962
+ {
1963
+ "expression": "actor_identity_id",
1964
+ "isExpression": false,
1965
+ "asc": true,
1966
+ "nulls": "last"
1967
+ },
1968
+ {
1969
+ "expression": "conversation_id",
1970
+ "isExpression": false,
1971
+ "asc": true,
1972
+ "nulls": "last"
1973
+ },
1974
+ {
1975
+ "expression": "seq",
1976
+ "isExpression": false,
1977
+ "asc": true,
1978
+ "nulls": "last"
1979
+ }
1980
+ ],
1981
+ "isUnique": false,
1982
+ "concurrently": false,
1983
+ "method": "btree",
1984
+ "with": {}
1985
+ },
1986
+ "junior_conversation_events_message_search_idx": {
1987
+ "name": "junior_conversation_events_message_search_idx",
1988
+ "columns": [
1989
+ {
1990
+ "expression": "to_tsvector('english', \"payload\"->>'text')",
1991
+ "asc": true,
1992
+ "isExpression": true,
1993
+ "nulls": "last"
1994
+ }
1995
+ ],
1996
+ "isUnique": false,
1997
+ "where": "\"junior_conversation_events\".\"type\" = 'message'",
1998
+ "concurrently": false,
1999
+ "method": "gin",
2000
+ "with": {}
2001
+ },
2002
+ "junior_conversation_events_idempotency_idx": {
2003
+ "name": "junior_conversation_events_idempotency_idx",
2004
+ "columns": [
2005
+ {
2006
+ "expression": "conversation_id",
2007
+ "isExpression": false,
2008
+ "asc": true,
2009
+ "nulls": "last"
2010
+ },
2011
+ {
2012
+ "expression": "idempotency_key",
2013
+ "isExpression": false,
2014
+ "asc": true,
2015
+ "nulls": "last"
2016
+ }
2017
+ ],
2018
+ "isUnique": true,
2019
+ "concurrently": false,
2020
+ "method": "btree",
2021
+ "with": {}
2022
+ }
2023
+ },
2024
+ "foreignKeys": {
2025
+ "junior_conversation_events_actor_identity_id_junior_identities_id_fk": {
2026
+ "name": "junior_conversation_events_actor_identity_id_junior_identities_id_fk",
2027
+ "tableFrom": "junior_conversation_events",
2028
+ "tableTo": "junior_identities",
2029
+ "columnsFrom": ["actor_identity_id"],
2030
+ "columnsTo": ["id"],
2031
+ "onDelete": "no action",
2032
+ "onUpdate": "no action"
2033
+ },
2034
+ "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
2035
+ "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
2036
+ "tableFrom": "junior_conversation_events",
2037
+ "tableTo": "junior_conversations",
2038
+ "columnsFrom": ["conversation_id"],
2039
+ "columnsTo": ["conversation_id"],
2040
+ "onDelete": "no action",
2041
+ "onUpdate": "no action"
2042
+ }
2043
+ },
2044
+ "compositePrimaryKeys": {
2045
+ "junior_conversation_events_conversation_id_seq_pk": {
2046
+ "name": "junior_conversation_events_conversation_id_seq_pk",
2047
+ "columns": ["conversation_id", "seq"]
2048
+ }
2049
+ },
2050
+ "uniqueConstraints": {},
2051
+ "policies": {},
2052
+ "checkConstraints": {},
2053
+ "isRLSEnabled": false
2054
+ },
2055
+ "public.junior_conversation_metrics": {
2056
+ "name": "junior_conversation_metrics",
2057
+ "schema": "",
2058
+ "columns": {
2059
+ "conversation_id": {
2060
+ "name": "conversation_id",
2061
+ "type": "text",
2062
+ "primaryKey": false,
2063
+ "notNull": true
2064
+ },
2065
+ "run_id": {
2066
+ "name": "run_id",
2067
+ "type": "text",
2068
+ "primaryKey": false,
2069
+ "notNull": true
2070
+ },
2071
+ "metric": {
2072
+ "name": "metric",
2073
+ "type": "text",
2074
+ "primaryKey": false,
2075
+ "notNull": true
2076
+ },
2077
+ "value": {
2078
+ "name": "value",
2079
+ "type": "double precision",
2080
+ "primaryKey": false,
2081
+ "notNull": true
2082
+ },
2083
+ "occurred_at": {
2084
+ "name": "occurred_at",
2085
+ "type": "timestamp with time zone",
2086
+ "primaryKey": false,
2087
+ "notNull": true
2088
+ },
2089
+ "updated_at": {
2090
+ "name": "updated_at",
2091
+ "type": "timestamp with time zone",
2092
+ "primaryKey": false,
2093
+ "notNull": true
2094
+ }
2095
+ },
2096
+ "indexes": {
2097
+ "junior_conversation_metrics_occurred_at_metric_idx": {
2098
+ "name": "junior_conversation_metrics_occurred_at_metric_idx",
2099
+ "columns": [
2100
+ {
2101
+ "expression": "occurred_at",
2102
+ "isExpression": false,
2103
+ "asc": true,
2104
+ "nulls": "last"
2105
+ },
2106
+ {
2107
+ "expression": "metric",
2108
+ "isExpression": false,
2109
+ "asc": true,
2110
+ "nulls": "last"
2111
+ }
2112
+ ],
2113
+ "isUnique": false,
2114
+ "concurrently": false,
2115
+ "method": "btree",
2116
+ "with": {}
2117
+ }
2118
+ },
2119
+ "foreignKeys": {
2120
+ "junior_conversation_metrics_conversation_id_junior_conversations_conversation_id_fk": {
2121
+ "name": "junior_conversation_metrics_conversation_id_junior_conversations_conversation_id_fk",
2122
+ "tableFrom": "junior_conversation_metrics",
2123
+ "tableTo": "junior_conversations",
2124
+ "columnsFrom": ["conversation_id"],
2125
+ "columnsTo": ["conversation_id"],
2126
+ "onDelete": "no action",
2127
+ "onUpdate": "no action"
2128
+ }
2129
+ },
2130
+ "compositePrimaryKeys": {
2131
+ "junior_conversation_metrics_conversation_id_run_id_metric_pk": {
2132
+ "name": "junior_conversation_metrics_conversation_id_run_id_metric_pk",
2133
+ "columns": ["conversation_id", "run_id", "metric"]
2134
+ }
2135
+ },
2136
+ "uniqueConstraints": {},
2137
+ "policies": {},
2138
+ "checkConstraints": {},
2139
+ "isRLSEnabled": false
2140
+ },
2141
+ "public.junior_conversation_participants": {
2142
+ "name": "junior_conversation_participants",
2143
+ "schema": "",
2144
+ "columns": {
2145
+ "user_id": {
2146
+ "name": "user_id",
2147
+ "type": "text",
2148
+ "primaryKey": false,
2149
+ "notNull": true
2150
+ },
2151
+ "root_conversation_id": {
2152
+ "name": "root_conversation_id",
2153
+ "type": "text",
2154
+ "primaryKey": false,
2155
+ "notNull": true
2156
+ },
2157
+ "last_message_at": {
2158
+ "name": "last_message_at",
2159
+ "type": "timestamp with time zone",
2160
+ "primaryKey": false,
2161
+ "notNull": true
2162
+ },
2163
+ "archived_at": {
2164
+ "name": "archived_at",
2165
+ "type": "timestamp with time zone",
2166
+ "primaryKey": false,
2167
+ "notNull": false
2168
+ },
2169
+ "pinned_at": {
2170
+ "name": "pinned_at",
2171
+ "type": "timestamp with time zone",
2172
+ "primaryKey": false,
2173
+ "notNull": false
2174
+ },
2175
+ "auto_archive": {
2176
+ "name": "auto_archive",
2177
+ "type": "boolean",
2178
+ "primaryKey": false,
2179
+ "notNull": false
2180
+ }
2181
+ },
2182
+ "indexes": {
2183
+ "junior_conversation_participants_user_activity_idx": {
2184
+ "name": "junior_conversation_participants_user_activity_idx",
2185
+ "columns": [
2186
+ {
2187
+ "expression": "user_id",
2188
+ "isExpression": false,
2189
+ "asc": true,
2190
+ "nulls": "last"
2191
+ },
2192
+ {
2193
+ "expression": "last_message_at",
2194
+ "isExpression": false,
2195
+ "asc": false,
2196
+ "nulls": "last"
2197
+ }
2198
+ ],
2199
+ "isUnique": false,
2200
+ "concurrently": false,
2201
+ "method": "btree",
2202
+ "with": {}
2203
+ },
2204
+ "junior_conversation_participants_root_idx": {
2205
+ "name": "junior_conversation_participants_root_idx",
2206
+ "columns": [
2207
+ {
2208
+ "expression": "root_conversation_id",
2209
+ "isExpression": false,
2210
+ "asc": true,
2211
+ "nulls": "last"
2212
+ }
2213
+ ],
2214
+ "isUnique": false,
2215
+ "concurrently": false,
2216
+ "method": "btree",
2217
+ "with": {}
2218
+ },
2219
+ "junior_conversation_participants_auto_archive_idx": {
2220
+ "name": "junior_conversation_participants_auto_archive_idx",
2221
+ "columns": [
2222
+ {
2223
+ "expression": "user_id",
2224
+ "isExpression": false,
2225
+ "asc": true,
2226
+ "nulls": "last"
2227
+ }
2228
+ ],
2229
+ "isUnique": false,
2230
+ "where": "\"junior_conversation_participants\".\"auto_archive\" and \"junior_conversation_participants\".\"archived_at\" is null",
2231
+ "concurrently": false,
2232
+ "method": "btree",
2233
+ "with": {}
2234
+ },
2235
+ "junior_conversation_participants_unarchived_activity_idx": {
2236
+ "name": "junior_conversation_participants_unarchived_activity_idx",
2237
+ "columns": [
2238
+ {
2239
+ "expression": "user_id",
2240
+ "isExpression": false,
2241
+ "asc": true,
2242
+ "nulls": "last"
2243
+ },
2244
+ {
2245
+ "expression": "last_message_at",
2246
+ "isExpression": false,
2247
+ "asc": true,
2248
+ "nulls": "last"
2249
+ },
2250
+ {
2251
+ "expression": "root_conversation_id",
2252
+ "isExpression": false,
2253
+ "asc": true,
2254
+ "nulls": "last"
2255
+ }
2256
+ ],
2257
+ "isUnique": false,
2258
+ "where": "\"junior_conversation_participants\".\"archived_at\" is null",
2259
+ "concurrently": false,
2260
+ "method": "btree",
2261
+ "with": {}
2262
+ }
2263
+ },
2264
+ "foreignKeys": {
2265
+ "junior_conversation_participants_user_id_junior_users_id_fk": {
2266
+ "name": "junior_conversation_participants_user_id_junior_users_id_fk",
2267
+ "tableFrom": "junior_conversation_participants",
2268
+ "tableTo": "junior_users",
2269
+ "columnsFrom": ["user_id"],
2270
+ "columnsTo": ["id"],
2271
+ "onDelete": "no action",
2272
+ "onUpdate": "no action"
2273
+ },
2274
+ "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk": {
2275
+ "name": "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk",
2276
+ "tableFrom": "junior_conversation_participants",
2277
+ "tableTo": "junior_conversations",
2278
+ "columnsFrom": ["root_conversation_id"],
2279
+ "columnsTo": ["conversation_id"],
2280
+ "onDelete": "no action",
2281
+ "onUpdate": "no action"
2282
+ }
2283
+ },
2284
+ "compositePrimaryKeys": {
2285
+ "junior_conversation_participants_user_root_pk": {
2286
+ "name": "junior_conversation_participants_user_root_pk",
2287
+ "columns": ["user_id", "root_conversation_id"]
2288
+ }
2289
+ },
2290
+ "uniqueConstraints": {},
2291
+ "policies": {},
2292
+ "checkConstraints": {},
2293
+ "isRLSEnabled": false
2294
+ },
2295
+ "public.junior_conversation_read_positions": {
2296
+ "name": "junior_conversation_read_positions",
2297
+ "schema": "",
2298
+ "columns": {
2299
+ "user_id": {
2300
+ "name": "user_id",
2301
+ "type": "text",
2302
+ "primaryKey": false,
2303
+ "notNull": true
2304
+ },
2305
+ "conversation_id": {
2306
+ "name": "conversation_id",
2307
+ "type": "text",
2308
+ "primaryKey": false,
2309
+ "notNull": true
2310
+ },
2311
+ "last_read_seq": {
2312
+ "name": "last_read_seq",
2313
+ "type": "integer",
2314
+ "primaryKey": false,
2315
+ "notNull": true
2316
+ },
2317
+ "updated_at": {
2318
+ "name": "updated_at",
2319
+ "type": "timestamp with time zone",
2320
+ "primaryKey": false,
2321
+ "notNull": true
2322
+ }
2323
+ },
2324
+ "indexes": {},
2325
+ "foreignKeys": {
2326
+ "junior_conversation_read_positions_user_id_junior_users_id_fk": {
2327
+ "name": "junior_conversation_read_positions_user_id_junior_users_id_fk",
2328
+ "tableFrom": "junior_conversation_read_positions",
2329
+ "tableTo": "junior_users",
2330
+ "columnsFrom": ["user_id"],
2331
+ "columnsTo": ["id"],
2332
+ "onDelete": "no action",
2333
+ "onUpdate": "no action"
2334
+ },
2335
+ "junior_conversation_read_positions_conversation_id_junior_conversations_conversation_id_fk": {
2336
+ "name": "junior_conversation_read_positions_conversation_id_junior_conversations_conversation_id_fk",
2337
+ "tableFrom": "junior_conversation_read_positions",
2338
+ "tableTo": "junior_conversations",
2339
+ "columnsFrom": ["conversation_id"],
2340
+ "columnsTo": ["conversation_id"],
2341
+ "onDelete": "no action",
2342
+ "onUpdate": "no action"
2343
+ }
2344
+ },
2345
+ "compositePrimaryKeys": {
2346
+ "junior_conversation_read_positions_user_conversation_pk": {
2347
+ "name": "junior_conversation_read_positions_user_conversation_pk",
2348
+ "columns": ["user_id", "conversation_id"]
2349
+ }
2350
+ },
2351
+ "uniqueConstraints": {},
2352
+ "policies": {},
2353
+ "checkConstraints": {},
2354
+ "isRLSEnabled": false
2355
+ },
2356
+ "public.junior_conversations": {
2357
+ "name": "junior_conversations",
2358
+ "schema": "",
2359
+ "columns": {
2360
+ "conversation_id": {
2361
+ "name": "conversation_id",
2362
+ "type": "text",
2363
+ "primaryKey": true,
2364
+ "notNull": true
2365
+ },
2366
+ "schema_version": {
2367
+ "name": "schema_version",
2368
+ "type": "integer",
2369
+ "primaryKey": false,
2370
+ "notNull": true,
2371
+ "default": 1
2372
+ },
2373
+ "source": {
2374
+ "name": "source",
2375
+ "type": "text",
2376
+ "primaryKey": false,
2377
+ "notNull": false
2378
+ },
2379
+ "source_json": {
2380
+ "name": "source_json",
2381
+ "type": "jsonb",
2382
+ "primaryKey": false,
2383
+ "notNull": false
2384
+ },
2385
+ "location_json": {
2386
+ "name": "location_json",
2387
+ "type": "jsonb",
2388
+ "primaryKey": false,
2389
+ "notNull": false
2390
+ },
2391
+ "destination_id": {
2392
+ "name": "destination_id",
2393
+ "type": "text",
2394
+ "primaryKey": false,
2395
+ "notNull": false
2396
+ },
2397
+ "destination_json": {
2398
+ "name": "destination_json",
2399
+ "type": "jsonb",
2400
+ "primaryKey": false,
2401
+ "notNull": false
2402
+ },
2403
+ "actor_identity_id": {
2404
+ "name": "actor_identity_id",
2405
+ "type": "text",
2406
+ "primaryKey": false,
2407
+ "notNull": false
2408
+ },
2409
+ "creator_identity_id": {
2410
+ "name": "creator_identity_id",
2411
+ "type": "text",
2412
+ "primaryKey": false,
2413
+ "notNull": false
2414
+ },
2415
+ "credential_subject_identity_id": {
2416
+ "name": "credential_subject_identity_id",
2417
+ "type": "text",
2418
+ "primaryKey": false,
2419
+ "notNull": false
2420
+ },
2421
+ "actor_json": {
2422
+ "name": "actor_json",
2423
+ "type": "jsonb",
2424
+ "primaryKey": false,
2425
+ "notNull": false
2426
+ },
2427
+ "channel_name": {
2428
+ "name": "channel_name",
2429
+ "type": "text",
2430
+ "primaryKey": false,
2431
+ "notNull": false
2432
+ },
2433
+ "title": {
2434
+ "name": "title",
2435
+ "type": "text",
2436
+ "primaryKey": false,
2437
+ "notNull": false
2438
+ },
2439
+ "created_at": {
2440
+ "name": "created_at",
2441
+ "type": "timestamp with time zone",
2442
+ "primaryKey": false,
2443
+ "notNull": true
2444
+ },
2445
+ "last_activity_at": {
2446
+ "name": "last_activity_at",
2447
+ "type": "timestamp with time zone",
2448
+ "primaryKey": false,
2449
+ "notNull": true
2450
+ },
2451
+ "updated_at": {
2452
+ "name": "updated_at",
2453
+ "type": "timestamp with time zone",
2454
+ "primaryKey": false,
2455
+ "notNull": true
2456
+ },
2457
+ "execution_updated_at": {
2458
+ "name": "execution_updated_at",
2459
+ "type": "timestamp with time zone",
2460
+ "primaryKey": false,
2461
+ "notNull": false
2462
+ },
2463
+ "execution_status": {
2464
+ "name": "execution_status",
2465
+ "type": "text",
2466
+ "primaryKey": false,
2467
+ "notNull": true
2468
+ },
2469
+ "run_id": {
2470
+ "name": "run_id",
2471
+ "type": "text",
2472
+ "primaryKey": false,
2473
+ "notNull": false
2474
+ },
2475
+ "last_checkpoint_at": {
2476
+ "name": "last_checkpoint_at",
2477
+ "type": "timestamp with time zone",
2478
+ "primaryKey": false,
2479
+ "notNull": false
2480
+ },
2481
+ "last_enqueued_at": {
2482
+ "name": "last_enqueued_at",
2483
+ "type": "timestamp with time zone",
2484
+ "primaryKey": false,
2485
+ "notNull": false
2486
+ },
2487
+ "parent_conversation_id": {
2488
+ "name": "parent_conversation_id",
2489
+ "type": "text",
2490
+ "primaryKey": false,
2491
+ "notNull": false
2492
+ },
2493
+ "forked_from_conversation_id": {
2494
+ "name": "forked_from_conversation_id",
2495
+ "type": "text",
2496
+ "primaryKey": false,
2497
+ "notNull": false
2498
+ },
2499
+ "quick_question_at": {
2500
+ "name": "quick_question_at",
2501
+ "type": "timestamp with time zone",
2502
+ "primaryKey": false,
2503
+ "notNull": false
2504
+ },
2505
+ "root_conversation_id": {
2506
+ "name": "root_conversation_id",
2507
+ "type": "text",
2508
+ "primaryKey": false,
2509
+ "notNull": false
2510
+ },
2511
+ "transcript_purged_at": {
2512
+ "name": "transcript_purged_at",
2513
+ "type": "timestamp with time zone",
2514
+ "primaryKey": false,
2515
+ "notNull": false
2516
+ },
2517
+ "stopped_at": {
2518
+ "name": "stopped_at",
2519
+ "type": "timestamp with time zone",
2520
+ "primaryKey": false,
2521
+ "notNull": false
2522
+ },
2523
+ "duration_ms": {
2524
+ "name": "duration_ms",
2525
+ "type": "integer",
2526
+ "primaryKey": false,
2527
+ "notNull": true,
2528
+ "default": 0
2529
+ },
2530
+ "usage_json": {
2531
+ "name": "usage_json",
2532
+ "type": "jsonb",
2533
+ "primaryKey": false,
2534
+ "notNull": false
2535
+ },
2536
+ "execution_duration_ms": {
2537
+ "name": "execution_duration_ms",
2538
+ "type": "integer",
2539
+ "primaryKey": false,
2540
+ "notNull": true,
2541
+ "default": 0
2542
+ },
2543
+ "execution_usage_json": {
2544
+ "name": "execution_usage_json",
2545
+ "type": "jsonb",
2546
+ "primaryKey": false,
2547
+ "notNull": false
2548
+ },
2549
+ "metric_run_id": {
2550
+ "name": "metric_run_id",
2551
+ "type": "text",
2552
+ "primaryKey": false,
2553
+ "notNull": false
2554
+ },
2555
+ "detail_version": {
2556
+ "name": "detail_version",
2557
+ "type": "integer",
2558
+ "primaryKey": false,
2559
+ "notNull": true,
2560
+ "default": 0
2561
+ },
2562
+ "archived_at": {
2563
+ "name": "archived_at",
2564
+ "type": "timestamp with time zone",
2565
+ "primaryKey": false,
2566
+ "notNull": false
2567
+ }
2568
+ },
2569
+ "indexes": {
2570
+ "junior_conversations_last_activity_idx": {
2571
+ "name": "junior_conversations_last_activity_idx",
2572
+ "columns": [
2573
+ {
2574
+ "expression": "last_activity_at",
2575
+ "isExpression": false,
2576
+ "asc": false,
2577
+ "nulls": "last"
2578
+ },
2579
+ {
2580
+ "expression": "conversation_id",
2581
+ "isExpression": false,
2582
+ "asc": true,
2583
+ "nulls": "last"
2584
+ }
2585
+ ],
2586
+ "isUnique": false,
2587
+ "concurrently": false,
2588
+ "method": "btree",
2589
+ "with": {}
2590
+ },
2591
+ "junior_conversations_active_idx": {
2592
+ "name": "junior_conversations_active_idx",
2593
+ "columns": [
2594
+ {
2595
+ "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
2596
+ "asc": true,
2597
+ "isExpression": true,
2598
+ "nulls": "last"
2599
+ },
2600
+ {
2601
+ "expression": "conversation_id",
2602
+ "isExpression": false,
2603
+ "asc": true,
2604
+ "nulls": "last"
2605
+ }
2606
+ ],
2607
+ "isUnique": false,
2608
+ "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
2609
+ "concurrently": false,
2610
+ "method": "btree",
2611
+ "with": {}
2612
+ },
2613
+ "junior_conversations_destination_activity_idx": {
2614
+ "name": "junior_conversations_destination_activity_idx",
2615
+ "columns": [
2616
+ {
2617
+ "expression": "destination_id",
2618
+ "isExpression": false,
2619
+ "asc": true,
2620
+ "nulls": "last"
2621
+ },
2622
+ {
2623
+ "expression": "last_activity_at",
2624
+ "isExpression": false,
2625
+ "asc": false,
2626
+ "nulls": "last"
2627
+ }
2628
+ ],
2629
+ "isUnique": false,
2630
+ "concurrently": false,
2631
+ "method": "btree",
2632
+ "with": {}
2633
+ },
2634
+ "junior_conversations_actor_activity_idx": {
2635
+ "name": "junior_conversations_actor_activity_idx",
2636
+ "columns": [
2637
+ {
2638
+ "expression": "actor_identity_id",
2639
+ "isExpression": false,
2640
+ "asc": true,
2641
+ "nulls": "last"
2642
+ },
2643
+ {
2644
+ "expression": "last_activity_at",
2645
+ "isExpression": false,
2646
+ "asc": false,
2647
+ "nulls": "last"
2648
+ }
2649
+ ],
2650
+ "isUnique": false,
2651
+ "concurrently": false,
2652
+ "method": "btree",
2653
+ "with": {}
2654
+ },
2655
+ "junior_conversations_parent_idx": {
2656
+ "name": "junior_conversations_parent_idx",
2657
+ "columns": [
2658
+ {
2659
+ "expression": "parent_conversation_id",
2660
+ "isExpression": false,
2661
+ "asc": true,
2662
+ "nulls": "last"
2663
+ }
2664
+ ],
2665
+ "isUnique": false,
2666
+ "concurrently": false,
2667
+ "method": "btree",
2668
+ "with": {}
2669
+ },
2670
+ "junior_conversations_forked_from_idx": {
2671
+ "name": "junior_conversations_forked_from_idx",
2672
+ "columns": [
2673
+ {
2674
+ "expression": "forked_from_conversation_id",
2675
+ "isExpression": false,
2676
+ "asc": true,
2677
+ "nulls": "last"
2678
+ }
2679
+ ],
2680
+ "isUnique": false,
2681
+ "concurrently": false,
2682
+ "method": "btree",
2683
+ "with": {}
2684
+ },
2685
+ "junior_conversations_root_idx": {
2686
+ "name": "junior_conversations_root_idx",
2687
+ "columns": [
2688
+ {
2689
+ "expression": "root_conversation_id",
2690
+ "isExpression": false,
2691
+ "asc": true,
2692
+ "nulls": "last"
2693
+ }
2694
+ ],
2695
+ "isUnique": false,
2696
+ "concurrently": false,
2697
+ "method": "btree",
2698
+ "with": {}
2699
+ }
2700
+ },
2701
+ "foreignKeys": {
2702
+ "junior_conversations_destination_id_junior_destinations_id_fk": {
2703
+ "name": "junior_conversations_destination_id_junior_destinations_id_fk",
2704
+ "tableFrom": "junior_conversations",
2705
+ "tableTo": "junior_destinations",
2706
+ "columnsFrom": ["destination_id"],
2707
+ "columnsTo": ["id"],
2708
+ "onDelete": "no action",
2709
+ "onUpdate": "no action"
2710
+ },
2711
+ "junior_conversations_actor_identity_id_junior_identities_id_fk": {
2712
+ "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
2713
+ "tableFrom": "junior_conversations",
2714
+ "tableTo": "junior_identities",
2715
+ "columnsFrom": ["actor_identity_id"],
2716
+ "columnsTo": ["id"],
2717
+ "onDelete": "no action",
2718
+ "onUpdate": "no action"
2719
+ },
2720
+ "junior_conversations_creator_identity_id_junior_identities_id_fk": {
2721
+ "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
2722
+ "tableFrom": "junior_conversations",
2723
+ "tableTo": "junior_identities",
2724
+ "columnsFrom": ["creator_identity_id"],
2725
+ "columnsTo": ["id"],
2726
+ "onDelete": "no action",
2727
+ "onUpdate": "no action"
2728
+ },
2729
+ "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
2730
+ "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
2731
+ "tableFrom": "junior_conversations",
2732
+ "tableTo": "junior_identities",
2733
+ "columnsFrom": ["credential_subject_identity_id"],
2734
+ "columnsTo": ["id"],
2735
+ "onDelete": "no action",
2736
+ "onUpdate": "no action"
2737
+ },
2738
+ "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
2739
+ "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
2740
+ "tableFrom": "junior_conversations",
2741
+ "tableTo": "junior_conversations",
2742
+ "columnsFrom": ["parent_conversation_id"],
2743
+ "columnsTo": ["conversation_id"],
2744
+ "onDelete": "no action",
2745
+ "onUpdate": "no action"
2746
+ },
2747
+ "junior_conversations_forked_from_conversation_id_junior_conversations_conversation_id_fk": {
2748
+ "name": "junior_conversations_forked_from_conversation_id_junior_conversations_conversation_id_fk",
2749
+ "tableFrom": "junior_conversations",
2750
+ "tableTo": "junior_conversations",
2751
+ "columnsFrom": ["forked_from_conversation_id"],
2752
+ "columnsTo": ["conversation_id"],
2753
+ "onDelete": "set null",
2754
+ "onUpdate": "no action"
2755
+ },
2756
+ "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
2757
+ "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
2758
+ "tableFrom": "junior_conversations",
2759
+ "tableTo": "junior_conversations",
2760
+ "columnsFrom": ["root_conversation_id"],
2761
+ "columnsTo": ["conversation_id"],
2762
+ "onDelete": "no action",
2763
+ "onUpdate": "no action"
2764
+ }
2765
+ },
2766
+ "compositePrimaryKeys": {},
2767
+ "uniqueConstraints": {},
2768
+ "policies": {},
2769
+ "checkConstraints": {},
2770
+ "isRLSEnabled": false
2771
+ },
2772
+ "public.junior_destinations": {
2773
+ "name": "junior_destinations",
2774
+ "schema": "",
2775
+ "columns": {
2776
+ "id": {
2777
+ "name": "id",
2778
+ "type": "text",
2779
+ "primaryKey": true,
2780
+ "notNull": true
2781
+ },
2782
+ "provider": {
2783
+ "name": "provider",
2784
+ "type": "text",
2785
+ "primaryKey": false,
2786
+ "notNull": true
2787
+ },
2788
+ "provider_tenant_id": {
2789
+ "name": "provider_tenant_id",
2790
+ "type": "text",
2791
+ "primaryKey": false,
2792
+ "notNull": true,
2793
+ "default": "''"
2794
+ },
2795
+ "provider_destination_id": {
2796
+ "name": "provider_destination_id",
2797
+ "type": "text",
2798
+ "primaryKey": false,
2799
+ "notNull": true
2800
+ },
2801
+ "kind": {
2802
+ "name": "kind",
2803
+ "type": "text",
2804
+ "primaryKey": false,
2805
+ "notNull": true
2806
+ },
2807
+ "parent_destination_id": {
2808
+ "name": "parent_destination_id",
2809
+ "type": "text",
2810
+ "primaryKey": false,
2811
+ "notNull": false
2812
+ },
2813
+ "display_name": {
2814
+ "name": "display_name",
2815
+ "type": "text",
2816
+ "primaryKey": false,
2817
+ "notNull": false
2818
+ },
2819
+ "visibility": {
2820
+ "name": "visibility",
2821
+ "type": "text",
2822
+ "primaryKey": false,
2823
+ "notNull": true,
2824
+ "default": "'unknown'"
2825
+ },
2826
+ "metadata_json": {
2827
+ "name": "metadata_json",
2828
+ "type": "jsonb",
2829
+ "primaryKey": false,
2830
+ "notNull": false
2831
+ },
2832
+ "created_at": {
2833
+ "name": "created_at",
2834
+ "type": "timestamp with time zone",
2835
+ "primaryKey": false,
2836
+ "notNull": true
2837
+ },
2838
+ "updated_at": {
2839
+ "name": "updated_at",
2840
+ "type": "timestamp with time zone",
2841
+ "primaryKey": false,
2842
+ "notNull": true
2843
+ }
2844
+ },
2845
+ "indexes": {
2846
+ "junior_destinations_provider_destination_uidx": {
2847
+ "name": "junior_destinations_provider_destination_uidx",
2848
+ "columns": [
2849
+ {
2850
+ "expression": "provider",
2851
+ "isExpression": false,
2852
+ "asc": true,
2853
+ "nulls": "last"
2854
+ },
2855
+ {
2856
+ "expression": "provider_tenant_id",
2857
+ "isExpression": false,
2858
+ "asc": true,
2859
+ "nulls": "last"
2860
+ },
2861
+ {
2862
+ "expression": "provider_destination_id",
2863
+ "isExpression": false,
2864
+ "asc": true,
2865
+ "nulls": "last"
2866
+ }
2867
+ ],
2868
+ "isUnique": true,
2869
+ "concurrently": false,
2870
+ "method": "btree",
2871
+ "with": {}
2872
+ },
2873
+ "junior_destinations_provider_kind_idx": {
2874
+ "name": "junior_destinations_provider_kind_idx",
2875
+ "columns": [
2876
+ {
2877
+ "expression": "provider",
2878
+ "isExpression": false,
2879
+ "asc": true,
2880
+ "nulls": "last"
2881
+ },
2882
+ {
2883
+ "expression": "kind",
2884
+ "isExpression": false,
2885
+ "asc": true,
2886
+ "nulls": "last"
2887
+ }
2888
+ ],
2889
+ "isUnique": false,
2890
+ "concurrently": false,
2891
+ "method": "btree",
2892
+ "with": {}
2893
+ }
2894
+ },
2895
+ "foreignKeys": {},
2896
+ "compositePrimaryKeys": {},
2897
+ "uniqueConstraints": {},
2898
+ "policies": {},
2899
+ "checkConstraints": {},
2900
+ "isRLSEnabled": false
2901
+ },
2902
+ "public.junior_identities": {
2903
+ "name": "junior_identities",
2904
+ "schema": "",
2905
+ "columns": {
2906
+ "id": {
2907
+ "name": "id",
2908
+ "type": "text",
2909
+ "primaryKey": true,
2910
+ "notNull": true
2911
+ },
2912
+ "kind": {
2913
+ "name": "kind",
2914
+ "type": "text",
2915
+ "primaryKey": false,
2916
+ "notNull": true
2917
+ },
2918
+ "provider": {
2919
+ "name": "provider",
2920
+ "type": "text",
2921
+ "primaryKey": false,
2922
+ "notNull": true
2923
+ },
2924
+ "provider_tenant_id": {
2925
+ "name": "provider_tenant_id",
2926
+ "type": "text",
2927
+ "primaryKey": false,
2928
+ "notNull": true,
2929
+ "default": "''"
2930
+ },
2931
+ "provider_subject_id": {
2932
+ "name": "provider_subject_id",
2933
+ "type": "text",
2934
+ "primaryKey": false,
2935
+ "notNull": true
2936
+ },
2937
+ "display_name": {
2938
+ "name": "display_name",
2939
+ "type": "text",
2940
+ "primaryKey": false,
2941
+ "notNull": false
2942
+ },
2943
+ "handle": {
2944
+ "name": "handle",
2945
+ "type": "text",
2946
+ "primaryKey": false,
2947
+ "notNull": false
2948
+ },
2949
+ "email": {
2950
+ "name": "email",
2951
+ "type": "text",
2952
+ "primaryKey": false,
2953
+ "notNull": false
2954
+ },
2955
+ "avatar_url": {
2956
+ "name": "avatar_url",
2957
+ "type": "text",
2958
+ "primaryKey": false,
2959
+ "notNull": false
2960
+ },
2961
+ "metadata_json": {
2962
+ "name": "metadata_json",
2963
+ "type": "jsonb",
2964
+ "primaryKey": false,
2965
+ "notNull": false
2966
+ },
2967
+ "created_at": {
2968
+ "name": "created_at",
2969
+ "type": "timestamp with time zone",
2970
+ "primaryKey": false,
2971
+ "notNull": true
2972
+ },
2973
+ "updated_at": {
2974
+ "name": "updated_at",
2975
+ "type": "timestamp with time zone",
2976
+ "primaryKey": false,
2977
+ "notNull": true
2978
+ },
2979
+ "user_id": {
2980
+ "name": "user_id",
2981
+ "type": "text",
2982
+ "primaryKey": false,
2983
+ "notNull": false
2984
+ },
2985
+ "email_normalized": {
2986
+ "name": "email_normalized",
2987
+ "type": "text",
2988
+ "primaryKey": false,
2989
+ "notNull": false
2990
+ },
2991
+ "email_verified": {
2992
+ "name": "email_verified",
2993
+ "type": "boolean",
2994
+ "primaryKey": false,
2995
+ "notNull": true,
2996
+ "default": false
2997
+ },
2998
+ "signed_in_at": {
2999
+ "name": "signed_in_at",
3000
+ "type": "timestamp with time zone",
3001
+ "primaryKey": false,
3002
+ "notNull": false
3003
+ }
3004
+ },
3005
+ "indexes": {
3006
+ "junior_identities_provider_subject_uidx": {
3007
+ "name": "junior_identities_provider_subject_uidx",
3008
+ "columns": [
3009
+ {
3010
+ "expression": "provider",
3011
+ "isExpression": false,
3012
+ "asc": true,
3013
+ "nulls": "last"
3014
+ },
3015
+ {
3016
+ "expression": "provider_tenant_id",
3017
+ "isExpression": false,
3018
+ "asc": true,
3019
+ "nulls": "last"
3020
+ },
3021
+ {
3022
+ "expression": "provider_subject_id",
3023
+ "isExpression": false,
3024
+ "asc": true,
3025
+ "nulls": "last"
3026
+ }
3027
+ ],
3028
+ "isUnique": true,
3029
+ "concurrently": false,
3030
+ "method": "btree",
3031
+ "with": {}
3032
+ },
3033
+ "junior_identities_user_idx": {
3034
+ "name": "junior_identities_user_idx",
3035
+ "columns": [
3036
+ {
3037
+ "expression": "user_id",
3038
+ "isExpression": false,
3039
+ "asc": true,
3040
+ "nulls": "last"
3041
+ }
3042
+ ],
3043
+ "isUnique": false,
3044
+ "concurrently": false,
3045
+ "method": "btree",
3046
+ "with": {}
3047
+ },
3048
+ "junior_identities_verified_email_idx": {
3049
+ "name": "junior_identities_verified_email_idx",
3050
+ "columns": [
3051
+ {
3052
+ "expression": "email_normalized",
3053
+ "isExpression": false,
3054
+ "asc": true,
3055
+ "nulls": "last"
3056
+ }
3057
+ ],
3058
+ "isUnique": false,
3059
+ "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
3060
+ "concurrently": false,
3061
+ "method": "btree",
3062
+ "with": {}
3063
+ },
3064
+ "junior_identities_kind_provider_idx": {
3065
+ "name": "junior_identities_kind_provider_idx",
3066
+ "columns": [
3067
+ {
3068
+ "expression": "kind",
3069
+ "isExpression": false,
3070
+ "asc": true,
3071
+ "nulls": "last"
3072
+ },
3073
+ {
3074
+ "expression": "provider",
3075
+ "isExpression": false,
3076
+ "asc": true,
3077
+ "nulls": "last"
3078
+ }
3079
+ ],
3080
+ "isUnique": false,
3081
+ "concurrently": false,
3082
+ "method": "btree",
3083
+ "with": {}
3084
+ }
3085
+ },
3086
+ "foreignKeys": {
3087
+ "junior_identities_user_id_junior_users_id_fk": {
3088
+ "name": "junior_identities_user_id_junior_users_id_fk",
3089
+ "tableFrom": "junior_identities",
3090
+ "tableTo": "junior_users",
3091
+ "columnsFrom": ["user_id"],
3092
+ "columnsTo": ["id"],
3093
+ "onDelete": "no action",
3094
+ "onUpdate": "no action"
3095
+ }
3096
+ },
3097
+ "compositePrimaryKeys": {},
3098
+ "uniqueConstraints": {},
3099
+ "policies": {},
3100
+ "checkConstraints": {},
3101
+ "isRLSEnabled": false
3102
+ },
3103
+ "public.junior_location_configurations": {
3104
+ "name": "junior_location_configurations",
3105
+ "schema": "",
3106
+ "columns": {
3107
+ "location_id": {
3108
+ "name": "location_id",
3109
+ "type": "text",
3110
+ "primaryKey": false,
3111
+ "notNull": true
3112
+ },
3113
+ "key": {
3114
+ "name": "key",
3115
+ "type": "text",
3116
+ "primaryKey": false,
3117
+ "notNull": true
3118
+ },
3119
+ "value": {
3120
+ "name": "value",
3121
+ "type": "text",
3122
+ "primaryKey": false,
3123
+ "notNull": true
3124
+ },
3125
+ "updated_at": {
3126
+ "name": "updated_at",
3127
+ "type": "timestamp with time zone",
3128
+ "primaryKey": false,
3129
+ "notNull": true
3130
+ },
3131
+ "updated_by": {
3132
+ "name": "updated_by",
3133
+ "type": "text",
3134
+ "primaryKey": false,
3135
+ "notNull": false
3136
+ },
3137
+ "source": {
3138
+ "name": "source",
3139
+ "type": "text",
3140
+ "primaryKey": false,
3141
+ "notNull": false
3142
+ },
3143
+ "expires_at": {
3144
+ "name": "expires_at",
3145
+ "type": "text",
3146
+ "primaryKey": false,
3147
+ "notNull": false
3148
+ }
3149
+ },
3150
+ "indexes": {},
3151
+ "foreignKeys": {
3152
+ "junior_location_configurations_location_id_junior_destinations_id_fk": {
3153
+ "name": "junior_location_configurations_location_id_junior_destinations_id_fk",
3154
+ "tableFrom": "junior_location_configurations",
3155
+ "tableTo": "junior_destinations",
3156
+ "columnsFrom": ["location_id"],
3157
+ "columnsTo": ["id"],
3158
+ "onDelete": "cascade",
3159
+ "onUpdate": "no action"
3160
+ }
3161
+ },
3162
+ "compositePrimaryKeys": {
3163
+ "junior_location_configurations_location_id_key_pk": {
3164
+ "name": "junior_location_configurations_location_id_key_pk",
3165
+ "columns": ["location_id", "key"]
3166
+ }
3167
+ },
3168
+ "uniqueConstraints": {},
3169
+ "policies": {},
3170
+ "checkConstraints": {},
3171
+ "isRLSEnabled": false
3172
+ },
3173
+ "public.junior_review_item_assignees": {
3174
+ "name": "junior_review_item_assignees",
3175
+ "schema": "",
3176
+ "columns": {
3177
+ "item_id": {
3178
+ "name": "item_id",
3179
+ "type": "text",
3180
+ "primaryKey": false,
3181
+ "notNull": true
3182
+ },
3183
+ "user_id": {
3184
+ "name": "user_id",
3185
+ "type": "text",
3186
+ "primaryKey": false,
3187
+ "notNull": true
3188
+ }
3189
+ },
3190
+ "indexes": {
3191
+ "junior_review_item_assignees_user_idx": {
3192
+ "name": "junior_review_item_assignees_user_idx",
3193
+ "columns": [
3194
+ {
3195
+ "expression": "user_id",
3196
+ "isExpression": false,
3197
+ "asc": true,
3198
+ "nulls": "last"
3199
+ }
3200
+ ],
3201
+ "isUnique": false,
3202
+ "concurrently": false,
3203
+ "method": "btree",
3204
+ "with": {}
3205
+ }
3206
+ },
3207
+ "foreignKeys": {
3208
+ "junior_review_item_assignees_item_id_junior_review_items_id_fk": {
3209
+ "name": "junior_review_item_assignees_item_id_junior_review_items_id_fk",
3210
+ "tableFrom": "junior_review_item_assignees",
3211
+ "tableTo": "junior_review_items",
3212
+ "columnsFrom": ["item_id"],
3213
+ "columnsTo": ["id"],
3214
+ "onDelete": "cascade",
3215
+ "onUpdate": "no action"
3216
+ },
3217
+ "junior_review_item_assignees_user_id_junior_users_id_fk": {
3218
+ "name": "junior_review_item_assignees_user_id_junior_users_id_fk",
3219
+ "tableFrom": "junior_review_item_assignees",
3220
+ "tableTo": "junior_users",
3221
+ "columnsFrom": ["user_id"],
3222
+ "columnsTo": ["id"],
3223
+ "onDelete": "cascade",
3224
+ "onUpdate": "no action"
3225
+ }
3226
+ },
3227
+ "compositePrimaryKeys": {
3228
+ "junior_review_item_assignees_item_id_user_id_pk": {
3229
+ "name": "junior_review_item_assignees_item_id_user_id_pk",
3230
+ "columns": ["item_id", "user_id"]
3231
+ }
3232
+ },
3233
+ "uniqueConstraints": {},
3234
+ "policies": {},
3235
+ "checkConstraints": {},
3236
+ "isRLSEnabled": false
3237
+ },
3238
+ "public.junior_review_item_conversations": {
3239
+ "name": "junior_review_item_conversations",
3240
+ "schema": "",
3241
+ "columns": {
3242
+ "item_id": {
3243
+ "name": "item_id",
3244
+ "type": "text",
3245
+ "primaryKey": false,
3246
+ "notNull": true
3247
+ },
3248
+ "conversation_id": {
3249
+ "name": "conversation_id",
3250
+ "type": "text",
3251
+ "primaryKey": false,
3252
+ "notNull": true
3253
+ }
3254
+ },
3255
+ "indexes": {
3256
+ "junior_review_item_conversations_conversation_idx": {
3257
+ "name": "junior_review_item_conversations_conversation_idx",
3258
+ "columns": [
3259
+ {
3260
+ "expression": "conversation_id",
3261
+ "isExpression": false,
3262
+ "asc": true,
3263
+ "nulls": "last"
3264
+ }
3265
+ ],
3266
+ "isUnique": false,
3267
+ "concurrently": false,
3268
+ "method": "btree",
3269
+ "with": {}
3270
+ }
3271
+ },
3272
+ "foreignKeys": {
3273
+ "junior_review_item_conversations_item_id_junior_review_items_id_fk": {
3274
+ "name": "junior_review_item_conversations_item_id_junior_review_items_id_fk",
3275
+ "tableFrom": "junior_review_item_conversations",
3276
+ "tableTo": "junior_review_items",
3277
+ "columnsFrom": ["item_id"],
3278
+ "columnsTo": ["id"],
3279
+ "onDelete": "cascade",
3280
+ "onUpdate": "no action"
3281
+ },
3282
+ "junior_review_item_conversations_conversation_id_junior_conversations_conversation_id_fk": {
3283
+ "name": "junior_review_item_conversations_conversation_id_junior_conversations_conversation_id_fk",
3284
+ "tableFrom": "junior_review_item_conversations",
3285
+ "tableTo": "junior_conversations",
3286
+ "columnsFrom": ["conversation_id"],
3287
+ "columnsTo": ["conversation_id"],
3288
+ "onDelete": "cascade",
3289
+ "onUpdate": "no action"
3290
+ }
3291
+ },
3292
+ "compositePrimaryKeys": {
3293
+ "junior_review_item_conversations_item_id_conversation_id_pk": {
3294
+ "name": "junior_review_item_conversations_item_id_conversation_id_pk",
3295
+ "columns": ["item_id", "conversation_id"]
3296
+ }
3297
+ },
3298
+ "uniqueConstraints": {},
3299
+ "policies": {},
3300
+ "checkConstraints": {},
3301
+ "isRLSEnabled": false
3302
+ },
3303
+ "public.junior_review_item_slack_cards": {
3304
+ "name": "junior_review_item_slack_cards",
3305
+ "schema": "",
3306
+ "columns": {
3307
+ "item_id": {
3308
+ "name": "item_id",
3309
+ "type": "text",
3310
+ "primaryKey": false,
3311
+ "notNull": true
3312
+ },
3313
+ "conversation_id": {
3314
+ "name": "conversation_id",
3315
+ "type": "text",
3316
+ "primaryKey": false,
3317
+ "notNull": true
3318
+ },
3319
+ "team_id": {
3320
+ "name": "team_id",
3321
+ "type": "text",
3322
+ "primaryKey": false,
3323
+ "notNull": true
3324
+ },
3325
+ "channel_id": {
3326
+ "name": "channel_id",
3327
+ "type": "text",
3328
+ "primaryKey": false,
3329
+ "notNull": true
3330
+ },
3331
+ "message_ts": {
3332
+ "name": "message_ts",
3333
+ "type": "text",
3334
+ "primaryKey": false,
3335
+ "notNull": true
3336
+ }
3337
+ },
3338
+ "indexes": {},
3339
+ "foreignKeys": {
3340
+ "junior_review_item_slack_cards_item_id_junior_review_items_id_fk": {
3341
+ "name": "junior_review_item_slack_cards_item_id_junior_review_items_id_fk",
3342
+ "tableFrom": "junior_review_item_slack_cards",
3343
+ "tableTo": "junior_review_items",
3344
+ "columnsFrom": ["item_id"],
3345
+ "columnsTo": ["id"],
3346
+ "onDelete": "cascade",
3347
+ "onUpdate": "no action"
3348
+ },
3349
+ "junior_review_item_slack_cards_conversation_id_junior_conversations_conversation_id_fk": {
3350
+ "name": "junior_review_item_slack_cards_conversation_id_junior_conversations_conversation_id_fk",
3351
+ "tableFrom": "junior_review_item_slack_cards",
3352
+ "tableTo": "junior_conversations",
3353
+ "columnsFrom": ["conversation_id"],
3354
+ "columnsTo": ["conversation_id"],
3355
+ "onDelete": "cascade",
3356
+ "onUpdate": "no action"
3357
+ }
3358
+ },
3359
+ "compositePrimaryKeys": {
3360
+ "junior_review_item_slack_cards_item_id_conversation_id_pk": {
3361
+ "name": "junior_review_item_slack_cards_item_id_conversation_id_pk",
3362
+ "columns": ["item_id", "conversation_id"]
3363
+ }
3364
+ },
3365
+ "uniqueConstraints": {},
3366
+ "policies": {},
3367
+ "checkConstraints": {},
3368
+ "isRLSEnabled": false
3369
+ },
3370
+ "public.junior_review_items": {
3371
+ "name": "junior_review_items",
3372
+ "schema": "",
3373
+ "columns": {
3374
+ "id": {
3375
+ "name": "id",
3376
+ "type": "text",
3377
+ "primaryKey": true,
3378
+ "notNull": true
3379
+ },
3380
+ "kind": {
3381
+ "name": "kind",
3382
+ "type": "text",
3383
+ "primaryKey": false,
3384
+ "notNull": true
3385
+ },
3386
+ "status": {
3387
+ "name": "status",
3388
+ "type": "text",
3389
+ "primaryKey": false,
3390
+ "notNull": true
3391
+ },
3392
+ "visibility": {
3393
+ "name": "visibility",
3394
+ "type": "text",
3395
+ "primaryKey": false,
3396
+ "notNull": true
3397
+ },
3398
+ "title": {
3399
+ "name": "title",
3400
+ "type": "text",
3401
+ "primaryKey": false,
3402
+ "notNull": true
3403
+ },
3404
+ "body": {
3405
+ "name": "body",
3406
+ "type": "text",
3407
+ "primaryKey": false,
3408
+ "notNull": true
3409
+ },
3410
+ "request": {
3411
+ "name": "request",
3412
+ "type": "jsonb",
3413
+ "primaryKey": false,
3414
+ "notNull": false
3415
+ },
3416
+ "answer": {
3417
+ "name": "answer",
3418
+ "type": "jsonb",
3419
+ "primaryKey": false,
3420
+ "notNull": false
3421
+ },
3422
+ "assigned_to_everyone": {
3423
+ "name": "assigned_to_everyone",
3424
+ "type": "boolean",
3425
+ "primaryKey": false,
3426
+ "notNull": true,
3427
+ "default": false
3428
+ },
3429
+ "dedupe_key": {
3430
+ "name": "dedupe_key",
3431
+ "type": "text",
3432
+ "primaryKey": false,
3433
+ "notNull": true
3434
+ },
3435
+ "subject_id": {
3436
+ "name": "subject_id",
3437
+ "type": "text",
3438
+ "primaryKey": false,
3439
+ "notNull": false
3440
+ },
3441
+ "subject_title": {
3442
+ "name": "subject_title",
3443
+ "type": "text",
3444
+ "primaryKey": false,
3445
+ "notNull": false
3446
+ },
3447
+ "subject_url": {
3448
+ "name": "subject_url",
3449
+ "type": "text",
3450
+ "primaryKey": false,
3451
+ "notNull": false
3452
+ },
3453
+ "added_by_conversation_id": {
3454
+ "name": "added_by_conversation_id",
3455
+ "type": "text",
3456
+ "primaryKey": false,
3457
+ "notNull": true
3458
+ },
3459
+ "added_by_turn_id": {
3460
+ "name": "added_by_turn_id",
3461
+ "type": "text",
3462
+ "primaryKey": false,
3463
+ "notNull": false
3464
+ },
3465
+ "provider": {
3466
+ "name": "provider",
3467
+ "type": "text",
3468
+ "primaryKey": false,
3469
+ "notNull": false
3470
+ },
3471
+ "provider_tenant_id": {
3472
+ "name": "provider_tenant_id",
3473
+ "type": "text",
3474
+ "primaryKey": false,
3475
+ "notNull": false
3476
+ },
3477
+ "automation_id": {
3478
+ "name": "automation_id",
3479
+ "type": "text",
3480
+ "primaryKey": false,
3481
+ "notNull": false
3482
+ },
3483
+ "closed_at": {
3484
+ "name": "closed_at",
3485
+ "type": "timestamp with time zone",
3486
+ "primaryKey": false,
3487
+ "notNull": false
3488
+ },
3489
+ "closed_by_user_id": {
3490
+ "name": "closed_by_user_id",
3491
+ "type": "text",
3492
+ "primaryKey": false,
3493
+ "notNull": false
3494
+ },
3495
+ "close_reason": {
3496
+ "name": "close_reason",
3497
+ "type": "text",
3498
+ "primaryKey": false,
3499
+ "notNull": false
3500
+ },
3501
+ "created_at": {
3502
+ "name": "created_at",
3503
+ "type": "timestamp with time zone",
3504
+ "primaryKey": false,
3505
+ "notNull": true
3506
+ },
3507
+ "updated_at": {
3508
+ "name": "updated_at",
3509
+ "type": "timestamp with time zone",
3510
+ "primaryKey": false,
3511
+ "notNull": true
3512
+ }
3513
+ },
3514
+ "indexes": {
3515
+ "junior_review_items_open_dedupe_uidx": {
3516
+ "name": "junior_review_items_open_dedupe_uidx",
3517
+ "columns": [
3518
+ {
3519
+ "expression": "coalesce(\"provider\", '')",
3520
+ "asc": true,
3521
+ "isExpression": true,
3522
+ "nulls": "last"
3523
+ },
3524
+ {
3525
+ "expression": "coalesce(\"provider_tenant_id\", '')",
3526
+ "asc": true,
3527
+ "isExpression": true,
3528
+ "nulls": "last"
3529
+ },
3530
+ {
3531
+ "expression": "dedupe_key",
3532
+ "isExpression": false,
3533
+ "asc": true,
3534
+ "nulls": "last"
3535
+ }
3536
+ ],
3537
+ "isUnique": true,
3538
+ "where": "\"junior_review_items\".\"status\" = 'open'",
3539
+ "concurrently": false,
3540
+ "method": "btree",
3541
+ "with": {}
3542
+ },
3543
+ "junior_review_items_status_idx": {
3544
+ "name": "junior_review_items_status_idx",
3545
+ "columns": [
3546
+ {
3547
+ "expression": "status",
3548
+ "isExpression": false,
3549
+ "asc": true,
3550
+ "nulls": "last"
3551
+ },
3552
+ {
3553
+ "expression": "updated_at",
3554
+ "isExpression": false,
3555
+ "asc": true,
3556
+ "nulls": "last"
3557
+ },
3558
+ {
3559
+ "expression": "id",
3560
+ "isExpression": false,
3561
+ "asc": true,
3562
+ "nulls": "last"
3563
+ }
3564
+ ],
3565
+ "isUnique": false,
3566
+ "concurrently": false,
3567
+ "method": "btree",
3568
+ "with": {}
3569
+ },
3570
+ "junior_review_items_subject_idx": {
3571
+ "name": "junior_review_items_subject_idx",
3572
+ "columns": [
3573
+ {
3574
+ "expression": "subject_id",
3575
+ "isExpression": false,
3576
+ "asc": true,
3577
+ "nulls": "last"
3578
+ },
3579
+ {
3580
+ "expression": "status",
3581
+ "isExpression": false,
3582
+ "asc": true,
3583
+ "nulls": "last"
3584
+ }
3585
+ ],
3586
+ "isUnique": false,
3587
+ "concurrently": false,
3588
+ "method": "btree",
3589
+ "with": {}
3590
+ },
3591
+ "junior_review_items_automation_idx": {
3592
+ "name": "junior_review_items_automation_idx",
3593
+ "columns": [
3594
+ {
3595
+ "expression": "automation_id",
3596
+ "isExpression": false,
3597
+ "asc": true,
3598
+ "nulls": "last"
3599
+ },
3600
+ {
3601
+ "expression": "status",
3602
+ "isExpression": false,
3603
+ "asc": true,
3604
+ "nulls": "last"
3605
+ }
3606
+ ],
3607
+ "isUnique": false,
3608
+ "concurrently": false,
3609
+ "method": "btree",
3610
+ "with": {}
3611
+ }
3612
+ },
3613
+ "foreignKeys": {
3614
+ "junior_review_items_added_by_conversation_id_junior_conversations_conversation_id_fk": {
3615
+ "name": "junior_review_items_added_by_conversation_id_junior_conversations_conversation_id_fk",
3616
+ "tableFrom": "junior_review_items",
3617
+ "tableTo": "junior_conversations",
3618
+ "columnsFrom": ["added_by_conversation_id"],
3619
+ "columnsTo": ["conversation_id"],
3620
+ "onDelete": "cascade",
3621
+ "onUpdate": "no action"
3622
+ },
3623
+ "junior_review_items_automation_id_junior_automations_id_fk": {
3624
+ "name": "junior_review_items_automation_id_junior_automations_id_fk",
3625
+ "tableFrom": "junior_review_items",
3626
+ "tableTo": "junior_automations",
3627
+ "columnsFrom": ["automation_id"],
3628
+ "columnsTo": ["id"],
3629
+ "onDelete": "set null",
3630
+ "onUpdate": "no action"
3631
+ },
3632
+ "junior_review_items_closed_by_user_id_junior_users_id_fk": {
3633
+ "name": "junior_review_items_closed_by_user_id_junior_users_id_fk",
3634
+ "tableFrom": "junior_review_items",
3635
+ "tableTo": "junior_users",
3636
+ "columnsFrom": ["closed_by_user_id"],
3637
+ "columnsTo": ["id"],
3638
+ "onDelete": "set null",
3639
+ "onUpdate": "no action"
3640
+ }
3641
+ },
3642
+ "compositePrimaryKeys": {},
3643
+ "uniqueConstraints": {},
3644
+ "policies": {},
3645
+ "checkConstraints": {
3646
+ "junior_review_items_kind_check": {
3647
+ "name": "junior_review_items_kind_check",
3648
+ "value": "(\"junior_review_items\".\"kind\" = 'notice' and \"junior_review_items\".\"request\" is null and \"junior_review_items\".\"answer\" is null) or (\"junior_review_items\".\"kind\" = 'action' and \"junior_review_items\".\"request\" is not null)"
3649
+ },
3650
+ "junior_review_items_status_check": {
3651
+ "name": "junior_review_items_status_check",
3652
+ "value": "(\"junior_review_items\".\"status\" = 'open' and \"junior_review_items\".\"closed_at\" is null) or (\"junior_review_items\".\"status\" in ('done', 'dismissed') and \"junior_review_items\".\"closed_at\" is not null)"
3653
+ },
3654
+ "junior_review_items_tenant_check": {
3655
+ "name": "junior_review_items_tenant_check",
3656
+ "value": "(\"junior_review_items\".\"provider\" is null) = (\"junior_review_items\".\"provider_tenant_id\" is null)"
3657
+ },
3658
+ "junior_review_items_visibility_check": {
3659
+ "name": "junior_review_items_visibility_check",
3660
+ "value": "\"junior_review_items\".\"visibility\" = 'public' or not \"junior_review_items\".\"assigned_to_everyone\""
3661
+ }
3662
+ },
3663
+ "isRLSEnabled": false
3664
+ },
3665
+ "public.junior_snapshots": {
3666
+ "name": "junior_snapshots",
3667
+ "schema": "",
3668
+ "columns": {
3669
+ "id": {
3670
+ "name": "id",
3671
+ "type": "text",
3672
+ "primaryKey": true,
3673
+ "notNull": true
3674
+ },
3675
+ "workspace_id": {
3676
+ "name": "workspace_id",
3677
+ "type": "text",
3678
+ "primaryKey": false,
3679
+ "notNull": true
3680
+ },
3681
+ "profile_hash": {
3682
+ "name": "profile_hash",
3683
+ "type": "text",
3684
+ "primaryKey": false,
3685
+ "notNull": true
3686
+ },
3687
+ "status": {
3688
+ "name": "status",
3689
+ "type": "text",
3690
+ "primaryKey": false,
3691
+ "notNull": true
3692
+ },
3693
+ "snapshot_id": {
3694
+ "name": "snapshot_id",
3695
+ "type": "text",
3696
+ "primaryKey": false,
3697
+ "notNull": false
3698
+ },
3699
+ "build_duration_ms": {
3700
+ "name": "build_duration_ms",
3701
+ "type": "integer",
3702
+ "primaryKey": false,
3703
+ "notNull": false
3704
+ },
3705
+ "size_bytes": {
3706
+ "name": "size_bytes",
3707
+ "type": "bigint",
3708
+ "primaryKey": false,
3709
+ "notNull": false
3710
+ },
3711
+ "generated_at": {
3712
+ "name": "generated_at",
3713
+ "type": "timestamp with time zone",
3714
+ "primaryKey": false,
3715
+ "notNull": false
3716
+ },
3717
+ "build_started_at": {
3718
+ "name": "build_started_at",
3719
+ "type": "timestamp with time zone",
3720
+ "primaryKey": false,
3721
+ "notNull": false
3722
+ },
3723
+ "build_phase": {
3724
+ "name": "build_phase",
3725
+ "type": "text",
3726
+ "primaryKey": false,
3727
+ "notNull": false
3728
+ },
3729
+ "build_sandbox_name": {
3730
+ "name": "build_sandbox_name",
3731
+ "type": "text",
3732
+ "primaryKey": false,
3733
+ "notNull": false
3734
+ },
3735
+ "build_command_id": {
3736
+ "name": "build_command_id",
3737
+ "type": "text",
3738
+ "primaryKey": false,
3739
+ "notNull": false
3740
+ },
3741
+ "build_error": {
3742
+ "name": "build_error",
3743
+ "type": "text",
3744
+ "primaryKey": false,
3745
+ "notNull": false
3746
+ },
3747
+ "created_at": {
3748
+ "name": "created_at",
3749
+ "type": "timestamp with time zone",
3750
+ "primaryKey": false,
3751
+ "notNull": true
3752
+ },
3753
+ "updated_at": {
3754
+ "name": "updated_at",
3755
+ "type": "timestamp with time zone",
3756
+ "primaryKey": false,
3757
+ "notNull": true
3758
+ }
3759
+ },
3760
+ "indexes": {
3761
+ "junior_snapshots_snapshot_id_uidx": {
3762
+ "name": "junior_snapshots_snapshot_id_uidx",
3763
+ "columns": [
3764
+ {
3765
+ "expression": "snapshot_id",
3766
+ "isExpression": false,
3767
+ "asc": true,
3768
+ "nulls": "last"
3769
+ }
3770
+ ],
3771
+ "isUnique": true,
3772
+ "concurrently": false,
3773
+ "method": "btree",
3774
+ "with": {}
3775
+ },
3776
+ "junior_snapshots_workspace_idx": {
3777
+ "name": "junior_snapshots_workspace_idx",
3778
+ "columns": [
3779
+ {
3780
+ "expression": "workspace_id",
3781
+ "isExpression": false,
3782
+ "asc": true,
3783
+ "nulls": "last"
3784
+ }
3785
+ ],
3786
+ "isUnique": false,
3787
+ "concurrently": false,
3788
+ "method": "btree",
3789
+ "with": {}
3790
+ },
3791
+ "junior_snapshots_workspace_profile_status_idx": {
3792
+ "name": "junior_snapshots_workspace_profile_status_idx",
3793
+ "columns": [
3794
+ {
3795
+ "expression": "workspace_id",
3796
+ "isExpression": false,
3797
+ "asc": true,
3798
+ "nulls": "last"
3799
+ },
3800
+ {
3801
+ "expression": "profile_hash",
3802
+ "isExpression": false,
3803
+ "asc": true,
3804
+ "nulls": "last"
3805
+ },
3806
+ {
3807
+ "expression": "status",
3808
+ "isExpression": false,
3809
+ "asc": true,
3810
+ "nulls": "last"
3811
+ }
3812
+ ],
3813
+ "isUnique": false,
3814
+ "concurrently": false,
3815
+ "method": "btree",
3816
+ "with": {}
3817
+ },
3818
+ "junior_snapshots_active_build_uidx": {
3819
+ "name": "junior_snapshots_active_build_uidx",
3820
+ "columns": [
3821
+ {
3822
+ "expression": "workspace_id",
3823
+ "isExpression": false,
3824
+ "asc": true,
3825
+ "nulls": "last"
3826
+ },
3827
+ {
3828
+ "expression": "profile_hash",
3829
+ "isExpression": false,
3830
+ "asc": true,
3831
+ "nulls": "last"
3832
+ }
3833
+ ],
3834
+ "isUnique": true,
3835
+ "where": "\"junior_snapshots\".\"status\" = 'building'",
3836
+ "concurrently": false,
3837
+ "method": "btree",
3838
+ "with": {}
3839
+ },
3840
+ "junior_snapshots_workspace_status_idx": {
3841
+ "name": "junior_snapshots_workspace_status_idx",
3842
+ "columns": [
3843
+ {
3844
+ "expression": "workspace_id",
3845
+ "isExpression": false,
3846
+ "asc": true,
3847
+ "nulls": "last"
3848
+ },
3849
+ {
3850
+ "expression": "status",
3851
+ "isExpression": false,
3852
+ "asc": true,
3853
+ "nulls": "last"
3854
+ }
3855
+ ],
3856
+ "isUnique": false,
3857
+ "concurrently": false,
3858
+ "method": "btree",
3859
+ "with": {}
3860
+ }
3861
+ },
3862
+ "foreignKeys": {
3863
+ "junior_snapshots_workspace_id_junior_workspaces_id_fk": {
3864
+ "name": "junior_snapshots_workspace_id_junior_workspaces_id_fk",
3865
+ "tableFrom": "junior_snapshots",
3866
+ "tableTo": "junior_workspaces",
3867
+ "columnsFrom": ["workspace_id"],
3868
+ "columnsTo": ["id"],
3869
+ "onDelete": "cascade",
3870
+ "onUpdate": "no action"
3871
+ }
3872
+ },
3873
+ "compositePrimaryKeys": {},
3874
+ "uniqueConstraints": {},
3875
+ "policies": {},
3876
+ "checkConstraints": {
3877
+ "junior_snapshots_status_check": {
3878
+ "name": "junior_snapshots_status_check",
3879
+ "value": "\"junior_snapshots\".\"status\" in ('building', 'failed', 'ready')"
3880
+ },
3881
+ "junior_snapshots_build_phase_check": {
3882
+ "name": "junior_snapshots_build_phase_check",
3883
+ "value": "\"junior_snapshots\".\"build_phase\" is null or \"junior_snapshots\".\"build_phase\" in ('created', 'dependencies_installed', 'repositories_prepared')"
3884
+ },
3885
+ "junior_snapshots_ready_fields_check": {
3886
+ "name": "junior_snapshots_ready_fields_check",
3887
+ "value": "\"junior_snapshots\".\"status\" <> 'ready' or (\"junior_snapshots\".\"snapshot_id\" is not null and \"junior_snapshots\".\"build_duration_ms\" is not null and \"junior_snapshots\".\"generated_at\" is not null)"
3888
+ },
3889
+ "junior_snapshots_build_fields_check": {
3890
+ "name": "junior_snapshots_build_fields_check",
3891
+ "value": "\"junior_snapshots\".\"status\" = 'ready' or (\"junior_snapshots\".\"build_started_at\" is not null and \"junior_snapshots\".\"build_phase\" is not null)"
3892
+ },
3893
+ "junior_snapshots_build_duration_check": {
3894
+ "name": "junior_snapshots_build_duration_check",
3895
+ "value": "\"junior_snapshots\".\"build_duration_ms\" is null or \"junior_snapshots\".\"build_duration_ms\" >= 0"
3896
+ },
3897
+ "junior_snapshots_size_bytes_check": {
3898
+ "name": "junior_snapshots_size_bytes_check",
3899
+ "value": "\"junior_snapshots\".\"size_bytes\" is null or \"junior_snapshots\".\"size_bytes\" >= 0"
3900
+ }
3901
+ },
3902
+ "isRLSEnabled": false
3903
+ },
3904
+ "public.junior_stats": {
3905
+ "name": "junior_stats",
3906
+ "schema": "",
3907
+ "columns": {
3908
+ "date": {
3909
+ "name": "date",
3910
+ "type": "date",
3911
+ "primaryKey": false,
3912
+ "notNull": true
3913
+ },
3914
+ "namespace": {
3915
+ "name": "namespace",
3916
+ "type": "text",
3917
+ "primaryKey": false,
3918
+ "notNull": true
3919
+ },
3920
+ "metric": {
3921
+ "name": "metric",
3922
+ "type": "text",
3923
+ "primaryKey": false,
3924
+ "notNull": true
3925
+ },
3926
+ "name": {
3927
+ "name": "name",
3928
+ "type": "text",
3929
+ "primaryKey": false,
3930
+ "notNull": true
3931
+ },
3932
+ "count": {
3933
+ "name": "count",
3934
+ "type": "integer",
3935
+ "primaryKey": false,
3936
+ "notNull": true,
3937
+ "default": 0
3938
+ }
3939
+ },
3940
+ "indexes": {},
3941
+ "foreignKeys": {},
3942
+ "compositePrimaryKeys": {
3943
+ "junior_stats_date_namespace_metric_name_pk": {
3944
+ "name": "junior_stats_date_namespace_metric_name_pk",
3945
+ "columns": ["date", "namespace", "metric", "name"]
3946
+ }
3947
+ },
3948
+ "uniqueConstraints": {},
3949
+ "policies": {},
3950
+ "checkConstraints": {},
3951
+ "isRLSEnabled": false
3952
+ },
3953
+ "public.junior_users": {
3954
+ "name": "junior_users",
3955
+ "schema": "",
3956
+ "columns": {
3957
+ "id": {
3958
+ "name": "id",
3959
+ "type": "text",
3960
+ "primaryKey": true,
3961
+ "notNull": true
3962
+ },
3963
+ "primary_email": {
3964
+ "name": "primary_email",
3965
+ "type": "text",
3966
+ "primaryKey": false,
3967
+ "notNull": true
3968
+ },
3969
+ "primary_email_normalized": {
3970
+ "name": "primary_email_normalized",
3971
+ "type": "text",
3972
+ "primaryKey": false,
3973
+ "notNull": true
3974
+ },
3975
+ "display_name": {
3976
+ "name": "display_name",
3977
+ "type": "text",
3978
+ "primaryKey": false,
3979
+ "notNull": false
3980
+ },
3981
+ "timezone": {
3982
+ "name": "timezone",
3983
+ "type": "text",
3984
+ "primaryKey": false,
3985
+ "notNull": false
3986
+ },
3987
+ "customization": {
3988
+ "name": "customization",
3989
+ "type": "text",
3990
+ "primaryKey": false,
3991
+ "notNull": false
3992
+ },
3993
+ "is_admin": {
3994
+ "name": "is_admin",
3995
+ "type": "boolean",
3996
+ "primaryKey": false,
3997
+ "notNull": true,
3998
+ "default": false
3999
+ },
4000
+ "auto_archive_default": {
4001
+ "name": "auto_archive_default",
4002
+ "type": "boolean",
4003
+ "primaryKey": false,
4004
+ "notNull": true,
4005
+ "default": false
4006
+ },
4007
+ "auto_archive_grace_hours": {
4008
+ "name": "auto_archive_grace_hours",
4009
+ "type": "integer",
4010
+ "primaryKey": false,
4011
+ "notNull": true,
4012
+ "default": 24
4013
+ },
4014
+ "created_at": {
4015
+ "name": "created_at",
4016
+ "type": "timestamp with time zone",
4017
+ "primaryKey": false,
4018
+ "notNull": true
4019
+ },
4020
+ "updated_at": {
4021
+ "name": "updated_at",
4022
+ "type": "timestamp with time zone",
4023
+ "primaryKey": false,
4024
+ "notNull": true
4025
+ }
4026
+ },
4027
+ "indexes": {
4028
+ "junior_users_primary_email_normalized_uidx": {
4029
+ "name": "junior_users_primary_email_normalized_uidx",
4030
+ "columns": [
4031
+ {
4032
+ "expression": "primary_email_normalized",
4033
+ "isExpression": false,
4034
+ "asc": true,
4035
+ "nulls": "last"
4036
+ }
4037
+ ],
4038
+ "isUnique": true,
4039
+ "concurrently": false,
4040
+ "method": "btree",
4041
+ "with": {}
4042
+ }
4043
+ },
4044
+ "foreignKeys": {},
4045
+ "compositePrimaryKeys": {},
4046
+ "uniqueConstraints": {},
4047
+ "policies": {},
4048
+ "checkConstraints": {},
4049
+ "isRLSEnabled": false
4050
+ },
4051
+ "public.junior_workspace_repos": {
4052
+ "name": "junior_workspace_repos",
4053
+ "schema": "",
4054
+ "columns": {
4055
+ "workspace_id": {
4056
+ "name": "workspace_id",
4057
+ "type": "text",
4058
+ "primaryKey": false,
4059
+ "notNull": true
4060
+ },
4061
+ "provider": {
4062
+ "name": "provider",
4063
+ "type": "text",
4064
+ "primaryKey": false,
4065
+ "notNull": true
4066
+ },
4067
+ "repo": {
4068
+ "name": "repo",
4069
+ "type": "text",
4070
+ "primaryKey": false,
4071
+ "notNull": true
4072
+ }
4073
+ },
4074
+ "indexes": {},
4075
+ "foreignKeys": {
4076
+ "junior_workspace_repos_workspace_id_junior_workspaces_id_fk": {
4077
+ "name": "junior_workspace_repos_workspace_id_junior_workspaces_id_fk",
4078
+ "tableFrom": "junior_workspace_repos",
4079
+ "tableTo": "junior_workspaces",
4080
+ "columnsFrom": ["workspace_id"],
4081
+ "columnsTo": ["id"],
4082
+ "onDelete": "cascade",
4083
+ "onUpdate": "no action"
4084
+ }
4085
+ },
4086
+ "compositePrimaryKeys": {
4087
+ "junior_workspace_repos_workspace_id_provider_repo_pk": {
4088
+ "name": "junior_workspace_repos_workspace_id_provider_repo_pk",
4089
+ "columns": ["workspace_id", "provider", "repo"]
4090
+ }
4091
+ },
4092
+ "uniqueConstraints": {},
4093
+ "policies": {},
4094
+ "checkConstraints": {},
4095
+ "isRLSEnabled": false
4096
+ },
4097
+ "public.junior_workspaces": {
4098
+ "name": "junior_workspaces",
4099
+ "schema": "",
4100
+ "columns": {
4101
+ "id": {
4102
+ "name": "id",
4103
+ "type": "text",
4104
+ "primaryKey": true,
4105
+ "notNull": true
4106
+ },
4107
+ "name": {
4108
+ "name": "name",
4109
+ "type": "text",
4110
+ "primaryKey": false,
4111
+ "notNull": true
4112
+ },
4113
+ "setup_script": {
4114
+ "name": "setup_script",
4115
+ "type": "text",
4116
+ "primaryKey": false,
4117
+ "notNull": true,
4118
+ "default": "''"
4119
+ },
4120
+ "vcpus": {
4121
+ "name": "vcpus",
4122
+ "type": "integer",
4123
+ "primaryKey": false,
4124
+ "notNull": false
4125
+ },
4126
+ "created_at": {
4127
+ "name": "created_at",
4128
+ "type": "timestamp with time zone",
4129
+ "primaryKey": false,
4130
+ "notNull": true
4131
+ },
4132
+ "updated_at": {
4133
+ "name": "updated_at",
4134
+ "type": "timestamp with time zone",
4135
+ "primaryKey": false,
4136
+ "notNull": true
4137
+ }
4138
+ },
4139
+ "indexes": {
4140
+ "junior_workspaces_name_idx": {
4141
+ "name": "junior_workspaces_name_idx",
4142
+ "columns": [
4143
+ {
4144
+ "expression": "name",
4145
+ "isExpression": false,
4146
+ "asc": true,
4147
+ "nulls": "last"
4148
+ }
4149
+ ],
4150
+ "isUnique": true,
4151
+ "concurrently": false,
4152
+ "method": "btree",
4153
+ "with": {}
4154
+ }
4155
+ },
4156
+ "foreignKeys": {},
4157
+ "compositePrimaryKeys": {},
4158
+ "uniqueConstraints": {},
4159
+ "policies": {},
4160
+ "checkConstraints": {},
4161
+ "isRLSEnabled": false
4162
+ }
4163
+ },
4164
+ "enums": {},
4165
+ "schemas": {},
4166
+ "sequences": {},
4167
+ "roles": {},
4168
+ "policies": {},
4169
+ "views": {},
4170
+ "_meta": {
4171
+ "columns": {},
4172
+ "schemas": {},
4173
+ "tables": {}
4174
+ }
4175
+ }