@sentry/junior 0.128.1 → 0.130.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-IWQNFJMS.js → agent-hooks-LJHLLMFC.js} +9 -9
  2. package/dist/api/schema/task.d.ts +152 -0
  3. package/dist/api/schema.d.ts +2 -0
  4. package/dist/api/schema.js +13 -3
  5. package/dist/api/tasks/routes.d.ts +4 -0
  6. package/dist/api.js +425 -23
  7. package/dist/app.js +309 -27
  8. package/dist/{catalog-runtime-KLSYFS4A.js → catalog-runtime-45AHWLJL.js} +5 -5
  9. package/dist/chat/agent-dispatch/context.d.ts +18 -0
  10. package/dist/chat/event-tasks/store.d.ts +7 -1
  11. package/dist/chat/event-tasks/tool-support.d.ts +1 -0
  12. package/dist/chat/resource-events/runtime-catalog.d.ts +3 -0
  13. package/dist/chat/scheduled-tasks/cadence.d.ts +27 -0
  14. package/dist/chat/scheduled-tasks/heartbeat.d.ts +6 -0
  15. package/dist/chat/scheduled-tasks/identity.d.ts +6 -0
  16. package/dist/chat/scheduled-tasks/personal.d.ts +26 -0
  17. package/dist/chat/scheduled-tasks/schedule-intent.d.ts +61 -0
  18. package/dist/chat/scheduled-tasks/store.d.ts +77 -0
  19. package/dist/chat/scheduled-tasks/tool-support.d.ts +203 -0
  20. package/dist/chat/scheduled-tasks/tools/create.d.ts +80 -0
  21. package/dist/chat/scheduled-tasks/tools/delete.d.ts +56 -0
  22. package/dist/chat/scheduled-tasks/tools/list.d.ts +54 -0
  23. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +56 -0
  24. package/dist/chat/scheduled-tasks/tools/update.d.ts +82 -0
  25. package/dist/chat/scheduled-tasks/tools.d.ts +6 -0
  26. package/dist/chat/scheduled-tasks/types.d.ts +81 -0
  27. package/dist/chat/tasks/read.d.ts +9 -0
  28. package/dist/chat/tools/scheduled-tasks.d.ts +4 -0
  29. package/dist/{chunk-AAMF2IRC.js → chunk-224V72RX.js} +1308 -804
  30. package/dist/{chunk-54KP2EAH.js → chunk-2V7BQAJ6.js} +12 -12
  31. package/dist/{chunk-J3YIO3LE.js → chunk-4AF3XOZI.js} +3 -3
  32. package/dist/{chunk-S2O64VXP.js → chunk-4X2MZ4FP.js} +6 -6
  33. package/dist/{chunk-5IR7SGRO.js → chunk-5I4SWLD7.js} +2 -2
  34. package/dist/{chunk-OIQCRZ67.js → chunk-5XDJRSU5.js} +4 -4
  35. package/dist/{chunk-MZ6ZOWMJ.js → chunk-7OO3LMEP.js} +1 -1
  36. package/dist/{chunk-Q5TMMCBV.js → chunk-A64VQ4N4.js} +1 -1
  37. package/dist/{chunk-R2LXTX4J.js → chunk-ATCTPG7J.js} +1 -1
  38. package/dist/{chunk-AFJF3RGU.js → chunk-BVKP37NE.js} +61 -13
  39. package/dist/{chunk-EHEACYJ6.js → chunk-DMS2RTEK.js} +1 -1
  40. package/dist/{chunk-H4HMCSOZ.js → chunk-EKZSU2RK.js} +5 -5
  41. package/dist/chunk-GXO3EXBM.js +1470 -0
  42. package/dist/{chunk-ETGUGGO2.js → chunk-H6GDE77O.js} +7 -7
  43. package/dist/{chunk-P7UUNWC4.js → chunk-HJHTRJKR.js} +4 -4
  44. package/dist/{chunk-TONH5NXR.js → chunk-J6B27DOC.js} +1 -1
  45. package/dist/{chunk-SHMHHXD5.js → chunk-KB2M27DL.js} +58 -0
  46. package/dist/{chunk-EOIA25WC.js → chunk-LYEXN7FN.js} +2 -2
  47. package/dist/{chunk-O3C5BJFD.js → chunk-PVHL3274.js} +1 -1
  48. package/dist/{chunk-O3YROBH4.js → chunk-RTJCNKQD.js} +1 -1
  49. package/dist/{chunk-LIJ4APSS.js → chunk-UDYVHDLH.js} +1 -1
  50. package/dist/{chunk-PLAMHS3D.js → chunk-XRROAXID.js} +2 -2
  51. package/dist/{chunk-MKM5552O.js → chunk-Z72XGIFF.js} +1 -2
  52. package/dist/cli/chat.js +24 -24
  53. package/dist/cli/check.js +6 -6
  54. package/dist/cli/plugins.js +12 -12
  55. package/dist/cli/snapshot-create.js +9 -9
  56. package/dist/cli/upgrade.js +9 -17
  57. package/dist/db/schema/scheduled-tasks.d.ts +257 -0
  58. package/dist/db/schema.d.ts +258 -1
  59. package/dist/{db-VOU5QNLY.js → db-XE6DXA5Z.js} +7 -7
  60. package/dist/instrumentation.js +4 -4
  61. package/dist/nitro.js +2 -2
  62. package/dist/{oauth-callback-server-GS7FBYBC.js → oauth-callback-server-O42UXC7E.js} +17 -17
  63. package/dist/{runner-GSJSBI3J.js → runner-BSP3374N.js} +11 -11
  64. package/dist/{skills-DSHG54LM.js → skills-BNLHOZ75.js} +6 -6
  65. package/dist/{validation-25XWT6TA.js → validation-O7BF3JX6.js} +6 -6
  66. package/dist/version.js +1 -1
  67. package/migrations/0016_neat_the_anarchist.sql +171 -0
  68. package/migrations/meta/0016_snapshot.json +1617 -0
  69. package/migrations/meta/_journal.json +7 -0
  70. package/package.json +4 -5
  71. package/dist/chunk-REHOYCYS.js +0 -37
@@ -0,0 +1,1617 @@
1
+ {
2
+ "id": "099cc3d5-3695-47ae-9c39-fd3eff0b6650",
3
+ "prevId": "15085af3-5b3d-41b9-b7f5-0e7accb9dff7",
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": ["conversation_id"],
159
+ "columnsTo": ["conversation_id"],
160
+ "onDelete": "cascade",
161
+ "onUpdate": "no action"
162
+ }
163
+ },
164
+ "compositePrimaryKeys": {
165
+ "junior_conversation_annotations_pk": {
166
+ "name": "junior_conversation_annotations_pk",
167
+ "columns": ["conversation_id", "plugin", "kind", "key"]
168
+ }
169
+ },
170
+ "uniqueConstraints": {},
171
+ "policies": {},
172
+ "checkConstraints": {},
173
+ "isRLSEnabled": false
174
+ },
175
+ "public.junior_conversation_events": {
176
+ "name": "junior_conversation_events",
177
+ "schema": "",
178
+ "columns": {
179
+ "conversation_id": {
180
+ "name": "conversation_id",
181
+ "type": "text",
182
+ "primaryKey": false,
183
+ "notNull": true
184
+ },
185
+ "seq": {
186
+ "name": "seq",
187
+ "type": "integer",
188
+ "primaryKey": false,
189
+ "notNull": true
190
+ },
191
+ "history_version": {
192
+ "name": "history_version",
193
+ "type": "integer",
194
+ "primaryKey": false,
195
+ "notNull": true
196
+ },
197
+ "schema_version": {
198
+ "name": "schema_version",
199
+ "type": "integer",
200
+ "primaryKey": false,
201
+ "notNull": true,
202
+ "default": 1
203
+ },
204
+ "idempotency_key": {
205
+ "name": "idempotency_key",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": false
209
+ },
210
+ "type": {
211
+ "name": "type",
212
+ "type": "text",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "payload": {
217
+ "name": "payload",
218
+ "type": "jsonb",
219
+ "primaryKey": false,
220
+ "notNull": true
221
+ },
222
+ "created_at": {
223
+ "name": "created_at",
224
+ "type": "timestamp with time zone",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ }
228
+ },
229
+ "indexes": {
230
+ "junior_conversation_events_history_version_idx": {
231
+ "name": "junior_conversation_events_history_version_idx",
232
+ "columns": [
233
+ {
234
+ "expression": "conversation_id",
235
+ "isExpression": false,
236
+ "asc": true,
237
+ "nulls": "last"
238
+ },
239
+ {
240
+ "expression": "history_version",
241
+ "isExpression": false,
242
+ "asc": true,
243
+ "nulls": "last"
244
+ },
245
+ {
246
+ "expression": "seq",
247
+ "isExpression": false,
248
+ "asc": true,
249
+ "nulls": "last"
250
+ }
251
+ ],
252
+ "isUnique": false,
253
+ "concurrently": false,
254
+ "method": "btree",
255
+ "with": {}
256
+ },
257
+ "junior_conversation_events_type_idx": {
258
+ "name": "junior_conversation_events_type_idx",
259
+ "columns": [
260
+ {
261
+ "expression": "conversation_id",
262
+ "isExpression": false,
263
+ "asc": true,
264
+ "nulls": "last"
265
+ },
266
+ {
267
+ "expression": "type",
268
+ "isExpression": false,
269
+ "asc": true,
270
+ "nulls": "last"
271
+ },
272
+ {
273
+ "expression": "seq",
274
+ "isExpression": false,
275
+ "asc": true,
276
+ "nulls": "last"
277
+ }
278
+ ],
279
+ "isUnique": false,
280
+ "concurrently": false,
281
+ "method": "btree",
282
+ "with": {}
283
+ },
284
+ "junior_conversation_events_message_search_idx": {
285
+ "name": "junior_conversation_events_message_search_idx",
286
+ "columns": [
287
+ {
288
+ "expression": "to_tsvector('english', \"payload\"->>'text')",
289
+ "asc": true,
290
+ "isExpression": true,
291
+ "nulls": "last"
292
+ }
293
+ ],
294
+ "isUnique": false,
295
+ "where": "\"junior_conversation_events\".\"type\" = 'message'",
296
+ "concurrently": false,
297
+ "method": "gin",
298
+ "with": {}
299
+ },
300
+ "junior_conversation_events_idempotency_idx": {
301
+ "name": "junior_conversation_events_idempotency_idx",
302
+ "columns": [
303
+ {
304
+ "expression": "conversation_id",
305
+ "isExpression": false,
306
+ "asc": true,
307
+ "nulls": "last"
308
+ },
309
+ {
310
+ "expression": "idempotency_key",
311
+ "isExpression": false,
312
+ "asc": true,
313
+ "nulls": "last"
314
+ }
315
+ ],
316
+ "isUnique": true,
317
+ "concurrently": false,
318
+ "method": "btree",
319
+ "with": {}
320
+ }
321
+ },
322
+ "foreignKeys": {
323
+ "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
324
+ "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
325
+ "tableFrom": "junior_conversation_events",
326
+ "tableTo": "junior_conversations",
327
+ "columnsFrom": ["conversation_id"],
328
+ "columnsTo": ["conversation_id"],
329
+ "onDelete": "no action",
330
+ "onUpdate": "no action"
331
+ }
332
+ },
333
+ "compositePrimaryKeys": {
334
+ "junior_conversation_events_conversation_id_seq_pk": {
335
+ "name": "junior_conversation_events_conversation_id_seq_pk",
336
+ "columns": ["conversation_id", "seq"]
337
+ }
338
+ },
339
+ "uniqueConstraints": {},
340
+ "policies": {},
341
+ "checkConstraints": {},
342
+ "isRLSEnabled": false
343
+ },
344
+ "public.junior_conversations": {
345
+ "name": "junior_conversations",
346
+ "schema": "",
347
+ "columns": {
348
+ "conversation_id": {
349
+ "name": "conversation_id",
350
+ "type": "text",
351
+ "primaryKey": true,
352
+ "notNull": true
353
+ },
354
+ "schema_version": {
355
+ "name": "schema_version",
356
+ "type": "integer",
357
+ "primaryKey": false,
358
+ "notNull": true,
359
+ "default": 1
360
+ },
361
+ "source": {
362
+ "name": "source",
363
+ "type": "text",
364
+ "primaryKey": false,
365
+ "notNull": false
366
+ },
367
+ "source_json": {
368
+ "name": "source_json",
369
+ "type": "jsonb",
370
+ "primaryKey": false,
371
+ "notNull": false
372
+ },
373
+ "origin_type": {
374
+ "name": "origin_type",
375
+ "type": "text",
376
+ "primaryKey": false,
377
+ "notNull": false
378
+ },
379
+ "origin_id": {
380
+ "name": "origin_id",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": false
384
+ },
385
+ "origin_run_id": {
386
+ "name": "origin_run_id",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": false
390
+ },
391
+ "destination_id": {
392
+ "name": "destination_id",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": false
396
+ },
397
+ "destination_json": {
398
+ "name": "destination_json",
399
+ "type": "jsonb",
400
+ "primaryKey": false,
401
+ "notNull": false
402
+ },
403
+ "actor_identity_id": {
404
+ "name": "actor_identity_id",
405
+ "type": "text",
406
+ "primaryKey": false,
407
+ "notNull": false
408
+ },
409
+ "creator_identity_id": {
410
+ "name": "creator_identity_id",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": false
414
+ },
415
+ "credential_subject_identity_id": {
416
+ "name": "credential_subject_identity_id",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": false
420
+ },
421
+ "actor_json": {
422
+ "name": "actor_json",
423
+ "type": "jsonb",
424
+ "primaryKey": false,
425
+ "notNull": false
426
+ },
427
+ "channel_name": {
428
+ "name": "channel_name",
429
+ "type": "text",
430
+ "primaryKey": false,
431
+ "notNull": false
432
+ },
433
+ "title": {
434
+ "name": "title",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": false
438
+ },
439
+ "created_at": {
440
+ "name": "created_at",
441
+ "type": "timestamp with time zone",
442
+ "primaryKey": false,
443
+ "notNull": true
444
+ },
445
+ "last_activity_at": {
446
+ "name": "last_activity_at",
447
+ "type": "timestamp with time zone",
448
+ "primaryKey": false,
449
+ "notNull": true
450
+ },
451
+ "updated_at": {
452
+ "name": "updated_at",
453
+ "type": "timestamp with time zone",
454
+ "primaryKey": false,
455
+ "notNull": true
456
+ },
457
+ "execution_updated_at": {
458
+ "name": "execution_updated_at",
459
+ "type": "timestamp with time zone",
460
+ "primaryKey": false,
461
+ "notNull": false
462
+ },
463
+ "execution_status": {
464
+ "name": "execution_status",
465
+ "type": "text",
466
+ "primaryKey": false,
467
+ "notNull": true
468
+ },
469
+ "run_id": {
470
+ "name": "run_id",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": false
474
+ },
475
+ "last_checkpoint_at": {
476
+ "name": "last_checkpoint_at",
477
+ "type": "timestamp with time zone",
478
+ "primaryKey": false,
479
+ "notNull": false
480
+ },
481
+ "last_enqueued_at": {
482
+ "name": "last_enqueued_at",
483
+ "type": "timestamp with time zone",
484
+ "primaryKey": false,
485
+ "notNull": false
486
+ },
487
+ "parent_conversation_id": {
488
+ "name": "parent_conversation_id",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": false
492
+ },
493
+ "root_conversation_id": {
494
+ "name": "root_conversation_id",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": false
498
+ },
499
+ "transcript_purged_at": {
500
+ "name": "transcript_purged_at",
501
+ "type": "timestamp with time zone",
502
+ "primaryKey": false,
503
+ "notNull": false
504
+ },
505
+ "duration_ms": {
506
+ "name": "duration_ms",
507
+ "type": "integer",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "default": 0
511
+ },
512
+ "usage_json": {
513
+ "name": "usage_json",
514
+ "type": "jsonb",
515
+ "primaryKey": false,
516
+ "notNull": false
517
+ },
518
+ "execution_duration_ms": {
519
+ "name": "execution_duration_ms",
520
+ "type": "integer",
521
+ "primaryKey": false,
522
+ "notNull": true,
523
+ "default": 0
524
+ },
525
+ "execution_usage_json": {
526
+ "name": "execution_usage_json",
527
+ "type": "jsonb",
528
+ "primaryKey": false,
529
+ "notNull": false
530
+ },
531
+ "metric_run_id": {
532
+ "name": "metric_run_id",
533
+ "type": "text",
534
+ "primaryKey": false,
535
+ "notNull": false
536
+ },
537
+ "archived_at": {
538
+ "name": "archived_at",
539
+ "type": "timestamp with time zone",
540
+ "primaryKey": false,
541
+ "notNull": false
542
+ }
543
+ },
544
+ "indexes": {
545
+ "junior_conversations_last_activity_idx": {
546
+ "name": "junior_conversations_last_activity_idx",
547
+ "columns": [
548
+ {
549
+ "expression": "last_activity_at",
550
+ "isExpression": false,
551
+ "asc": false,
552
+ "nulls": "last"
553
+ },
554
+ {
555
+ "expression": "conversation_id",
556
+ "isExpression": false,
557
+ "asc": true,
558
+ "nulls": "last"
559
+ }
560
+ ],
561
+ "isUnique": false,
562
+ "concurrently": false,
563
+ "method": "btree",
564
+ "with": {}
565
+ },
566
+ "junior_conversations_active_idx": {
567
+ "name": "junior_conversations_active_idx",
568
+ "columns": [
569
+ {
570
+ "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
571
+ "asc": true,
572
+ "isExpression": true,
573
+ "nulls": "last"
574
+ },
575
+ {
576
+ "expression": "conversation_id",
577
+ "isExpression": false,
578
+ "asc": true,
579
+ "nulls": "last"
580
+ }
581
+ ],
582
+ "isUnique": false,
583
+ "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
584
+ "concurrently": false,
585
+ "method": "btree",
586
+ "with": {}
587
+ },
588
+ "junior_conversations_destination_activity_idx": {
589
+ "name": "junior_conversations_destination_activity_idx",
590
+ "columns": [
591
+ {
592
+ "expression": "destination_id",
593
+ "isExpression": false,
594
+ "asc": true,
595
+ "nulls": "last"
596
+ },
597
+ {
598
+ "expression": "last_activity_at",
599
+ "isExpression": false,
600
+ "asc": false,
601
+ "nulls": "last"
602
+ }
603
+ ],
604
+ "isUnique": false,
605
+ "concurrently": false,
606
+ "method": "btree",
607
+ "with": {}
608
+ },
609
+ "junior_conversations_actor_activity_idx": {
610
+ "name": "junior_conversations_actor_activity_idx",
611
+ "columns": [
612
+ {
613
+ "expression": "actor_identity_id",
614
+ "isExpression": false,
615
+ "asc": true,
616
+ "nulls": "last"
617
+ },
618
+ {
619
+ "expression": "last_activity_at",
620
+ "isExpression": false,
621
+ "asc": false,
622
+ "nulls": "last"
623
+ }
624
+ ],
625
+ "isUnique": false,
626
+ "concurrently": false,
627
+ "method": "btree",
628
+ "with": {}
629
+ },
630
+ "junior_conversations_origin_idx": {
631
+ "name": "junior_conversations_origin_idx",
632
+ "columns": [
633
+ {
634
+ "expression": "origin_type",
635
+ "isExpression": false,
636
+ "asc": true,
637
+ "nulls": "last"
638
+ },
639
+ {
640
+ "expression": "origin_id",
641
+ "isExpression": false,
642
+ "asc": true,
643
+ "nulls": "last"
644
+ },
645
+ {
646
+ "expression": "last_activity_at",
647
+ "isExpression": false,
648
+ "asc": false,
649
+ "nulls": "last"
650
+ }
651
+ ],
652
+ "isUnique": false,
653
+ "concurrently": false,
654
+ "method": "btree",
655
+ "with": {}
656
+ },
657
+ "junior_conversations_parent_idx": {
658
+ "name": "junior_conversations_parent_idx",
659
+ "columns": [
660
+ {
661
+ "expression": "parent_conversation_id",
662
+ "isExpression": false,
663
+ "asc": true,
664
+ "nulls": "last"
665
+ }
666
+ ],
667
+ "isUnique": false,
668
+ "concurrently": false,
669
+ "method": "btree",
670
+ "with": {}
671
+ },
672
+ "junior_conversations_root_idx": {
673
+ "name": "junior_conversations_root_idx",
674
+ "columns": [
675
+ {
676
+ "expression": "root_conversation_id",
677
+ "isExpression": false,
678
+ "asc": true,
679
+ "nulls": "last"
680
+ }
681
+ ],
682
+ "isUnique": false,
683
+ "concurrently": false,
684
+ "method": "btree",
685
+ "with": {}
686
+ }
687
+ },
688
+ "foreignKeys": {
689
+ "junior_conversations_destination_id_junior_destinations_id_fk": {
690
+ "name": "junior_conversations_destination_id_junior_destinations_id_fk",
691
+ "tableFrom": "junior_conversations",
692
+ "tableTo": "junior_destinations",
693
+ "columnsFrom": ["destination_id"],
694
+ "columnsTo": ["id"],
695
+ "onDelete": "no action",
696
+ "onUpdate": "no action"
697
+ },
698
+ "junior_conversations_actor_identity_id_junior_identities_id_fk": {
699
+ "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
700
+ "tableFrom": "junior_conversations",
701
+ "tableTo": "junior_identities",
702
+ "columnsFrom": ["actor_identity_id"],
703
+ "columnsTo": ["id"],
704
+ "onDelete": "no action",
705
+ "onUpdate": "no action"
706
+ },
707
+ "junior_conversations_creator_identity_id_junior_identities_id_fk": {
708
+ "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
709
+ "tableFrom": "junior_conversations",
710
+ "tableTo": "junior_identities",
711
+ "columnsFrom": ["creator_identity_id"],
712
+ "columnsTo": ["id"],
713
+ "onDelete": "no action",
714
+ "onUpdate": "no action"
715
+ },
716
+ "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
717
+ "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
718
+ "tableFrom": "junior_conversations",
719
+ "tableTo": "junior_identities",
720
+ "columnsFrom": ["credential_subject_identity_id"],
721
+ "columnsTo": ["id"],
722
+ "onDelete": "no action",
723
+ "onUpdate": "no action"
724
+ },
725
+ "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
726
+ "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
727
+ "tableFrom": "junior_conversations",
728
+ "tableTo": "junior_conversations",
729
+ "columnsFrom": ["parent_conversation_id"],
730
+ "columnsTo": ["conversation_id"],
731
+ "onDelete": "no action",
732
+ "onUpdate": "no action"
733
+ },
734
+ "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
735
+ "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
736
+ "tableFrom": "junior_conversations",
737
+ "tableTo": "junior_conversations",
738
+ "columnsFrom": ["root_conversation_id"],
739
+ "columnsTo": ["conversation_id"],
740
+ "onDelete": "no action",
741
+ "onUpdate": "no action"
742
+ }
743
+ },
744
+ "compositePrimaryKeys": {},
745
+ "uniqueConstraints": {},
746
+ "policies": {},
747
+ "checkConstraints": {},
748
+ "isRLSEnabled": false
749
+ },
750
+ "public.junior_destinations": {
751
+ "name": "junior_destinations",
752
+ "schema": "",
753
+ "columns": {
754
+ "id": {
755
+ "name": "id",
756
+ "type": "text",
757
+ "primaryKey": true,
758
+ "notNull": true
759
+ },
760
+ "provider": {
761
+ "name": "provider",
762
+ "type": "text",
763
+ "primaryKey": false,
764
+ "notNull": true
765
+ },
766
+ "provider_tenant_id": {
767
+ "name": "provider_tenant_id",
768
+ "type": "text",
769
+ "primaryKey": false,
770
+ "notNull": true,
771
+ "default": "''"
772
+ },
773
+ "provider_destination_id": {
774
+ "name": "provider_destination_id",
775
+ "type": "text",
776
+ "primaryKey": false,
777
+ "notNull": true
778
+ },
779
+ "kind": {
780
+ "name": "kind",
781
+ "type": "text",
782
+ "primaryKey": false,
783
+ "notNull": true
784
+ },
785
+ "parent_destination_id": {
786
+ "name": "parent_destination_id",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": false
790
+ },
791
+ "display_name": {
792
+ "name": "display_name",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": false
796
+ },
797
+ "visibility": {
798
+ "name": "visibility",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": true,
802
+ "default": "'unknown'"
803
+ },
804
+ "metadata_json": {
805
+ "name": "metadata_json",
806
+ "type": "jsonb",
807
+ "primaryKey": false,
808
+ "notNull": false
809
+ },
810
+ "created_at": {
811
+ "name": "created_at",
812
+ "type": "timestamp with time zone",
813
+ "primaryKey": false,
814
+ "notNull": true
815
+ },
816
+ "updated_at": {
817
+ "name": "updated_at",
818
+ "type": "timestamp with time zone",
819
+ "primaryKey": false,
820
+ "notNull": true
821
+ }
822
+ },
823
+ "indexes": {
824
+ "junior_destinations_provider_destination_uidx": {
825
+ "name": "junior_destinations_provider_destination_uidx",
826
+ "columns": [
827
+ {
828
+ "expression": "provider",
829
+ "isExpression": false,
830
+ "asc": true,
831
+ "nulls": "last"
832
+ },
833
+ {
834
+ "expression": "provider_tenant_id",
835
+ "isExpression": false,
836
+ "asc": true,
837
+ "nulls": "last"
838
+ },
839
+ {
840
+ "expression": "provider_destination_id",
841
+ "isExpression": false,
842
+ "asc": true,
843
+ "nulls": "last"
844
+ }
845
+ ],
846
+ "isUnique": true,
847
+ "concurrently": false,
848
+ "method": "btree",
849
+ "with": {}
850
+ },
851
+ "junior_destinations_provider_kind_idx": {
852
+ "name": "junior_destinations_provider_kind_idx",
853
+ "columns": [
854
+ {
855
+ "expression": "provider",
856
+ "isExpression": false,
857
+ "asc": true,
858
+ "nulls": "last"
859
+ },
860
+ {
861
+ "expression": "kind",
862
+ "isExpression": false,
863
+ "asc": true,
864
+ "nulls": "last"
865
+ }
866
+ ],
867
+ "isUnique": false,
868
+ "concurrently": false,
869
+ "method": "btree",
870
+ "with": {}
871
+ }
872
+ },
873
+ "foreignKeys": {},
874
+ "compositePrimaryKeys": {},
875
+ "uniqueConstraints": {},
876
+ "policies": {},
877
+ "checkConstraints": {},
878
+ "isRLSEnabled": false
879
+ },
880
+ "public.junior_event_tasks": {
881
+ "name": "junior_event_tasks",
882
+ "schema": "",
883
+ "columns": {
884
+ "id": {
885
+ "name": "id",
886
+ "type": "text",
887
+ "primaryKey": true,
888
+ "notNull": true
889
+ },
890
+ "team_id": {
891
+ "name": "team_id",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true
895
+ },
896
+ "namespace": {
897
+ "name": "namespace",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": true
901
+ },
902
+ "identifier": {
903
+ "name": "identifier",
904
+ "type": "text",
905
+ "primaryKey": false,
906
+ "notNull": true
907
+ },
908
+ "created_at_ms": {
909
+ "name": "created_at_ms",
910
+ "type": "bigint",
911
+ "primaryKey": false,
912
+ "notNull": true
913
+ },
914
+ "task_json": {
915
+ "name": "task_json",
916
+ "type": "jsonb",
917
+ "primaryKey": false,
918
+ "notNull": true
919
+ }
920
+ },
921
+ "indexes": {
922
+ "junior_event_tasks_team_idx": {
923
+ "name": "junior_event_tasks_team_idx",
924
+ "columns": [
925
+ {
926
+ "expression": "team_id",
927
+ "isExpression": false,
928
+ "asc": true,
929
+ "nulls": "last"
930
+ },
931
+ {
932
+ "expression": "created_at_ms",
933
+ "isExpression": false,
934
+ "asc": true,
935
+ "nulls": "last"
936
+ },
937
+ {
938
+ "expression": "id",
939
+ "isExpression": false,
940
+ "asc": true,
941
+ "nulls": "last"
942
+ }
943
+ ],
944
+ "isUnique": false,
945
+ "concurrently": false,
946
+ "method": "btree",
947
+ "with": {}
948
+ },
949
+ "junior_event_tasks_match_idx": {
950
+ "name": "junior_event_tasks_match_idx",
951
+ "columns": [
952
+ {
953
+ "expression": "namespace",
954
+ "isExpression": false,
955
+ "asc": true,
956
+ "nulls": "last"
957
+ },
958
+ {
959
+ "expression": "identifier",
960
+ "isExpression": false,
961
+ "asc": true,
962
+ "nulls": "last"
963
+ },
964
+ {
965
+ "expression": "created_at_ms",
966
+ "isExpression": false,
967
+ "asc": true,
968
+ "nulls": "last"
969
+ },
970
+ {
971
+ "expression": "id",
972
+ "isExpression": false,
973
+ "asc": true,
974
+ "nulls": "last"
975
+ }
976
+ ],
977
+ "isUnique": false,
978
+ "concurrently": false,
979
+ "method": "btree",
980
+ "with": {}
981
+ }
982
+ },
983
+ "foreignKeys": {},
984
+ "compositePrimaryKeys": {},
985
+ "uniqueConstraints": {},
986
+ "policies": {},
987
+ "checkConstraints": {},
988
+ "isRLSEnabled": false
989
+ },
990
+ "public.junior_identities": {
991
+ "name": "junior_identities",
992
+ "schema": "",
993
+ "columns": {
994
+ "id": {
995
+ "name": "id",
996
+ "type": "text",
997
+ "primaryKey": true,
998
+ "notNull": true
999
+ },
1000
+ "kind": {
1001
+ "name": "kind",
1002
+ "type": "text",
1003
+ "primaryKey": false,
1004
+ "notNull": true
1005
+ },
1006
+ "provider": {
1007
+ "name": "provider",
1008
+ "type": "text",
1009
+ "primaryKey": false,
1010
+ "notNull": true
1011
+ },
1012
+ "provider_tenant_id": {
1013
+ "name": "provider_tenant_id",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": true,
1017
+ "default": "''"
1018
+ },
1019
+ "provider_subject_id": {
1020
+ "name": "provider_subject_id",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": true
1024
+ },
1025
+ "display_name": {
1026
+ "name": "display_name",
1027
+ "type": "text",
1028
+ "primaryKey": false,
1029
+ "notNull": false
1030
+ },
1031
+ "handle": {
1032
+ "name": "handle",
1033
+ "type": "text",
1034
+ "primaryKey": false,
1035
+ "notNull": false
1036
+ },
1037
+ "email": {
1038
+ "name": "email",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": false
1042
+ },
1043
+ "avatar_url": {
1044
+ "name": "avatar_url",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": false
1048
+ },
1049
+ "metadata_json": {
1050
+ "name": "metadata_json",
1051
+ "type": "jsonb",
1052
+ "primaryKey": false,
1053
+ "notNull": false
1054
+ },
1055
+ "created_at": {
1056
+ "name": "created_at",
1057
+ "type": "timestamp with time zone",
1058
+ "primaryKey": false,
1059
+ "notNull": true
1060
+ },
1061
+ "updated_at": {
1062
+ "name": "updated_at",
1063
+ "type": "timestamp with time zone",
1064
+ "primaryKey": false,
1065
+ "notNull": true
1066
+ },
1067
+ "user_id": {
1068
+ "name": "user_id",
1069
+ "type": "text",
1070
+ "primaryKey": false,
1071
+ "notNull": false
1072
+ },
1073
+ "email_normalized": {
1074
+ "name": "email_normalized",
1075
+ "type": "text",
1076
+ "primaryKey": false,
1077
+ "notNull": false
1078
+ },
1079
+ "email_verified": {
1080
+ "name": "email_verified",
1081
+ "type": "boolean",
1082
+ "primaryKey": false,
1083
+ "notNull": true,
1084
+ "default": false
1085
+ }
1086
+ },
1087
+ "indexes": {
1088
+ "junior_identities_provider_subject_uidx": {
1089
+ "name": "junior_identities_provider_subject_uidx",
1090
+ "columns": [
1091
+ {
1092
+ "expression": "provider",
1093
+ "isExpression": false,
1094
+ "asc": true,
1095
+ "nulls": "last"
1096
+ },
1097
+ {
1098
+ "expression": "provider_tenant_id",
1099
+ "isExpression": false,
1100
+ "asc": true,
1101
+ "nulls": "last"
1102
+ },
1103
+ {
1104
+ "expression": "provider_subject_id",
1105
+ "isExpression": false,
1106
+ "asc": true,
1107
+ "nulls": "last"
1108
+ }
1109
+ ],
1110
+ "isUnique": true,
1111
+ "concurrently": false,
1112
+ "method": "btree",
1113
+ "with": {}
1114
+ },
1115
+ "junior_identities_user_idx": {
1116
+ "name": "junior_identities_user_idx",
1117
+ "columns": [
1118
+ {
1119
+ "expression": "user_id",
1120
+ "isExpression": false,
1121
+ "asc": true,
1122
+ "nulls": "last"
1123
+ }
1124
+ ],
1125
+ "isUnique": false,
1126
+ "concurrently": false,
1127
+ "method": "btree",
1128
+ "with": {}
1129
+ },
1130
+ "junior_identities_verified_email_idx": {
1131
+ "name": "junior_identities_verified_email_idx",
1132
+ "columns": [
1133
+ {
1134
+ "expression": "email_normalized",
1135
+ "isExpression": false,
1136
+ "asc": true,
1137
+ "nulls": "last"
1138
+ }
1139
+ ],
1140
+ "isUnique": false,
1141
+ "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
1142
+ "concurrently": false,
1143
+ "method": "btree",
1144
+ "with": {}
1145
+ },
1146
+ "junior_identities_kind_provider_idx": {
1147
+ "name": "junior_identities_kind_provider_idx",
1148
+ "columns": [
1149
+ {
1150
+ "expression": "kind",
1151
+ "isExpression": false,
1152
+ "asc": true,
1153
+ "nulls": "last"
1154
+ },
1155
+ {
1156
+ "expression": "provider",
1157
+ "isExpression": false,
1158
+ "asc": true,
1159
+ "nulls": "last"
1160
+ }
1161
+ ],
1162
+ "isUnique": false,
1163
+ "concurrently": false,
1164
+ "method": "btree",
1165
+ "with": {}
1166
+ }
1167
+ },
1168
+ "foreignKeys": {
1169
+ "junior_identities_user_id_junior_users_id_fk": {
1170
+ "name": "junior_identities_user_id_junior_users_id_fk",
1171
+ "tableFrom": "junior_identities",
1172
+ "tableTo": "junior_users",
1173
+ "columnsFrom": ["user_id"],
1174
+ "columnsTo": ["id"],
1175
+ "onDelete": "no action",
1176
+ "onUpdate": "no action"
1177
+ }
1178
+ },
1179
+ "compositePrimaryKeys": {},
1180
+ "uniqueConstraints": {},
1181
+ "policies": {},
1182
+ "checkConstraints": {},
1183
+ "isRLSEnabled": false
1184
+ },
1185
+ "public.junior_scheduler_runs": {
1186
+ "name": "junior_scheduler_runs",
1187
+ "schema": "",
1188
+ "columns": {
1189
+ "id": {
1190
+ "name": "id",
1191
+ "type": "text",
1192
+ "primaryKey": true,
1193
+ "notNull": true
1194
+ },
1195
+ "task_id": {
1196
+ "name": "task_id",
1197
+ "type": "text",
1198
+ "primaryKey": false,
1199
+ "notNull": true
1200
+ },
1201
+ "status": {
1202
+ "name": "status",
1203
+ "type": "text",
1204
+ "primaryKey": false,
1205
+ "notNull": true
1206
+ },
1207
+ "scheduled_for_ms": {
1208
+ "name": "scheduled_for_ms",
1209
+ "type": "bigint",
1210
+ "primaryKey": false,
1211
+ "notNull": true
1212
+ },
1213
+ "record": {
1214
+ "name": "record",
1215
+ "type": "jsonb",
1216
+ "primaryKey": false,
1217
+ "notNull": true
1218
+ }
1219
+ },
1220
+ "indexes": {
1221
+ "junior_scheduler_runs_task_status_idx": {
1222
+ "name": "junior_scheduler_runs_task_status_idx",
1223
+ "columns": [
1224
+ {
1225
+ "expression": "task_id",
1226
+ "isExpression": false,
1227
+ "asc": true,
1228
+ "nulls": "last"
1229
+ },
1230
+ {
1231
+ "expression": "status",
1232
+ "isExpression": false,
1233
+ "asc": true,
1234
+ "nulls": "last"
1235
+ },
1236
+ {
1237
+ "expression": "scheduled_for_ms",
1238
+ "isExpression": false,
1239
+ "asc": true,
1240
+ "nulls": "last"
1241
+ }
1242
+ ],
1243
+ "isUnique": false,
1244
+ "concurrently": false,
1245
+ "method": "btree",
1246
+ "with": {}
1247
+ },
1248
+ "junior_scheduler_runs_status_idx": {
1249
+ "name": "junior_scheduler_runs_status_idx",
1250
+ "columns": [
1251
+ {
1252
+ "expression": "status",
1253
+ "isExpression": false,
1254
+ "asc": true,
1255
+ "nulls": "last"
1256
+ },
1257
+ {
1258
+ "expression": "scheduled_for_ms",
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_scheduler_tasks": {
1278
+ "name": "junior_scheduler_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
+ "creator_slack_user_id": {
1294
+ "name": "creator_slack_user_id",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": false
1298
+ },
1299
+ "creator_identity_id": {
1300
+ "name": "creator_identity_id",
1301
+ "type": "text",
1302
+ "primaryKey": false,
1303
+ "notNull": false
1304
+ },
1305
+ "status": {
1306
+ "name": "status",
1307
+ "type": "text",
1308
+ "primaryKey": false,
1309
+ "notNull": true
1310
+ },
1311
+ "next_run_at_ms": {
1312
+ "name": "next_run_at_ms",
1313
+ "type": "bigint",
1314
+ "primaryKey": false,
1315
+ "notNull": false
1316
+ },
1317
+ "run_now_at_ms": {
1318
+ "name": "run_now_at_ms",
1319
+ "type": "bigint",
1320
+ "primaryKey": false,
1321
+ "notNull": false
1322
+ },
1323
+ "created_at_ms": {
1324
+ "name": "created_at_ms",
1325
+ "type": "bigint",
1326
+ "primaryKey": false,
1327
+ "notNull": true
1328
+ },
1329
+ "record": {
1330
+ "name": "record",
1331
+ "type": "jsonb",
1332
+ "primaryKey": false,
1333
+ "notNull": true
1334
+ }
1335
+ },
1336
+ "indexes": {
1337
+ "junior_scheduler_tasks_creator_idx": {
1338
+ "name": "junior_scheduler_tasks_creator_idx",
1339
+ "columns": [
1340
+ {
1341
+ "expression": "team_id",
1342
+ "isExpression": false,
1343
+ "asc": true,
1344
+ "nulls": "last"
1345
+ },
1346
+ {
1347
+ "expression": "creator_slack_user_id",
1348
+ "isExpression": false,
1349
+ "asc": true,
1350
+ "nulls": "last"
1351
+ },
1352
+ {
1353
+ "expression": "created_at_ms",
1354
+ "isExpression": false,
1355
+ "asc": true,
1356
+ "nulls": "last"
1357
+ },
1358
+ {
1359
+ "expression": "id",
1360
+ "isExpression": false,
1361
+ "asc": true,
1362
+ "nulls": "last"
1363
+ }
1364
+ ],
1365
+ "isUnique": false,
1366
+ "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
1367
+ "concurrently": false,
1368
+ "method": "btree",
1369
+ "with": {}
1370
+ },
1371
+ "junior_scheduler_tasks_creator_identity_idx": {
1372
+ "name": "junior_scheduler_tasks_creator_identity_idx",
1373
+ "columns": [
1374
+ {
1375
+ "expression": "creator_identity_id",
1376
+ "isExpression": false,
1377
+ "asc": true,
1378
+ "nulls": "last"
1379
+ },
1380
+ {
1381
+ "expression": "created_at_ms",
1382
+ "isExpression": false,
1383
+ "asc": true,
1384
+ "nulls": "last"
1385
+ },
1386
+ {
1387
+ "expression": "id",
1388
+ "isExpression": false,
1389
+ "asc": true,
1390
+ "nulls": "last"
1391
+ }
1392
+ ],
1393
+ "isUnique": false,
1394
+ "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted' AND \"junior_scheduler_tasks\".\"creator_identity_id\" IS NOT NULL",
1395
+ "concurrently": false,
1396
+ "method": "btree",
1397
+ "with": {}
1398
+ },
1399
+ "junior_scheduler_tasks_team_status_idx": {
1400
+ "name": "junior_scheduler_tasks_team_status_idx",
1401
+ "columns": [
1402
+ {
1403
+ "expression": "team_id",
1404
+ "isExpression": false,
1405
+ "asc": true,
1406
+ "nulls": "last"
1407
+ },
1408
+ {
1409
+ "expression": "created_at_ms",
1410
+ "isExpression": false,
1411
+ "asc": true,
1412
+ "nulls": "last"
1413
+ },
1414
+ {
1415
+ "expression": "id",
1416
+ "isExpression": false,
1417
+ "asc": true,
1418
+ "nulls": "last"
1419
+ }
1420
+ ],
1421
+ "isUnique": false,
1422
+ "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
1423
+ "concurrently": false,
1424
+ "method": "btree",
1425
+ "with": {}
1426
+ },
1427
+ "junior_scheduler_tasks_run_now_due_idx": {
1428
+ "name": "junior_scheduler_tasks_run_now_due_idx",
1429
+ "columns": [
1430
+ {
1431
+ "expression": "run_now_at_ms",
1432
+ "isExpression": false,
1433
+ "asc": true,
1434
+ "nulls": "last"
1435
+ },
1436
+ {
1437
+ "expression": "created_at_ms",
1438
+ "isExpression": false,
1439
+ "asc": true,
1440
+ "nulls": "last"
1441
+ },
1442
+ {
1443
+ "expression": "id",
1444
+ "isExpression": false,
1445
+ "asc": true,
1446
+ "nulls": "last"
1447
+ }
1448
+ ],
1449
+ "isUnique": false,
1450
+ "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"run_now_at_ms\" IS NOT NULL",
1451
+ "concurrently": false,
1452
+ "method": "btree",
1453
+ "with": {}
1454
+ },
1455
+ "junior_scheduler_tasks_next_run_due_idx": {
1456
+ "name": "junior_scheduler_tasks_next_run_due_idx",
1457
+ "columns": [
1458
+ {
1459
+ "expression": "next_run_at_ms",
1460
+ "isExpression": false,
1461
+ "asc": true,
1462
+ "nulls": "last"
1463
+ },
1464
+ {
1465
+ "expression": "created_at_ms",
1466
+ "isExpression": false,
1467
+ "asc": true,
1468
+ "nulls": "last"
1469
+ },
1470
+ {
1471
+ "expression": "id",
1472
+ "isExpression": false,
1473
+ "asc": true,
1474
+ "nulls": "last"
1475
+ }
1476
+ ],
1477
+ "isUnique": false,
1478
+ "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"next_run_at_ms\" IS NOT NULL",
1479
+ "concurrently": false,
1480
+ "method": "btree",
1481
+ "with": {}
1482
+ }
1483
+ },
1484
+ "foreignKeys": {},
1485
+ "compositePrimaryKeys": {},
1486
+ "uniqueConstraints": {},
1487
+ "policies": {},
1488
+ "checkConstraints": {},
1489
+ "isRLSEnabled": false
1490
+ },
1491
+ "public.junior_stats": {
1492
+ "name": "junior_stats",
1493
+ "schema": "",
1494
+ "columns": {
1495
+ "date": {
1496
+ "name": "date",
1497
+ "type": "date",
1498
+ "primaryKey": false,
1499
+ "notNull": true
1500
+ },
1501
+ "namespace": {
1502
+ "name": "namespace",
1503
+ "type": "text",
1504
+ "primaryKey": false,
1505
+ "notNull": true
1506
+ },
1507
+ "metric": {
1508
+ "name": "metric",
1509
+ "type": "text",
1510
+ "primaryKey": false,
1511
+ "notNull": true
1512
+ },
1513
+ "name": {
1514
+ "name": "name",
1515
+ "type": "text",
1516
+ "primaryKey": false,
1517
+ "notNull": true
1518
+ },
1519
+ "count": {
1520
+ "name": "count",
1521
+ "type": "integer",
1522
+ "primaryKey": false,
1523
+ "notNull": true,
1524
+ "default": 0
1525
+ }
1526
+ },
1527
+ "indexes": {},
1528
+ "foreignKeys": {},
1529
+ "compositePrimaryKeys": {
1530
+ "junior_stats_date_namespace_metric_name_pk": {
1531
+ "name": "junior_stats_date_namespace_metric_name_pk",
1532
+ "columns": ["date", "namespace", "metric", "name"]
1533
+ }
1534
+ },
1535
+ "uniqueConstraints": {},
1536
+ "policies": {},
1537
+ "checkConstraints": {},
1538
+ "isRLSEnabled": false
1539
+ },
1540
+ "public.junior_users": {
1541
+ "name": "junior_users",
1542
+ "schema": "",
1543
+ "columns": {
1544
+ "id": {
1545
+ "name": "id",
1546
+ "type": "text",
1547
+ "primaryKey": true,
1548
+ "notNull": true
1549
+ },
1550
+ "primary_email": {
1551
+ "name": "primary_email",
1552
+ "type": "text",
1553
+ "primaryKey": false,
1554
+ "notNull": true
1555
+ },
1556
+ "primary_email_normalized": {
1557
+ "name": "primary_email_normalized",
1558
+ "type": "text",
1559
+ "primaryKey": false,
1560
+ "notNull": true
1561
+ },
1562
+ "display_name": {
1563
+ "name": "display_name",
1564
+ "type": "text",
1565
+ "primaryKey": false,
1566
+ "notNull": false
1567
+ },
1568
+ "created_at": {
1569
+ "name": "created_at",
1570
+ "type": "timestamp with time zone",
1571
+ "primaryKey": false,
1572
+ "notNull": true
1573
+ },
1574
+ "updated_at": {
1575
+ "name": "updated_at",
1576
+ "type": "timestamp with time zone",
1577
+ "primaryKey": false,
1578
+ "notNull": true
1579
+ }
1580
+ },
1581
+ "indexes": {
1582
+ "junior_users_primary_email_normalized_uidx": {
1583
+ "name": "junior_users_primary_email_normalized_uidx",
1584
+ "columns": [
1585
+ {
1586
+ "expression": "primary_email_normalized",
1587
+ "isExpression": false,
1588
+ "asc": true,
1589
+ "nulls": "last"
1590
+ }
1591
+ ],
1592
+ "isUnique": true,
1593
+ "concurrently": false,
1594
+ "method": "btree",
1595
+ "with": {}
1596
+ }
1597
+ },
1598
+ "foreignKeys": {},
1599
+ "compositePrimaryKeys": {},
1600
+ "uniqueConstraints": {},
1601
+ "policies": {},
1602
+ "checkConstraints": {},
1603
+ "isRLSEnabled": false
1604
+ }
1605
+ },
1606
+ "enums": {},
1607
+ "schemas": {},
1608
+ "sequences": {},
1609
+ "roles": {},
1610
+ "policies": {},
1611
+ "views": {},
1612
+ "_meta": {
1613
+ "columns": {},
1614
+ "schemas": {},
1615
+ "tables": {}
1616
+ }
1617
+ }