@sentry/junior 0.138.0 → 0.139.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 (71) hide show
  1. package/dist/{agent-hooks-SCR74Q3E.js → agent-hooks-MJXMD7JP.js} +10 -10
  2. package/dist/api/schema/task.d.ts +100 -1
  3. package/dist/api/schema.d.ts +2 -2
  4. package/dist/api/schema.js +9 -1
  5. package/dist/api.js +198 -54
  6. package/dist/app.js +288 -602
  7. package/dist/{catalog-runtime-IU3QF4GG.js → catalog-runtime-GCCFYPIK.js} +6 -6
  8. package/dist/chat/agent/request.d.ts +12 -2
  9. package/dist/chat/credentials/context.d.ts +14 -0
  10. package/dist/chat/resource-events/actor.d.ts +23 -0
  11. package/dist/chat/state/turn-session.d.ts +1 -3
  12. package/dist/chat/tasks/execution-stats.d.ts +34 -3
  13. package/dist/chat/tasks/read.d.ts +3 -1
  14. package/dist/{chunk-JNNJZURV.js → chunk-2ECYPYKP.js} +1 -1
  15. package/dist/chunk-3T2JAGRH.js +115 -0
  16. package/dist/{chunk-PB3CXNVL.js → chunk-4V4QIYJH.js} +1 -1
  17. package/dist/{chunk-FEUNPTGV.js → chunk-5GSZWRE2.js} +434 -12
  18. package/dist/{chunk-QS527AV5.js → chunk-6OHTDR4F.js} +1 -1
  19. package/dist/{chunk-TCS76X5D.js → chunk-6SU2DT27.js} +2 -2
  20. package/dist/{chunk-BYW4B4PR.js → chunk-75I3UBIL.js} +2 -2
  21. package/dist/{chunk-ZBSMCXKV.js → chunk-AEQISMMU.js} +7 -6
  22. package/dist/{chunk-KDCHVT25.js → chunk-C2N6MNO4.js} +9 -2
  23. package/dist/{chunk-KFRHRSCJ.js → chunk-CXH25EL4.js} +2 -2
  24. package/dist/{chunk-TDJCLNDH.js → chunk-DW4PMHNW.js} +3 -3
  25. package/dist/{chunk-A7WCHXZV.js → chunk-G52UXKGO.js} +4 -4
  26. package/dist/chunk-GI52BW74.js +207 -0
  27. package/dist/{chunk-ZXNTJJIE.js → chunk-GWQSZT4C.js} +2 -2
  28. package/dist/{chunk-EPBBYMNE.js → chunk-HUO3UTAQ.js} +1 -1
  29. package/dist/{chunk-5MXWHTCK.js → chunk-IIESAYDL.js} +6 -6
  30. package/dist/{chunk-YU5QUF67.js → chunk-J3S57AXY.js} +1 -1
  31. package/dist/{chunk-E5UYAIKJ.js → chunk-J6EJQCHY.js} +17 -19
  32. package/dist/{chunk-5LTJ4ITU.js → chunk-MQ5RYATN.js} +4 -4
  33. package/dist/{chunk-BOLJOV5T.js → chunk-MXTVUV3I.js} +1 -1
  34. package/dist/{chunk-FNLBTB4K.js → chunk-MXVD2BDS.js} +1 -1
  35. package/dist/{chunk-TUUDXEXU.js → chunk-PJW6U46K.js} +12 -15
  36. package/dist/{chunk-SIPKWSXK.js → chunk-QTBKPZDA.js} +3 -3
  37. package/dist/{chunk-77VDLF3Z.js → chunk-RUIXF3YQ.js} +10 -0
  38. package/dist/{chunk-SD3OFRWY.js → chunk-U27DSXKB.js} +6 -6
  39. package/dist/{chunk-C7ZVPO4Z.js → chunk-U7CMWQ7Z.js} +1 -1
  40. package/dist/{chunk-DCLLQGS6.js → chunk-UDBUS533.js} +8 -3
  41. package/dist/{chunk-HIWJWWMT.js → chunk-WQRX57EA.js} +3 -3
  42. package/dist/{chunk-LPVUNO2W.js → chunk-WZH4JV7R.js} +7 -7
  43. package/dist/{chunk-HCIVH3JS.js → chunk-YCTDA7BD.js} +28 -0
  44. package/dist/{chunk-VPZFVJND.js → chunk-YGZ2OLXL.js} +1 -1
  45. package/dist/{chunk-N7WARMC6.js → chunk-ZQCGQMF2.js} +7 -7
  46. package/dist/{chunk-RZIBSCYC.js → chunk-ZYQSPQYR.js} +25 -22
  47. package/dist/cli/chat.js +33 -33
  48. package/dist/cli/check.js +7 -7
  49. package/dist/cli/plugins.js +14 -14
  50. package/dist/cli/snapshot-create.js +10 -10
  51. package/dist/cli/upgrade.js +8 -8
  52. package/dist/db/schema/task-executions.d.ts +23 -2
  53. package/dist/db/schema.d.ts +20 -1
  54. package/dist/{db-UO2IWXGA.js → db-UXPPGHDF.js} +7 -7
  55. package/dist/instrumentation.js +4 -4
  56. package/dist/nitro.js +2 -2
  57. package/dist/{oauth-callback-server-MAQI43LX.js → oauth-callback-server-4ZYMD5UA.js} +22 -21
  58. package/dist/{runner-PIUQEXKE.js → runner-MZSEONRZ.js} +18 -16
  59. package/dist/{sandbox-egress-signals-A5HWIQH4.js → sandbox-egress-signals-EKPAVWQL.js} +2 -2
  60. package/dist/{skills-4ARJADHQ.js → skills-IMVPXSQ7.js} +7 -7
  61. package/dist/spawn-S5LSVOCE.js +38 -0
  62. package/dist/{validation-S3EE3HWL.js → validation-ZKCY2BVR.js} +7 -7
  63. package/dist/version.js +1 -1
  64. package/dist/{work-UARRUAW3.js → work-GG3XDYRX.js} +18 -18
  65. package/dist/{worker-DOCIRVD3.js → worker-23AUELCJ.js} +10 -10
  66. package/migrations/0022_task_execution_status.sql +3 -0
  67. package/migrations/meta/0022_snapshot.json +2186 -0
  68. package/migrations/meta/_journal.json +7 -0
  69. package/package.json +5 -5
  70. package/dist/chunk-ELKW5FIB.js +0 -233
  71. package/dist/spawn-G2AWPMCT.js +0 -38
@@ -0,0 +1,2186 @@
1
+ {
2
+ "id": "108c9745-ff35-44a0-a964-26e2809e2023",
3
+ "prevId": "c4c6f36f-b111-43fc-ac7c-d7175332e4bd",
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_conversation_annotations": {
373
+ "name": "junior_conversation_annotations",
374
+ "schema": "",
375
+ "columns": {
376
+ "conversation_id": {
377
+ "name": "conversation_id",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": true
381
+ },
382
+ "plugin": {
383
+ "name": "plugin",
384
+ "type": "text",
385
+ "primaryKey": false,
386
+ "notNull": true
387
+ },
388
+ "kind": {
389
+ "name": "kind",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": true
393
+ },
394
+ "key": {
395
+ "name": "key",
396
+ "type": "text",
397
+ "primaryKey": false,
398
+ "notNull": true
399
+ },
400
+ "annotation_json": {
401
+ "name": "annotation_json",
402
+ "type": "jsonb",
403
+ "primaryKey": false,
404
+ "notNull": true
405
+ },
406
+ "created_at": {
407
+ "name": "created_at",
408
+ "type": "timestamp with time zone",
409
+ "primaryKey": false,
410
+ "notNull": true
411
+ },
412
+ "updated_at": {
413
+ "name": "updated_at",
414
+ "type": "timestamp with time zone",
415
+ "primaryKey": false,
416
+ "notNull": true
417
+ }
418
+ },
419
+ "indexes": {},
420
+ "foreignKeys": {
421
+ "junior_conversation_annotations_conversation_id_fk": {
422
+ "name": "junior_conversation_annotations_conversation_id_fk",
423
+ "tableFrom": "junior_conversation_annotations",
424
+ "tableTo": "junior_conversations",
425
+ "columnsFrom": [
426
+ "conversation_id"
427
+ ],
428
+ "columnsTo": [
429
+ "conversation_id"
430
+ ],
431
+ "onDelete": "cascade",
432
+ "onUpdate": "no action"
433
+ }
434
+ },
435
+ "compositePrimaryKeys": {
436
+ "junior_conversation_annotations_pk": {
437
+ "name": "junior_conversation_annotations_pk",
438
+ "columns": [
439
+ "conversation_id",
440
+ "plugin",
441
+ "kind",
442
+ "key"
443
+ ]
444
+ }
445
+ },
446
+ "uniqueConstraints": {},
447
+ "policies": {},
448
+ "checkConstraints": {},
449
+ "isRLSEnabled": false
450
+ },
451
+ "public.junior_conversation_bindings": {
452
+ "name": "junior_conversation_bindings",
453
+ "schema": "",
454
+ "columns": {
455
+ "conversation_id": {
456
+ "name": "conversation_id",
457
+ "type": "text",
458
+ "primaryKey": false,
459
+ "notNull": true
460
+ },
461
+ "provider": {
462
+ "name": "provider",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true
466
+ },
467
+ "provider_tenant_id": {
468
+ "name": "provider_tenant_id",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": true,
472
+ "default": "''"
473
+ },
474
+ "provider_destination_id": {
475
+ "name": "provider_destination_id",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": true
479
+ },
480
+ "provider_conversation_id": {
481
+ "name": "provider_conversation_id",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": true
485
+ },
486
+ "created_at": {
487
+ "name": "created_at",
488
+ "type": "timestamp with time zone",
489
+ "primaryKey": false,
490
+ "notNull": true
491
+ }
492
+ },
493
+ "indexes": {
494
+ "junior_conversation_bindings_conversation_idx": {
495
+ "name": "junior_conversation_bindings_conversation_idx",
496
+ "columns": [
497
+ {
498
+ "expression": "conversation_id",
499
+ "isExpression": false,
500
+ "asc": true,
501
+ "nulls": "last"
502
+ }
503
+ ],
504
+ "isUnique": false,
505
+ "concurrently": false,
506
+ "method": "btree",
507
+ "with": {}
508
+ }
509
+ },
510
+ "foreignKeys": {
511
+ "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk": {
512
+ "name": "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk",
513
+ "tableFrom": "junior_conversation_bindings",
514
+ "tableTo": "junior_conversations",
515
+ "columnsFrom": [
516
+ "conversation_id"
517
+ ],
518
+ "columnsTo": [
519
+ "conversation_id"
520
+ ],
521
+ "onDelete": "no action",
522
+ "onUpdate": "no action"
523
+ }
524
+ },
525
+ "compositePrimaryKeys": {
526
+ "junior_conversation_bindings_provider_conversation_pk": {
527
+ "name": "junior_conversation_bindings_provider_conversation_pk",
528
+ "columns": [
529
+ "provider",
530
+ "provider_tenant_id",
531
+ "provider_destination_id",
532
+ "provider_conversation_id"
533
+ ]
534
+ }
535
+ },
536
+ "uniqueConstraints": {},
537
+ "policies": {},
538
+ "checkConstraints": {},
539
+ "isRLSEnabled": false
540
+ },
541
+ "public.junior_conversation_events": {
542
+ "name": "junior_conversation_events",
543
+ "schema": "",
544
+ "columns": {
545
+ "conversation_id": {
546
+ "name": "conversation_id",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": true
550
+ },
551
+ "seq": {
552
+ "name": "seq",
553
+ "type": "integer",
554
+ "primaryKey": false,
555
+ "notNull": true
556
+ },
557
+ "history_version": {
558
+ "name": "history_version",
559
+ "type": "integer",
560
+ "primaryKey": false,
561
+ "notNull": true
562
+ },
563
+ "schema_version": {
564
+ "name": "schema_version",
565
+ "type": "integer",
566
+ "primaryKey": false,
567
+ "notNull": true,
568
+ "default": 1
569
+ },
570
+ "idempotency_key": {
571
+ "name": "idempotency_key",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": false
575
+ },
576
+ "type": {
577
+ "name": "type",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": true
581
+ },
582
+ "payload": {
583
+ "name": "payload",
584
+ "type": "jsonb",
585
+ "primaryKey": false,
586
+ "notNull": true
587
+ },
588
+ "created_at": {
589
+ "name": "created_at",
590
+ "type": "timestamp with time zone",
591
+ "primaryKey": false,
592
+ "notNull": true
593
+ }
594
+ },
595
+ "indexes": {
596
+ "junior_conversation_events_history_version_idx": {
597
+ "name": "junior_conversation_events_history_version_idx",
598
+ "columns": [
599
+ {
600
+ "expression": "conversation_id",
601
+ "isExpression": false,
602
+ "asc": true,
603
+ "nulls": "last"
604
+ },
605
+ {
606
+ "expression": "history_version",
607
+ "isExpression": false,
608
+ "asc": true,
609
+ "nulls": "last"
610
+ },
611
+ {
612
+ "expression": "seq",
613
+ "isExpression": false,
614
+ "asc": true,
615
+ "nulls": "last"
616
+ }
617
+ ],
618
+ "isUnique": false,
619
+ "concurrently": false,
620
+ "method": "btree",
621
+ "with": {}
622
+ },
623
+ "junior_conversation_events_type_idx": {
624
+ "name": "junior_conversation_events_type_idx",
625
+ "columns": [
626
+ {
627
+ "expression": "conversation_id",
628
+ "isExpression": false,
629
+ "asc": true,
630
+ "nulls": "last"
631
+ },
632
+ {
633
+ "expression": "type",
634
+ "isExpression": false,
635
+ "asc": true,
636
+ "nulls": "last"
637
+ },
638
+ {
639
+ "expression": "seq",
640
+ "isExpression": false,
641
+ "asc": true,
642
+ "nulls": "last"
643
+ }
644
+ ],
645
+ "isUnique": false,
646
+ "concurrently": false,
647
+ "method": "btree",
648
+ "with": {}
649
+ },
650
+ "junior_conversation_events_message_search_idx": {
651
+ "name": "junior_conversation_events_message_search_idx",
652
+ "columns": [
653
+ {
654
+ "expression": "to_tsvector('english', \"payload\"->>'text')",
655
+ "asc": true,
656
+ "isExpression": true,
657
+ "nulls": "last"
658
+ }
659
+ ],
660
+ "isUnique": false,
661
+ "where": "\"junior_conversation_events\".\"type\" = 'message'",
662
+ "concurrently": false,
663
+ "method": "gin",
664
+ "with": {}
665
+ },
666
+ "junior_conversation_events_idempotency_idx": {
667
+ "name": "junior_conversation_events_idempotency_idx",
668
+ "columns": [
669
+ {
670
+ "expression": "conversation_id",
671
+ "isExpression": false,
672
+ "asc": true,
673
+ "nulls": "last"
674
+ },
675
+ {
676
+ "expression": "idempotency_key",
677
+ "isExpression": false,
678
+ "asc": true,
679
+ "nulls": "last"
680
+ }
681
+ ],
682
+ "isUnique": true,
683
+ "concurrently": false,
684
+ "method": "btree",
685
+ "with": {}
686
+ }
687
+ },
688
+ "foreignKeys": {
689
+ "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
690
+ "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
691
+ "tableFrom": "junior_conversation_events",
692
+ "tableTo": "junior_conversations",
693
+ "columnsFrom": [
694
+ "conversation_id"
695
+ ],
696
+ "columnsTo": [
697
+ "conversation_id"
698
+ ],
699
+ "onDelete": "no action",
700
+ "onUpdate": "no action"
701
+ }
702
+ },
703
+ "compositePrimaryKeys": {
704
+ "junior_conversation_events_conversation_id_seq_pk": {
705
+ "name": "junior_conversation_events_conversation_id_seq_pk",
706
+ "columns": [
707
+ "conversation_id",
708
+ "seq"
709
+ ]
710
+ }
711
+ },
712
+ "uniqueConstraints": {},
713
+ "policies": {},
714
+ "checkConstraints": {},
715
+ "isRLSEnabled": false
716
+ },
717
+ "public.junior_conversations": {
718
+ "name": "junior_conversations",
719
+ "schema": "",
720
+ "columns": {
721
+ "conversation_id": {
722
+ "name": "conversation_id",
723
+ "type": "text",
724
+ "primaryKey": true,
725
+ "notNull": true
726
+ },
727
+ "schema_version": {
728
+ "name": "schema_version",
729
+ "type": "integer",
730
+ "primaryKey": false,
731
+ "notNull": true,
732
+ "default": 1
733
+ },
734
+ "source": {
735
+ "name": "source",
736
+ "type": "text",
737
+ "primaryKey": false,
738
+ "notNull": false
739
+ },
740
+ "source_json": {
741
+ "name": "source_json",
742
+ "type": "jsonb",
743
+ "primaryKey": false,
744
+ "notNull": false
745
+ },
746
+ "origin_type": {
747
+ "name": "origin_type",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": false
751
+ },
752
+ "origin_id": {
753
+ "name": "origin_id",
754
+ "type": "text",
755
+ "primaryKey": false,
756
+ "notNull": false
757
+ },
758
+ "origin_run_id": {
759
+ "name": "origin_run_id",
760
+ "type": "text",
761
+ "primaryKey": false,
762
+ "notNull": false
763
+ },
764
+ "destination_id": {
765
+ "name": "destination_id",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": false
769
+ },
770
+ "destination_json": {
771
+ "name": "destination_json",
772
+ "type": "jsonb",
773
+ "primaryKey": false,
774
+ "notNull": false
775
+ },
776
+ "actor_identity_id": {
777
+ "name": "actor_identity_id",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": false
781
+ },
782
+ "creator_identity_id": {
783
+ "name": "creator_identity_id",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": false
787
+ },
788
+ "credential_subject_identity_id": {
789
+ "name": "credential_subject_identity_id",
790
+ "type": "text",
791
+ "primaryKey": false,
792
+ "notNull": false
793
+ },
794
+ "actor_json": {
795
+ "name": "actor_json",
796
+ "type": "jsonb",
797
+ "primaryKey": false,
798
+ "notNull": false
799
+ },
800
+ "channel_name": {
801
+ "name": "channel_name",
802
+ "type": "text",
803
+ "primaryKey": false,
804
+ "notNull": false
805
+ },
806
+ "title": {
807
+ "name": "title",
808
+ "type": "text",
809
+ "primaryKey": false,
810
+ "notNull": false
811
+ },
812
+ "created_at": {
813
+ "name": "created_at",
814
+ "type": "timestamp with time zone",
815
+ "primaryKey": false,
816
+ "notNull": true
817
+ },
818
+ "last_activity_at": {
819
+ "name": "last_activity_at",
820
+ "type": "timestamp with time zone",
821
+ "primaryKey": false,
822
+ "notNull": true
823
+ },
824
+ "updated_at": {
825
+ "name": "updated_at",
826
+ "type": "timestamp with time zone",
827
+ "primaryKey": false,
828
+ "notNull": true
829
+ },
830
+ "execution_updated_at": {
831
+ "name": "execution_updated_at",
832
+ "type": "timestamp with time zone",
833
+ "primaryKey": false,
834
+ "notNull": false
835
+ },
836
+ "execution_status": {
837
+ "name": "execution_status",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": true
841
+ },
842
+ "run_id": {
843
+ "name": "run_id",
844
+ "type": "text",
845
+ "primaryKey": false,
846
+ "notNull": false
847
+ },
848
+ "last_checkpoint_at": {
849
+ "name": "last_checkpoint_at",
850
+ "type": "timestamp with time zone",
851
+ "primaryKey": false,
852
+ "notNull": false
853
+ },
854
+ "last_enqueued_at": {
855
+ "name": "last_enqueued_at",
856
+ "type": "timestamp with time zone",
857
+ "primaryKey": false,
858
+ "notNull": false
859
+ },
860
+ "parent_conversation_id": {
861
+ "name": "parent_conversation_id",
862
+ "type": "text",
863
+ "primaryKey": false,
864
+ "notNull": false
865
+ },
866
+ "root_conversation_id": {
867
+ "name": "root_conversation_id",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": false
871
+ },
872
+ "transcript_purged_at": {
873
+ "name": "transcript_purged_at",
874
+ "type": "timestamp with time zone",
875
+ "primaryKey": false,
876
+ "notNull": false
877
+ },
878
+ "duration_ms": {
879
+ "name": "duration_ms",
880
+ "type": "integer",
881
+ "primaryKey": false,
882
+ "notNull": true,
883
+ "default": 0
884
+ },
885
+ "usage_json": {
886
+ "name": "usage_json",
887
+ "type": "jsonb",
888
+ "primaryKey": false,
889
+ "notNull": false
890
+ },
891
+ "execution_duration_ms": {
892
+ "name": "execution_duration_ms",
893
+ "type": "integer",
894
+ "primaryKey": false,
895
+ "notNull": true,
896
+ "default": 0
897
+ },
898
+ "execution_usage_json": {
899
+ "name": "execution_usage_json",
900
+ "type": "jsonb",
901
+ "primaryKey": false,
902
+ "notNull": false
903
+ },
904
+ "metric_run_id": {
905
+ "name": "metric_run_id",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": false
909
+ },
910
+ "archived_at": {
911
+ "name": "archived_at",
912
+ "type": "timestamp with time zone",
913
+ "primaryKey": false,
914
+ "notNull": false
915
+ }
916
+ },
917
+ "indexes": {
918
+ "junior_conversations_last_activity_idx": {
919
+ "name": "junior_conversations_last_activity_idx",
920
+ "columns": [
921
+ {
922
+ "expression": "last_activity_at",
923
+ "isExpression": false,
924
+ "asc": false,
925
+ "nulls": "last"
926
+ },
927
+ {
928
+ "expression": "conversation_id",
929
+ "isExpression": false,
930
+ "asc": true,
931
+ "nulls": "last"
932
+ }
933
+ ],
934
+ "isUnique": false,
935
+ "concurrently": false,
936
+ "method": "btree",
937
+ "with": {}
938
+ },
939
+ "junior_conversations_active_idx": {
940
+ "name": "junior_conversations_active_idx",
941
+ "columns": [
942
+ {
943
+ "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
944
+ "asc": true,
945
+ "isExpression": true,
946
+ "nulls": "last"
947
+ },
948
+ {
949
+ "expression": "conversation_id",
950
+ "isExpression": false,
951
+ "asc": true,
952
+ "nulls": "last"
953
+ }
954
+ ],
955
+ "isUnique": false,
956
+ "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
957
+ "concurrently": false,
958
+ "method": "btree",
959
+ "with": {}
960
+ },
961
+ "junior_conversations_destination_activity_idx": {
962
+ "name": "junior_conversations_destination_activity_idx",
963
+ "columns": [
964
+ {
965
+ "expression": "destination_id",
966
+ "isExpression": false,
967
+ "asc": true,
968
+ "nulls": "last"
969
+ },
970
+ {
971
+ "expression": "last_activity_at",
972
+ "isExpression": false,
973
+ "asc": false,
974
+ "nulls": "last"
975
+ }
976
+ ],
977
+ "isUnique": false,
978
+ "concurrently": false,
979
+ "method": "btree",
980
+ "with": {}
981
+ },
982
+ "junior_conversations_actor_activity_idx": {
983
+ "name": "junior_conversations_actor_activity_idx",
984
+ "columns": [
985
+ {
986
+ "expression": "actor_identity_id",
987
+ "isExpression": false,
988
+ "asc": true,
989
+ "nulls": "last"
990
+ },
991
+ {
992
+ "expression": "last_activity_at",
993
+ "isExpression": false,
994
+ "asc": false,
995
+ "nulls": "last"
996
+ }
997
+ ],
998
+ "isUnique": false,
999
+ "concurrently": false,
1000
+ "method": "btree",
1001
+ "with": {}
1002
+ },
1003
+ "junior_conversations_origin_idx": {
1004
+ "name": "junior_conversations_origin_idx",
1005
+ "columns": [
1006
+ {
1007
+ "expression": "origin_type",
1008
+ "isExpression": false,
1009
+ "asc": true,
1010
+ "nulls": "last"
1011
+ },
1012
+ {
1013
+ "expression": "origin_id",
1014
+ "isExpression": false,
1015
+ "asc": true,
1016
+ "nulls": "last"
1017
+ },
1018
+ {
1019
+ "expression": "last_activity_at",
1020
+ "isExpression": false,
1021
+ "asc": false,
1022
+ "nulls": "last"
1023
+ }
1024
+ ],
1025
+ "isUnique": false,
1026
+ "concurrently": false,
1027
+ "method": "btree",
1028
+ "with": {}
1029
+ },
1030
+ "junior_conversations_parent_idx": {
1031
+ "name": "junior_conversations_parent_idx",
1032
+ "columns": [
1033
+ {
1034
+ "expression": "parent_conversation_id",
1035
+ "isExpression": false,
1036
+ "asc": true,
1037
+ "nulls": "last"
1038
+ }
1039
+ ],
1040
+ "isUnique": false,
1041
+ "concurrently": false,
1042
+ "method": "btree",
1043
+ "with": {}
1044
+ },
1045
+ "junior_conversations_root_idx": {
1046
+ "name": "junior_conversations_root_idx",
1047
+ "columns": [
1048
+ {
1049
+ "expression": "root_conversation_id",
1050
+ "isExpression": false,
1051
+ "asc": true,
1052
+ "nulls": "last"
1053
+ }
1054
+ ],
1055
+ "isUnique": false,
1056
+ "concurrently": false,
1057
+ "method": "btree",
1058
+ "with": {}
1059
+ }
1060
+ },
1061
+ "foreignKeys": {
1062
+ "junior_conversations_destination_id_junior_destinations_id_fk": {
1063
+ "name": "junior_conversations_destination_id_junior_destinations_id_fk",
1064
+ "tableFrom": "junior_conversations",
1065
+ "tableTo": "junior_destinations",
1066
+ "columnsFrom": [
1067
+ "destination_id"
1068
+ ],
1069
+ "columnsTo": [
1070
+ "id"
1071
+ ],
1072
+ "onDelete": "no action",
1073
+ "onUpdate": "no action"
1074
+ },
1075
+ "junior_conversations_actor_identity_id_junior_identities_id_fk": {
1076
+ "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
1077
+ "tableFrom": "junior_conversations",
1078
+ "tableTo": "junior_identities",
1079
+ "columnsFrom": [
1080
+ "actor_identity_id"
1081
+ ],
1082
+ "columnsTo": [
1083
+ "id"
1084
+ ],
1085
+ "onDelete": "no action",
1086
+ "onUpdate": "no action"
1087
+ },
1088
+ "junior_conversations_creator_identity_id_junior_identities_id_fk": {
1089
+ "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
1090
+ "tableFrom": "junior_conversations",
1091
+ "tableTo": "junior_identities",
1092
+ "columnsFrom": [
1093
+ "creator_identity_id"
1094
+ ],
1095
+ "columnsTo": [
1096
+ "id"
1097
+ ],
1098
+ "onDelete": "no action",
1099
+ "onUpdate": "no action"
1100
+ },
1101
+ "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
1102
+ "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
1103
+ "tableFrom": "junior_conversations",
1104
+ "tableTo": "junior_identities",
1105
+ "columnsFrom": [
1106
+ "credential_subject_identity_id"
1107
+ ],
1108
+ "columnsTo": [
1109
+ "id"
1110
+ ],
1111
+ "onDelete": "no action",
1112
+ "onUpdate": "no action"
1113
+ },
1114
+ "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
1115
+ "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
1116
+ "tableFrom": "junior_conversations",
1117
+ "tableTo": "junior_conversations",
1118
+ "columnsFrom": [
1119
+ "parent_conversation_id"
1120
+ ],
1121
+ "columnsTo": [
1122
+ "conversation_id"
1123
+ ],
1124
+ "onDelete": "no action",
1125
+ "onUpdate": "no action"
1126
+ },
1127
+ "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
1128
+ "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
1129
+ "tableFrom": "junior_conversations",
1130
+ "tableTo": "junior_conversations",
1131
+ "columnsFrom": [
1132
+ "root_conversation_id"
1133
+ ],
1134
+ "columnsTo": [
1135
+ "conversation_id"
1136
+ ],
1137
+ "onDelete": "no action",
1138
+ "onUpdate": "no action"
1139
+ }
1140
+ },
1141
+ "compositePrimaryKeys": {},
1142
+ "uniqueConstraints": {},
1143
+ "policies": {},
1144
+ "checkConstraints": {},
1145
+ "isRLSEnabled": false
1146
+ },
1147
+ "public.junior_destinations": {
1148
+ "name": "junior_destinations",
1149
+ "schema": "",
1150
+ "columns": {
1151
+ "id": {
1152
+ "name": "id",
1153
+ "type": "text",
1154
+ "primaryKey": true,
1155
+ "notNull": true
1156
+ },
1157
+ "provider": {
1158
+ "name": "provider",
1159
+ "type": "text",
1160
+ "primaryKey": false,
1161
+ "notNull": true
1162
+ },
1163
+ "provider_tenant_id": {
1164
+ "name": "provider_tenant_id",
1165
+ "type": "text",
1166
+ "primaryKey": false,
1167
+ "notNull": true,
1168
+ "default": "''"
1169
+ },
1170
+ "provider_destination_id": {
1171
+ "name": "provider_destination_id",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": true
1175
+ },
1176
+ "kind": {
1177
+ "name": "kind",
1178
+ "type": "text",
1179
+ "primaryKey": false,
1180
+ "notNull": true
1181
+ },
1182
+ "parent_destination_id": {
1183
+ "name": "parent_destination_id",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": false
1187
+ },
1188
+ "display_name": {
1189
+ "name": "display_name",
1190
+ "type": "text",
1191
+ "primaryKey": false,
1192
+ "notNull": false
1193
+ },
1194
+ "visibility": {
1195
+ "name": "visibility",
1196
+ "type": "text",
1197
+ "primaryKey": false,
1198
+ "notNull": true,
1199
+ "default": "'unknown'"
1200
+ },
1201
+ "metadata_json": {
1202
+ "name": "metadata_json",
1203
+ "type": "jsonb",
1204
+ "primaryKey": false,
1205
+ "notNull": false
1206
+ },
1207
+ "created_at": {
1208
+ "name": "created_at",
1209
+ "type": "timestamp with time zone",
1210
+ "primaryKey": false,
1211
+ "notNull": true
1212
+ },
1213
+ "updated_at": {
1214
+ "name": "updated_at",
1215
+ "type": "timestamp with time zone",
1216
+ "primaryKey": false,
1217
+ "notNull": true
1218
+ }
1219
+ },
1220
+ "indexes": {
1221
+ "junior_destinations_provider_destination_uidx": {
1222
+ "name": "junior_destinations_provider_destination_uidx",
1223
+ "columns": [
1224
+ {
1225
+ "expression": "provider",
1226
+ "isExpression": false,
1227
+ "asc": true,
1228
+ "nulls": "last"
1229
+ },
1230
+ {
1231
+ "expression": "provider_tenant_id",
1232
+ "isExpression": false,
1233
+ "asc": true,
1234
+ "nulls": "last"
1235
+ },
1236
+ {
1237
+ "expression": "provider_destination_id",
1238
+ "isExpression": false,
1239
+ "asc": true,
1240
+ "nulls": "last"
1241
+ }
1242
+ ],
1243
+ "isUnique": true,
1244
+ "concurrently": false,
1245
+ "method": "btree",
1246
+ "with": {}
1247
+ },
1248
+ "junior_destinations_provider_kind_idx": {
1249
+ "name": "junior_destinations_provider_kind_idx",
1250
+ "columns": [
1251
+ {
1252
+ "expression": "provider",
1253
+ "isExpression": false,
1254
+ "asc": true,
1255
+ "nulls": "last"
1256
+ },
1257
+ {
1258
+ "expression": "kind",
1259
+ "isExpression": false,
1260
+ "asc": true,
1261
+ "nulls": "last"
1262
+ }
1263
+ ],
1264
+ "isUnique": false,
1265
+ "concurrently": false,
1266
+ "method": "btree",
1267
+ "with": {}
1268
+ }
1269
+ },
1270
+ "foreignKeys": {},
1271
+ "compositePrimaryKeys": {},
1272
+ "uniqueConstraints": {},
1273
+ "policies": {},
1274
+ "checkConstraints": {},
1275
+ "isRLSEnabled": false
1276
+ },
1277
+ "public.junior_event_tasks": {
1278
+ "name": "junior_event_tasks",
1279
+ "schema": "",
1280
+ "columns": {
1281
+ "id": {
1282
+ "name": "id",
1283
+ "type": "text",
1284
+ "primaryKey": true,
1285
+ "notNull": true
1286
+ },
1287
+ "team_id": {
1288
+ "name": "team_id",
1289
+ "type": "text",
1290
+ "primaryKey": false,
1291
+ "notNull": true
1292
+ },
1293
+ "namespace": {
1294
+ "name": "namespace",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": true
1298
+ },
1299
+ "identifier": {
1300
+ "name": "identifier",
1301
+ "type": "text",
1302
+ "primaryKey": false,
1303
+ "notNull": true
1304
+ },
1305
+ "created_at_ms": {
1306
+ "name": "created_at_ms",
1307
+ "type": "bigint",
1308
+ "primaryKey": false,
1309
+ "notNull": true
1310
+ },
1311
+ "task_json": {
1312
+ "name": "task_json",
1313
+ "type": "jsonb",
1314
+ "primaryKey": false,
1315
+ "notNull": true
1316
+ }
1317
+ },
1318
+ "indexes": {
1319
+ "junior_event_tasks_team_idx": {
1320
+ "name": "junior_event_tasks_team_idx",
1321
+ "columns": [
1322
+ {
1323
+ "expression": "team_id",
1324
+ "isExpression": false,
1325
+ "asc": true,
1326
+ "nulls": "last"
1327
+ },
1328
+ {
1329
+ "expression": "created_at_ms",
1330
+ "isExpression": false,
1331
+ "asc": true,
1332
+ "nulls": "last"
1333
+ },
1334
+ {
1335
+ "expression": "id",
1336
+ "isExpression": false,
1337
+ "asc": true,
1338
+ "nulls": "last"
1339
+ }
1340
+ ],
1341
+ "isUnique": false,
1342
+ "concurrently": false,
1343
+ "method": "btree",
1344
+ "with": {}
1345
+ },
1346
+ "junior_event_tasks_match_idx": {
1347
+ "name": "junior_event_tasks_match_idx",
1348
+ "columns": [
1349
+ {
1350
+ "expression": "namespace",
1351
+ "isExpression": false,
1352
+ "asc": true,
1353
+ "nulls": "last"
1354
+ },
1355
+ {
1356
+ "expression": "identifier",
1357
+ "isExpression": false,
1358
+ "asc": true,
1359
+ "nulls": "last"
1360
+ },
1361
+ {
1362
+ "expression": "created_at_ms",
1363
+ "isExpression": false,
1364
+ "asc": true,
1365
+ "nulls": "last"
1366
+ },
1367
+ {
1368
+ "expression": "id",
1369
+ "isExpression": false,
1370
+ "asc": true,
1371
+ "nulls": "last"
1372
+ }
1373
+ ],
1374
+ "isUnique": false,
1375
+ "concurrently": false,
1376
+ "method": "btree",
1377
+ "with": {}
1378
+ }
1379
+ },
1380
+ "foreignKeys": {},
1381
+ "compositePrimaryKeys": {},
1382
+ "uniqueConstraints": {},
1383
+ "policies": {},
1384
+ "checkConstraints": {},
1385
+ "isRLSEnabled": false
1386
+ },
1387
+ "public.junior_identities": {
1388
+ "name": "junior_identities",
1389
+ "schema": "",
1390
+ "columns": {
1391
+ "id": {
1392
+ "name": "id",
1393
+ "type": "text",
1394
+ "primaryKey": true,
1395
+ "notNull": true
1396
+ },
1397
+ "kind": {
1398
+ "name": "kind",
1399
+ "type": "text",
1400
+ "primaryKey": false,
1401
+ "notNull": true
1402
+ },
1403
+ "provider": {
1404
+ "name": "provider",
1405
+ "type": "text",
1406
+ "primaryKey": false,
1407
+ "notNull": true
1408
+ },
1409
+ "provider_tenant_id": {
1410
+ "name": "provider_tenant_id",
1411
+ "type": "text",
1412
+ "primaryKey": false,
1413
+ "notNull": true,
1414
+ "default": "''"
1415
+ },
1416
+ "provider_subject_id": {
1417
+ "name": "provider_subject_id",
1418
+ "type": "text",
1419
+ "primaryKey": false,
1420
+ "notNull": true
1421
+ },
1422
+ "display_name": {
1423
+ "name": "display_name",
1424
+ "type": "text",
1425
+ "primaryKey": false,
1426
+ "notNull": false
1427
+ },
1428
+ "handle": {
1429
+ "name": "handle",
1430
+ "type": "text",
1431
+ "primaryKey": false,
1432
+ "notNull": false
1433
+ },
1434
+ "email": {
1435
+ "name": "email",
1436
+ "type": "text",
1437
+ "primaryKey": false,
1438
+ "notNull": false
1439
+ },
1440
+ "avatar_url": {
1441
+ "name": "avatar_url",
1442
+ "type": "text",
1443
+ "primaryKey": false,
1444
+ "notNull": false
1445
+ },
1446
+ "metadata_json": {
1447
+ "name": "metadata_json",
1448
+ "type": "jsonb",
1449
+ "primaryKey": false,
1450
+ "notNull": false
1451
+ },
1452
+ "created_at": {
1453
+ "name": "created_at",
1454
+ "type": "timestamp with time zone",
1455
+ "primaryKey": false,
1456
+ "notNull": true
1457
+ },
1458
+ "updated_at": {
1459
+ "name": "updated_at",
1460
+ "type": "timestamp with time zone",
1461
+ "primaryKey": false,
1462
+ "notNull": true
1463
+ },
1464
+ "user_id": {
1465
+ "name": "user_id",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": false
1469
+ },
1470
+ "email_normalized": {
1471
+ "name": "email_normalized",
1472
+ "type": "text",
1473
+ "primaryKey": false,
1474
+ "notNull": false
1475
+ },
1476
+ "email_verified": {
1477
+ "name": "email_verified",
1478
+ "type": "boolean",
1479
+ "primaryKey": false,
1480
+ "notNull": true,
1481
+ "default": false
1482
+ }
1483
+ },
1484
+ "indexes": {
1485
+ "junior_identities_provider_subject_uidx": {
1486
+ "name": "junior_identities_provider_subject_uidx",
1487
+ "columns": [
1488
+ {
1489
+ "expression": "provider",
1490
+ "isExpression": false,
1491
+ "asc": true,
1492
+ "nulls": "last"
1493
+ },
1494
+ {
1495
+ "expression": "provider_tenant_id",
1496
+ "isExpression": false,
1497
+ "asc": true,
1498
+ "nulls": "last"
1499
+ },
1500
+ {
1501
+ "expression": "provider_subject_id",
1502
+ "isExpression": false,
1503
+ "asc": true,
1504
+ "nulls": "last"
1505
+ }
1506
+ ],
1507
+ "isUnique": true,
1508
+ "concurrently": false,
1509
+ "method": "btree",
1510
+ "with": {}
1511
+ },
1512
+ "junior_identities_user_idx": {
1513
+ "name": "junior_identities_user_idx",
1514
+ "columns": [
1515
+ {
1516
+ "expression": "user_id",
1517
+ "isExpression": false,
1518
+ "asc": true,
1519
+ "nulls": "last"
1520
+ }
1521
+ ],
1522
+ "isUnique": false,
1523
+ "concurrently": false,
1524
+ "method": "btree",
1525
+ "with": {}
1526
+ },
1527
+ "junior_identities_verified_email_idx": {
1528
+ "name": "junior_identities_verified_email_idx",
1529
+ "columns": [
1530
+ {
1531
+ "expression": "email_normalized",
1532
+ "isExpression": false,
1533
+ "asc": true,
1534
+ "nulls": "last"
1535
+ }
1536
+ ],
1537
+ "isUnique": false,
1538
+ "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
1539
+ "concurrently": false,
1540
+ "method": "btree",
1541
+ "with": {}
1542
+ },
1543
+ "junior_identities_kind_provider_idx": {
1544
+ "name": "junior_identities_kind_provider_idx",
1545
+ "columns": [
1546
+ {
1547
+ "expression": "kind",
1548
+ "isExpression": false,
1549
+ "asc": true,
1550
+ "nulls": "last"
1551
+ },
1552
+ {
1553
+ "expression": "provider",
1554
+ "isExpression": false,
1555
+ "asc": true,
1556
+ "nulls": "last"
1557
+ }
1558
+ ],
1559
+ "isUnique": false,
1560
+ "concurrently": false,
1561
+ "method": "btree",
1562
+ "with": {}
1563
+ }
1564
+ },
1565
+ "foreignKeys": {
1566
+ "junior_identities_user_id_junior_users_id_fk": {
1567
+ "name": "junior_identities_user_id_junior_users_id_fk",
1568
+ "tableFrom": "junior_identities",
1569
+ "tableTo": "junior_users",
1570
+ "columnsFrom": [
1571
+ "user_id"
1572
+ ],
1573
+ "columnsTo": [
1574
+ "id"
1575
+ ],
1576
+ "onDelete": "no action",
1577
+ "onUpdate": "no action"
1578
+ }
1579
+ },
1580
+ "compositePrimaryKeys": {},
1581
+ "uniqueConstraints": {},
1582
+ "policies": {},
1583
+ "checkConstraints": {},
1584
+ "isRLSEnabled": false
1585
+ },
1586
+ "public.junior_scheduler_runs": {
1587
+ "name": "junior_scheduler_runs",
1588
+ "schema": "",
1589
+ "columns": {
1590
+ "id": {
1591
+ "name": "id",
1592
+ "type": "text",
1593
+ "primaryKey": true,
1594
+ "notNull": true
1595
+ },
1596
+ "task_id": {
1597
+ "name": "task_id",
1598
+ "type": "text",
1599
+ "primaryKey": false,
1600
+ "notNull": true
1601
+ },
1602
+ "status": {
1603
+ "name": "status",
1604
+ "type": "text",
1605
+ "primaryKey": false,
1606
+ "notNull": true
1607
+ },
1608
+ "scheduled_for_ms": {
1609
+ "name": "scheduled_for_ms",
1610
+ "type": "bigint",
1611
+ "primaryKey": false,
1612
+ "notNull": true
1613
+ },
1614
+ "record": {
1615
+ "name": "record",
1616
+ "type": "jsonb",
1617
+ "primaryKey": false,
1618
+ "notNull": true
1619
+ }
1620
+ },
1621
+ "indexes": {
1622
+ "junior_scheduler_runs_task_status_idx": {
1623
+ "name": "junior_scheduler_runs_task_status_idx",
1624
+ "columns": [
1625
+ {
1626
+ "expression": "task_id",
1627
+ "isExpression": false,
1628
+ "asc": true,
1629
+ "nulls": "last"
1630
+ },
1631
+ {
1632
+ "expression": "status",
1633
+ "isExpression": false,
1634
+ "asc": true,
1635
+ "nulls": "last"
1636
+ },
1637
+ {
1638
+ "expression": "scheduled_for_ms",
1639
+ "isExpression": false,
1640
+ "asc": true,
1641
+ "nulls": "last"
1642
+ }
1643
+ ],
1644
+ "isUnique": false,
1645
+ "concurrently": false,
1646
+ "method": "btree",
1647
+ "with": {}
1648
+ },
1649
+ "junior_scheduler_runs_status_idx": {
1650
+ "name": "junior_scheduler_runs_status_idx",
1651
+ "columns": [
1652
+ {
1653
+ "expression": "status",
1654
+ "isExpression": false,
1655
+ "asc": true,
1656
+ "nulls": "last"
1657
+ },
1658
+ {
1659
+ "expression": "scheduled_for_ms",
1660
+ "isExpression": false,
1661
+ "asc": true,
1662
+ "nulls": "last"
1663
+ }
1664
+ ],
1665
+ "isUnique": false,
1666
+ "concurrently": false,
1667
+ "method": "btree",
1668
+ "with": {}
1669
+ }
1670
+ },
1671
+ "foreignKeys": {},
1672
+ "compositePrimaryKeys": {},
1673
+ "uniqueConstraints": {},
1674
+ "policies": {},
1675
+ "checkConstraints": {},
1676
+ "isRLSEnabled": false
1677
+ },
1678
+ "public.junior_scheduler_tasks": {
1679
+ "name": "junior_scheduler_tasks",
1680
+ "schema": "",
1681
+ "columns": {
1682
+ "id": {
1683
+ "name": "id",
1684
+ "type": "text",
1685
+ "primaryKey": true,
1686
+ "notNull": true
1687
+ },
1688
+ "team_id": {
1689
+ "name": "team_id",
1690
+ "type": "text",
1691
+ "primaryKey": false,
1692
+ "notNull": true
1693
+ },
1694
+ "creator_slack_user_id": {
1695
+ "name": "creator_slack_user_id",
1696
+ "type": "text",
1697
+ "primaryKey": false,
1698
+ "notNull": false
1699
+ },
1700
+ "creator_identity_id": {
1701
+ "name": "creator_identity_id",
1702
+ "type": "text",
1703
+ "primaryKey": false,
1704
+ "notNull": false
1705
+ },
1706
+ "status": {
1707
+ "name": "status",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": true
1711
+ },
1712
+ "next_run_at_ms": {
1713
+ "name": "next_run_at_ms",
1714
+ "type": "bigint",
1715
+ "primaryKey": false,
1716
+ "notNull": false
1717
+ },
1718
+ "run_now_at_ms": {
1719
+ "name": "run_now_at_ms",
1720
+ "type": "bigint",
1721
+ "primaryKey": false,
1722
+ "notNull": false
1723
+ },
1724
+ "created_at_ms": {
1725
+ "name": "created_at_ms",
1726
+ "type": "bigint",
1727
+ "primaryKey": false,
1728
+ "notNull": true
1729
+ },
1730
+ "record": {
1731
+ "name": "record",
1732
+ "type": "jsonb",
1733
+ "primaryKey": false,
1734
+ "notNull": true
1735
+ }
1736
+ },
1737
+ "indexes": {
1738
+ "junior_scheduler_tasks_creator_idx": {
1739
+ "name": "junior_scheduler_tasks_creator_idx",
1740
+ "columns": [
1741
+ {
1742
+ "expression": "team_id",
1743
+ "isExpression": false,
1744
+ "asc": true,
1745
+ "nulls": "last"
1746
+ },
1747
+ {
1748
+ "expression": "creator_slack_user_id",
1749
+ "isExpression": false,
1750
+ "asc": true,
1751
+ "nulls": "last"
1752
+ },
1753
+ {
1754
+ "expression": "created_at_ms",
1755
+ "isExpression": false,
1756
+ "asc": true,
1757
+ "nulls": "last"
1758
+ },
1759
+ {
1760
+ "expression": "id",
1761
+ "isExpression": false,
1762
+ "asc": true,
1763
+ "nulls": "last"
1764
+ }
1765
+ ],
1766
+ "isUnique": false,
1767
+ "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
1768
+ "concurrently": false,
1769
+ "method": "btree",
1770
+ "with": {}
1771
+ },
1772
+ "junior_scheduler_tasks_creator_identity_idx": {
1773
+ "name": "junior_scheduler_tasks_creator_identity_idx",
1774
+ "columns": [
1775
+ {
1776
+ "expression": "creator_identity_id",
1777
+ "isExpression": false,
1778
+ "asc": true,
1779
+ "nulls": "last"
1780
+ },
1781
+ {
1782
+ "expression": "created_at_ms",
1783
+ "isExpression": false,
1784
+ "asc": true,
1785
+ "nulls": "last"
1786
+ },
1787
+ {
1788
+ "expression": "id",
1789
+ "isExpression": false,
1790
+ "asc": true,
1791
+ "nulls": "last"
1792
+ }
1793
+ ],
1794
+ "isUnique": false,
1795
+ "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted' AND \"junior_scheduler_tasks\".\"creator_identity_id\" IS NOT NULL",
1796
+ "concurrently": false,
1797
+ "method": "btree",
1798
+ "with": {}
1799
+ },
1800
+ "junior_scheduler_tasks_team_status_idx": {
1801
+ "name": "junior_scheduler_tasks_team_status_idx",
1802
+ "columns": [
1803
+ {
1804
+ "expression": "team_id",
1805
+ "isExpression": false,
1806
+ "asc": true,
1807
+ "nulls": "last"
1808
+ },
1809
+ {
1810
+ "expression": "created_at_ms",
1811
+ "isExpression": false,
1812
+ "asc": true,
1813
+ "nulls": "last"
1814
+ },
1815
+ {
1816
+ "expression": "id",
1817
+ "isExpression": false,
1818
+ "asc": true,
1819
+ "nulls": "last"
1820
+ }
1821
+ ],
1822
+ "isUnique": false,
1823
+ "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
1824
+ "concurrently": false,
1825
+ "method": "btree",
1826
+ "with": {}
1827
+ },
1828
+ "junior_scheduler_tasks_run_now_due_idx": {
1829
+ "name": "junior_scheduler_tasks_run_now_due_idx",
1830
+ "columns": [
1831
+ {
1832
+ "expression": "run_now_at_ms",
1833
+ "isExpression": false,
1834
+ "asc": true,
1835
+ "nulls": "last"
1836
+ },
1837
+ {
1838
+ "expression": "created_at_ms",
1839
+ "isExpression": false,
1840
+ "asc": true,
1841
+ "nulls": "last"
1842
+ },
1843
+ {
1844
+ "expression": "id",
1845
+ "isExpression": false,
1846
+ "asc": true,
1847
+ "nulls": "last"
1848
+ }
1849
+ ],
1850
+ "isUnique": false,
1851
+ "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"run_now_at_ms\" IS NOT NULL",
1852
+ "concurrently": false,
1853
+ "method": "btree",
1854
+ "with": {}
1855
+ },
1856
+ "junior_scheduler_tasks_next_run_due_idx": {
1857
+ "name": "junior_scheduler_tasks_next_run_due_idx",
1858
+ "columns": [
1859
+ {
1860
+ "expression": "next_run_at_ms",
1861
+ "isExpression": false,
1862
+ "asc": true,
1863
+ "nulls": "last"
1864
+ },
1865
+ {
1866
+ "expression": "created_at_ms",
1867
+ "isExpression": false,
1868
+ "asc": true,
1869
+ "nulls": "last"
1870
+ },
1871
+ {
1872
+ "expression": "id",
1873
+ "isExpression": false,
1874
+ "asc": true,
1875
+ "nulls": "last"
1876
+ }
1877
+ ],
1878
+ "isUnique": false,
1879
+ "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"next_run_at_ms\" IS NOT NULL",
1880
+ "concurrently": false,
1881
+ "method": "btree",
1882
+ "with": {}
1883
+ }
1884
+ },
1885
+ "foreignKeys": {},
1886
+ "compositePrimaryKeys": {},
1887
+ "uniqueConstraints": {},
1888
+ "policies": {},
1889
+ "checkConstraints": {},
1890
+ "isRLSEnabled": false
1891
+ },
1892
+ "public.junior_stats": {
1893
+ "name": "junior_stats",
1894
+ "schema": "",
1895
+ "columns": {
1896
+ "date": {
1897
+ "name": "date",
1898
+ "type": "date",
1899
+ "primaryKey": false,
1900
+ "notNull": true
1901
+ },
1902
+ "namespace": {
1903
+ "name": "namespace",
1904
+ "type": "text",
1905
+ "primaryKey": false,
1906
+ "notNull": true
1907
+ },
1908
+ "metric": {
1909
+ "name": "metric",
1910
+ "type": "text",
1911
+ "primaryKey": false,
1912
+ "notNull": true
1913
+ },
1914
+ "name": {
1915
+ "name": "name",
1916
+ "type": "text",
1917
+ "primaryKey": false,
1918
+ "notNull": true
1919
+ },
1920
+ "count": {
1921
+ "name": "count",
1922
+ "type": "integer",
1923
+ "primaryKey": false,
1924
+ "notNull": true,
1925
+ "default": 0
1926
+ }
1927
+ },
1928
+ "indexes": {},
1929
+ "foreignKeys": {},
1930
+ "compositePrimaryKeys": {
1931
+ "junior_stats_date_namespace_metric_name_pk": {
1932
+ "name": "junior_stats_date_namespace_metric_name_pk",
1933
+ "columns": [
1934
+ "date",
1935
+ "namespace",
1936
+ "metric",
1937
+ "name"
1938
+ ]
1939
+ }
1940
+ },
1941
+ "uniqueConstraints": {},
1942
+ "policies": {},
1943
+ "checkConstraints": {},
1944
+ "isRLSEnabled": false
1945
+ },
1946
+ "public.junior_task_executions": {
1947
+ "name": "junior_task_executions",
1948
+ "schema": "",
1949
+ "columns": {
1950
+ "execution_id": {
1951
+ "name": "execution_id",
1952
+ "type": "text",
1953
+ "primaryKey": false,
1954
+ "notNull": true
1955
+ },
1956
+ "kind": {
1957
+ "name": "kind",
1958
+ "type": "text",
1959
+ "primaryKey": false,
1960
+ "notNull": true
1961
+ },
1962
+ "namespace": {
1963
+ "name": "namespace",
1964
+ "type": "text",
1965
+ "primaryKey": false,
1966
+ "notNull": true
1967
+ },
1968
+ "task_id": {
1969
+ "name": "task_id",
1970
+ "type": "text",
1971
+ "primaryKey": false,
1972
+ "notNull": true
1973
+ },
1974
+ "conversation_id": {
1975
+ "name": "conversation_id",
1976
+ "type": "text",
1977
+ "primaryKey": false,
1978
+ "notNull": false
1979
+ },
1980
+ "executed_at_ms": {
1981
+ "name": "executed_at_ms",
1982
+ "type": "bigint",
1983
+ "primaryKey": false,
1984
+ "notNull": true
1985
+ },
1986
+ "status": {
1987
+ "name": "status",
1988
+ "type": "text",
1989
+ "primaryKey": false,
1990
+ "notNull": true
1991
+ }
1992
+ },
1993
+ "indexes": {
1994
+ "junior_task_executions_task_time_idx": {
1995
+ "name": "junior_task_executions_task_time_idx",
1996
+ "columns": [
1997
+ {
1998
+ "expression": "kind",
1999
+ "isExpression": false,
2000
+ "asc": true,
2001
+ "nulls": "last"
2002
+ },
2003
+ {
2004
+ "expression": "namespace",
2005
+ "isExpression": false,
2006
+ "asc": true,
2007
+ "nulls": "last"
2008
+ },
2009
+ {
2010
+ "expression": "task_id",
2011
+ "isExpression": false,
2012
+ "asc": true,
2013
+ "nulls": "last"
2014
+ },
2015
+ {
2016
+ "expression": "executed_at_ms",
2017
+ "isExpression": false,
2018
+ "asc": true,
2019
+ "nulls": "last"
2020
+ }
2021
+ ],
2022
+ "isUnique": false,
2023
+ "concurrently": false,
2024
+ "method": "btree",
2025
+ "with": {}
2026
+ },
2027
+ "junior_task_executions_time_kind_idx": {
2028
+ "name": "junior_task_executions_time_kind_idx",
2029
+ "columns": [
2030
+ {
2031
+ "expression": "executed_at_ms",
2032
+ "isExpression": false,
2033
+ "asc": true,
2034
+ "nulls": "last"
2035
+ },
2036
+ {
2037
+ "expression": "kind",
2038
+ "isExpression": false,
2039
+ "asc": true,
2040
+ "nulls": "last"
2041
+ }
2042
+ ],
2043
+ "isUnique": false,
2044
+ "concurrently": false,
2045
+ "method": "btree",
2046
+ "with": {}
2047
+ },
2048
+ "junior_task_executions_conversation_time_idx": {
2049
+ "name": "junior_task_executions_conversation_time_idx",
2050
+ "columns": [
2051
+ {
2052
+ "expression": "conversation_id",
2053
+ "isExpression": false,
2054
+ "asc": true,
2055
+ "nulls": "last"
2056
+ },
2057
+ {
2058
+ "expression": "executed_at_ms",
2059
+ "isExpression": false,
2060
+ "asc": true,
2061
+ "nulls": "last"
2062
+ }
2063
+ ],
2064
+ "isUnique": false,
2065
+ "concurrently": false,
2066
+ "method": "btree",
2067
+ "with": {}
2068
+ }
2069
+ },
2070
+ "foreignKeys": {
2071
+ "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk": {
2072
+ "name": "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk",
2073
+ "tableFrom": "junior_task_executions",
2074
+ "tableTo": "junior_conversations",
2075
+ "columnsFrom": [
2076
+ "conversation_id"
2077
+ ],
2078
+ "columnsTo": [
2079
+ "conversation_id"
2080
+ ],
2081
+ "onDelete": "no action",
2082
+ "onUpdate": "no action"
2083
+ }
2084
+ },
2085
+ "compositePrimaryKeys": {
2086
+ "junior_task_executions_kind_namespace_execution_id_pk": {
2087
+ "name": "junior_task_executions_kind_namespace_execution_id_pk",
2088
+ "columns": [
2089
+ "kind",
2090
+ "namespace",
2091
+ "execution_id"
2092
+ ]
2093
+ }
2094
+ },
2095
+ "uniqueConstraints": {},
2096
+ "policies": {},
2097
+ "checkConstraints": {
2098
+ "junior_task_executions_kind_check": {
2099
+ "name": "junior_task_executions_kind_check",
2100
+ "value": "\"junior_task_executions\".\"kind\" in ('scheduled', 'event')"
2101
+ },
2102
+ "junior_task_executions_status_check": {
2103
+ "name": "junior_task_executions_status_check",
2104
+ "value": "\"junior_task_executions\".\"status\" in ('blocked', 'completed', 'failed')"
2105
+ }
2106
+ },
2107
+ "isRLSEnabled": false
2108
+ },
2109
+ "public.junior_users": {
2110
+ "name": "junior_users",
2111
+ "schema": "",
2112
+ "columns": {
2113
+ "id": {
2114
+ "name": "id",
2115
+ "type": "text",
2116
+ "primaryKey": true,
2117
+ "notNull": true
2118
+ },
2119
+ "primary_email": {
2120
+ "name": "primary_email",
2121
+ "type": "text",
2122
+ "primaryKey": false,
2123
+ "notNull": true
2124
+ },
2125
+ "primary_email_normalized": {
2126
+ "name": "primary_email_normalized",
2127
+ "type": "text",
2128
+ "primaryKey": false,
2129
+ "notNull": true
2130
+ },
2131
+ "display_name": {
2132
+ "name": "display_name",
2133
+ "type": "text",
2134
+ "primaryKey": false,
2135
+ "notNull": false
2136
+ },
2137
+ "created_at": {
2138
+ "name": "created_at",
2139
+ "type": "timestamp with time zone",
2140
+ "primaryKey": false,
2141
+ "notNull": true
2142
+ },
2143
+ "updated_at": {
2144
+ "name": "updated_at",
2145
+ "type": "timestamp with time zone",
2146
+ "primaryKey": false,
2147
+ "notNull": true
2148
+ }
2149
+ },
2150
+ "indexes": {
2151
+ "junior_users_primary_email_normalized_uidx": {
2152
+ "name": "junior_users_primary_email_normalized_uidx",
2153
+ "columns": [
2154
+ {
2155
+ "expression": "primary_email_normalized",
2156
+ "isExpression": false,
2157
+ "asc": true,
2158
+ "nulls": "last"
2159
+ }
2160
+ ],
2161
+ "isUnique": true,
2162
+ "concurrently": false,
2163
+ "method": "btree",
2164
+ "with": {}
2165
+ }
2166
+ },
2167
+ "foreignKeys": {},
2168
+ "compositePrimaryKeys": {},
2169
+ "uniqueConstraints": {},
2170
+ "policies": {},
2171
+ "checkConstraints": {},
2172
+ "isRLSEnabled": false
2173
+ }
2174
+ },
2175
+ "enums": {},
2176
+ "schemas": {},
2177
+ "sequences": {},
2178
+ "roles": {},
2179
+ "policies": {},
2180
+ "views": {},
2181
+ "_meta": {
2182
+ "columns": {},
2183
+ "schemas": {},
2184
+ "tables": {}
2185
+ }
2186
+ }