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