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