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