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