@sentry/junior 0.127.0 → 0.128.1

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 (114) hide show
  1. package/dist/{agent-hooks-HMCMFIIO.js → agent-hooks-IWQNFJMS.js} +9 -9
  2. package/dist/api.js +23 -22
  3. package/dist/app.d.ts +2 -1
  4. package/dist/app.js +287 -138
  5. package/dist/{catalog-runtime-MI5UNBZ7.js → catalog-runtime-KLSYFS4A.js} +6 -6
  6. package/dist/chat/agent-dispatch/context.d.ts +17 -0
  7. package/dist/chat/agent-dispatch/store.d.ts +1 -1
  8. package/dist/chat/agent-dispatch/work.d.ts +1 -1
  9. package/dist/chat/credentials/context.d.ts +27 -0
  10. package/dist/chat/credentials/subject.d.ts +15 -0
  11. package/dist/chat/event-tasks/ingest.d.ts +9 -0
  12. package/dist/chat/event-tasks/store.d.ts +15 -0
  13. package/dist/chat/event-tasks/tool-support.d.ts +140 -0
  14. package/dist/chat/event-tasks/types.d.ts +44 -0
  15. package/dist/chat/plugins/viewer.d.ts +16 -0
  16. package/dist/chat/resource-events/ingest.d.ts +1 -0
  17. package/dist/chat/resource-events/store.d.ts +2 -0
  18. package/dist/chat/resource-events/workspace.d.ts +4 -0
  19. package/dist/chat/sandbox/command-result.d.ts +3 -22
  20. package/dist/chat/sandbox/egress/schemas.d.ts +11 -0
  21. package/dist/chat/sandbox/resources.d.ts +12 -1
  22. package/dist/chat/services/guardian-action-policy.d.ts +1 -1
  23. package/dist/chat/slack/dispatch-turn.d.ts +1 -1
  24. package/dist/chat/slack/tools/canvas/create.d.ts +0 -16
  25. package/dist/chat/slack/tools/canvas/edit.d.ts +0 -16
  26. package/dist/chat/slack/tools/canvas/read.d.ts +0 -16
  27. package/dist/chat/slack/tools/canvas/write.d.ts +0 -16
  28. package/dist/chat/slack/tools/channel-list-messages.d.ts +0 -16
  29. package/dist/chat/slack/tools/conversation-search.d.ts +0 -16
  30. package/dist/chat/slack/tools/list/add-items.d.ts +0 -16
  31. package/dist/chat/slack/tools/list/create.d.ts +0 -16
  32. package/dist/chat/slack/tools/list/get-items.d.ts +0 -16
  33. package/dist/chat/slack/tools/list/update-item.d.ts +0 -16
  34. package/dist/chat/slack/tools/message-add-reaction.d.ts +0 -16
  35. package/dist/chat/slack/tools/public-search.d.ts +0 -16
  36. package/dist/chat/slack/tools/send-files.d.ts +10 -28
  37. package/dist/chat/slack/tools/thread-read.d.ts +0 -16
  38. package/dist/chat/slack/tools/user-lookup.d.ts +0 -16
  39. package/dist/chat/tool-support/action-review.d.ts +1 -1
  40. package/dist/chat/tool-support/structured-result.d.ts +17 -46
  41. package/dist/chat/tool-support/text-range-result.d.ts +8 -32
  42. package/dist/chat/tool-support/zod-tool.d.ts +6 -7
  43. package/dist/chat/tools/create-event-task.d.ts +65 -0
  44. package/dist/chat/tools/definition.d.ts +4 -0
  45. package/dist/chat/tools/delete-event-task.d.ts +57 -0
  46. package/dist/chat/tools/event-tasks.d.ts +5 -0
  47. package/dist/chat/tools/handoff/tool.d.ts +0 -16
  48. package/dist/chat/tools/list-event-tasks.d.ts +55 -0
  49. package/dist/chat/tools/list-resource-event-subscriptions.d.ts +0 -38
  50. package/dist/chat/tools/query-conversation-events.d.ts +0 -16
  51. package/dist/chat/tools/runtime/report-progress.d.ts +0 -16
  52. package/dist/chat/tools/sandbox/edit-file.d.ts +0 -23
  53. package/dist/chat/tools/sandbox/file-utils.d.ts +2 -17
  54. package/dist/chat/tools/sandbox/find-files.d.ts +5 -8
  55. package/dist/chat/tools/sandbox/grep.d.ts +1 -4
  56. package/dist/chat/tools/sandbox/list-dir.d.ts +1 -4
  57. package/dist/chat/tools/search-resource-event-types.d.ts +0 -16
  58. package/dist/chat/tools/search-tools.d.ts +0 -16
  59. package/dist/chat/tools/skill/load-skill.d.ts +0 -20
  60. package/dist/chat/tools/skill/search-mcp-tools.d.ts +0 -16
  61. package/dist/chat/tools/stop-watching-resources.d.ts +0 -22
  62. package/dist/chat/tools/system-time.d.ts +0 -16
  63. package/dist/chat/tools/types.d.ts +8 -4
  64. package/dist/chat/tools/update-event-task.d.ts +66 -0
  65. package/dist/chat/tools/watch-resource-events.d.ts +0 -46
  66. package/dist/chat/tools/web/fetch-content.d.ts +0 -2
  67. package/dist/chat/tools/web/fetch-tool.d.ts +0 -16
  68. package/dist/chat/tools/web/image-generate.d.ts +0 -16
  69. package/dist/chat/tools/web/search.d.ts +0 -16
  70. package/dist/{chunk-UEMGGJZD.js → chunk-54KP2EAH.js} +12 -12
  71. package/dist/{chunk-L7L7RYJM.js → chunk-5IR7SGRO.js} +2 -2
  72. package/dist/{chunk-W3U3YQYI.js → chunk-77VDLF3Z.js} +18 -1
  73. package/dist/{chunk-Z5LLJNTL.js → chunk-AAMF2IRC.js} +1116 -1083
  74. package/dist/{chunk-NK7QVIMJ.js → chunk-EHEACYJ6.js} +1 -1
  75. package/dist/{chunk-JNYR4G7A.js → chunk-EOIA25WC.js} +2 -2
  76. package/dist/{chunk-HDSDCEPK.js → chunk-EPBBYMNE.js} +1 -1
  77. package/dist/{chunk-6DU2ZNF7.js → chunk-ETGUGGO2.js} +7 -7
  78. package/dist/{chunk-TLMI3Q4Q.js → chunk-H4HMCSOZ.js} +199 -94
  79. package/dist/{chunk-PDG3BSOD.js → chunk-J3YIO3LE.js} +3 -3
  80. package/dist/{chunk-2M6LYDTB.js → chunk-LIJ4APSS.js} +1 -1
  81. package/dist/{chunk-JXQWTNDI.js → chunk-MKM5552O.js} +1 -1
  82. package/dist/{chunk-SH7HDO2D.js → chunk-MZ6ZOWMJ.js} +1 -1
  83. package/dist/{chunk-NYVMPADK.js → chunk-O3C5BJFD.js} +1 -1
  84. package/dist/{chunk-FVIU6NQO.js → chunk-O3YROBH4.js} +2 -2
  85. package/dist/{chunk-WXP2ZXC7.js → chunk-OIQCRZ67.js} +4 -4
  86. package/dist/{chunk-YSOZT72W.js → chunk-P7UUNWC4.js} +38 -17
  87. package/dist/{chunk-C7AVHH3H.js → chunk-PLAMHS3D.js} +2 -2
  88. package/dist/{chunk-AKL3BAYJ.js → chunk-Q5TMMCBV.js} +1 -1
  89. package/dist/{chunk-2N6EL22B.js → chunk-R2LXTX4J.js} +1 -1
  90. package/dist/{chunk-VHUMNUJL.js → chunk-REHOYCYS.js} +2 -2
  91. package/dist/{chunk-4H2NZPFJ.js → chunk-S2O64VXP.js} +6 -6
  92. package/dist/{chunk-S4PUICSB.js → chunk-SHMHHXD5.js} +34 -5
  93. package/dist/{chunk-AYICPT5T.js → chunk-TONH5NXR.js} +1 -1
  94. package/dist/cli/chat.js +27 -27
  95. package/dist/cli/check.js +7 -7
  96. package/dist/cli/plugins.js +13 -13
  97. package/dist/cli/snapshot-create.js +10 -10
  98. package/dist/cli/upgrade.js +8 -8
  99. package/dist/db/schema/event-tasks.d.ts +161 -0
  100. package/dist/db/schema.d.ts +163 -1
  101. package/dist/{db-N4EY57ZJ.js → db-VOU5QNLY.js} +7 -7
  102. package/dist/instrumentation.js +4 -4
  103. package/dist/nitro.js +2 -2
  104. package/dist/{oauth-callback-server-O62UOQSS.js → oauth-callback-server-GS7FBYBC.js} +18 -18
  105. package/dist/{runner-SRHRD3NX.js → runner-GSJSBI3J.js} +11 -11
  106. package/dist/{sandbox-egress-signals-CDFAP67O.js → sandbox-egress-signals-A5HWIQH4.js} +2 -2
  107. package/dist/{skills-V6X3JVVA.js → skills-DSHG54LM.js} +7 -7
  108. package/dist/{validation-ZZXZELGH.js → validation-25XWT6TA.js} +7 -7
  109. package/dist/version.js +1 -1
  110. package/migrations/0015_magical_ezekiel_stane.sql +11 -0
  111. package/migrations/meta/0015_snapshot.json +1360 -0
  112. package/migrations/meta/_journal.json +7 -0
  113. package/package.json +6 -6
  114. package/dist/chat/plugins/viewer-actors.d.ts +0 -6
@@ -0,0 +1,1360 @@
1
+ {
2
+ "id": "15085af3-5b3d-41b9-b7f5-0e7accb9dff7",
3
+ "prevId": "7ee48964-32cb-4444-913d-33cc5680a64e",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.junior_api_tokens": {
8
+ "name": "junior_api_tokens",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "owner_email_normalized": {
18
+ "name": "owner_email_normalized",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "name": {
24
+ "name": "name",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "token_hash": {
30
+ "name": "token_hash",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "token_suffix": {
36
+ "name": "token_suffix",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "created_at": {
42
+ "name": "created_at",
43
+ "type": "timestamp with time zone",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "expires_at": {
48
+ "name": "expires_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": true
52
+ },
53
+ "last_used_at": {
54
+ "name": "last_used_at",
55
+ "type": "timestamp with time zone",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "revoked_at": {
60
+ "name": "revoked_at",
61
+ "type": "timestamp with time zone",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ }
65
+ },
66
+ "indexes": {
67
+ "junior_api_tokens_token_hash_uidx": {
68
+ "name": "junior_api_tokens_token_hash_uidx",
69
+ "columns": [
70
+ {
71
+ "expression": "token_hash",
72
+ "isExpression": false,
73
+ "asc": true,
74
+ "nulls": "last"
75
+ }
76
+ ],
77
+ "isUnique": true,
78
+ "concurrently": false,
79
+ "method": "btree",
80
+ "with": {}
81
+ },
82
+ "junior_api_tokens_owner_email_idx": {
83
+ "name": "junior_api_tokens_owner_email_idx",
84
+ "columns": [
85
+ {
86
+ "expression": "owner_email_normalized",
87
+ "isExpression": false,
88
+ "asc": true,
89
+ "nulls": "last"
90
+ }
91
+ ],
92
+ "isUnique": false,
93
+ "concurrently": false,
94
+ "method": "btree",
95
+ "with": {}
96
+ }
97
+ },
98
+ "foreignKeys": {},
99
+ "compositePrimaryKeys": {},
100
+ "uniqueConstraints": {},
101
+ "policies": {},
102
+ "checkConstraints": {},
103
+ "isRLSEnabled": false
104
+ },
105
+ "public.junior_conversation_annotations": {
106
+ "name": "junior_conversation_annotations",
107
+ "schema": "",
108
+ "columns": {
109
+ "conversation_id": {
110
+ "name": "conversation_id",
111
+ "type": "text",
112
+ "primaryKey": false,
113
+ "notNull": true
114
+ },
115
+ "plugin": {
116
+ "name": "plugin",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": true
120
+ },
121
+ "kind": {
122
+ "name": "kind",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true
126
+ },
127
+ "key": {
128
+ "name": "key",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": true
132
+ },
133
+ "annotation_json": {
134
+ "name": "annotation_json",
135
+ "type": "jsonb",
136
+ "primaryKey": false,
137
+ "notNull": true
138
+ },
139
+ "created_at": {
140
+ "name": "created_at",
141
+ "type": "timestamp with time zone",
142
+ "primaryKey": false,
143
+ "notNull": true
144
+ },
145
+ "updated_at": {
146
+ "name": "updated_at",
147
+ "type": "timestamp with time zone",
148
+ "primaryKey": false,
149
+ "notNull": true
150
+ }
151
+ },
152
+ "indexes": {},
153
+ "foreignKeys": {
154
+ "junior_conversation_annotations_conversation_id_fk": {
155
+ "name": "junior_conversation_annotations_conversation_id_fk",
156
+ "tableFrom": "junior_conversation_annotations",
157
+ "tableTo": "junior_conversations",
158
+ "columnsFrom": [
159
+ "conversation_id"
160
+ ],
161
+ "columnsTo": [
162
+ "conversation_id"
163
+ ],
164
+ "onDelete": "cascade",
165
+ "onUpdate": "no action"
166
+ }
167
+ },
168
+ "compositePrimaryKeys": {
169
+ "junior_conversation_annotations_pk": {
170
+ "name": "junior_conversation_annotations_pk",
171
+ "columns": [
172
+ "conversation_id",
173
+ "plugin",
174
+ "kind",
175
+ "key"
176
+ ]
177
+ }
178
+ },
179
+ "uniqueConstraints": {},
180
+ "policies": {},
181
+ "checkConstraints": {},
182
+ "isRLSEnabled": false
183
+ },
184
+ "public.junior_conversation_events": {
185
+ "name": "junior_conversation_events",
186
+ "schema": "",
187
+ "columns": {
188
+ "conversation_id": {
189
+ "name": "conversation_id",
190
+ "type": "text",
191
+ "primaryKey": false,
192
+ "notNull": true
193
+ },
194
+ "seq": {
195
+ "name": "seq",
196
+ "type": "integer",
197
+ "primaryKey": false,
198
+ "notNull": true
199
+ },
200
+ "history_version": {
201
+ "name": "history_version",
202
+ "type": "integer",
203
+ "primaryKey": false,
204
+ "notNull": true
205
+ },
206
+ "schema_version": {
207
+ "name": "schema_version",
208
+ "type": "integer",
209
+ "primaryKey": false,
210
+ "notNull": true,
211
+ "default": 1
212
+ },
213
+ "idempotency_key": {
214
+ "name": "idempotency_key",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": false
218
+ },
219
+ "type": {
220
+ "name": "type",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": true
224
+ },
225
+ "payload": {
226
+ "name": "payload",
227
+ "type": "jsonb",
228
+ "primaryKey": false,
229
+ "notNull": true
230
+ },
231
+ "created_at": {
232
+ "name": "created_at",
233
+ "type": "timestamp with time zone",
234
+ "primaryKey": false,
235
+ "notNull": true
236
+ }
237
+ },
238
+ "indexes": {
239
+ "junior_conversation_events_history_version_idx": {
240
+ "name": "junior_conversation_events_history_version_idx",
241
+ "columns": [
242
+ {
243
+ "expression": "conversation_id",
244
+ "isExpression": false,
245
+ "asc": true,
246
+ "nulls": "last"
247
+ },
248
+ {
249
+ "expression": "history_version",
250
+ "isExpression": false,
251
+ "asc": true,
252
+ "nulls": "last"
253
+ },
254
+ {
255
+ "expression": "seq",
256
+ "isExpression": false,
257
+ "asc": true,
258
+ "nulls": "last"
259
+ }
260
+ ],
261
+ "isUnique": false,
262
+ "concurrently": false,
263
+ "method": "btree",
264
+ "with": {}
265
+ },
266
+ "junior_conversation_events_type_idx": {
267
+ "name": "junior_conversation_events_type_idx",
268
+ "columns": [
269
+ {
270
+ "expression": "conversation_id",
271
+ "isExpression": false,
272
+ "asc": true,
273
+ "nulls": "last"
274
+ },
275
+ {
276
+ "expression": "type",
277
+ "isExpression": false,
278
+ "asc": true,
279
+ "nulls": "last"
280
+ },
281
+ {
282
+ "expression": "seq",
283
+ "isExpression": false,
284
+ "asc": true,
285
+ "nulls": "last"
286
+ }
287
+ ],
288
+ "isUnique": false,
289
+ "concurrently": false,
290
+ "method": "btree",
291
+ "with": {}
292
+ },
293
+ "junior_conversation_events_message_search_idx": {
294
+ "name": "junior_conversation_events_message_search_idx",
295
+ "columns": [
296
+ {
297
+ "expression": "to_tsvector('english', \"payload\"->>'text')",
298
+ "asc": true,
299
+ "isExpression": true,
300
+ "nulls": "last"
301
+ }
302
+ ],
303
+ "isUnique": false,
304
+ "where": "\"junior_conversation_events\".\"type\" = 'message'",
305
+ "concurrently": false,
306
+ "method": "gin",
307
+ "with": {}
308
+ },
309
+ "junior_conversation_events_idempotency_idx": {
310
+ "name": "junior_conversation_events_idempotency_idx",
311
+ "columns": [
312
+ {
313
+ "expression": "conversation_id",
314
+ "isExpression": false,
315
+ "asc": true,
316
+ "nulls": "last"
317
+ },
318
+ {
319
+ "expression": "idempotency_key",
320
+ "isExpression": false,
321
+ "asc": true,
322
+ "nulls": "last"
323
+ }
324
+ ],
325
+ "isUnique": true,
326
+ "concurrently": false,
327
+ "method": "btree",
328
+ "with": {}
329
+ }
330
+ },
331
+ "foreignKeys": {
332
+ "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
333
+ "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
334
+ "tableFrom": "junior_conversation_events",
335
+ "tableTo": "junior_conversations",
336
+ "columnsFrom": [
337
+ "conversation_id"
338
+ ],
339
+ "columnsTo": [
340
+ "conversation_id"
341
+ ],
342
+ "onDelete": "no action",
343
+ "onUpdate": "no action"
344
+ }
345
+ },
346
+ "compositePrimaryKeys": {
347
+ "junior_conversation_events_conversation_id_seq_pk": {
348
+ "name": "junior_conversation_events_conversation_id_seq_pk",
349
+ "columns": [
350
+ "conversation_id",
351
+ "seq"
352
+ ]
353
+ }
354
+ },
355
+ "uniqueConstraints": {},
356
+ "policies": {},
357
+ "checkConstraints": {},
358
+ "isRLSEnabled": false
359
+ },
360
+ "public.junior_conversations": {
361
+ "name": "junior_conversations",
362
+ "schema": "",
363
+ "columns": {
364
+ "conversation_id": {
365
+ "name": "conversation_id",
366
+ "type": "text",
367
+ "primaryKey": true,
368
+ "notNull": true
369
+ },
370
+ "schema_version": {
371
+ "name": "schema_version",
372
+ "type": "integer",
373
+ "primaryKey": false,
374
+ "notNull": true,
375
+ "default": 1
376
+ },
377
+ "source": {
378
+ "name": "source",
379
+ "type": "text",
380
+ "primaryKey": false,
381
+ "notNull": false
382
+ },
383
+ "source_json": {
384
+ "name": "source_json",
385
+ "type": "jsonb",
386
+ "primaryKey": false,
387
+ "notNull": false
388
+ },
389
+ "origin_type": {
390
+ "name": "origin_type",
391
+ "type": "text",
392
+ "primaryKey": false,
393
+ "notNull": false
394
+ },
395
+ "origin_id": {
396
+ "name": "origin_id",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": false
400
+ },
401
+ "origin_run_id": {
402
+ "name": "origin_run_id",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": false
406
+ },
407
+ "destination_id": {
408
+ "name": "destination_id",
409
+ "type": "text",
410
+ "primaryKey": false,
411
+ "notNull": false
412
+ },
413
+ "destination_json": {
414
+ "name": "destination_json",
415
+ "type": "jsonb",
416
+ "primaryKey": false,
417
+ "notNull": false
418
+ },
419
+ "actor_identity_id": {
420
+ "name": "actor_identity_id",
421
+ "type": "text",
422
+ "primaryKey": false,
423
+ "notNull": false
424
+ },
425
+ "creator_identity_id": {
426
+ "name": "creator_identity_id",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": false
430
+ },
431
+ "credential_subject_identity_id": {
432
+ "name": "credential_subject_identity_id",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": false
436
+ },
437
+ "actor_json": {
438
+ "name": "actor_json",
439
+ "type": "jsonb",
440
+ "primaryKey": false,
441
+ "notNull": false
442
+ },
443
+ "channel_name": {
444
+ "name": "channel_name",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": false
448
+ },
449
+ "title": {
450
+ "name": "title",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": false
454
+ },
455
+ "created_at": {
456
+ "name": "created_at",
457
+ "type": "timestamp with time zone",
458
+ "primaryKey": false,
459
+ "notNull": true
460
+ },
461
+ "last_activity_at": {
462
+ "name": "last_activity_at",
463
+ "type": "timestamp with time zone",
464
+ "primaryKey": false,
465
+ "notNull": true
466
+ },
467
+ "updated_at": {
468
+ "name": "updated_at",
469
+ "type": "timestamp with time zone",
470
+ "primaryKey": false,
471
+ "notNull": true
472
+ },
473
+ "execution_updated_at": {
474
+ "name": "execution_updated_at",
475
+ "type": "timestamp with time zone",
476
+ "primaryKey": false,
477
+ "notNull": false
478
+ },
479
+ "execution_status": {
480
+ "name": "execution_status",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": true
484
+ },
485
+ "run_id": {
486
+ "name": "run_id",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": false
490
+ },
491
+ "last_checkpoint_at": {
492
+ "name": "last_checkpoint_at",
493
+ "type": "timestamp with time zone",
494
+ "primaryKey": false,
495
+ "notNull": false
496
+ },
497
+ "last_enqueued_at": {
498
+ "name": "last_enqueued_at",
499
+ "type": "timestamp with time zone",
500
+ "primaryKey": false,
501
+ "notNull": false
502
+ },
503
+ "parent_conversation_id": {
504
+ "name": "parent_conversation_id",
505
+ "type": "text",
506
+ "primaryKey": false,
507
+ "notNull": false
508
+ },
509
+ "root_conversation_id": {
510
+ "name": "root_conversation_id",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": false
514
+ },
515
+ "transcript_purged_at": {
516
+ "name": "transcript_purged_at",
517
+ "type": "timestamp with time zone",
518
+ "primaryKey": false,
519
+ "notNull": false
520
+ },
521
+ "duration_ms": {
522
+ "name": "duration_ms",
523
+ "type": "integer",
524
+ "primaryKey": false,
525
+ "notNull": true,
526
+ "default": 0
527
+ },
528
+ "usage_json": {
529
+ "name": "usage_json",
530
+ "type": "jsonb",
531
+ "primaryKey": false,
532
+ "notNull": false
533
+ },
534
+ "execution_duration_ms": {
535
+ "name": "execution_duration_ms",
536
+ "type": "integer",
537
+ "primaryKey": false,
538
+ "notNull": true,
539
+ "default": 0
540
+ },
541
+ "execution_usage_json": {
542
+ "name": "execution_usage_json",
543
+ "type": "jsonb",
544
+ "primaryKey": false,
545
+ "notNull": false
546
+ },
547
+ "metric_run_id": {
548
+ "name": "metric_run_id",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false
552
+ },
553
+ "archived_at": {
554
+ "name": "archived_at",
555
+ "type": "timestamp with time zone",
556
+ "primaryKey": false,
557
+ "notNull": false
558
+ }
559
+ },
560
+ "indexes": {
561
+ "junior_conversations_last_activity_idx": {
562
+ "name": "junior_conversations_last_activity_idx",
563
+ "columns": [
564
+ {
565
+ "expression": "last_activity_at",
566
+ "isExpression": false,
567
+ "asc": false,
568
+ "nulls": "last"
569
+ },
570
+ {
571
+ "expression": "conversation_id",
572
+ "isExpression": false,
573
+ "asc": true,
574
+ "nulls": "last"
575
+ }
576
+ ],
577
+ "isUnique": false,
578
+ "concurrently": false,
579
+ "method": "btree",
580
+ "with": {}
581
+ },
582
+ "junior_conversations_active_idx": {
583
+ "name": "junior_conversations_active_idx",
584
+ "columns": [
585
+ {
586
+ "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
587
+ "asc": true,
588
+ "isExpression": true,
589
+ "nulls": "last"
590
+ },
591
+ {
592
+ "expression": "conversation_id",
593
+ "isExpression": false,
594
+ "asc": true,
595
+ "nulls": "last"
596
+ }
597
+ ],
598
+ "isUnique": false,
599
+ "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
600
+ "concurrently": false,
601
+ "method": "btree",
602
+ "with": {}
603
+ },
604
+ "junior_conversations_destination_activity_idx": {
605
+ "name": "junior_conversations_destination_activity_idx",
606
+ "columns": [
607
+ {
608
+ "expression": "destination_id",
609
+ "isExpression": false,
610
+ "asc": true,
611
+ "nulls": "last"
612
+ },
613
+ {
614
+ "expression": "last_activity_at",
615
+ "isExpression": false,
616
+ "asc": false,
617
+ "nulls": "last"
618
+ }
619
+ ],
620
+ "isUnique": false,
621
+ "concurrently": false,
622
+ "method": "btree",
623
+ "with": {}
624
+ },
625
+ "junior_conversations_actor_activity_idx": {
626
+ "name": "junior_conversations_actor_activity_idx",
627
+ "columns": [
628
+ {
629
+ "expression": "actor_identity_id",
630
+ "isExpression": false,
631
+ "asc": true,
632
+ "nulls": "last"
633
+ },
634
+ {
635
+ "expression": "last_activity_at",
636
+ "isExpression": false,
637
+ "asc": false,
638
+ "nulls": "last"
639
+ }
640
+ ],
641
+ "isUnique": false,
642
+ "concurrently": false,
643
+ "method": "btree",
644
+ "with": {}
645
+ },
646
+ "junior_conversations_origin_idx": {
647
+ "name": "junior_conversations_origin_idx",
648
+ "columns": [
649
+ {
650
+ "expression": "origin_type",
651
+ "isExpression": false,
652
+ "asc": true,
653
+ "nulls": "last"
654
+ },
655
+ {
656
+ "expression": "origin_id",
657
+ "isExpression": false,
658
+ "asc": true,
659
+ "nulls": "last"
660
+ },
661
+ {
662
+ "expression": "last_activity_at",
663
+ "isExpression": false,
664
+ "asc": false,
665
+ "nulls": "last"
666
+ }
667
+ ],
668
+ "isUnique": false,
669
+ "concurrently": false,
670
+ "method": "btree",
671
+ "with": {}
672
+ },
673
+ "junior_conversations_parent_idx": {
674
+ "name": "junior_conversations_parent_idx",
675
+ "columns": [
676
+ {
677
+ "expression": "parent_conversation_id",
678
+ "isExpression": false,
679
+ "asc": true,
680
+ "nulls": "last"
681
+ }
682
+ ],
683
+ "isUnique": false,
684
+ "concurrently": false,
685
+ "method": "btree",
686
+ "with": {}
687
+ },
688
+ "junior_conversations_root_idx": {
689
+ "name": "junior_conversations_root_idx",
690
+ "columns": [
691
+ {
692
+ "expression": "root_conversation_id",
693
+ "isExpression": false,
694
+ "asc": true,
695
+ "nulls": "last"
696
+ }
697
+ ],
698
+ "isUnique": false,
699
+ "concurrently": false,
700
+ "method": "btree",
701
+ "with": {}
702
+ }
703
+ },
704
+ "foreignKeys": {
705
+ "junior_conversations_destination_id_junior_destinations_id_fk": {
706
+ "name": "junior_conversations_destination_id_junior_destinations_id_fk",
707
+ "tableFrom": "junior_conversations",
708
+ "tableTo": "junior_destinations",
709
+ "columnsFrom": [
710
+ "destination_id"
711
+ ],
712
+ "columnsTo": [
713
+ "id"
714
+ ],
715
+ "onDelete": "no action",
716
+ "onUpdate": "no action"
717
+ },
718
+ "junior_conversations_actor_identity_id_junior_identities_id_fk": {
719
+ "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
720
+ "tableFrom": "junior_conversations",
721
+ "tableTo": "junior_identities",
722
+ "columnsFrom": [
723
+ "actor_identity_id"
724
+ ],
725
+ "columnsTo": [
726
+ "id"
727
+ ],
728
+ "onDelete": "no action",
729
+ "onUpdate": "no action"
730
+ },
731
+ "junior_conversations_creator_identity_id_junior_identities_id_fk": {
732
+ "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
733
+ "tableFrom": "junior_conversations",
734
+ "tableTo": "junior_identities",
735
+ "columnsFrom": [
736
+ "creator_identity_id"
737
+ ],
738
+ "columnsTo": [
739
+ "id"
740
+ ],
741
+ "onDelete": "no action",
742
+ "onUpdate": "no action"
743
+ },
744
+ "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
745
+ "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
746
+ "tableFrom": "junior_conversations",
747
+ "tableTo": "junior_identities",
748
+ "columnsFrom": [
749
+ "credential_subject_identity_id"
750
+ ],
751
+ "columnsTo": [
752
+ "id"
753
+ ],
754
+ "onDelete": "no action",
755
+ "onUpdate": "no action"
756
+ },
757
+ "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
758
+ "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
759
+ "tableFrom": "junior_conversations",
760
+ "tableTo": "junior_conversations",
761
+ "columnsFrom": [
762
+ "parent_conversation_id"
763
+ ],
764
+ "columnsTo": [
765
+ "conversation_id"
766
+ ],
767
+ "onDelete": "no action",
768
+ "onUpdate": "no action"
769
+ },
770
+ "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
771
+ "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
772
+ "tableFrom": "junior_conversations",
773
+ "tableTo": "junior_conversations",
774
+ "columnsFrom": [
775
+ "root_conversation_id"
776
+ ],
777
+ "columnsTo": [
778
+ "conversation_id"
779
+ ],
780
+ "onDelete": "no action",
781
+ "onUpdate": "no action"
782
+ }
783
+ },
784
+ "compositePrimaryKeys": {},
785
+ "uniqueConstraints": {},
786
+ "policies": {},
787
+ "checkConstraints": {},
788
+ "isRLSEnabled": false
789
+ },
790
+ "public.junior_destinations": {
791
+ "name": "junior_destinations",
792
+ "schema": "",
793
+ "columns": {
794
+ "id": {
795
+ "name": "id",
796
+ "type": "text",
797
+ "primaryKey": true,
798
+ "notNull": true
799
+ },
800
+ "provider": {
801
+ "name": "provider",
802
+ "type": "text",
803
+ "primaryKey": false,
804
+ "notNull": true
805
+ },
806
+ "provider_tenant_id": {
807
+ "name": "provider_tenant_id",
808
+ "type": "text",
809
+ "primaryKey": false,
810
+ "notNull": true,
811
+ "default": "''"
812
+ },
813
+ "provider_destination_id": {
814
+ "name": "provider_destination_id",
815
+ "type": "text",
816
+ "primaryKey": false,
817
+ "notNull": true
818
+ },
819
+ "kind": {
820
+ "name": "kind",
821
+ "type": "text",
822
+ "primaryKey": false,
823
+ "notNull": true
824
+ },
825
+ "parent_destination_id": {
826
+ "name": "parent_destination_id",
827
+ "type": "text",
828
+ "primaryKey": false,
829
+ "notNull": false
830
+ },
831
+ "display_name": {
832
+ "name": "display_name",
833
+ "type": "text",
834
+ "primaryKey": false,
835
+ "notNull": false
836
+ },
837
+ "visibility": {
838
+ "name": "visibility",
839
+ "type": "text",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "default": "'unknown'"
843
+ },
844
+ "metadata_json": {
845
+ "name": "metadata_json",
846
+ "type": "jsonb",
847
+ "primaryKey": false,
848
+ "notNull": false
849
+ },
850
+ "created_at": {
851
+ "name": "created_at",
852
+ "type": "timestamp with time zone",
853
+ "primaryKey": false,
854
+ "notNull": true
855
+ },
856
+ "updated_at": {
857
+ "name": "updated_at",
858
+ "type": "timestamp with time zone",
859
+ "primaryKey": false,
860
+ "notNull": true
861
+ }
862
+ },
863
+ "indexes": {
864
+ "junior_destinations_provider_destination_uidx": {
865
+ "name": "junior_destinations_provider_destination_uidx",
866
+ "columns": [
867
+ {
868
+ "expression": "provider",
869
+ "isExpression": false,
870
+ "asc": true,
871
+ "nulls": "last"
872
+ },
873
+ {
874
+ "expression": "provider_tenant_id",
875
+ "isExpression": false,
876
+ "asc": true,
877
+ "nulls": "last"
878
+ },
879
+ {
880
+ "expression": "provider_destination_id",
881
+ "isExpression": false,
882
+ "asc": true,
883
+ "nulls": "last"
884
+ }
885
+ ],
886
+ "isUnique": true,
887
+ "concurrently": false,
888
+ "method": "btree",
889
+ "with": {}
890
+ },
891
+ "junior_destinations_provider_kind_idx": {
892
+ "name": "junior_destinations_provider_kind_idx",
893
+ "columns": [
894
+ {
895
+ "expression": "provider",
896
+ "isExpression": false,
897
+ "asc": true,
898
+ "nulls": "last"
899
+ },
900
+ {
901
+ "expression": "kind",
902
+ "isExpression": false,
903
+ "asc": true,
904
+ "nulls": "last"
905
+ }
906
+ ],
907
+ "isUnique": false,
908
+ "concurrently": false,
909
+ "method": "btree",
910
+ "with": {}
911
+ }
912
+ },
913
+ "foreignKeys": {},
914
+ "compositePrimaryKeys": {},
915
+ "uniqueConstraints": {},
916
+ "policies": {},
917
+ "checkConstraints": {},
918
+ "isRLSEnabled": false
919
+ },
920
+ "public.junior_event_tasks": {
921
+ "name": "junior_event_tasks",
922
+ "schema": "",
923
+ "columns": {
924
+ "id": {
925
+ "name": "id",
926
+ "type": "text",
927
+ "primaryKey": true,
928
+ "notNull": true
929
+ },
930
+ "team_id": {
931
+ "name": "team_id",
932
+ "type": "text",
933
+ "primaryKey": false,
934
+ "notNull": true
935
+ },
936
+ "namespace": {
937
+ "name": "namespace",
938
+ "type": "text",
939
+ "primaryKey": false,
940
+ "notNull": true
941
+ },
942
+ "identifier": {
943
+ "name": "identifier",
944
+ "type": "text",
945
+ "primaryKey": false,
946
+ "notNull": true
947
+ },
948
+ "created_at_ms": {
949
+ "name": "created_at_ms",
950
+ "type": "bigint",
951
+ "primaryKey": false,
952
+ "notNull": true
953
+ },
954
+ "task_json": {
955
+ "name": "task_json",
956
+ "type": "jsonb",
957
+ "primaryKey": false,
958
+ "notNull": true
959
+ }
960
+ },
961
+ "indexes": {
962
+ "junior_event_tasks_team_idx": {
963
+ "name": "junior_event_tasks_team_idx",
964
+ "columns": [
965
+ {
966
+ "expression": "team_id",
967
+ "isExpression": false,
968
+ "asc": true,
969
+ "nulls": "last"
970
+ },
971
+ {
972
+ "expression": "created_at_ms",
973
+ "isExpression": false,
974
+ "asc": true,
975
+ "nulls": "last"
976
+ },
977
+ {
978
+ "expression": "id",
979
+ "isExpression": false,
980
+ "asc": true,
981
+ "nulls": "last"
982
+ }
983
+ ],
984
+ "isUnique": false,
985
+ "concurrently": false,
986
+ "method": "btree",
987
+ "with": {}
988
+ },
989
+ "junior_event_tasks_match_idx": {
990
+ "name": "junior_event_tasks_match_idx",
991
+ "columns": [
992
+ {
993
+ "expression": "namespace",
994
+ "isExpression": false,
995
+ "asc": true,
996
+ "nulls": "last"
997
+ },
998
+ {
999
+ "expression": "identifier",
1000
+ "isExpression": false,
1001
+ "asc": true,
1002
+ "nulls": "last"
1003
+ },
1004
+ {
1005
+ "expression": "created_at_ms",
1006
+ "isExpression": false,
1007
+ "asc": true,
1008
+ "nulls": "last"
1009
+ },
1010
+ {
1011
+ "expression": "id",
1012
+ "isExpression": false,
1013
+ "asc": true,
1014
+ "nulls": "last"
1015
+ }
1016
+ ],
1017
+ "isUnique": false,
1018
+ "concurrently": false,
1019
+ "method": "btree",
1020
+ "with": {}
1021
+ }
1022
+ },
1023
+ "foreignKeys": {},
1024
+ "compositePrimaryKeys": {},
1025
+ "uniqueConstraints": {},
1026
+ "policies": {},
1027
+ "checkConstraints": {},
1028
+ "isRLSEnabled": false
1029
+ },
1030
+ "public.junior_identities": {
1031
+ "name": "junior_identities",
1032
+ "schema": "",
1033
+ "columns": {
1034
+ "id": {
1035
+ "name": "id",
1036
+ "type": "text",
1037
+ "primaryKey": true,
1038
+ "notNull": true
1039
+ },
1040
+ "kind": {
1041
+ "name": "kind",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": true
1045
+ },
1046
+ "provider": {
1047
+ "name": "provider",
1048
+ "type": "text",
1049
+ "primaryKey": false,
1050
+ "notNull": true
1051
+ },
1052
+ "provider_tenant_id": {
1053
+ "name": "provider_tenant_id",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "default": "''"
1058
+ },
1059
+ "provider_subject_id": {
1060
+ "name": "provider_subject_id",
1061
+ "type": "text",
1062
+ "primaryKey": false,
1063
+ "notNull": true
1064
+ },
1065
+ "display_name": {
1066
+ "name": "display_name",
1067
+ "type": "text",
1068
+ "primaryKey": false,
1069
+ "notNull": false
1070
+ },
1071
+ "handle": {
1072
+ "name": "handle",
1073
+ "type": "text",
1074
+ "primaryKey": false,
1075
+ "notNull": false
1076
+ },
1077
+ "email": {
1078
+ "name": "email",
1079
+ "type": "text",
1080
+ "primaryKey": false,
1081
+ "notNull": false
1082
+ },
1083
+ "avatar_url": {
1084
+ "name": "avatar_url",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": false
1088
+ },
1089
+ "metadata_json": {
1090
+ "name": "metadata_json",
1091
+ "type": "jsonb",
1092
+ "primaryKey": false,
1093
+ "notNull": false
1094
+ },
1095
+ "created_at": {
1096
+ "name": "created_at",
1097
+ "type": "timestamp with time zone",
1098
+ "primaryKey": false,
1099
+ "notNull": true
1100
+ },
1101
+ "updated_at": {
1102
+ "name": "updated_at",
1103
+ "type": "timestamp with time zone",
1104
+ "primaryKey": false,
1105
+ "notNull": true
1106
+ },
1107
+ "user_id": {
1108
+ "name": "user_id",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": false
1112
+ },
1113
+ "email_normalized": {
1114
+ "name": "email_normalized",
1115
+ "type": "text",
1116
+ "primaryKey": false,
1117
+ "notNull": false
1118
+ },
1119
+ "email_verified": {
1120
+ "name": "email_verified",
1121
+ "type": "boolean",
1122
+ "primaryKey": false,
1123
+ "notNull": true,
1124
+ "default": false
1125
+ }
1126
+ },
1127
+ "indexes": {
1128
+ "junior_identities_provider_subject_uidx": {
1129
+ "name": "junior_identities_provider_subject_uidx",
1130
+ "columns": [
1131
+ {
1132
+ "expression": "provider",
1133
+ "isExpression": false,
1134
+ "asc": true,
1135
+ "nulls": "last"
1136
+ },
1137
+ {
1138
+ "expression": "provider_tenant_id",
1139
+ "isExpression": false,
1140
+ "asc": true,
1141
+ "nulls": "last"
1142
+ },
1143
+ {
1144
+ "expression": "provider_subject_id",
1145
+ "isExpression": false,
1146
+ "asc": true,
1147
+ "nulls": "last"
1148
+ }
1149
+ ],
1150
+ "isUnique": true,
1151
+ "concurrently": false,
1152
+ "method": "btree",
1153
+ "with": {}
1154
+ },
1155
+ "junior_identities_user_idx": {
1156
+ "name": "junior_identities_user_idx",
1157
+ "columns": [
1158
+ {
1159
+ "expression": "user_id",
1160
+ "isExpression": false,
1161
+ "asc": true,
1162
+ "nulls": "last"
1163
+ }
1164
+ ],
1165
+ "isUnique": false,
1166
+ "concurrently": false,
1167
+ "method": "btree",
1168
+ "with": {}
1169
+ },
1170
+ "junior_identities_verified_email_idx": {
1171
+ "name": "junior_identities_verified_email_idx",
1172
+ "columns": [
1173
+ {
1174
+ "expression": "email_normalized",
1175
+ "isExpression": false,
1176
+ "asc": true,
1177
+ "nulls": "last"
1178
+ }
1179
+ ],
1180
+ "isUnique": false,
1181
+ "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
1182
+ "concurrently": false,
1183
+ "method": "btree",
1184
+ "with": {}
1185
+ },
1186
+ "junior_identities_kind_provider_idx": {
1187
+ "name": "junior_identities_kind_provider_idx",
1188
+ "columns": [
1189
+ {
1190
+ "expression": "kind",
1191
+ "isExpression": false,
1192
+ "asc": true,
1193
+ "nulls": "last"
1194
+ },
1195
+ {
1196
+ "expression": "provider",
1197
+ "isExpression": false,
1198
+ "asc": true,
1199
+ "nulls": "last"
1200
+ }
1201
+ ],
1202
+ "isUnique": false,
1203
+ "concurrently": false,
1204
+ "method": "btree",
1205
+ "with": {}
1206
+ }
1207
+ },
1208
+ "foreignKeys": {
1209
+ "junior_identities_user_id_junior_users_id_fk": {
1210
+ "name": "junior_identities_user_id_junior_users_id_fk",
1211
+ "tableFrom": "junior_identities",
1212
+ "tableTo": "junior_users",
1213
+ "columnsFrom": [
1214
+ "user_id"
1215
+ ],
1216
+ "columnsTo": [
1217
+ "id"
1218
+ ],
1219
+ "onDelete": "no action",
1220
+ "onUpdate": "no action"
1221
+ }
1222
+ },
1223
+ "compositePrimaryKeys": {},
1224
+ "uniqueConstraints": {},
1225
+ "policies": {},
1226
+ "checkConstraints": {},
1227
+ "isRLSEnabled": false
1228
+ },
1229
+ "public.junior_stats": {
1230
+ "name": "junior_stats",
1231
+ "schema": "",
1232
+ "columns": {
1233
+ "date": {
1234
+ "name": "date",
1235
+ "type": "date",
1236
+ "primaryKey": false,
1237
+ "notNull": true
1238
+ },
1239
+ "namespace": {
1240
+ "name": "namespace",
1241
+ "type": "text",
1242
+ "primaryKey": false,
1243
+ "notNull": true
1244
+ },
1245
+ "metric": {
1246
+ "name": "metric",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true
1250
+ },
1251
+ "name": {
1252
+ "name": "name",
1253
+ "type": "text",
1254
+ "primaryKey": false,
1255
+ "notNull": true
1256
+ },
1257
+ "count": {
1258
+ "name": "count",
1259
+ "type": "integer",
1260
+ "primaryKey": false,
1261
+ "notNull": true,
1262
+ "default": 0
1263
+ }
1264
+ },
1265
+ "indexes": {},
1266
+ "foreignKeys": {},
1267
+ "compositePrimaryKeys": {
1268
+ "junior_stats_date_namespace_metric_name_pk": {
1269
+ "name": "junior_stats_date_namespace_metric_name_pk",
1270
+ "columns": [
1271
+ "date",
1272
+ "namespace",
1273
+ "metric",
1274
+ "name"
1275
+ ]
1276
+ }
1277
+ },
1278
+ "uniqueConstraints": {},
1279
+ "policies": {},
1280
+ "checkConstraints": {},
1281
+ "isRLSEnabled": false
1282
+ },
1283
+ "public.junior_users": {
1284
+ "name": "junior_users",
1285
+ "schema": "",
1286
+ "columns": {
1287
+ "id": {
1288
+ "name": "id",
1289
+ "type": "text",
1290
+ "primaryKey": true,
1291
+ "notNull": true
1292
+ },
1293
+ "primary_email": {
1294
+ "name": "primary_email",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": true
1298
+ },
1299
+ "primary_email_normalized": {
1300
+ "name": "primary_email_normalized",
1301
+ "type": "text",
1302
+ "primaryKey": false,
1303
+ "notNull": true
1304
+ },
1305
+ "display_name": {
1306
+ "name": "display_name",
1307
+ "type": "text",
1308
+ "primaryKey": false,
1309
+ "notNull": false
1310
+ },
1311
+ "created_at": {
1312
+ "name": "created_at",
1313
+ "type": "timestamp with time zone",
1314
+ "primaryKey": false,
1315
+ "notNull": true
1316
+ },
1317
+ "updated_at": {
1318
+ "name": "updated_at",
1319
+ "type": "timestamp with time zone",
1320
+ "primaryKey": false,
1321
+ "notNull": true
1322
+ }
1323
+ },
1324
+ "indexes": {
1325
+ "junior_users_primary_email_normalized_uidx": {
1326
+ "name": "junior_users_primary_email_normalized_uidx",
1327
+ "columns": [
1328
+ {
1329
+ "expression": "primary_email_normalized",
1330
+ "isExpression": false,
1331
+ "asc": true,
1332
+ "nulls": "last"
1333
+ }
1334
+ ],
1335
+ "isUnique": true,
1336
+ "concurrently": false,
1337
+ "method": "btree",
1338
+ "with": {}
1339
+ }
1340
+ },
1341
+ "foreignKeys": {},
1342
+ "compositePrimaryKeys": {},
1343
+ "uniqueConstraints": {},
1344
+ "policies": {},
1345
+ "checkConstraints": {},
1346
+ "isRLSEnabled": false
1347
+ }
1348
+ },
1349
+ "enums": {},
1350
+ "schemas": {},
1351
+ "sequences": {},
1352
+ "roles": {},
1353
+ "policies": {},
1354
+ "views": {},
1355
+ "_meta": {
1356
+ "columns": {},
1357
+ "schemas": {},
1358
+ "tables": {}
1359
+ }
1360
+ }