@openscout/scout 0.2.70 → 0.2.73

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 (46) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +59 -3
  3. package/bin/openscout-runtime.mjs +23 -2
  4. package/bin/scout +34 -0
  5. package/bin/scout.mjs +195 -18
  6. package/bin/scoutd +0 -0
  7. package/dist/client/apple-touch-icon.png +0 -0
  8. package/dist/client/assets/RepoDiffViewer-D8gg36W3.js +56 -0
  9. package/dist/client/assets/{addon-fit-BNV7JPhj.js → addon-fit-D4KdY-pj.js} +1 -1
  10. package/dist/client/assets/{addon-webgl-B-_Y5L3F.js → addon-webgl-Bo_tmKBp.js} +1 -1
  11. package/dist/client/assets/arc.es-D0gujIKy.js +188 -0
  12. package/dist/client/assets/embed-entry-CUVNwyB_.js +1 -0
  13. package/dist/client/assets/index-CRkjiso5.js +257 -0
  14. package/dist/client/assets/index-D_RX2cRb.css +1 -0
  15. package/dist/client/assets/{xterm-Cx1oABPt.js → xterm-RfflDFod.js} +1 -1
  16. package/dist/client/favicon-16.png +0 -0
  17. package/dist/client/favicon-32.png +0 -0
  18. package/dist/client/favicon.ico +0 -0
  19. package/dist/client/favicon.svg +48 -0
  20. package/dist/client/index.html +42 -2
  21. package/dist/client/openscout-icon.png +0 -0
  22. package/dist/client/site.webmanifest +19 -0
  23. package/dist/client/web-app-icon-192.png +0 -0
  24. package/dist/client/web-app-icon-512.png +0 -0
  25. package/dist/drizzle/0000_curly_iron_monger.sql +592 -0
  26. package/dist/drizzle/0001_invocation-status-columns.sql +7 -0
  27. package/dist/drizzle/0002_invocation-flight-metadata.sql +21 -0
  28. package/dist/drizzle/README.md +81 -0
  29. package/dist/drizzle/meta/0000_snapshot.json +4575 -0
  30. package/dist/drizzle/meta/0001_snapshot.json +4624 -0
  31. package/dist/drizzle/meta/0002_snapshot.json +4631 -0
  32. package/dist/drizzle/meta/_journal.json +27 -0
  33. package/dist/main.mjs +77080 -60152
  34. package/dist/node/main.mjs +7607 -0
  35. package/dist/openscout-terminal-relay.mjs +3830 -152
  36. package/dist/{pair-supervisor.mjs → pairing-runtime-controller.mjs} +50837 -41212
  37. package/dist/runtime/base-daemon.mjs +2219 -488
  38. package/dist/runtime/broker-daemon.mjs +39082 -25118
  39. package/dist/runtime/broker-process-manager.mjs +2048 -392
  40. package/dist/runtime/mesh-discover.mjs +2012 -391
  41. package/dist/scout-control-plane-web.mjs +58128 -34736
  42. package/dist/scout-web-server.mjs +58128 -34736
  43. package/dist/statusline.mjs +287 -0
  44. package/package.json +8 -4
  45. package/dist/client/assets/index-BJri_z5a.css +0 -1
  46. package/dist/client/assets/index-Ccjo5BZz.js +0 -199
@@ -0,0 +1,4631 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "d1e020a5-0d70-483a-8558-f1ea96db1e00",
5
+ "prevId": "dbe34c24-02bb-4848-8613-a4198e27ef5a",
6
+ "tables": {
7
+ "activity_items": {
8
+ "name": "activity_items",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "kind": {
18
+ "name": "kind",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "ts": {
25
+ "name": "ts",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "conversation_id": {
32
+ "name": "conversation_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "message_id": {
39
+ "name": "message_id",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "invocation_id": {
46
+ "name": "invocation_id",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "flight_id": {
53
+ "name": "flight_id",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "record_id": {
60
+ "name": "record_id",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "actor_id": {
67
+ "name": "actor_id",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false,
71
+ "autoincrement": false
72
+ },
73
+ "counterpart_id": {
74
+ "name": "counterpart_id",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false,
78
+ "autoincrement": false
79
+ },
80
+ "agent_id": {
81
+ "name": "agent_id",
82
+ "type": "text",
83
+ "primaryKey": false,
84
+ "notNull": false,
85
+ "autoincrement": false
86
+ },
87
+ "workspace_root": {
88
+ "name": "workspace_root",
89
+ "type": "text",
90
+ "primaryKey": false,
91
+ "notNull": false,
92
+ "autoincrement": false
93
+ },
94
+ "session_id": {
95
+ "name": "session_id",
96
+ "type": "text",
97
+ "primaryKey": false,
98
+ "notNull": false,
99
+ "autoincrement": false
100
+ },
101
+ "title": {
102
+ "name": "title",
103
+ "type": "text",
104
+ "primaryKey": false,
105
+ "notNull": false,
106
+ "autoincrement": false
107
+ },
108
+ "summary": {
109
+ "name": "summary",
110
+ "type": "text",
111
+ "primaryKey": false,
112
+ "notNull": false,
113
+ "autoincrement": false
114
+ },
115
+ "payload_json": {
116
+ "name": "payload_json",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": false,
120
+ "autoincrement": false
121
+ }
122
+ },
123
+ "indexes": {
124
+ "idx_activity_items_agent_ts": {
125
+ "name": "idx_activity_items_agent_ts",
126
+ "columns": [
127
+ "agent_id",
128
+ "\"ts\" desc"
129
+ ],
130
+ "isUnique": false
131
+ },
132
+ "idx_activity_items_actor_ts": {
133
+ "name": "idx_activity_items_actor_ts",
134
+ "columns": [
135
+ "actor_id",
136
+ "\"ts\" desc"
137
+ ],
138
+ "isUnique": false
139
+ },
140
+ "idx_activity_items_conversation_ts": {
141
+ "name": "idx_activity_items_conversation_ts",
142
+ "columns": [
143
+ "conversation_id",
144
+ "\"ts\" desc"
145
+ ],
146
+ "isUnique": false
147
+ },
148
+ "idx_activity_items_ts": {
149
+ "name": "idx_activity_items_ts",
150
+ "columns": [
151
+ "\"ts\" desc"
152
+ ],
153
+ "isUnique": false
154
+ },
155
+ "idx_activity_items_workspace_ts": {
156
+ "name": "idx_activity_items_workspace_ts",
157
+ "columns": [
158
+ "workspace_root",
159
+ "\"ts\" desc"
160
+ ],
161
+ "isUnique": false
162
+ },
163
+ "idx_activity_items_kind_ts": {
164
+ "name": "idx_activity_items_kind_ts",
165
+ "columns": [
166
+ "kind",
167
+ "\"ts\" desc"
168
+ ],
169
+ "isUnique": false
170
+ },
171
+ "idx_activity_items_session_ts": {
172
+ "name": "idx_activity_items_session_ts",
173
+ "columns": [
174
+ "session_id",
175
+ "\"ts\" desc"
176
+ ],
177
+ "isUnique": false
178
+ }
179
+ },
180
+ "foreignKeys": {
181
+ "activity_items_conversation_id_conversations_id_fk": {
182
+ "name": "activity_items_conversation_id_conversations_id_fk",
183
+ "tableFrom": "activity_items",
184
+ "tableTo": "conversations",
185
+ "columnsFrom": [
186
+ "conversation_id"
187
+ ],
188
+ "columnsTo": [
189
+ "id"
190
+ ],
191
+ "onDelete": "cascade",
192
+ "onUpdate": "no action"
193
+ },
194
+ "activity_items_message_id_messages_id_fk": {
195
+ "name": "activity_items_message_id_messages_id_fk",
196
+ "tableFrom": "activity_items",
197
+ "tableTo": "messages",
198
+ "columnsFrom": [
199
+ "message_id"
200
+ ],
201
+ "columnsTo": [
202
+ "id"
203
+ ],
204
+ "onDelete": "cascade",
205
+ "onUpdate": "no action"
206
+ },
207
+ "activity_items_invocation_id_invocations_id_fk": {
208
+ "name": "activity_items_invocation_id_invocations_id_fk",
209
+ "tableFrom": "activity_items",
210
+ "tableTo": "invocations",
211
+ "columnsFrom": [
212
+ "invocation_id"
213
+ ],
214
+ "columnsTo": [
215
+ "id"
216
+ ],
217
+ "onDelete": "cascade",
218
+ "onUpdate": "no action"
219
+ },
220
+ "activity_items_flight_id_flights_id_fk": {
221
+ "name": "activity_items_flight_id_flights_id_fk",
222
+ "tableFrom": "activity_items",
223
+ "tableTo": "flights",
224
+ "columnsFrom": [
225
+ "flight_id"
226
+ ],
227
+ "columnsTo": [
228
+ "id"
229
+ ],
230
+ "onDelete": "cascade",
231
+ "onUpdate": "no action"
232
+ },
233
+ "activity_items_record_id_collaboration_records_id_fk": {
234
+ "name": "activity_items_record_id_collaboration_records_id_fk",
235
+ "tableFrom": "activity_items",
236
+ "tableTo": "collaboration_records",
237
+ "columnsFrom": [
238
+ "record_id"
239
+ ],
240
+ "columnsTo": [
241
+ "id"
242
+ ],
243
+ "onDelete": "cascade",
244
+ "onUpdate": "no action"
245
+ },
246
+ "activity_items_actor_id_actors_id_fk": {
247
+ "name": "activity_items_actor_id_actors_id_fk",
248
+ "tableFrom": "activity_items",
249
+ "tableTo": "actors",
250
+ "columnsFrom": [
251
+ "actor_id"
252
+ ],
253
+ "columnsTo": [
254
+ "id"
255
+ ],
256
+ "onDelete": "set null",
257
+ "onUpdate": "no action"
258
+ },
259
+ "activity_items_counterpart_id_actors_id_fk": {
260
+ "name": "activity_items_counterpart_id_actors_id_fk",
261
+ "tableFrom": "activity_items",
262
+ "tableTo": "actors",
263
+ "columnsFrom": [
264
+ "counterpart_id"
265
+ ],
266
+ "columnsTo": [
267
+ "id"
268
+ ],
269
+ "onDelete": "set null",
270
+ "onUpdate": "no action"
271
+ },
272
+ "activity_items_agent_id_agents_id_fk": {
273
+ "name": "activity_items_agent_id_agents_id_fk",
274
+ "tableFrom": "activity_items",
275
+ "tableTo": "agents",
276
+ "columnsFrom": [
277
+ "agent_id"
278
+ ],
279
+ "columnsTo": [
280
+ "id"
281
+ ],
282
+ "onDelete": "set null",
283
+ "onUpdate": "no action"
284
+ }
285
+ },
286
+ "compositePrimaryKeys": {},
287
+ "uniqueConstraints": {},
288
+ "checkConstraints": {}
289
+ },
290
+ "actors": {
291
+ "name": "actors",
292
+ "columns": {
293
+ "id": {
294
+ "name": "id",
295
+ "type": "text",
296
+ "primaryKey": true,
297
+ "notNull": true,
298
+ "autoincrement": false
299
+ },
300
+ "kind": {
301
+ "name": "kind",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "autoincrement": false
306
+ },
307
+ "display_name": {
308
+ "name": "display_name",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true,
312
+ "autoincrement": false
313
+ },
314
+ "handle": {
315
+ "name": "handle",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": false,
319
+ "autoincrement": false
320
+ },
321
+ "labels_json": {
322
+ "name": "labels_json",
323
+ "type": "text",
324
+ "primaryKey": false,
325
+ "notNull": false,
326
+ "autoincrement": false
327
+ },
328
+ "metadata_json": {
329
+ "name": "metadata_json",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": false,
333
+ "autoincrement": false
334
+ },
335
+ "created_at": {
336
+ "name": "created_at",
337
+ "type": "integer",
338
+ "primaryKey": false,
339
+ "notNull": true,
340
+ "autoincrement": false,
341
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
342
+ }
343
+ },
344
+ "indexes": {},
345
+ "foreignKeys": {},
346
+ "compositePrimaryKeys": {},
347
+ "uniqueConstraints": {},
348
+ "checkConstraints": {}
349
+ },
350
+ "agent_endpoints": {
351
+ "name": "agent_endpoints",
352
+ "columns": {
353
+ "id": {
354
+ "name": "id",
355
+ "type": "text",
356
+ "primaryKey": true,
357
+ "notNull": true,
358
+ "autoincrement": false
359
+ },
360
+ "agent_id": {
361
+ "name": "agent_id",
362
+ "type": "text",
363
+ "primaryKey": false,
364
+ "notNull": true,
365
+ "autoincrement": false
366
+ },
367
+ "node_id": {
368
+ "name": "node_id",
369
+ "type": "text",
370
+ "primaryKey": false,
371
+ "notNull": true,
372
+ "autoincrement": false
373
+ },
374
+ "harness": {
375
+ "name": "harness",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": true,
379
+ "autoincrement": false
380
+ },
381
+ "transport": {
382
+ "name": "transport",
383
+ "type": "text",
384
+ "primaryKey": false,
385
+ "notNull": true,
386
+ "autoincrement": false
387
+ },
388
+ "state": {
389
+ "name": "state",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": true,
393
+ "autoincrement": false
394
+ },
395
+ "address": {
396
+ "name": "address",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": false,
400
+ "autoincrement": false
401
+ },
402
+ "session_id": {
403
+ "name": "session_id",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": false,
407
+ "autoincrement": false
408
+ },
409
+ "pane": {
410
+ "name": "pane",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": false,
414
+ "autoincrement": false
415
+ },
416
+ "cwd": {
417
+ "name": "cwd",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": false,
421
+ "autoincrement": false
422
+ },
423
+ "project_root": {
424
+ "name": "project_root",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": false,
428
+ "autoincrement": false
429
+ },
430
+ "metadata_json": {
431
+ "name": "metadata_json",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": false,
435
+ "autoincrement": false
436
+ },
437
+ "updated_at": {
438
+ "name": "updated_at",
439
+ "type": "integer",
440
+ "primaryKey": false,
441
+ "notNull": true,
442
+ "autoincrement": false,
443
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
444
+ }
445
+ },
446
+ "indexes": {
447
+ "idx_agent_endpoints_agent_updated_at": {
448
+ "name": "idx_agent_endpoints_agent_updated_at",
449
+ "columns": [
450
+ "agent_id",
451
+ "\"updated_at\" desc"
452
+ ],
453
+ "isUnique": false
454
+ }
455
+ },
456
+ "foreignKeys": {
457
+ "agent_endpoints_agent_id_agents_id_fk": {
458
+ "name": "agent_endpoints_agent_id_agents_id_fk",
459
+ "tableFrom": "agent_endpoints",
460
+ "tableTo": "agents",
461
+ "columnsFrom": [
462
+ "agent_id"
463
+ ],
464
+ "columnsTo": [
465
+ "id"
466
+ ],
467
+ "onDelete": "cascade",
468
+ "onUpdate": "no action"
469
+ },
470
+ "agent_endpoints_node_id_nodes_id_fk": {
471
+ "name": "agent_endpoints_node_id_nodes_id_fk",
472
+ "tableFrom": "agent_endpoints",
473
+ "tableTo": "nodes",
474
+ "columnsFrom": [
475
+ "node_id"
476
+ ],
477
+ "columnsTo": [
478
+ "id"
479
+ ],
480
+ "onDelete": "restrict",
481
+ "onUpdate": "no action"
482
+ }
483
+ },
484
+ "compositePrimaryKeys": {},
485
+ "uniqueConstraints": {},
486
+ "checkConstraints": {}
487
+ },
488
+ "agents": {
489
+ "name": "agents",
490
+ "columns": {
491
+ "id": {
492
+ "name": "id",
493
+ "type": "text",
494
+ "primaryKey": true,
495
+ "notNull": true,
496
+ "autoincrement": false
497
+ },
498
+ "definition_id": {
499
+ "name": "definition_id",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": true,
503
+ "autoincrement": false
504
+ },
505
+ "node_qualifier": {
506
+ "name": "node_qualifier",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": false,
510
+ "autoincrement": false
511
+ },
512
+ "workspace_qualifier": {
513
+ "name": "workspace_qualifier",
514
+ "type": "text",
515
+ "primaryKey": false,
516
+ "notNull": false,
517
+ "autoincrement": false
518
+ },
519
+ "selector": {
520
+ "name": "selector",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": false,
524
+ "autoincrement": false
525
+ },
526
+ "default_selector": {
527
+ "name": "default_selector",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": false,
531
+ "autoincrement": false
532
+ },
533
+ "agent_class": {
534
+ "name": "agent_class",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": true,
538
+ "autoincrement": false
539
+ },
540
+ "capabilities_json": {
541
+ "name": "capabilities_json",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": true,
545
+ "autoincrement": false
546
+ },
547
+ "wake_policy": {
548
+ "name": "wake_policy",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": true,
552
+ "autoincrement": false
553
+ },
554
+ "home_node_id": {
555
+ "name": "home_node_id",
556
+ "type": "text",
557
+ "primaryKey": false,
558
+ "notNull": true,
559
+ "autoincrement": false
560
+ },
561
+ "authority_node_id": {
562
+ "name": "authority_node_id",
563
+ "type": "text",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "autoincrement": false
567
+ },
568
+ "advertise_scope": {
569
+ "name": "advertise_scope",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": true,
573
+ "autoincrement": false
574
+ },
575
+ "owner_id": {
576
+ "name": "owner_id",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": false,
580
+ "autoincrement": false
581
+ },
582
+ "metadata_json": {
583
+ "name": "metadata_json",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": false,
587
+ "autoincrement": false
588
+ }
589
+ },
590
+ "indexes": {},
591
+ "foreignKeys": {
592
+ "agents_id_actors_id_fk": {
593
+ "name": "agents_id_actors_id_fk",
594
+ "tableFrom": "agents",
595
+ "tableTo": "actors",
596
+ "columnsFrom": [
597
+ "id"
598
+ ],
599
+ "columnsTo": [
600
+ "id"
601
+ ],
602
+ "onDelete": "cascade",
603
+ "onUpdate": "no action"
604
+ },
605
+ "agents_home_node_id_nodes_id_fk": {
606
+ "name": "agents_home_node_id_nodes_id_fk",
607
+ "tableFrom": "agents",
608
+ "tableTo": "nodes",
609
+ "columnsFrom": [
610
+ "home_node_id"
611
+ ],
612
+ "columnsTo": [
613
+ "id"
614
+ ],
615
+ "onDelete": "restrict",
616
+ "onUpdate": "no action"
617
+ },
618
+ "agents_authority_node_id_nodes_id_fk": {
619
+ "name": "agents_authority_node_id_nodes_id_fk",
620
+ "tableFrom": "agents",
621
+ "tableTo": "nodes",
622
+ "columnsFrom": [
623
+ "authority_node_id"
624
+ ],
625
+ "columnsTo": [
626
+ "id"
627
+ ],
628
+ "onDelete": "restrict",
629
+ "onUpdate": "no action"
630
+ }
631
+ },
632
+ "compositePrimaryKeys": {},
633
+ "uniqueConstraints": {},
634
+ "checkConstraints": {}
635
+ },
636
+ "bindings": {
637
+ "name": "bindings",
638
+ "columns": {
639
+ "id": {
640
+ "name": "id",
641
+ "type": "text",
642
+ "primaryKey": true,
643
+ "notNull": true,
644
+ "autoincrement": false
645
+ },
646
+ "conversation_id": {
647
+ "name": "conversation_id",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ },
653
+ "platform": {
654
+ "name": "platform",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true,
658
+ "autoincrement": false
659
+ },
660
+ "mode": {
661
+ "name": "mode",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": true,
665
+ "autoincrement": false
666
+ },
667
+ "external_channel_id": {
668
+ "name": "external_channel_id",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false
673
+ },
674
+ "external_thread_id": {
675
+ "name": "external_thread_id",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": false,
679
+ "autoincrement": false
680
+ },
681
+ "metadata_json": {
682
+ "name": "metadata_json",
683
+ "type": "text",
684
+ "primaryKey": false,
685
+ "notNull": false,
686
+ "autoincrement": false
687
+ }
688
+ },
689
+ "indexes": {},
690
+ "foreignKeys": {
691
+ "bindings_conversation_id_conversations_id_fk": {
692
+ "name": "bindings_conversation_id_conversations_id_fk",
693
+ "tableFrom": "bindings",
694
+ "tableTo": "conversations",
695
+ "columnsFrom": [
696
+ "conversation_id"
697
+ ],
698
+ "columnsTo": [
699
+ "id"
700
+ ],
701
+ "onDelete": "cascade",
702
+ "onUpdate": "no action"
703
+ }
704
+ },
705
+ "compositePrimaryKeys": {},
706
+ "uniqueConstraints": {},
707
+ "checkConstraints": {}
708
+ },
709
+ "briefings": {
710
+ "name": "briefings",
711
+ "columns": {
712
+ "id": {
713
+ "name": "id",
714
+ "type": "text",
715
+ "primaryKey": true,
716
+ "notNull": true,
717
+ "autoincrement": false
718
+ },
719
+ "kind": {
720
+ "name": "kind",
721
+ "type": "text",
722
+ "primaryKey": false,
723
+ "notNull": true,
724
+ "autoincrement": false
725
+ },
726
+ "title": {
727
+ "name": "title",
728
+ "type": "text",
729
+ "primaryKey": false,
730
+ "notNull": true,
731
+ "autoincrement": false
732
+ },
733
+ "summary": {
734
+ "name": "summary",
735
+ "type": "text",
736
+ "primaryKey": false,
737
+ "notNull": true,
738
+ "autoincrement": false
739
+ },
740
+ "recommendation": {
741
+ "name": "recommendation",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": false,
745
+ "autoincrement": false
746
+ },
747
+ "prepared_at": {
748
+ "name": "prepared_at",
749
+ "type": "integer",
750
+ "primaryKey": false,
751
+ "notNull": true,
752
+ "autoincrement": false
753
+ },
754
+ "ttl_ms": {
755
+ "name": "ttl_ms",
756
+ "type": "integer",
757
+ "primaryKey": false,
758
+ "notNull": true,
759
+ "autoincrement": false
760
+ },
761
+ "brief_json": {
762
+ "name": "brief_json",
763
+ "type": "text",
764
+ "primaryKey": false,
765
+ "notNull": true,
766
+ "autoincrement": false
767
+ },
768
+ "observations_json": {
769
+ "name": "observations_json",
770
+ "type": "text",
771
+ "primaryKey": false,
772
+ "notNull": true,
773
+ "autoincrement": false
774
+ },
775
+ "snapshot_json": {
776
+ "name": "snapshot_json",
777
+ "type": "text",
778
+ "primaryKey": false,
779
+ "notNull": true,
780
+ "autoincrement": false
781
+ },
782
+ "call_json": {
783
+ "name": "call_json",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": true,
787
+ "autoincrement": false
788
+ },
789
+ "markdown": {
790
+ "name": "markdown",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false,
794
+ "autoincrement": false
795
+ },
796
+ "created_at": {
797
+ "name": "created_at",
798
+ "type": "integer",
799
+ "primaryKey": false,
800
+ "notNull": true,
801
+ "autoincrement": false,
802
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
803
+ }
804
+ },
805
+ "indexes": {
806
+ "idx_briefings_created_at": {
807
+ "name": "idx_briefings_created_at",
808
+ "columns": [
809
+ "\"created_at\" desc"
810
+ ],
811
+ "isUnique": false
812
+ },
813
+ "idx_briefings_kind_created_at": {
814
+ "name": "idx_briefings_kind_created_at",
815
+ "columns": [
816
+ "kind",
817
+ "\"created_at\" desc"
818
+ ],
819
+ "isUnique": false
820
+ }
821
+ },
822
+ "foreignKeys": {},
823
+ "compositePrimaryKeys": {},
824
+ "uniqueConstraints": {},
825
+ "checkConstraints": {}
826
+ },
827
+ "budget_quota_window_snapshots": {
828
+ "name": "budget_quota_window_snapshots",
829
+ "columns": {
830
+ "id": {
831
+ "name": "id",
832
+ "type": "text",
833
+ "primaryKey": true,
834
+ "notNull": true,
835
+ "autoincrement": false
836
+ },
837
+ "source": {
838
+ "name": "source",
839
+ "type": "text",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "autoincrement": false
843
+ },
844
+ "provider": {
845
+ "name": "provider",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": false,
849
+ "autoincrement": false
850
+ },
851
+ "harness": {
852
+ "name": "harness",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": false,
856
+ "autoincrement": false
857
+ },
858
+ "transport": {
859
+ "name": "transport",
860
+ "type": "text",
861
+ "primaryKey": false,
862
+ "notNull": false,
863
+ "autoincrement": false
864
+ },
865
+ "model": {
866
+ "name": "model",
867
+ "type": "text",
868
+ "primaryKey": false,
869
+ "notNull": false,
870
+ "autoincrement": false
871
+ },
872
+ "agent_id": {
873
+ "name": "agent_id",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false,
877
+ "autoincrement": false
878
+ },
879
+ "endpoint_id": {
880
+ "name": "endpoint_id",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": false,
884
+ "autoincrement": false
885
+ },
886
+ "session_id": {
887
+ "name": "session_id",
888
+ "type": "text",
889
+ "primaryKey": false,
890
+ "notNull": false,
891
+ "autoincrement": false
892
+ },
893
+ "user_id": {
894
+ "name": "user_id",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": false,
898
+ "autoincrement": false
899
+ },
900
+ "account_id": {
901
+ "name": "account_id",
902
+ "type": "text",
903
+ "primaryKey": false,
904
+ "notNull": false,
905
+ "autoincrement": false
906
+ },
907
+ "plan_type": {
908
+ "name": "plan_type",
909
+ "type": "text",
910
+ "primaryKey": false,
911
+ "notNull": false,
912
+ "autoincrement": false
913
+ },
914
+ "label": {
915
+ "name": "label",
916
+ "type": "text",
917
+ "primaryKey": false,
918
+ "notNull": true,
919
+ "autoincrement": false
920
+ },
921
+ "window_kind": {
922
+ "name": "window_kind",
923
+ "type": "text",
924
+ "primaryKey": false,
925
+ "notNull": false,
926
+ "autoincrement": false
927
+ },
928
+ "used_percent": {
929
+ "name": "used_percent",
930
+ "type": "real",
931
+ "primaryKey": false,
932
+ "notNull": false,
933
+ "autoincrement": false
934
+ },
935
+ "percent_remaining": {
936
+ "name": "percent_remaining",
937
+ "type": "real",
938
+ "primaryKey": false,
939
+ "notNull": false,
940
+ "autoincrement": false
941
+ },
942
+ "used": {
943
+ "name": "used",
944
+ "type": "real",
945
+ "primaryKey": false,
946
+ "notNull": false,
947
+ "autoincrement": false
948
+ },
949
+ "limit_value": {
950
+ "name": "limit_value",
951
+ "type": "real",
952
+ "primaryKey": false,
953
+ "notNull": false,
954
+ "autoincrement": false
955
+ },
956
+ "reset_at": {
957
+ "name": "reset_at",
958
+ "type": "integer",
959
+ "primaryKey": false,
960
+ "notNull": false,
961
+ "autoincrement": false
962
+ },
963
+ "window_ms": {
964
+ "name": "window_ms",
965
+ "type": "integer",
966
+ "primaryKey": false,
967
+ "notNull": false,
968
+ "autoincrement": false
969
+ },
970
+ "captured_at": {
971
+ "name": "captured_at",
972
+ "type": "integer",
973
+ "primaryKey": false,
974
+ "notNull": true,
975
+ "autoincrement": false
976
+ },
977
+ "metadata_json": {
978
+ "name": "metadata_json",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": false,
982
+ "autoincrement": false
983
+ },
984
+ "created_at": {
985
+ "name": "created_at",
986
+ "type": "integer",
987
+ "primaryKey": false,
988
+ "notNull": true,
989
+ "autoincrement": false,
990
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
991
+ }
992
+ },
993
+ "indexes": {
994
+ "idx_budget_quota_windows_session_captured": {
995
+ "name": "idx_budget_quota_windows_session_captured",
996
+ "columns": [
997
+ "session_id",
998
+ "\"captured_at\" desc"
999
+ ],
1000
+ "isUnique": false
1001
+ },
1002
+ "idx_budget_quota_windows_provider_label": {
1003
+ "name": "idx_budget_quota_windows_provider_label",
1004
+ "columns": [
1005
+ "provider",
1006
+ "label",
1007
+ "\"captured_at\" desc"
1008
+ ],
1009
+ "isUnique": false
1010
+ }
1011
+ },
1012
+ "foreignKeys": {},
1013
+ "compositePrimaryKeys": {},
1014
+ "uniqueConstraints": {},
1015
+ "checkConstraints": {}
1016
+ },
1017
+ "budget_usage_events": {
1018
+ "name": "budget_usage_events",
1019
+ "columns": {
1020
+ "id": {
1021
+ "name": "id",
1022
+ "type": "text",
1023
+ "primaryKey": true,
1024
+ "notNull": true,
1025
+ "autoincrement": false
1026
+ },
1027
+ "scope": {
1028
+ "name": "scope",
1029
+ "type": "text",
1030
+ "primaryKey": false,
1031
+ "notNull": true,
1032
+ "autoincrement": false
1033
+ },
1034
+ "source": {
1035
+ "name": "source",
1036
+ "type": "text",
1037
+ "primaryKey": false,
1038
+ "notNull": true,
1039
+ "autoincrement": false
1040
+ },
1041
+ "provider": {
1042
+ "name": "provider",
1043
+ "type": "text",
1044
+ "primaryKey": false,
1045
+ "notNull": false,
1046
+ "autoincrement": false
1047
+ },
1048
+ "harness": {
1049
+ "name": "harness",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": false,
1053
+ "autoincrement": false
1054
+ },
1055
+ "transport": {
1056
+ "name": "transport",
1057
+ "type": "text",
1058
+ "primaryKey": false,
1059
+ "notNull": false,
1060
+ "autoincrement": false
1061
+ },
1062
+ "model": {
1063
+ "name": "model",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": false,
1067
+ "autoincrement": false
1068
+ },
1069
+ "agent_id": {
1070
+ "name": "agent_id",
1071
+ "type": "text",
1072
+ "primaryKey": false,
1073
+ "notNull": false,
1074
+ "autoincrement": false
1075
+ },
1076
+ "endpoint_id": {
1077
+ "name": "endpoint_id",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": false,
1081
+ "autoincrement": false
1082
+ },
1083
+ "session_id": {
1084
+ "name": "session_id",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": false,
1088
+ "autoincrement": false
1089
+ },
1090
+ "project_root": {
1091
+ "name": "project_root",
1092
+ "type": "text",
1093
+ "primaryKey": false,
1094
+ "notNull": false,
1095
+ "autoincrement": false
1096
+ },
1097
+ "conversation_id": {
1098
+ "name": "conversation_id",
1099
+ "type": "text",
1100
+ "primaryKey": false,
1101
+ "notNull": false,
1102
+ "autoincrement": false
1103
+ },
1104
+ "message_id": {
1105
+ "name": "message_id",
1106
+ "type": "text",
1107
+ "primaryKey": false,
1108
+ "notNull": false,
1109
+ "autoincrement": false
1110
+ },
1111
+ "invocation_id": {
1112
+ "name": "invocation_id",
1113
+ "type": "text",
1114
+ "primaryKey": false,
1115
+ "notNull": false,
1116
+ "autoincrement": false
1117
+ },
1118
+ "flight_id": {
1119
+ "name": "flight_id",
1120
+ "type": "text",
1121
+ "primaryKey": false,
1122
+ "notNull": false,
1123
+ "autoincrement": false
1124
+ },
1125
+ "work_id": {
1126
+ "name": "work_id",
1127
+ "type": "text",
1128
+ "primaryKey": false,
1129
+ "notNull": false,
1130
+ "autoincrement": false
1131
+ },
1132
+ "occurred_at": {
1133
+ "name": "occurred_at",
1134
+ "type": "integer",
1135
+ "primaryKey": false,
1136
+ "notNull": true,
1137
+ "autoincrement": false
1138
+ },
1139
+ "input_tokens": {
1140
+ "name": "input_tokens",
1141
+ "type": "integer",
1142
+ "primaryKey": false,
1143
+ "notNull": false,
1144
+ "autoincrement": false
1145
+ },
1146
+ "output_tokens": {
1147
+ "name": "output_tokens",
1148
+ "type": "integer",
1149
+ "primaryKey": false,
1150
+ "notNull": false,
1151
+ "autoincrement": false
1152
+ },
1153
+ "reasoning_output_tokens": {
1154
+ "name": "reasoning_output_tokens",
1155
+ "type": "integer",
1156
+ "primaryKey": false,
1157
+ "notNull": false,
1158
+ "autoincrement": false
1159
+ },
1160
+ "cache_creation_input_tokens": {
1161
+ "name": "cache_creation_input_tokens",
1162
+ "type": "integer",
1163
+ "primaryKey": false,
1164
+ "notNull": false,
1165
+ "autoincrement": false
1166
+ },
1167
+ "cache_read_input_tokens": {
1168
+ "name": "cache_read_input_tokens",
1169
+ "type": "integer",
1170
+ "primaryKey": false,
1171
+ "notNull": false,
1172
+ "autoincrement": false
1173
+ },
1174
+ "total_tokens": {
1175
+ "name": "total_tokens",
1176
+ "type": "integer",
1177
+ "primaryKey": false,
1178
+ "notNull": false,
1179
+ "autoincrement": false
1180
+ },
1181
+ "estimated_usd": {
1182
+ "name": "estimated_usd",
1183
+ "type": "real",
1184
+ "primaryKey": false,
1185
+ "notNull": false,
1186
+ "autoincrement": false
1187
+ },
1188
+ "billed_usd": {
1189
+ "name": "billed_usd",
1190
+ "type": "real",
1191
+ "primaryKey": false,
1192
+ "notNull": false,
1193
+ "autoincrement": false
1194
+ },
1195
+ "currency": {
1196
+ "name": "currency",
1197
+ "type": "text",
1198
+ "primaryKey": false,
1199
+ "notNull": false,
1200
+ "autoincrement": false
1201
+ },
1202
+ "dedup_key": {
1203
+ "name": "dedup_key",
1204
+ "type": "text",
1205
+ "primaryKey": false,
1206
+ "notNull": false,
1207
+ "autoincrement": false
1208
+ },
1209
+ "metadata_json": {
1210
+ "name": "metadata_json",
1211
+ "type": "text",
1212
+ "primaryKey": false,
1213
+ "notNull": false,
1214
+ "autoincrement": false
1215
+ },
1216
+ "created_at": {
1217
+ "name": "created_at",
1218
+ "type": "integer",
1219
+ "primaryKey": false,
1220
+ "notNull": true,
1221
+ "autoincrement": false,
1222
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
1223
+ }
1224
+ },
1225
+ "indexes": {
1226
+ "idx_budget_usage_events_scope_occurred": {
1227
+ "name": "idx_budget_usage_events_scope_occurred",
1228
+ "columns": [
1229
+ "scope",
1230
+ "\"occurred_at\" desc"
1231
+ ],
1232
+ "isUnique": false
1233
+ },
1234
+ "idx_budget_usage_events_session_occurred": {
1235
+ "name": "idx_budget_usage_events_session_occurred",
1236
+ "columns": [
1237
+ "session_id",
1238
+ "\"occurred_at\" desc"
1239
+ ],
1240
+ "isUnique": false
1241
+ },
1242
+ "idx_budget_usage_events_invocation": {
1243
+ "name": "idx_budget_usage_events_invocation",
1244
+ "columns": [
1245
+ "invocation_id",
1246
+ "\"occurred_at\" desc"
1247
+ ],
1248
+ "isUnique": false
1249
+ },
1250
+ "idx_budget_usage_events_flight": {
1251
+ "name": "idx_budget_usage_events_flight",
1252
+ "columns": [
1253
+ "flight_id",
1254
+ "\"occurred_at\" desc"
1255
+ ],
1256
+ "isUnique": false
1257
+ },
1258
+ "idx_budget_usage_events_dedup": {
1259
+ "name": "idx_budget_usage_events_dedup",
1260
+ "columns": [
1261
+ "scope",
1262
+ "source",
1263
+ "dedup_key"
1264
+ ],
1265
+ "isUnique": true,
1266
+ "where": "dedup_key IS NOT NULL AND dedup_key != ''"
1267
+ }
1268
+ },
1269
+ "foreignKeys": {},
1270
+ "compositePrimaryKeys": {},
1271
+ "uniqueConstraints": {},
1272
+ "checkConstraints": {}
1273
+ },
1274
+ "collaboration_events": {
1275
+ "name": "collaboration_events",
1276
+ "columns": {
1277
+ "id": {
1278
+ "name": "id",
1279
+ "type": "text",
1280
+ "primaryKey": true,
1281
+ "notNull": true,
1282
+ "autoincrement": false
1283
+ },
1284
+ "record_id": {
1285
+ "name": "record_id",
1286
+ "type": "text",
1287
+ "primaryKey": false,
1288
+ "notNull": true,
1289
+ "autoincrement": false
1290
+ },
1291
+ "record_kind": {
1292
+ "name": "record_kind",
1293
+ "type": "text",
1294
+ "primaryKey": false,
1295
+ "notNull": true,
1296
+ "autoincrement": false
1297
+ },
1298
+ "kind": {
1299
+ "name": "kind",
1300
+ "type": "text",
1301
+ "primaryKey": false,
1302
+ "notNull": true,
1303
+ "autoincrement": false
1304
+ },
1305
+ "actor_id": {
1306
+ "name": "actor_id",
1307
+ "type": "text",
1308
+ "primaryKey": false,
1309
+ "notNull": true,
1310
+ "autoincrement": false
1311
+ },
1312
+ "summary": {
1313
+ "name": "summary",
1314
+ "type": "text",
1315
+ "primaryKey": false,
1316
+ "notNull": false,
1317
+ "autoincrement": false
1318
+ },
1319
+ "metadata_json": {
1320
+ "name": "metadata_json",
1321
+ "type": "text",
1322
+ "primaryKey": false,
1323
+ "notNull": false,
1324
+ "autoincrement": false
1325
+ },
1326
+ "created_at": {
1327
+ "name": "created_at",
1328
+ "type": "integer",
1329
+ "primaryKey": false,
1330
+ "notNull": true,
1331
+ "autoincrement": false
1332
+ }
1333
+ },
1334
+ "indexes": {
1335
+ "idx_collaboration_events_record_created_at": {
1336
+ "name": "idx_collaboration_events_record_created_at",
1337
+ "columns": [
1338
+ "record_id",
1339
+ "created_at"
1340
+ ],
1341
+ "isUnique": false
1342
+ }
1343
+ },
1344
+ "foreignKeys": {
1345
+ "collaboration_events_record_id_collaboration_records_id_fk": {
1346
+ "name": "collaboration_events_record_id_collaboration_records_id_fk",
1347
+ "tableFrom": "collaboration_events",
1348
+ "tableTo": "collaboration_records",
1349
+ "columnsFrom": [
1350
+ "record_id"
1351
+ ],
1352
+ "columnsTo": [
1353
+ "id"
1354
+ ],
1355
+ "onDelete": "cascade",
1356
+ "onUpdate": "no action"
1357
+ },
1358
+ "collaboration_events_actor_id_actors_id_fk": {
1359
+ "name": "collaboration_events_actor_id_actors_id_fk",
1360
+ "tableFrom": "collaboration_events",
1361
+ "tableTo": "actors",
1362
+ "columnsFrom": [
1363
+ "actor_id"
1364
+ ],
1365
+ "columnsTo": [
1366
+ "id"
1367
+ ],
1368
+ "onDelete": "restrict",
1369
+ "onUpdate": "no action"
1370
+ }
1371
+ },
1372
+ "compositePrimaryKeys": {},
1373
+ "uniqueConstraints": {},
1374
+ "checkConstraints": {}
1375
+ },
1376
+ "collaboration_records": {
1377
+ "name": "collaboration_records",
1378
+ "columns": {
1379
+ "id": {
1380
+ "name": "id",
1381
+ "type": "text",
1382
+ "primaryKey": true,
1383
+ "notNull": true,
1384
+ "autoincrement": false
1385
+ },
1386
+ "kind": {
1387
+ "name": "kind",
1388
+ "type": "text",
1389
+ "primaryKey": false,
1390
+ "notNull": true,
1391
+ "autoincrement": false
1392
+ },
1393
+ "state": {
1394
+ "name": "state",
1395
+ "type": "text",
1396
+ "primaryKey": false,
1397
+ "notNull": true,
1398
+ "autoincrement": false
1399
+ },
1400
+ "acceptance_state": {
1401
+ "name": "acceptance_state",
1402
+ "type": "text",
1403
+ "primaryKey": false,
1404
+ "notNull": true,
1405
+ "autoincrement": false
1406
+ },
1407
+ "title": {
1408
+ "name": "title",
1409
+ "type": "text",
1410
+ "primaryKey": false,
1411
+ "notNull": true,
1412
+ "autoincrement": false
1413
+ },
1414
+ "summary": {
1415
+ "name": "summary",
1416
+ "type": "text",
1417
+ "primaryKey": false,
1418
+ "notNull": false,
1419
+ "autoincrement": false
1420
+ },
1421
+ "created_by_id": {
1422
+ "name": "created_by_id",
1423
+ "type": "text",
1424
+ "primaryKey": false,
1425
+ "notNull": true,
1426
+ "autoincrement": false
1427
+ },
1428
+ "owner_id": {
1429
+ "name": "owner_id",
1430
+ "type": "text",
1431
+ "primaryKey": false,
1432
+ "notNull": false,
1433
+ "autoincrement": false
1434
+ },
1435
+ "next_move_owner_id": {
1436
+ "name": "next_move_owner_id",
1437
+ "type": "text",
1438
+ "primaryKey": false,
1439
+ "notNull": false,
1440
+ "autoincrement": false
1441
+ },
1442
+ "conversation_id": {
1443
+ "name": "conversation_id",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": false,
1447
+ "autoincrement": false
1448
+ },
1449
+ "parent_id": {
1450
+ "name": "parent_id",
1451
+ "type": "text",
1452
+ "primaryKey": false,
1453
+ "notNull": false,
1454
+ "autoincrement": false
1455
+ },
1456
+ "priority": {
1457
+ "name": "priority",
1458
+ "type": "text",
1459
+ "primaryKey": false,
1460
+ "notNull": false,
1461
+ "autoincrement": false
1462
+ },
1463
+ "labels_json": {
1464
+ "name": "labels_json",
1465
+ "type": "text",
1466
+ "primaryKey": false,
1467
+ "notNull": false,
1468
+ "autoincrement": false
1469
+ },
1470
+ "relations_json": {
1471
+ "name": "relations_json",
1472
+ "type": "text",
1473
+ "primaryKey": false,
1474
+ "notNull": false,
1475
+ "autoincrement": false
1476
+ },
1477
+ "detail_json": {
1478
+ "name": "detail_json",
1479
+ "type": "text",
1480
+ "primaryKey": false,
1481
+ "notNull": false,
1482
+ "autoincrement": false
1483
+ },
1484
+ "created_at": {
1485
+ "name": "created_at",
1486
+ "type": "integer",
1487
+ "primaryKey": false,
1488
+ "notNull": true,
1489
+ "autoincrement": false
1490
+ },
1491
+ "updated_at": {
1492
+ "name": "updated_at",
1493
+ "type": "integer",
1494
+ "primaryKey": false,
1495
+ "notNull": true,
1496
+ "autoincrement": false
1497
+ }
1498
+ },
1499
+ "indexes": {
1500
+ "idx_collaboration_records_state": {
1501
+ "name": "idx_collaboration_records_state",
1502
+ "columns": [
1503
+ "state"
1504
+ ],
1505
+ "isUnique": false
1506
+ },
1507
+ "idx_collaboration_records_updated_at": {
1508
+ "name": "idx_collaboration_records_updated_at",
1509
+ "columns": [
1510
+ "updated_at"
1511
+ ],
1512
+ "isUnique": false
1513
+ },
1514
+ "idx_collaboration_records_kind_state_updated_at": {
1515
+ "name": "idx_collaboration_records_kind_state_updated_at",
1516
+ "columns": [
1517
+ "kind",
1518
+ "state",
1519
+ "\"updated_at\" desc"
1520
+ ],
1521
+ "isUnique": false
1522
+ },
1523
+ "idx_collaboration_records_parent_kind_state_updated_at": {
1524
+ "name": "idx_collaboration_records_parent_kind_state_updated_at",
1525
+ "columns": [
1526
+ "parent_id",
1527
+ "kind",
1528
+ "state",
1529
+ "\"updated_at\" desc"
1530
+ ],
1531
+ "isUnique": false
1532
+ },
1533
+ "idx_collaboration_records_owner_kind_state_updated_at": {
1534
+ "name": "idx_collaboration_records_owner_kind_state_updated_at",
1535
+ "columns": [
1536
+ "owner_id",
1537
+ "kind",
1538
+ "state",
1539
+ "\"updated_at\" desc"
1540
+ ],
1541
+ "isUnique": false
1542
+ },
1543
+ "idx_collaboration_records_next_move_owner_kind_state_updated_at": {
1544
+ "name": "idx_collaboration_records_next_move_owner_kind_state_updated_at",
1545
+ "columns": [
1546
+ "next_move_owner_id",
1547
+ "kind",
1548
+ "state",
1549
+ "\"updated_at\" desc"
1550
+ ],
1551
+ "isUnique": false
1552
+ }
1553
+ },
1554
+ "foreignKeys": {
1555
+ "collaboration_records_created_by_id_actors_id_fk": {
1556
+ "name": "collaboration_records_created_by_id_actors_id_fk",
1557
+ "tableFrom": "collaboration_records",
1558
+ "tableTo": "actors",
1559
+ "columnsFrom": [
1560
+ "created_by_id"
1561
+ ],
1562
+ "columnsTo": [
1563
+ "id"
1564
+ ],
1565
+ "onDelete": "restrict",
1566
+ "onUpdate": "no action"
1567
+ },
1568
+ "collaboration_records_owner_id_actors_id_fk": {
1569
+ "name": "collaboration_records_owner_id_actors_id_fk",
1570
+ "tableFrom": "collaboration_records",
1571
+ "tableTo": "actors",
1572
+ "columnsFrom": [
1573
+ "owner_id"
1574
+ ],
1575
+ "columnsTo": [
1576
+ "id"
1577
+ ],
1578
+ "onDelete": "set null",
1579
+ "onUpdate": "no action"
1580
+ },
1581
+ "collaboration_records_next_move_owner_id_actors_id_fk": {
1582
+ "name": "collaboration_records_next_move_owner_id_actors_id_fk",
1583
+ "tableFrom": "collaboration_records",
1584
+ "tableTo": "actors",
1585
+ "columnsFrom": [
1586
+ "next_move_owner_id"
1587
+ ],
1588
+ "columnsTo": [
1589
+ "id"
1590
+ ],
1591
+ "onDelete": "set null",
1592
+ "onUpdate": "no action"
1593
+ },
1594
+ "collaboration_records_conversation_id_conversations_id_fk": {
1595
+ "name": "collaboration_records_conversation_id_conversations_id_fk",
1596
+ "tableFrom": "collaboration_records",
1597
+ "tableTo": "conversations",
1598
+ "columnsFrom": [
1599
+ "conversation_id"
1600
+ ],
1601
+ "columnsTo": [
1602
+ "id"
1603
+ ],
1604
+ "onDelete": "set null",
1605
+ "onUpdate": "no action"
1606
+ },
1607
+ "collaboration_records_parent_id_collaboration_records_id_fk": {
1608
+ "name": "collaboration_records_parent_id_collaboration_records_id_fk",
1609
+ "tableFrom": "collaboration_records",
1610
+ "tableTo": "collaboration_records",
1611
+ "columnsFrom": [
1612
+ "parent_id"
1613
+ ],
1614
+ "columnsTo": [
1615
+ "id"
1616
+ ],
1617
+ "onDelete": "set null",
1618
+ "onUpdate": "no action"
1619
+ }
1620
+ },
1621
+ "compositePrimaryKeys": {},
1622
+ "uniqueConstraints": {},
1623
+ "checkConstraints": {}
1624
+ },
1625
+ "conversation_members": {
1626
+ "name": "conversation_members",
1627
+ "columns": {
1628
+ "conversation_id": {
1629
+ "name": "conversation_id",
1630
+ "type": "text",
1631
+ "primaryKey": false,
1632
+ "notNull": true,
1633
+ "autoincrement": false
1634
+ },
1635
+ "actor_id": {
1636
+ "name": "actor_id",
1637
+ "type": "text",
1638
+ "primaryKey": false,
1639
+ "notNull": true,
1640
+ "autoincrement": false
1641
+ },
1642
+ "role": {
1643
+ "name": "role",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": false,
1647
+ "autoincrement": false
1648
+ }
1649
+ },
1650
+ "indexes": {},
1651
+ "foreignKeys": {
1652
+ "conversation_members_conversation_id_conversations_id_fk": {
1653
+ "name": "conversation_members_conversation_id_conversations_id_fk",
1654
+ "tableFrom": "conversation_members",
1655
+ "tableTo": "conversations",
1656
+ "columnsFrom": [
1657
+ "conversation_id"
1658
+ ],
1659
+ "columnsTo": [
1660
+ "id"
1661
+ ],
1662
+ "onDelete": "cascade",
1663
+ "onUpdate": "no action"
1664
+ },
1665
+ "conversation_members_actor_id_actors_id_fk": {
1666
+ "name": "conversation_members_actor_id_actors_id_fk",
1667
+ "tableFrom": "conversation_members",
1668
+ "tableTo": "actors",
1669
+ "columnsFrom": [
1670
+ "actor_id"
1671
+ ],
1672
+ "columnsTo": [
1673
+ "id"
1674
+ ],
1675
+ "onDelete": "cascade",
1676
+ "onUpdate": "no action"
1677
+ }
1678
+ },
1679
+ "compositePrimaryKeys": {
1680
+ "conversation_members_conversation_id_actor_id_pk": {
1681
+ "columns": [
1682
+ "conversation_id",
1683
+ "actor_id"
1684
+ ],
1685
+ "name": "conversation_members_conversation_id_actor_id_pk"
1686
+ }
1687
+ },
1688
+ "uniqueConstraints": {},
1689
+ "checkConstraints": {}
1690
+ },
1691
+ "conversation_read_cursors": {
1692
+ "name": "conversation_read_cursors",
1693
+ "columns": {
1694
+ "conversation_id": {
1695
+ "name": "conversation_id",
1696
+ "type": "text",
1697
+ "primaryKey": false,
1698
+ "notNull": true,
1699
+ "autoincrement": false
1700
+ },
1701
+ "actor_id": {
1702
+ "name": "actor_id",
1703
+ "type": "text",
1704
+ "primaryKey": false,
1705
+ "notNull": true,
1706
+ "autoincrement": false
1707
+ },
1708
+ "reader_node_id": {
1709
+ "name": "reader_node_id",
1710
+ "type": "text",
1711
+ "primaryKey": false,
1712
+ "notNull": false,
1713
+ "autoincrement": false
1714
+ },
1715
+ "last_read_message_id": {
1716
+ "name": "last_read_message_id",
1717
+ "type": "text",
1718
+ "primaryKey": false,
1719
+ "notNull": false,
1720
+ "autoincrement": false
1721
+ },
1722
+ "last_read_seq": {
1723
+ "name": "last_read_seq",
1724
+ "type": "integer",
1725
+ "primaryKey": false,
1726
+ "notNull": false,
1727
+ "autoincrement": false
1728
+ },
1729
+ "last_read_at": {
1730
+ "name": "last_read_at",
1731
+ "type": "integer",
1732
+ "primaryKey": false,
1733
+ "notNull": true,
1734
+ "autoincrement": false
1735
+ },
1736
+ "updated_at": {
1737
+ "name": "updated_at",
1738
+ "type": "integer",
1739
+ "primaryKey": false,
1740
+ "notNull": true,
1741
+ "autoincrement": false
1742
+ },
1743
+ "metadata_json": {
1744
+ "name": "metadata_json",
1745
+ "type": "text",
1746
+ "primaryKey": false,
1747
+ "notNull": false,
1748
+ "autoincrement": false
1749
+ }
1750
+ },
1751
+ "indexes": {
1752
+ "idx_read_cursors_conversation_updated_at": {
1753
+ "name": "idx_read_cursors_conversation_updated_at",
1754
+ "columns": [
1755
+ "conversation_id",
1756
+ "\"updated_at\" desc"
1757
+ ],
1758
+ "isUnique": false
1759
+ }
1760
+ },
1761
+ "foreignKeys": {
1762
+ "conversation_read_cursors_conversation_id_conversations_id_fk": {
1763
+ "name": "conversation_read_cursors_conversation_id_conversations_id_fk",
1764
+ "tableFrom": "conversation_read_cursors",
1765
+ "tableTo": "conversations",
1766
+ "columnsFrom": [
1767
+ "conversation_id"
1768
+ ],
1769
+ "columnsTo": [
1770
+ "id"
1771
+ ],
1772
+ "onDelete": "cascade",
1773
+ "onUpdate": "no action"
1774
+ },
1775
+ "conversation_read_cursors_actor_id_actors_id_fk": {
1776
+ "name": "conversation_read_cursors_actor_id_actors_id_fk",
1777
+ "tableFrom": "conversation_read_cursors",
1778
+ "tableTo": "actors",
1779
+ "columnsFrom": [
1780
+ "actor_id"
1781
+ ],
1782
+ "columnsTo": [
1783
+ "id"
1784
+ ],
1785
+ "onDelete": "cascade",
1786
+ "onUpdate": "no action"
1787
+ },
1788
+ "conversation_read_cursors_reader_node_id_nodes_id_fk": {
1789
+ "name": "conversation_read_cursors_reader_node_id_nodes_id_fk",
1790
+ "tableFrom": "conversation_read_cursors",
1791
+ "tableTo": "nodes",
1792
+ "columnsFrom": [
1793
+ "reader_node_id"
1794
+ ],
1795
+ "columnsTo": [
1796
+ "id"
1797
+ ],
1798
+ "onDelete": "set null",
1799
+ "onUpdate": "no action"
1800
+ },
1801
+ "conversation_read_cursors_last_read_message_id_messages_id_fk": {
1802
+ "name": "conversation_read_cursors_last_read_message_id_messages_id_fk",
1803
+ "tableFrom": "conversation_read_cursors",
1804
+ "tableTo": "messages",
1805
+ "columnsFrom": [
1806
+ "last_read_message_id"
1807
+ ],
1808
+ "columnsTo": [
1809
+ "id"
1810
+ ],
1811
+ "onDelete": "set null",
1812
+ "onUpdate": "no action"
1813
+ }
1814
+ },
1815
+ "compositePrimaryKeys": {
1816
+ "conversation_read_cursors_conversation_id_actor_id_pk": {
1817
+ "columns": [
1818
+ "conversation_id",
1819
+ "actor_id"
1820
+ ],
1821
+ "name": "conversation_read_cursors_conversation_id_actor_id_pk"
1822
+ }
1823
+ },
1824
+ "uniqueConstraints": {},
1825
+ "checkConstraints": {}
1826
+ },
1827
+ "conversations": {
1828
+ "name": "conversations",
1829
+ "columns": {
1830
+ "id": {
1831
+ "name": "id",
1832
+ "type": "text",
1833
+ "primaryKey": true,
1834
+ "notNull": true,
1835
+ "autoincrement": false
1836
+ },
1837
+ "kind": {
1838
+ "name": "kind",
1839
+ "type": "text",
1840
+ "primaryKey": false,
1841
+ "notNull": true,
1842
+ "autoincrement": false
1843
+ },
1844
+ "title": {
1845
+ "name": "title",
1846
+ "type": "text",
1847
+ "primaryKey": false,
1848
+ "notNull": true,
1849
+ "autoincrement": false
1850
+ },
1851
+ "visibility": {
1852
+ "name": "visibility",
1853
+ "type": "text",
1854
+ "primaryKey": false,
1855
+ "notNull": true,
1856
+ "autoincrement": false
1857
+ },
1858
+ "share_mode": {
1859
+ "name": "share_mode",
1860
+ "type": "text",
1861
+ "primaryKey": false,
1862
+ "notNull": true,
1863
+ "autoincrement": false
1864
+ },
1865
+ "authority_node_id": {
1866
+ "name": "authority_node_id",
1867
+ "type": "text",
1868
+ "primaryKey": false,
1869
+ "notNull": true,
1870
+ "autoincrement": false
1871
+ },
1872
+ "topic": {
1873
+ "name": "topic",
1874
+ "type": "text",
1875
+ "primaryKey": false,
1876
+ "notNull": false,
1877
+ "autoincrement": false
1878
+ },
1879
+ "parent_conversation_id": {
1880
+ "name": "parent_conversation_id",
1881
+ "type": "text",
1882
+ "primaryKey": false,
1883
+ "notNull": false,
1884
+ "autoincrement": false
1885
+ },
1886
+ "message_id": {
1887
+ "name": "message_id",
1888
+ "type": "text",
1889
+ "primaryKey": false,
1890
+ "notNull": false,
1891
+ "autoincrement": false
1892
+ },
1893
+ "metadata_json": {
1894
+ "name": "metadata_json",
1895
+ "type": "text",
1896
+ "primaryKey": false,
1897
+ "notNull": false,
1898
+ "autoincrement": false
1899
+ },
1900
+ "created_at": {
1901
+ "name": "created_at",
1902
+ "type": "integer",
1903
+ "primaryKey": false,
1904
+ "notNull": true,
1905
+ "autoincrement": false,
1906
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
1907
+ }
1908
+ },
1909
+ "indexes": {
1910
+ "idx_conversations_created_at": {
1911
+ "name": "idx_conversations_created_at",
1912
+ "columns": [
1913
+ "\"created_at\" desc"
1914
+ ],
1915
+ "isUnique": false
1916
+ }
1917
+ },
1918
+ "foreignKeys": {
1919
+ "conversations_authority_node_id_nodes_id_fk": {
1920
+ "name": "conversations_authority_node_id_nodes_id_fk",
1921
+ "tableFrom": "conversations",
1922
+ "tableTo": "nodes",
1923
+ "columnsFrom": [
1924
+ "authority_node_id"
1925
+ ],
1926
+ "columnsTo": [
1927
+ "id"
1928
+ ],
1929
+ "onDelete": "restrict",
1930
+ "onUpdate": "no action"
1931
+ },
1932
+ "conversations_parent_conversation_id_conversations_id_fk": {
1933
+ "name": "conversations_parent_conversation_id_conversations_id_fk",
1934
+ "tableFrom": "conversations",
1935
+ "tableTo": "conversations",
1936
+ "columnsFrom": [
1937
+ "parent_conversation_id"
1938
+ ],
1939
+ "columnsTo": [
1940
+ "id"
1941
+ ],
1942
+ "onDelete": "set null",
1943
+ "onUpdate": "no action"
1944
+ }
1945
+ },
1946
+ "compositePrimaryKeys": {},
1947
+ "uniqueConstraints": {},
1948
+ "checkConstraints": {}
1949
+ },
1950
+ "deliveries": {
1951
+ "name": "deliveries",
1952
+ "columns": {
1953
+ "id": {
1954
+ "name": "id",
1955
+ "type": "text",
1956
+ "primaryKey": true,
1957
+ "notNull": true,
1958
+ "autoincrement": false
1959
+ },
1960
+ "message_id": {
1961
+ "name": "message_id",
1962
+ "type": "text",
1963
+ "primaryKey": false,
1964
+ "notNull": false,
1965
+ "autoincrement": false
1966
+ },
1967
+ "invocation_id": {
1968
+ "name": "invocation_id",
1969
+ "type": "text",
1970
+ "primaryKey": false,
1971
+ "notNull": false,
1972
+ "autoincrement": false
1973
+ },
1974
+ "target_id": {
1975
+ "name": "target_id",
1976
+ "type": "text",
1977
+ "primaryKey": false,
1978
+ "notNull": true,
1979
+ "autoincrement": false
1980
+ },
1981
+ "target_node_id": {
1982
+ "name": "target_node_id",
1983
+ "type": "text",
1984
+ "primaryKey": false,
1985
+ "notNull": false,
1986
+ "autoincrement": false
1987
+ },
1988
+ "target_kind": {
1989
+ "name": "target_kind",
1990
+ "type": "text",
1991
+ "primaryKey": false,
1992
+ "notNull": true,
1993
+ "autoincrement": false
1994
+ },
1995
+ "transport": {
1996
+ "name": "transport",
1997
+ "type": "text",
1998
+ "primaryKey": false,
1999
+ "notNull": true,
2000
+ "autoincrement": false
2001
+ },
2002
+ "reason": {
2003
+ "name": "reason",
2004
+ "type": "text",
2005
+ "primaryKey": false,
2006
+ "notNull": true,
2007
+ "autoincrement": false
2008
+ },
2009
+ "policy": {
2010
+ "name": "policy",
2011
+ "type": "text",
2012
+ "primaryKey": false,
2013
+ "notNull": true,
2014
+ "autoincrement": false
2015
+ },
2016
+ "status": {
2017
+ "name": "status",
2018
+ "type": "text",
2019
+ "primaryKey": false,
2020
+ "notNull": true,
2021
+ "autoincrement": false
2022
+ },
2023
+ "binding_id": {
2024
+ "name": "binding_id",
2025
+ "type": "text",
2026
+ "primaryKey": false,
2027
+ "notNull": false,
2028
+ "autoincrement": false
2029
+ },
2030
+ "lease_owner": {
2031
+ "name": "lease_owner",
2032
+ "type": "text",
2033
+ "primaryKey": false,
2034
+ "notNull": false,
2035
+ "autoincrement": false
2036
+ },
2037
+ "lease_expires_at": {
2038
+ "name": "lease_expires_at",
2039
+ "type": "integer",
2040
+ "primaryKey": false,
2041
+ "notNull": false,
2042
+ "autoincrement": false
2043
+ },
2044
+ "metadata_json": {
2045
+ "name": "metadata_json",
2046
+ "type": "text",
2047
+ "primaryKey": false,
2048
+ "notNull": false,
2049
+ "autoincrement": false
2050
+ },
2051
+ "created_at": {
2052
+ "name": "created_at",
2053
+ "type": "integer",
2054
+ "primaryKey": false,
2055
+ "notNull": true,
2056
+ "autoincrement": false,
2057
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
2058
+ }
2059
+ },
2060
+ "indexes": {
2061
+ "idx_deliveries_status_transport": {
2062
+ "name": "idx_deliveries_status_transport",
2063
+ "columns": [
2064
+ "status",
2065
+ "transport"
2066
+ ],
2067
+ "isUnique": false
2068
+ },
2069
+ "idx_deliveries_created_at": {
2070
+ "name": "idx_deliveries_created_at",
2071
+ "columns": [
2072
+ "\"created_at\" desc"
2073
+ ],
2074
+ "isUnique": false
2075
+ }
2076
+ },
2077
+ "foreignKeys": {
2078
+ "deliveries_message_id_messages_id_fk": {
2079
+ "name": "deliveries_message_id_messages_id_fk",
2080
+ "tableFrom": "deliveries",
2081
+ "tableTo": "messages",
2082
+ "columnsFrom": [
2083
+ "message_id"
2084
+ ],
2085
+ "columnsTo": [
2086
+ "id"
2087
+ ],
2088
+ "onDelete": "cascade",
2089
+ "onUpdate": "no action"
2090
+ },
2091
+ "deliveries_invocation_id_invocations_id_fk": {
2092
+ "name": "deliveries_invocation_id_invocations_id_fk",
2093
+ "tableFrom": "deliveries",
2094
+ "tableTo": "invocations",
2095
+ "columnsFrom": [
2096
+ "invocation_id"
2097
+ ],
2098
+ "columnsTo": [
2099
+ "id"
2100
+ ],
2101
+ "onDelete": "cascade",
2102
+ "onUpdate": "no action"
2103
+ },
2104
+ "deliveries_target_node_id_nodes_id_fk": {
2105
+ "name": "deliveries_target_node_id_nodes_id_fk",
2106
+ "tableFrom": "deliveries",
2107
+ "tableTo": "nodes",
2108
+ "columnsFrom": [
2109
+ "target_node_id"
2110
+ ],
2111
+ "columnsTo": [
2112
+ "id"
2113
+ ],
2114
+ "onDelete": "set null",
2115
+ "onUpdate": "no action"
2116
+ },
2117
+ "deliveries_binding_id_bindings_id_fk": {
2118
+ "name": "deliveries_binding_id_bindings_id_fk",
2119
+ "tableFrom": "deliveries",
2120
+ "tableTo": "bindings",
2121
+ "columnsFrom": [
2122
+ "binding_id"
2123
+ ],
2124
+ "columnsTo": [
2125
+ "id"
2126
+ ],
2127
+ "onDelete": "set null",
2128
+ "onUpdate": "no action"
2129
+ }
2130
+ },
2131
+ "compositePrimaryKeys": {},
2132
+ "uniqueConstraints": {},
2133
+ "checkConstraints": {}
2134
+ },
2135
+ "delivery_attempts": {
2136
+ "name": "delivery_attempts",
2137
+ "columns": {
2138
+ "id": {
2139
+ "name": "id",
2140
+ "type": "text",
2141
+ "primaryKey": true,
2142
+ "notNull": true,
2143
+ "autoincrement": false
2144
+ },
2145
+ "delivery_id": {
2146
+ "name": "delivery_id",
2147
+ "type": "text",
2148
+ "primaryKey": false,
2149
+ "notNull": true,
2150
+ "autoincrement": false
2151
+ },
2152
+ "attempt": {
2153
+ "name": "attempt",
2154
+ "type": "integer",
2155
+ "primaryKey": false,
2156
+ "notNull": true,
2157
+ "autoincrement": false
2158
+ },
2159
+ "status": {
2160
+ "name": "status",
2161
+ "type": "text",
2162
+ "primaryKey": false,
2163
+ "notNull": true,
2164
+ "autoincrement": false
2165
+ },
2166
+ "error": {
2167
+ "name": "error",
2168
+ "type": "text",
2169
+ "primaryKey": false,
2170
+ "notNull": false,
2171
+ "autoincrement": false
2172
+ },
2173
+ "external_ref": {
2174
+ "name": "external_ref",
2175
+ "type": "text",
2176
+ "primaryKey": false,
2177
+ "notNull": false,
2178
+ "autoincrement": false
2179
+ },
2180
+ "metadata_json": {
2181
+ "name": "metadata_json",
2182
+ "type": "text",
2183
+ "primaryKey": false,
2184
+ "notNull": false,
2185
+ "autoincrement": false
2186
+ },
2187
+ "created_at": {
2188
+ "name": "created_at",
2189
+ "type": "integer",
2190
+ "primaryKey": false,
2191
+ "notNull": true,
2192
+ "autoincrement": false
2193
+ }
2194
+ },
2195
+ "indexes": {
2196
+ "idx_delivery_attempts_created_at": {
2197
+ "name": "idx_delivery_attempts_created_at",
2198
+ "columns": [
2199
+ "\"created_at\" desc"
2200
+ ],
2201
+ "isUnique": false
2202
+ }
2203
+ },
2204
+ "foreignKeys": {
2205
+ "delivery_attempts_delivery_id_deliveries_id_fk": {
2206
+ "name": "delivery_attempts_delivery_id_deliveries_id_fk",
2207
+ "tableFrom": "delivery_attempts",
2208
+ "tableTo": "deliveries",
2209
+ "columnsFrom": [
2210
+ "delivery_id"
2211
+ ],
2212
+ "columnsTo": [
2213
+ "id"
2214
+ ],
2215
+ "onDelete": "cascade",
2216
+ "onUpdate": "no action"
2217
+ }
2218
+ },
2219
+ "compositePrimaryKeys": {},
2220
+ "uniqueConstraints": {},
2221
+ "checkConstraints": {}
2222
+ },
2223
+ "durable_actions": {
2224
+ "name": "durable_actions",
2225
+ "columns": {
2226
+ "id": {
2227
+ "name": "id",
2228
+ "type": "text",
2229
+ "primaryKey": true,
2230
+ "notNull": true,
2231
+ "autoincrement": false
2232
+ },
2233
+ "kind": {
2234
+ "name": "kind",
2235
+ "type": "text",
2236
+ "primaryKey": false,
2237
+ "notNull": true,
2238
+ "autoincrement": false
2239
+ },
2240
+ "subject_id": {
2241
+ "name": "subject_id",
2242
+ "type": "text",
2243
+ "primaryKey": false,
2244
+ "notNull": true,
2245
+ "autoincrement": false
2246
+ },
2247
+ "authority_cell_id": {
2248
+ "name": "authority_cell_id",
2249
+ "type": "text",
2250
+ "primaryKey": false,
2251
+ "notNull": true,
2252
+ "autoincrement": false
2253
+ },
2254
+ "state": {
2255
+ "name": "state",
2256
+ "type": "text",
2257
+ "primaryKey": false,
2258
+ "notNull": true,
2259
+ "autoincrement": false
2260
+ },
2261
+ "idempotency_key": {
2262
+ "name": "idempotency_key",
2263
+ "type": "text",
2264
+ "primaryKey": false,
2265
+ "notNull": false,
2266
+ "autoincrement": false
2267
+ },
2268
+ "lease_owner": {
2269
+ "name": "lease_owner",
2270
+ "type": "text",
2271
+ "primaryKey": false,
2272
+ "notNull": false,
2273
+ "autoincrement": false
2274
+ },
2275
+ "lease_generation": {
2276
+ "name": "lease_generation",
2277
+ "type": "integer",
2278
+ "primaryKey": false,
2279
+ "notNull": true,
2280
+ "autoincrement": false,
2281
+ "default": 0
2282
+ },
2283
+ "lease_expires_at": {
2284
+ "name": "lease_expires_at",
2285
+ "type": "integer",
2286
+ "primaryKey": false,
2287
+ "notNull": false,
2288
+ "autoincrement": false
2289
+ },
2290
+ "metadata_json": {
2291
+ "name": "metadata_json",
2292
+ "type": "text",
2293
+ "primaryKey": false,
2294
+ "notNull": false,
2295
+ "autoincrement": false
2296
+ },
2297
+ "created_at": {
2298
+ "name": "created_at",
2299
+ "type": "integer",
2300
+ "primaryKey": false,
2301
+ "notNull": true,
2302
+ "autoincrement": false
2303
+ },
2304
+ "updated_at": {
2305
+ "name": "updated_at",
2306
+ "type": "integer",
2307
+ "primaryKey": false,
2308
+ "notNull": true,
2309
+ "autoincrement": false
2310
+ }
2311
+ },
2312
+ "indexes": {
2313
+ "idx_durable_actions_idempotency_key": {
2314
+ "name": "idx_durable_actions_idempotency_key",
2315
+ "columns": [
2316
+ "authority_cell_id",
2317
+ "kind",
2318
+ "idempotency_key"
2319
+ ],
2320
+ "isUnique": true,
2321
+ "where": "idempotency_key IS NOT NULL"
2322
+ },
2323
+ "idx_durable_actions_authority_state_lease": {
2324
+ "name": "idx_durable_actions_authority_state_lease",
2325
+ "columns": [
2326
+ "authority_cell_id",
2327
+ "state",
2328
+ "lease_expires_at"
2329
+ ],
2330
+ "isUnique": false
2331
+ },
2332
+ "idx_durable_actions_subject": {
2333
+ "name": "idx_durable_actions_subject",
2334
+ "columns": [
2335
+ "kind",
2336
+ "subject_id"
2337
+ ],
2338
+ "isUnique": false
2339
+ },
2340
+ "idx_durable_actions_kind_due_at_updated_at": {
2341
+ "name": "idx_durable_actions_kind_due_at_updated_at",
2342
+ "columns": [
2343
+ "kind",
2344
+ "COALESCE(CAST(json_extract(metadata_json, '$.dueAt') AS REAL), CAST(json_extract(metadata_json, '$.due_at') AS REAL))",
2345
+ "updated_at"
2346
+ ],
2347
+ "isUnique": false
2348
+ }
2349
+ },
2350
+ "foreignKeys": {},
2351
+ "compositePrimaryKeys": {},
2352
+ "uniqueConstraints": {},
2353
+ "checkConstraints": {}
2354
+ },
2355
+ "durable_attempts": {
2356
+ "name": "durable_attempts",
2357
+ "columns": {
2358
+ "id": {
2359
+ "name": "id",
2360
+ "type": "text",
2361
+ "primaryKey": true,
2362
+ "notNull": true,
2363
+ "autoincrement": false
2364
+ },
2365
+ "action_id": {
2366
+ "name": "action_id",
2367
+ "type": "text",
2368
+ "primaryKey": false,
2369
+ "notNull": true,
2370
+ "autoincrement": false
2371
+ },
2372
+ "attempt": {
2373
+ "name": "attempt",
2374
+ "type": "integer",
2375
+ "primaryKey": false,
2376
+ "notNull": true,
2377
+ "autoincrement": false
2378
+ },
2379
+ "state": {
2380
+ "name": "state",
2381
+ "type": "text",
2382
+ "primaryKey": false,
2383
+ "notNull": true,
2384
+ "autoincrement": false
2385
+ },
2386
+ "lease_generation": {
2387
+ "name": "lease_generation",
2388
+ "type": "integer",
2389
+ "primaryKey": false,
2390
+ "notNull": true,
2391
+ "autoincrement": false
2392
+ },
2393
+ "error": {
2394
+ "name": "error",
2395
+ "type": "text",
2396
+ "primaryKey": false,
2397
+ "notNull": false,
2398
+ "autoincrement": false
2399
+ },
2400
+ "started_at": {
2401
+ "name": "started_at",
2402
+ "type": "integer",
2403
+ "primaryKey": false,
2404
+ "notNull": false,
2405
+ "autoincrement": false
2406
+ },
2407
+ "completed_at": {
2408
+ "name": "completed_at",
2409
+ "type": "integer",
2410
+ "primaryKey": false,
2411
+ "notNull": false,
2412
+ "autoincrement": false
2413
+ },
2414
+ "metadata_json": {
2415
+ "name": "metadata_json",
2416
+ "type": "text",
2417
+ "primaryKey": false,
2418
+ "notNull": false,
2419
+ "autoincrement": false
2420
+ }
2421
+ },
2422
+ "indexes": {
2423
+ "idx_durable_attempts_action_attempt": {
2424
+ "name": "idx_durable_attempts_action_attempt",
2425
+ "columns": [
2426
+ "action_id",
2427
+ "attempt"
2428
+ ],
2429
+ "isUnique": false
2430
+ },
2431
+ "durable_attempts_action_id_attempt_unique": {
2432
+ "name": "durable_attempts_action_id_attempt_unique",
2433
+ "columns": [
2434
+ "action_id",
2435
+ "attempt"
2436
+ ],
2437
+ "isUnique": true
2438
+ }
2439
+ },
2440
+ "foreignKeys": {
2441
+ "durable_attempts_action_id_durable_actions_id_fk": {
2442
+ "name": "durable_attempts_action_id_durable_actions_id_fk",
2443
+ "tableFrom": "durable_attempts",
2444
+ "tableTo": "durable_actions",
2445
+ "columnsFrom": [
2446
+ "action_id"
2447
+ ],
2448
+ "columnsTo": [
2449
+ "id"
2450
+ ],
2451
+ "onDelete": "cascade",
2452
+ "onUpdate": "no action"
2453
+ }
2454
+ },
2455
+ "compositePrimaryKeys": {},
2456
+ "uniqueConstraints": {},
2457
+ "checkConstraints": {}
2458
+ },
2459
+ "durable_checkpoints": {
2460
+ "name": "durable_checkpoints",
2461
+ "columns": {
2462
+ "action_id": {
2463
+ "name": "action_id",
2464
+ "type": "text",
2465
+ "primaryKey": false,
2466
+ "notNull": true,
2467
+ "autoincrement": false
2468
+ },
2469
+ "name": {
2470
+ "name": "name",
2471
+ "type": "text",
2472
+ "primaryKey": false,
2473
+ "notNull": true,
2474
+ "autoincrement": false
2475
+ },
2476
+ "payload_json": {
2477
+ "name": "payload_json",
2478
+ "type": "text",
2479
+ "primaryKey": false,
2480
+ "notNull": false,
2481
+ "autoincrement": false
2482
+ },
2483
+ "owner_attempt_id": {
2484
+ "name": "owner_attempt_id",
2485
+ "type": "text",
2486
+ "primaryKey": false,
2487
+ "notNull": false,
2488
+ "autoincrement": false
2489
+ },
2490
+ "created_at": {
2491
+ "name": "created_at",
2492
+ "type": "integer",
2493
+ "primaryKey": false,
2494
+ "notNull": true,
2495
+ "autoincrement": false
2496
+ }
2497
+ },
2498
+ "indexes": {},
2499
+ "foreignKeys": {
2500
+ "durable_checkpoints_action_id_durable_actions_id_fk": {
2501
+ "name": "durable_checkpoints_action_id_durable_actions_id_fk",
2502
+ "tableFrom": "durable_checkpoints",
2503
+ "tableTo": "durable_actions",
2504
+ "columnsFrom": [
2505
+ "action_id"
2506
+ ],
2507
+ "columnsTo": [
2508
+ "id"
2509
+ ],
2510
+ "onDelete": "cascade",
2511
+ "onUpdate": "no action"
2512
+ },
2513
+ "durable_checkpoints_owner_attempt_id_durable_attempts_id_fk": {
2514
+ "name": "durable_checkpoints_owner_attempt_id_durable_attempts_id_fk",
2515
+ "tableFrom": "durable_checkpoints",
2516
+ "tableTo": "durable_attempts",
2517
+ "columnsFrom": [
2518
+ "owner_attempt_id"
2519
+ ],
2520
+ "columnsTo": [
2521
+ "id"
2522
+ ],
2523
+ "onDelete": "set null",
2524
+ "onUpdate": "no action"
2525
+ }
2526
+ },
2527
+ "compositePrimaryKeys": {
2528
+ "durable_checkpoints_action_id_name_pk": {
2529
+ "columns": [
2530
+ "action_id",
2531
+ "name"
2532
+ ],
2533
+ "name": "durable_checkpoints_action_id_name_pk"
2534
+ }
2535
+ },
2536
+ "uniqueConstraints": {},
2537
+ "checkConstraints": {}
2538
+ },
2539
+ "durable_signals": {
2540
+ "name": "durable_signals",
2541
+ "columns": {
2542
+ "action_id": {
2543
+ "name": "action_id",
2544
+ "type": "text",
2545
+ "primaryKey": false,
2546
+ "notNull": true,
2547
+ "autoincrement": false
2548
+ },
2549
+ "name": {
2550
+ "name": "name",
2551
+ "type": "text",
2552
+ "primaryKey": false,
2553
+ "notNull": true,
2554
+ "autoincrement": false
2555
+ },
2556
+ "payload_json": {
2557
+ "name": "payload_json",
2558
+ "type": "text",
2559
+ "primaryKey": false,
2560
+ "notNull": false,
2561
+ "autoincrement": false
2562
+ },
2563
+ "emitted_at": {
2564
+ "name": "emitted_at",
2565
+ "type": "integer",
2566
+ "primaryKey": false,
2567
+ "notNull": true,
2568
+ "autoincrement": false
2569
+ }
2570
+ },
2571
+ "indexes": {},
2572
+ "foreignKeys": {
2573
+ "durable_signals_action_id_durable_actions_id_fk": {
2574
+ "name": "durable_signals_action_id_durable_actions_id_fk",
2575
+ "tableFrom": "durable_signals",
2576
+ "tableTo": "durable_actions",
2577
+ "columnsFrom": [
2578
+ "action_id"
2579
+ ],
2580
+ "columnsTo": [
2581
+ "id"
2582
+ ],
2583
+ "onDelete": "cascade",
2584
+ "onUpdate": "no action"
2585
+ }
2586
+ },
2587
+ "compositePrimaryKeys": {
2588
+ "durable_signals_action_id_name_pk": {
2589
+ "columns": [
2590
+ "action_id",
2591
+ "name"
2592
+ ],
2593
+ "name": "durable_signals_action_id_name_pk"
2594
+ }
2595
+ },
2596
+ "uniqueConstraints": {},
2597
+ "checkConstraints": {}
2598
+ },
2599
+ "events": {
2600
+ "name": "events",
2601
+ "columns": {
2602
+ "id": {
2603
+ "name": "id",
2604
+ "type": "text",
2605
+ "primaryKey": true,
2606
+ "notNull": true,
2607
+ "autoincrement": false
2608
+ },
2609
+ "kind": {
2610
+ "name": "kind",
2611
+ "type": "text",
2612
+ "primaryKey": false,
2613
+ "notNull": true,
2614
+ "autoincrement": false
2615
+ },
2616
+ "actor_id": {
2617
+ "name": "actor_id",
2618
+ "type": "text",
2619
+ "primaryKey": false,
2620
+ "notNull": true,
2621
+ "autoincrement": false
2622
+ },
2623
+ "node_id": {
2624
+ "name": "node_id",
2625
+ "type": "text",
2626
+ "primaryKey": false,
2627
+ "notNull": false,
2628
+ "autoincrement": false
2629
+ },
2630
+ "ts": {
2631
+ "name": "ts",
2632
+ "type": "integer",
2633
+ "primaryKey": false,
2634
+ "notNull": true,
2635
+ "autoincrement": false
2636
+ },
2637
+ "payload_json": {
2638
+ "name": "payload_json",
2639
+ "type": "text",
2640
+ "primaryKey": false,
2641
+ "notNull": true,
2642
+ "autoincrement": false
2643
+ }
2644
+ },
2645
+ "indexes": {
2646
+ "idx_events_kind_ts": {
2647
+ "name": "idx_events_kind_ts",
2648
+ "columns": [
2649
+ "kind",
2650
+ "ts"
2651
+ ],
2652
+ "isUnique": false
2653
+ }
2654
+ },
2655
+ "foreignKeys": {},
2656
+ "compositePrimaryKeys": {},
2657
+ "uniqueConstraints": {},
2658
+ "checkConstraints": {}
2659
+ },
2660
+ "flights": {
2661
+ "name": "flights",
2662
+ "columns": {
2663
+ "id": {
2664
+ "name": "id",
2665
+ "type": "text",
2666
+ "primaryKey": true,
2667
+ "notNull": true,
2668
+ "autoincrement": false
2669
+ },
2670
+ "invocation_id": {
2671
+ "name": "invocation_id",
2672
+ "type": "text",
2673
+ "primaryKey": false,
2674
+ "notNull": true,
2675
+ "autoincrement": false
2676
+ },
2677
+ "requester_id": {
2678
+ "name": "requester_id",
2679
+ "type": "text",
2680
+ "primaryKey": false,
2681
+ "notNull": true,
2682
+ "autoincrement": false
2683
+ },
2684
+ "target_agent_id": {
2685
+ "name": "target_agent_id",
2686
+ "type": "text",
2687
+ "primaryKey": false,
2688
+ "notNull": true,
2689
+ "autoincrement": false
2690
+ },
2691
+ "state": {
2692
+ "name": "state",
2693
+ "type": "text",
2694
+ "primaryKey": false,
2695
+ "notNull": true,
2696
+ "autoincrement": false
2697
+ },
2698
+ "summary": {
2699
+ "name": "summary",
2700
+ "type": "text",
2701
+ "primaryKey": false,
2702
+ "notNull": false,
2703
+ "autoincrement": false
2704
+ },
2705
+ "output": {
2706
+ "name": "output",
2707
+ "type": "text",
2708
+ "primaryKey": false,
2709
+ "notNull": false,
2710
+ "autoincrement": false
2711
+ },
2712
+ "error": {
2713
+ "name": "error",
2714
+ "type": "text",
2715
+ "primaryKey": false,
2716
+ "notNull": false,
2717
+ "autoincrement": false
2718
+ },
2719
+ "labels_json": {
2720
+ "name": "labels_json",
2721
+ "type": "text",
2722
+ "primaryKey": false,
2723
+ "notNull": false,
2724
+ "autoincrement": false
2725
+ },
2726
+ "metadata_json": {
2727
+ "name": "metadata_json",
2728
+ "type": "text",
2729
+ "primaryKey": false,
2730
+ "notNull": false,
2731
+ "autoincrement": false
2732
+ },
2733
+ "started_at": {
2734
+ "name": "started_at",
2735
+ "type": "integer",
2736
+ "primaryKey": false,
2737
+ "notNull": false,
2738
+ "autoincrement": false
2739
+ },
2740
+ "completed_at": {
2741
+ "name": "completed_at",
2742
+ "type": "integer",
2743
+ "primaryKey": false,
2744
+ "notNull": false,
2745
+ "autoincrement": false
2746
+ }
2747
+ },
2748
+ "indexes": {
2749
+ "idx_flights_target_state": {
2750
+ "name": "idx_flights_target_state",
2751
+ "columns": [
2752
+ "target_agent_id",
2753
+ "state"
2754
+ ],
2755
+ "isUnique": false
2756
+ },
2757
+ "idx_flights_invocation_id": {
2758
+ "name": "idx_flights_invocation_id",
2759
+ "columns": [
2760
+ "invocation_id"
2761
+ ],
2762
+ "isUnique": false
2763
+ }
2764
+ },
2765
+ "foreignKeys": {
2766
+ "flights_invocation_id_invocations_id_fk": {
2767
+ "name": "flights_invocation_id_invocations_id_fk",
2768
+ "tableFrom": "flights",
2769
+ "tableTo": "invocations",
2770
+ "columnsFrom": [
2771
+ "invocation_id"
2772
+ ],
2773
+ "columnsTo": [
2774
+ "id"
2775
+ ],
2776
+ "onDelete": "cascade",
2777
+ "onUpdate": "no action"
2778
+ },
2779
+ "flights_requester_id_actors_id_fk": {
2780
+ "name": "flights_requester_id_actors_id_fk",
2781
+ "tableFrom": "flights",
2782
+ "tableTo": "actors",
2783
+ "columnsFrom": [
2784
+ "requester_id"
2785
+ ],
2786
+ "columnsTo": [
2787
+ "id"
2788
+ ],
2789
+ "onDelete": "restrict",
2790
+ "onUpdate": "no action"
2791
+ },
2792
+ "flights_target_agent_id_agents_id_fk": {
2793
+ "name": "flights_target_agent_id_agents_id_fk",
2794
+ "tableFrom": "flights",
2795
+ "tableTo": "agents",
2796
+ "columnsFrom": [
2797
+ "target_agent_id"
2798
+ ],
2799
+ "columnsTo": [
2800
+ "id"
2801
+ ],
2802
+ "onDelete": "restrict",
2803
+ "onUpdate": "no action"
2804
+ }
2805
+ },
2806
+ "compositePrimaryKeys": {},
2807
+ "uniqueConstraints": {},
2808
+ "checkConstraints": {}
2809
+ },
2810
+ "invocations": {
2811
+ "name": "invocations",
2812
+ "columns": {
2813
+ "id": {
2814
+ "name": "id",
2815
+ "type": "text",
2816
+ "primaryKey": true,
2817
+ "notNull": true,
2818
+ "autoincrement": false
2819
+ },
2820
+ "requester_id": {
2821
+ "name": "requester_id",
2822
+ "type": "text",
2823
+ "primaryKey": false,
2824
+ "notNull": true,
2825
+ "autoincrement": false
2826
+ },
2827
+ "requester_node_id": {
2828
+ "name": "requester_node_id",
2829
+ "type": "text",
2830
+ "primaryKey": false,
2831
+ "notNull": true,
2832
+ "autoincrement": false
2833
+ },
2834
+ "target_agent_id": {
2835
+ "name": "target_agent_id",
2836
+ "type": "text",
2837
+ "primaryKey": false,
2838
+ "notNull": true,
2839
+ "autoincrement": false
2840
+ },
2841
+ "target_node_id": {
2842
+ "name": "target_node_id",
2843
+ "type": "text",
2844
+ "primaryKey": false,
2845
+ "notNull": false,
2846
+ "autoincrement": false
2847
+ },
2848
+ "action": {
2849
+ "name": "action",
2850
+ "type": "text",
2851
+ "primaryKey": false,
2852
+ "notNull": true,
2853
+ "autoincrement": false
2854
+ },
2855
+ "task": {
2856
+ "name": "task",
2857
+ "type": "text",
2858
+ "primaryKey": false,
2859
+ "notNull": true,
2860
+ "autoincrement": false
2861
+ },
2862
+ "collaboration_record_id": {
2863
+ "name": "collaboration_record_id",
2864
+ "type": "text",
2865
+ "primaryKey": false,
2866
+ "notNull": false,
2867
+ "autoincrement": false
2868
+ },
2869
+ "conversation_id": {
2870
+ "name": "conversation_id",
2871
+ "type": "text",
2872
+ "primaryKey": false,
2873
+ "notNull": false,
2874
+ "autoincrement": false
2875
+ },
2876
+ "message_id": {
2877
+ "name": "message_id",
2878
+ "type": "text",
2879
+ "primaryKey": false,
2880
+ "notNull": false,
2881
+ "autoincrement": false
2882
+ },
2883
+ "context_json": {
2884
+ "name": "context_json",
2885
+ "type": "text",
2886
+ "primaryKey": false,
2887
+ "notNull": false,
2888
+ "autoincrement": false
2889
+ },
2890
+ "execution_json": {
2891
+ "name": "execution_json",
2892
+ "type": "text",
2893
+ "primaryKey": false,
2894
+ "notNull": false,
2895
+ "autoincrement": false
2896
+ },
2897
+ "ensure_awake": {
2898
+ "name": "ensure_awake",
2899
+ "type": "integer",
2900
+ "primaryKey": false,
2901
+ "notNull": true,
2902
+ "autoincrement": false,
2903
+ "default": 1
2904
+ },
2905
+ "stream": {
2906
+ "name": "stream",
2907
+ "type": "integer",
2908
+ "primaryKey": false,
2909
+ "notNull": true,
2910
+ "autoincrement": false,
2911
+ "default": 1
2912
+ },
2913
+ "timeout_ms": {
2914
+ "name": "timeout_ms",
2915
+ "type": "integer",
2916
+ "primaryKey": false,
2917
+ "notNull": false,
2918
+ "autoincrement": false
2919
+ },
2920
+ "labels_json": {
2921
+ "name": "labels_json",
2922
+ "type": "text",
2923
+ "primaryKey": false,
2924
+ "notNull": false,
2925
+ "autoincrement": false
2926
+ },
2927
+ "metadata_json": {
2928
+ "name": "metadata_json",
2929
+ "type": "text",
2930
+ "primaryKey": false,
2931
+ "notNull": false,
2932
+ "autoincrement": false
2933
+ },
2934
+ "created_at": {
2935
+ "name": "created_at",
2936
+ "type": "integer",
2937
+ "primaryKey": false,
2938
+ "notNull": true,
2939
+ "autoincrement": false
2940
+ },
2941
+ "flight_id": {
2942
+ "name": "flight_id",
2943
+ "type": "text",
2944
+ "primaryKey": false,
2945
+ "notNull": false,
2946
+ "autoincrement": false
2947
+ },
2948
+ "state": {
2949
+ "name": "state",
2950
+ "type": "text",
2951
+ "primaryKey": false,
2952
+ "notNull": false,
2953
+ "autoincrement": false
2954
+ },
2955
+ "summary": {
2956
+ "name": "summary",
2957
+ "type": "text",
2958
+ "primaryKey": false,
2959
+ "notNull": false,
2960
+ "autoincrement": false
2961
+ },
2962
+ "output": {
2963
+ "name": "output",
2964
+ "type": "text",
2965
+ "primaryKey": false,
2966
+ "notNull": false,
2967
+ "autoincrement": false
2968
+ },
2969
+ "error": {
2970
+ "name": "error",
2971
+ "type": "text",
2972
+ "primaryKey": false,
2973
+ "notNull": false,
2974
+ "autoincrement": false
2975
+ },
2976
+ "started_at": {
2977
+ "name": "started_at",
2978
+ "type": "integer",
2979
+ "primaryKey": false,
2980
+ "notNull": false,
2981
+ "autoincrement": false
2982
+ },
2983
+ "completed_at": {
2984
+ "name": "completed_at",
2985
+ "type": "integer",
2986
+ "primaryKey": false,
2987
+ "notNull": false,
2988
+ "autoincrement": false
2989
+ },
2990
+ "flight_metadata_json": {
2991
+ "name": "flight_metadata_json",
2992
+ "type": "text",
2993
+ "primaryKey": false,
2994
+ "notNull": false,
2995
+ "autoincrement": false
2996
+ }
2997
+ },
2998
+ "indexes": {
2999
+ "idx_invocations_target_created_at": {
3000
+ "name": "idx_invocations_target_created_at",
3001
+ "columns": [
3002
+ "target_agent_id",
3003
+ "created_at"
3004
+ ],
3005
+ "isUnique": false
3006
+ },
3007
+ "idx_invocations_requester_created_at": {
3008
+ "name": "idx_invocations_requester_created_at",
3009
+ "columns": [
3010
+ "requester_id",
3011
+ "\"created_at\" desc"
3012
+ ],
3013
+ "isUnique": false
3014
+ }
3015
+ },
3016
+ "foreignKeys": {
3017
+ "invocations_requester_id_actors_id_fk": {
3018
+ "name": "invocations_requester_id_actors_id_fk",
3019
+ "tableFrom": "invocations",
3020
+ "tableTo": "actors",
3021
+ "columnsFrom": [
3022
+ "requester_id"
3023
+ ],
3024
+ "columnsTo": [
3025
+ "id"
3026
+ ],
3027
+ "onDelete": "restrict",
3028
+ "onUpdate": "no action"
3029
+ },
3030
+ "invocations_requester_node_id_nodes_id_fk": {
3031
+ "name": "invocations_requester_node_id_nodes_id_fk",
3032
+ "tableFrom": "invocations",
3033
+ "tableTo": "nodes",
3034
+ "columnsFrom": [
3035
+ "requester_node_id"
3036
+ ],
3037
+ "columnsTo": [
3038
+ "id"
3039
+ ],
3040
+ "onDelete": "restrict",
3041
+ "onUpdate": "no action"
3042
+ },
3043
+ "invocations_target_agent_id_agents_id_fk": {
3044
+ "name": "invocations_target_agent_id_agents_id_fk",
3045
+ "tableFrom": "invocations",
3046
+ "tableTo": "agents",
3047
+ "columnsFrom": [
3048
+ "target_agent_id"
3049
+ ],
3050
+ "columnsTo": [
3051
+ "id"
3052
+ ],
3053
+ "onDelete": "restrict",
3054
+ "onUpdate": "no action"
3055
+ },
3056
+ "invocations_target_node_id_nodes_id_fk": {
3057
+ "name": "invocations_target_node_id_nodes_id_fk",
3058
+ "tableFrom": "invocations",
3059
+ "tableTo": "nodes",
3060
+ "columnsFrom": [
3061
+ "target_node_id"
3062
+ ],
3063
+ "columnsTo": [
3064
+ "id"
3065
+ ],
3066
+ "onDelete": "set null",
3067
+ "onUpdate": "no action"
3068
+ },
3069
+ "invocations_collaboration_record_id_collaboration_records_id_fk": {
3070
+ "name": "invocations_collaboration_record_id_collaboration_records_id_fk",
3071
+ "tableFrom": "invocations",
3072
+ "tableTo": "collaboration_records",
3073
+ "columnsFrom": [
3074
+ "collaboration_record_id"
3075
+ ],
3076
+ "columnsTo": [
3077
+ "id"
3078
+ ],
3079
+ "onDelete": "set null",
3080
+ "onUpdate": "no action"
3081
+ },
3082
+ "invocations_conversation_id_conversations_id_fk": {
3083
+ "name": "invocations_conversation_id_conversations_id_fk",
3084
+ "tableFrom": "invocations",
3085
+ "tableTo": "conversations",
3086
+ "columnsFrom": [
3087
+ "conversation_id"
3088
+ ],
3089
+ "columnsTo": [
3090
+ "id"
3091
+ ],
3092
+ "onDelete": "set null",
3093
+ "onUpdate": "no action"
3094
+ },
3095
+ "invocations_message_id_messages_id_fk": {
3096
+ "name": "invocations_message_id_messages_id_fk",
3097
+ "tableFrom": "invocations",
3098
+ "tableTo": "messages",
3099
+ "columnsFrom": [
3100
+ "message_id"
3101
+ ],
3102
+ "columnsTo": [
3103
+ "id"
3104
+ ],
3105
+ "onDelete": "set null",
3106
+ "onUpdate": "no action"
3107
+ }
3108
+ },
3109
+ "compositePrimaryKeys": {},
3110
+ "uniqueConstraints": {},
3111
+ "checkConstraints": {}
3112
+ },
3113
+ "message_attachments": {
3114
+ "name": "message_attachments",
3115
+ "columns": {
3116
+ "id": {
3117
+ "name": "id",
3118
+ "type": "text",
3119
+ "primaryKey": true,
3120
+ "notNull": true,
3121
+ "autoincrement": false
3122
+ },
3123
+ "message_id": {
3124
+ "name": "message_id",
3125
+ "type": "text",
3126
+ "primaryKey": false,
3127
+ "notNull": true,
3128
+ "autoincrement": false
3129
+ },
3130
+ "media_type": {
3131
+ "name": "media_type",
3132
+ "type": "text",
3133
+ "primaryKey": false,
3134
+ "notNull": true,
3135
+ "autoincrement": false
3136
+ },
3137
+ "file_name": {
3138
+ "name": "file_name",
3139
+ "type": "text",
3140
+ "primaryKey": false,
3141
+ "notNull": false,
3142
+ "autoincrement": false
3143
+ },
3144
+ "blob_key": {
3145
+ "name": "blob_key",
3146
+ "type": "text",
3147
+ "primaryKey": false,
3148
+ "notNull": false,
3149
+ "autoincrement": false
3150
+ },
3151
+ "url": {
3152
+ "name": "url",
3153
+ "type": "text",
3154
+ "primaryKey": false,
3155
+ "notNull": false,
3156
+ "autoincrement": false
3157
+ },
3158
+ "metadata_json": {
3159
+ "name": "metadata_json",
3160
+ "type": "text",
3161
+ "primaryKey": false,
3162
+ "notNull": false,
3163
+ "autoincrement": false
3164
+ }
3165
+ },
3166
+ "indexes": {},
3167
+ "foreignKeys": {
3168
+ "message_attachments_message_id_messages_id_fk": {
3169
+ "name": "message_attachments_message_id_messages_id_fk",
3170
+ "tableFrom": "message_attachments",
3171
+ "tableTo": "messages",
3172
+ "columnsFrom": [
3173
+ "message_id"
3174
+ ],
3175
+ "columnsTo": [
3176
+ "id"
3177
+ ],
3178
+ "onDelete": "cascade",
3179
+ "onUpdate": "no action"
3180
+ }
3181
+ },
3182
+ "compositePrimaryKeys": {},
3183
+ "uniqueConstraints": {},
3184
+ "checkConstraints": {}
3185
+ },
3186
+ "message_mentions": {
3187
+ "name": "message_mentions",
3188
+ "columns": {
3189
+ "message_id": {
3190
+ "name": "message_id",
3191
+ "type": "text",
3192
+ "primaryKey": false,
3193
+ "notNull": true,
3194
+ "autoincrement": false
3195
+ },
3196
+ "actor_id": {
3197
+ "name": "actor_id",
3198
+ "type": "text",
3199
+ "primaryKey": false,
3200
+ "notNull": true,
3201
+ "autoincrement": false
3202
+ },
3203
+ "label": {
3204
+ "name": "label",
3205
+ "type": "text",
3206
+ "primaryKey": false,
3207
+ "notNull": false,
3208
+ "autoincrement": false
3209
+ }
3210
+ },
3211
+ "indexes": {},
3212
+ "foreignKeys": {
3213
+ "message_mentions_message_id_messages_id_fk": {
3214
+ "name": "message_mentions_message_id_messages_id_fk",
3215
+ "tableFrom": "message_mentions",
3216
+ "tableTo": "messages",
3217
+ "columnsFrom": [
3218
+ "message_id"
3219
+ ],
3220
+ "columnsTo": [
3221
+ "id"
3222
+ ],
3223
+ "onDelete": "cascade",
3224
+ "onUpdate": "no action"
3225
+ },
3226
+ "message_mentions_actor_id_actors_id_fk": {
3227
+ "name": "message_mentions_actor_id_actors_id_fk",
3228
+ "tableFrom": "message_mentions",
3229
+ "tableTo": "actors",
3230
+ "columnsFrom": [
3231
+ "actor_id"
3232
+ ],
3233
+ "columnsTo": [
3234
+ "id"
3235
+ ],
3236
+ "onDelete": "cascade",
3237
+ "onUpdate": "no action"
3238
+ }
3239
+ },
3240
+ "compositePrimaryKeys": {
3241
+ "message_mentions_message_id_actor_id_pk": {
3242
+ "columns": [
3243
+ "message_id",
3244
+ "actor_id"
3245
+ ],
3246
+ "name": "message_mentions_message_id_actor_id_pk"
3247
+ }
3248
+ },
3249
+ "uniqueConstraints": {},
3250
+ "checkConstraints": {}
3251
+ },
3252
+ "messages": {
3253
+ "name": "messages",
3254
+ "columns": {
3255
+ "id": {
3256
+ "name": "id",
3257
+ "type": "text",
3258
+ "primaryKey": true,
3259
+ "notNull": true,
3260
+ "autoincrement": false
3261
+ },
3262
+ "conversation_id": {
3263
+ "name": "conversation_id",
3264
+ "type": "text",
3265
+ "primaryKey": false,
3266
+ "notNull": true,
3267
+ "autoincrement": false
3268
+ },
3269
+ "actor_id": {
3270
+ "name": "actor_id",
3271
+ "type": "text",
3272
+ "primaryKey": false,
3273
+ "notNull": true,
3274
+ "autoincrement": false
3275
+ },
3276
+ "origin_node_id": {
3277
+ "name": "origin_node_id",
3278
+ "type": "text",
3279
+ "primaryKey": false,
3280
+ "notNull": true,
3281
+ "autoincrement": false
3282
+ },
3283
+ "class": {
3284
+ "name": "class",
3285
+ "type": "text",
3286
+ "primaryKey": false,
3287
+ "notNull": true,
3288
+ "autoincrement": false
3289
+ },
3290
+ "body": {
3291
+ "name": "body",
3292
+ "type": "text",
3293
+ "primaryKey": false,
3294
+ "notNull": true,
3295
+ "autoincrement": false
3296
+ },
3297
+ "reply_to_message_id": {
3298
+ "name": "reply_to_message_id",
3299
+ "type": "text",
3300
+ "primaryKey": false,
3301
+ "notNull": false,
3302
+ "autoincrement": false
3303
+ },
3304
+ "thread_conversation_id": {
3305
+ "name": "thread_conversation_id",
3306
+ "type": "text",
3307
+ "primaryKey": false,
3308
+ "notNull": false,
3309
+ "autoincrement": false
3310
+ },
3311
+ "speech_json": {
3312
+ "name": "speech_json",
3313
+ "type": "text",
3314
+ "primaryKey": false,
3315
+ "notNull": false,
3316
+ "autoincrement": false
3317
+ },
3318
+ "audience_json": {
3319
+ "name": "audience_json",
3320
+ "type": "text",
3321
+ "primaryKey": false,
3322
+ "notNull": false,
3323
+ "autoincrement": false
3324
+ },
3325
+ "visibility": {
3326
+ "name": "visibility",
3327
+ "type": "text",
3328
+ "primaryKey": false,
3329
+ "notNull": true,
3330
+ "autoincrement": false
3331
+ },
3332
+ "policy": {
3333
+ "name": "policy",
3334
+ "type": "text",
3335
+ "primaryKey": false,
3336
+ "notNull": true,
3337
+ "autoincrement": false
3338
+ },
3339
+ "metadata_json": {
3340
+ "name": "metadata_json",
3341
+ "type": "text",
3342
+ "primaryKey": false,
3343
+ "notNull": false,
3344
+ "autoincrement": false
3345
+ },
3346
+ "created_at": {
3347
+ "name": "created_at",
3348
+ "type": "integer",
3349
+ "primaryKey": false,
3350
+ "notNull": true,
3351
+ "autoincrement": false
3352
+ }
3353
+ },
3354
+ "indexes": {
3355
+ "idx_messages_conversation_created_at": {
3356
+ "name": "idx_messages_conversation_created_at",
3357
+ "columns": [
3358
+ "conversation_id",
3359
+ "created_at"
3360
+ ],
3361
+ "isUnique": false
3362
+ },
3363
+ "idx_messages_created_at": {
3364
+ "name": "idx_messages_created_at",
3365
+ "columns": [
3366
+ "\"created_at\" desc"
3367
+ ],
3368
+ "isUnique": false
3369
+ },
3370
+ "idx_messages_actor_created_at": {
3371
+ "name": "idx_messages_actor_created_at",
3372
+ "columns": [
3373
+ "actor_id",
3374
+ "\"created_at\" desc"
3375
+ ],
3376
+ "isUnique": false
3377
+ }
3378
+ },
3379
+ "foreignKeys": {
3380
+ "messages_conversation_id_conversations_id_fk": {
3381
+ "name": "messages_conversation_id_conversations_id_fk",
3382
+ "tableFrom": "messages",
3383
+ "tableTo": "conversations",
3384
+ "columnsFrom": [
3385
+ "conversation_id"
3386
+ ],
3387
+ "columnsTo": [
3388
+ "id"
3389
+ ],
3390
+ "onDelete": "cascade",
3391
+ "onUpdate": "no action"
3392
+ },
3393
+ "messages_actor_id_actors_id_fk": {
3394
+ "name": "messages_actor_id_actors_id_fk",
3395
+ "tableFrom": "messages",
3396
+ "tableTo": "actors",
3397
+ "columnsFrom": [
3398
+ "actor_id"
3399
+ ],
3400
+ "columnsTo": [
3401
+ "id"
3402
+ ],
3403
+ "onDelete": "restrict",
3404
+ "onUpdate": "no action"
3405
+ },
3406
+ "messages_origin_node_id_nodes_id_fk": {
3407
+ "name": "messages_origin_node_id_nodes_id_fk",
3408
+ "tableFrom": "messages",
3409
+ "tableTo": "nodes",
3410
+ "columnsFrom": [
3411
+ "origin_node_id"
3412
+ ],
3413
+ "columnsTo": [
3414
+ "id"
3415
+ ],
3416
+ "onDelete": "restrict",
3417
+ "onUpdate": "no action"
3418
+ },
3419
+ "messages_reply_to_message_id_messages_id_fk": {
3420
+ "name": "messages_reply_to_message_id_messages_id_fk",
3421
+ "tableFrom": "messages",
3422
+ "tableTo": "messages",
3423
+ "columnsFrom": [
3424
+ "reply_to_message_id"
3425
+ ],
3426
+ "columnsTo": [
3427
+ "id"
3428
+ ],
3429
+ "onDelete": "set null",
3430
+ "onUpdate": "no action"
3431
+ },
3432
+ "messages_thread_conversation_id_conversations_id_fk": {
3433
+ "name": "messages_thread_conversation_id_conversations_id_fk",
3434
+ "tableFrom": "messages",
3435
+ "tableTo": "conversations",
3436
+ "columnsFrom": [
3437
+ "thread_conversation_id"
3438
+ ],
3439
+ "columnsTo": [
3440
+ "id"
3441
+ ],
3442
+ "onDelete": "set null",
3443
+ "onUpdate": "no action"
3444
+ }
3445
+ },
3446
+ "compositePrimaryKeys": {},
3447
+ "uniqueConstraints": {},
3448
+ "checkConstraints": {}
3449
+ },
3450
+ "mobile_push_registrations": {
3451
+ "name": "mobile_push_registrations",
3452
+ "columns": {
3453
+ "id": {
3454
+ "name": "id",
3455
+ "type": "text",
3456
+ "primaryKey": true,
3457
+ "notNull": true,
3458
+ "autoincrement": false
3459
+ },
3460
+ "device_id": {
3461
+ "name": "device_id",
3462
+ "type": "text",
3463
+ "primaryKey": false,
3464
+ "notNull": true,
3465
+ "autoincrement": false
3466
+ },
3467
+ "platform": {
3468
+ "name": "platform",
3469
+ "type": "text",
3470
+ "primaryKey": false,
3471
+ "notNull": true,
3472
+ "autoincrement": false
3473
+ },
3474
+ "app_bundle_id": {
3475
+ "name": "app_bundle_id",
3476
+ "type": "text",
3477
+ "primaryKey": false,
3478
+ "notNull": true,
3479
+ "autoincrement": false
3480
+ },
3481
+ "apns_environment": {
3482
+ "name": "apns_environment",
3483
+ "type": "text",
3484
+ "primaryKey": false,
3485
+ "notNull": true,
3486
+ "autoincrement": false
3487
+ },
3488
+ "push_token": {
3489
+ "name": "push_token",
3490
+ "type": "text",
3491
+ "primaryKey": false,
3492
+ "notNull": true,
3493
+ "autoincrement": false
3494
+ },
3495
+ "authorization_status": {
3496
+ "name": "authorization_status",
3497
+ "type": "text",
3498
+ "primaryKey": false,
3499
+ "notNull": true,
3500
+ "autoincrement": false
3501
+ },
3502
+ "app_version": {
3503
+ "name": "app_version",
3504
+ "type": "text",
3505
+ "primaryKey": false,
3506
+ "notNull": false,
3507
+ "autoincrement": false
3508
+ },
3509
+ "build_number": {
3510
+ "name": "build_number",
3511
+ "type": "text",
3512
+ "primaryKey": false,
3513
+ "notNull": false,
3514
+ "autoincrement": false
3515
+ },
3516
+ "device_model": {
3517
+ "name": "device_model",
3518
+ "type": "text",
3519
+ "primaryKey": false,
3520
+ "notNull": false,
3521
+ "autoincrement": false
3522
+ },
3523
+ "system_version": {
3524
+ "name": "system_version",
3525
+ "type": "text",
3526
+ "primaryKey": false,
3527
+ "notNull": false,
3528
+ "autoincrement": false
3529
+ },
3530
+ "created_at": {
3531
+ "name": "created_at",
3532
+ "type": "integer",
3533
+ "primaryKey": false,
3534
+ "notNull": true,
3535
+ "autoincrement": false
3536
+ },
3537
+ "updated_at": {
3538
+ "name": "updated_at",
3539
+ "type": "integer",
3540
+ "primaryKey": false,
3541
+ "notNull": true,
3542
+ "autoincrement": false
3543
+ }
3544
+ },
3545
+ "indexes": {
3546
+ "idx_mobile_push_registrations_device_bundle_env": {
3547
+ "name": "idx_mobile_push_registrations_device_bundle_env",
3548
+ "columns": [
3549
+ "device_id",
3550
+ "platform",
3551
+ "app_bundle_id",
3552
+ "apns_environment"
3553
+ ],
3554
+ "isUnique": true
3555
+ },
3556
+ "idx_mobile_push_registrations_push_token": {
3557
+ "name": "idx_mobile_push_registrations_push_token",
3558
+ "columns": [
3559
+ "push_token"
3560
+ ],
3561
+ "isUnique": true
3562
+ },
3563
+ "idx_mobile_push_registrations_device_updated_at": {
3564
+ "name": "idx_mobile_push_registrations_device_updated_at",
3565
+ "columns": [
3566
+ "device_id",
3567
+ "\"updated_at\" desc"
3568
+ ],
3569
+ "isUnique": false
3570
+ }
3571
+ },
3572
+ "foreignKeys": {},
3573
+ "compositePrimaryKeys": {},
3574
+ "uniqueConstraints": {},
3575
+ "checkConstraints": {}
3576
+ },
3577
+ "nodes": {
3578
+ "name": "nodes",
3579
+ "columns": {
3580
+ "id": {
3581
+ "name": "id",
3582
+ "type": "text",
3583
+ "primaryKey": true,
3584
+ "notNull": true,
3585
+ "autoincrement": false
3586
+ },
3587
+ "mesh_id": {
3588
+ "name": "mesh_id",
3589
+ "type": "text",
3590
+ "primaryKey": false,
3591
+ "notNull": true,
3592
+ "autoincrement": false
3593
+ },
3594
+ "name": {
3595
+ "name": "name",
3596
+ "type": "text",
3597
+ "primaryKey": false,
3598
+ "notNull": true,
3599
+ "autoincrement": false
3600
+ },
3601
+ "host_name": {
3602
+ "name": "host_name",
3603
+ "type": "text",
3604
+ "primaryKey": false,
3605
+ "notNull": false,
3606
+ "autoincrement": false
3607
+ },
3608
+ "advertise_scope": {
3609
+ "name": "advertise_scope",
3610
+ "type": "text",
3611
+ "primaryKey": false,
3612
+ "notNull": true,
3613
+ "autoincrement": false
3614
+ },
3615
+ "broker_url": {
3616
+ "name": "broker_url",
3617
+ "type": "text",
3618
+ "primaryKey": false,
3619
+ "notNull": false,
3620
+ "autoincrement": false
3621
+ },
3622
+ "tailnet_name": {
3623
+ "name": "tailnet_name",
3624
+ "type": "text",
3625
+ "primaryKey": false,
3626
+ "notNull": false,
3627
+ "autoincrement": false
3628
+ },
3629
+ "capabilities_json": {
3630
+ "name": "capabilities_json",
3631
+ "type": "text",
3632
+ "primaryKey": false,
3633
+ "notNull": false,
3634
+ "autoincrement": false
3635
+ },
3636
+ "labels_json": {
3637
+ "name": "labels_json",
3638
+ "type": "text",
3639
+ "primaryKey": false,
3640
+ "notNull": false,
3641
+ "autoincrement": false
3642
+ },
3643
+ "metadata_json": {
3644
+ "name": "metadata_json",
3645
+ "type": "text",
3646
+ "primaryKey": false,
3647
+ "notNull": false,
3648
+ "autoincrement": false
3649
+ },
3650
+ "last_seen_at": {
3651
+ "name": "last_seen_at",
3652
+ "type": "integer",
3653
+ "primaryKey": false,
3654
+ "notNull": false,
3655
+ "autoincrement": false
3656
+ },
3657
+ "registered_at": {
3658
+ "name": "registered_at",
3659
+ "type": "integer",
3660
+ "primaryKey": false,
3661
+ "notNull": true,
3662
+ "autoincrement": false
3663
+ }
3664
+ },
3665
+ "indexes": {
3666
+ "idx_nodes_mesh_id": {
3667
+ "name": "idx_nodes_mesh_id",
3668
+ "columns": [
3669
+ "mesh_id"
3670
+ ],
3671
+ "isUnique": false
3672
+ }
3673
+ },
3674
+ "foreignKeys": {},
3675
+ "compositePrimaryKeys": {},
3676
+ "uniqueConstraints": {},
3677
+ "checkConstraints": {}
3678
+ },
3679
+ "runtime_session_aliases": {
3680
+ "name": "runtime_session_aliases",
3681
+ "columns": {
3682
+ "alias": {
3683
+ "name": "alias",
3684
+ "type": "text",
3685
+ "primaryKey": false,
3686
+ "notNull": true,
3687
+ "autoincrement": false
3688
+ },
3689
+ "session_id": {
3690
+ "name": "session_id",
3691
+ "type": "text",
3692
+ "primaryKey": false,
3693
+ "notNull": true,
3694
+ "autoincrement": false
3695
+ },
3696
+ "alias_kind": {
3697
+ "name": "alias_kind",
3698
+ "type": "text",
3699
+ "primaryKey": false,
3700
+ "notNull": true,
3701
+ "autoincrement": false
3702
+ },
3703
+ "agent_id": {
3704
+ "name": "agent_id",
3705
+ "type": "text",
3706
+ "primaryKey": false,
3707
+ "notNull": true,
3708
+ "autoincrement": false
3709
+ },
3710
+ "endpoint_id": {
3711
+ "name": "endpoint_id",
3712
+ "type": "text",
3713
+ "primaryKey": false,
3714
+ "notNull": true,
3715
+ "autoincrement": false
3716
+ },
3717
+ "node_id": {
3718
+ "name": "node_id",
3719
+ "type": "text",
3720
+ "primaryKey": false,
3721
+ "notNull": true,
3722
+ "autoincrement": false
3723
+ },
3724
+ "harness": {
3725
+ "name": "harness",
3726
+ "type": "text",
3727
+ "primaryKey": false,
3728
+ "notNull": true,
3729
+ "autoincrement": false
3730
+ },
3731
+ "transport": {
3732
+ "name": "transport",
3733
+ "type": "text",
3734
+ "primaryKey": false,
3735
+ "notNull": true,
3736
+ "autoincrement": false
3737
+ },
3738
+ "first_seen_at": {
3739
+ "name": "first_seen_at",
3740
+ "type": "integer",
3741
+ "primaryKey": false,
3742
+ "notNull": true,
3743
+ "autoincrement": false
3744
+ },
3745
+ "last_seen_at": {
3746
+ "name": "last_seen_at",
3747
+ "type": "integer",
3748
+ "primaryKey": false,
3749
+ "notNull": true,
3750
+ "autoincrement": false
3751
+ },
3752
+ "expires_at": {
3753
+ "name": "expires_at",
3754
+ "type": "integer",
3755
+ "primaryKey": false,
3756
+ "notNull": false,
3757
+ "autoincrement": false
3758
+ }
3759
+ },
3760
+ "indexes": {
3761
+ "idx_runtime_session_aliases_alias": {
3762
+ "name": "idx_runtime_session_aliases_alias",
3763
+ "columns": [
3764
+ "alias",
3765
+ "\"last_seen_at\" desc"
3766
+ ],
3767
+ "isUnique": false
3768
+ },
3769
+ "idx_runtime_session_aliases_session": {
3770
+ "name": "idx_runtime_session_aliases_session",
3771
+ "columns": [
3772
+ "session_id"
3773
+ ],
3774
+ "isUnique": false
3775
+ },
3776
+ "idx_runtime_session_aliases_expires": {
3777
+ "name": "idx_runtime_session_aliases_expires",
3778
+ "columns": [
3779
+ "expires_at"
3780
+ ],
3781
+ "isUnique": false,
3782
+ "where": "expires_at IS NOT NULL"
3783
+ }
3784
+ },
3785
+ "foreignKeys": {
3786
+ "runtime_session_aliases_session_id_runtime_sessions_id_fk": {
3787
+ "name": "runtime_session_aliases_session_id_runtime_sessions_id_fk",
3788
+ "tableFrom": "runtime_session_aliases",
3789
+ "tableTo": "runtime_sessions",
3790
+ "columnsFrom": [
3791
+ "session_id"
3792
+ ],
3793
+ "columnsTo": [
3794
+ "id"
3795
+ ],
3796
+ "onDelete": "cascade",
3797
+ "onUpdate": "no action"
3798
+ },
3799
+ "runtime_session_aliases_agent_id_agents_id_fk": {
3800
+ "name": "runtime_session_aliases_agent_id_agents_id_fk",
3801
+ "tableFrom": "runtime_session_aliases",
3802
+ "tableTo": "agents",
3803
+ "columnsFrom": [
3804
+ "agent_id"
3805
+ ],
3806
+ "columnsTo": [
3807
+ "id"
3808
+ ],
3809
+ "onDelete": "cascade",
3810
+ "onUpdate": "no action"
3811
+ },
3812
+ "runtime_session_aliases_endpoint_id_agent_endpoints_id_fk": {
3813
+ "name": "runtime_session_aliases_endpoint_id_agent_endpoints_id_fk",
3814
+ "tableFrom": "runtime_session_aliases",
3815
+ "tableTo": "agent_endpoints",
3816
+ "columnsFrom": [
3817
+ "endpoint_id"
3818
+ ],
3819
+ "columnsTo": [
3820
+ "id"
3821
+ ],
3822
+ "onDelete": "cascade",
3823
+ "onUpdate": "no action"
3824
+ },
3825
+ "runtime_session_aliases_node_id_nodes_id_fk": {
3826
+ "name": "runtime_session_aliases_node_id_nodes_id_fk",
3827
+ "tableFrom": "runtime_session_aliases",
3828
+ "tableTo": "nodes",
3829
+ "columnsFrom": [
3830
+ "node_id"
3831
+ ],
3832
+ "columnsTo": [
3833
+ "id"
3834
+ ],
3835
+ "onDelete": "restrict",
3836
+ "onUpdate": "no action"
3837
+ }
3838
+ },
3839
+ "compositePrimaryKeys": {
3840
+ "runtime_session_aliases_alias_session_id_pk": {
3841
+ "columns": [
3842
+ "alias",
3843
+ "session_id"
3844
+ ],
3845
+ "name": "runtime_session_aliases_alias_session_id_pk"
3846
+ }
3847
+ },
3848
+ "uniqueConstraints": {},
3849
+ "checkConstraints": {}
3850
+ },
3851
+ "runtime_sessions": {
3852
+ "name": "runtime_sessions",
3853
+ "columns": {
3854
+ "id": {
3855
+ "name": "id",
3856
+ "type": "text",
3857
+ "primaryKey": true,
3858
+ "notNull": true,
3859
+ "autoincrement": false
3860
+ },
3861
+ "agent_id": {
3862
+ "name": "agent_id",
3863
+ "type": "text",
3864
+ "primaryKey": false,
3865
+ "notNull": true,
3866
+ "autoincrement": false
3867
+ },
3868
+ "endpoint_id": {
3869
+ "name": "endpoint_id",
3870
+ "type": "text",
3871
+ "primaryKey": false,
3872
+ "notNull": true,
3873
+ "autoincrement": false
3874
+ },
3875
+ "node_id": {
3876
+ "name": "node_id",
3877
+ "type": "text",
3878
+ "primaryKey": false,
3879
+ "notNull": true,
3880
+ "autoincrement": false
3881
+ },
3882
+ "harness": {
3883
+ "name": "harness",
3884
+ "type": "text",
3885
+ "primaryKey": false,
3886
+ "notNull": true,
3887
+ "autoincrement": false
3888
+ },
3889
+ "transport": {
3890
+ "name": "transport",
3891
+ "type": "text",
3892
+ "primaryKey": false,
3893
+ "notNull": true,
3894
+ "autoincrement": false
3895
+ },
3896
+ "state": {
3897
+ "name": "state",
3898
+ "type": "text",
3899
+ "primaryKey": false,
3900
+ "notNull": true,
3901
+ "autoincrement": false
3902
+ },
3903
+ "primary_alias": {
3904
+ "name": "primary_alias",
3905
+ "type": "text",
3906
+ "primaryKey": false,
3907
+ "notNull": true,
3908
+ "autoincrement": false
3909
+ },
3910
+ "external_session_id": {
3911
+ "name": "external_session_id",
3912
+ "type": "text",
3913
+ "primaryKey": false,
3914
+ "notNull": false,
3915
+ "autoincrement": false
3916
+ },
3917
+ "cwd": {
3918
+ "name": "cwd",
3919
+ "type": "text",
3920
+ "primaryKey": false,
3921
+ "notNull": false,
3922
+ "autoincrement": false
3923
+ },
3924
+ "project_root": {
3925
+ "name": "project_root",
3926
+ "type": "text",
3927
+ "primaryKey": false,
3928
+ "notNull": false,
3929
+ "autoincrement": false
3930
+ },
3931
+ "started_at": {
3932
+ "name": "started_at",
3933
+ "type": "integer",
3934
+ "primaryKey": false,
3935
+ "notNull": false,
3936
+ "autoincrement": false
3937
+ },
3938
+ "last_seen_at": {
3939
+ "name": "last_seen_at",
3940
+ "type": "integer",
3941
+ "primaryKey": false,
3942
+ "notNull": true,
3943
+ "autoincrement": false
3944
+ },
3945
+ "ended_at": {
3946
+ "name": "ended_at",
3947
+ "type": "integer",
3948
+ "primaryKey": false,
3949
+ "notNull": false,
3950
+ "autoincrement": false
3951
+ },
3952
+ "expires_at": {
3953
+ "name": "expires_at",
3954
+ "type": "integer",
3955
+ "primaryKey": false,
3956
+ "notNull": false,
3957
+ "autoincrement": false
3958
+ },
3959
+ "metadata_json": {
3960
+ "name": "metadata_json",
3961
+ "type": "text",
3962
+ "primaryKey": false,
3963
+ "notNull": false,
3964
+ "autoincrement": false
3965
+ },
3966
+ "created_at": {
3967
+ "name": "created_at",
3968
+ "type": "integer",
3969
+ "primaryKey": false,
3970
+ "notNull": true,
3971
+ "autoincrement": false,
3972
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
3973
+ },
3974
+ "updated_at": {
3975
+ "name": "updated_at",
3976
+ "type": "integer",
3977
+ "primaryKey": false,
3978
+ "notNull": true,
3979
+ "autoincrement": false
3980
+ }
3981
+ },
3982
+ "indexes": {
3983
+ "idx_runtime_sessions_agent_last_seen": {
3984
+ "name": "idx_runtime_sessions_agent_last_seen",
3985
+ "columns": [
3986
+ "agent_id",
3987
+ "\"last_seen_at\" desc"
3988
+ ],
3989
+ "isUnique": false
3990
+ },
3991
+ "idx_runtime_sessions_endpoint_last_seen": {
3992
+ "name": "idx_runtime_sessions_endpoint_last_seen",
3993
+ "columns": [
3994
+ "endpoint_id",
3995
+ "\"last_seen_at\" desc"
3996
+ ],
3997
+ "isUnique": false
3998
+ },
3999
+ "idx_runtime_sessions_external": {
4000
+ "name": "idx_runtime_sessions_external",
4001
+ "columns": [
4002
+ "external_session_id"
4003
+ ],
4004
+ "isUnique": false
4005
+ },
4006
+ "idx_runtime_sessions_expires": {
4007
+ "name": "idx_runtime_sessions_expires",
4008
+ "columns": [
4009
+ "expires_at"
4010
+ ],
4011
+ "isUnique": false,
4012
+ "where": "expires_at IS NOT NULL"
4013
+ }
4014
+ },
4015
+ "foreignKeys": {
4016
+ "runtime_sessions_agent_id_agents_id_fk": {
4017
+ "name": "runtime_sessions_agent_id_agents_id_fk",
4018
+ "tableFrom": "runtime_sessions",
4019
+ "tableTo": "agents",
4020
+ "columnsFrom": [
4021
+ "agent_id"
4022
+ ],
4023
+ "columnsTo": [
4024
+ "id"
4025
+ ],
4026
+ "onDelete": "cascade",
4027
+ "onUpdate": "no action"
4028
+ },
4029
+ "runtime_sessions_endpoint_id_agent_endpoints_id_fk": {
4030
+ "name": "runtime_sessions_endpoint_id_agent_endpoints_id_fk",
4031
+ "tableFrom": "runtime_sessions",
4032
+ "tableTo": "agent_endpoints",
4033
+ "columnsFrom": [
4034
+ "endpoint_id"
4035
+ ],
4036
+ "columnsTo": [
4037
+ "id"
4038
+ ],
4039
+ "onDelete": "cascade",
4040
+ "onUpdate": "no action"
4041
+ },
4042
+ "runtime_sessions_node_id_nodes_id_fk": {
4043
+ "name": "runtime_sessions_node_id_nodes_id_fk",
4044
+ "tableFrom": "runtime_sessions",
4045
+ "tableTo": "nodes",
4046
+ "columnsFrom": [
4047
+ "node_id"
4048
+ ],
4049
+ "columnsTo": [
4050
+ "id"
4051
+ ],
4052
+ "onDelete": "restrict",
4053
+ "onUpdate": "no action"
4054
+ }
4055
+ },
4056
+ "compositePrimaryKeys": {},
4057
+ "uniqueConstraints": {},
4058
+ "checkConstraints": {}
4059
+ },
4060
+ "scout_dispatches": {
4061
+ "name": "scout_dispatches",
4062
+ "columns": {
4063
+ "id": {
4064
+ "name": "id",
4065
+ "type": "text",
4066
+ "primaryKey": true,
4067
+ "notNull": true,
4068
+ "autoincrement": false
4069
+ },
4070
+ "kind": {
4071
+ "name": "kind",
4072
+ "type": "text",
4073
+ "primaryKey": false,
4074
+ "notNull": true,
4075
+ "autoincrement": false
4076
+ },
4077
+ "asked_label": {
4078
+ "name": "asked_label",
4079
+ "type": "text",
4080
+ "primaryKey": false,
4081
+ "notNull": true,
4082
+ "autoincrement": false
4083
+ },
4084
+ "detail": {
4085
+ "name": "detail",
4086
+ "type": "text",
4087
+ "primaryKey": false,
4088
+ "notNull": true,
4089
+ "autoincrement": false
4090
+ },
4091
+ "invocation_id": {
4092
+ "name": "invocation_id",
4093
+ "type": "text",
4094
+ "primaryKey": false,
4095
+ "notNull": false,
4096
+ "autoincrement": false
4097
+ },
4098
+ "conversation_id": {
4099
+ "name": "conversation_id",
4100
+ "type": "text",
4101
+ "primaryKey": false,
4102
+ "notNull": false,
4103
+ "autoincrement": false
4104
+ },
4105
+ "requester_id": {
4106
+ "name": "requester_id",
4107
+ "type": "text",
4108
+ "primaryKey": false,
4109
+ "notNull": false,
4110
+ "autoincrement": false
4111
+ },
4112
+ "dispatcher_node_id": {
4113
+ "name": "dispatcher_node_id",
4114
+ "type": "text",
4115
+ "primaryKey": false,
4116
+ "notNull": true,
4117
+ "autoincrement": false
4118
+ },
4119
+ "dispatched_at": {
4120
+ "name": "dispatched_at",
4121
+ "type": "integer",
4122
+ "primaryKey": false,
4123
+ "notNull": true,
4124
+ "autoincrement": false
4125
+ },
4126
+ "payload_json": {
4127
+ "name": "payload_json",
4128
+ "type": "text",
4129
+ "primaryKey": false,
4130
+ "notNull": true,
4131
+ "autoincrement": false
4132
+ }
4133
+ },
4134
+ "indexes": {
4135
+ "idx_scout_dispatches_dispatched_at": {
4136
+ "name": "idx_scout_dispatches_dispatched_at",
4137
+ "columns": [
4138
+ "\"dispatched_at\" desc"
4139
+ ],
4140
+ "isUnique": false
4141
+ },
4142
+ "idx_scout_dispatches_conversation_ts": {
4143
+ "name": "idx_scout_dispatches_conversation_ts",
4144
+ "columns": [
4145
+ "conversation_id",
4146
+ "\"dispatched_at\" desc"
4147
+ ],
4148
+ "isUnique": false
4149
+ }
4150
+ },
4151
+ "foreignKeys": {},
4152
+ "compositePrimaryKeys": {},
4153
+ "uniqueConstraints": {},
4154
+ "checkConstraints": {}
4155
+ },
4156
+ "thread_cursors": {
4157
+ "name": "thread_cursors",
4158
+ "columns": {
4159
+ "conversation_id": {
4160
+ "name": "conversation_id",
4161
+ "type": "text",
4162
+ "primaryKey": false,
4163
+ "notNull": true,
4164
+ "autoincrement": false
4165
+ },
4166
+ "authority_node_id": {
4167
+ "name": "authority_node_id",
4168
+ "type": "text",
4169
+ "primaryKey": false,
4170
+ "notNull": true,
4171
+ "autoincrement": false
4172
+ },
4173
+ "last_applied_seq": {
4174
+ "name": "last_applied_seq",
4175
+ "type": "integer",
4176
+ "primaryKey": false,
4177
+ "notNull": true,
4178
+ "autoincrement": false
4179
+ },
4180
+ "updated_at": {
4181
+ "name": "updated_at",
4182
+ "type": "integer",
4183
+ "primaryKey": false,
4184
+ "notNull": true,
4185
+ "autoincrement": false
4186
+ }
4187
+ },
4188
+ "indexes": {},
4189
+ "foreignKeys": {
4190
+ "thread_cursors_conversation_id_conversations_id_fk": {
4191
+ "name": "thread_cursors_conversation_id_conversations_id_fk",
4192
+ "tableFrom": "thread_cursors",
4193
+ "tableTo": "conversations",
4194
+ "columnsFrom": [
4195
+ "conversation_id"
4196
+ ],
4197
+ "columnsTo": [
4198
+ "id"
4199
+ ],
4200
+ "onDelete": "cascade",
4201
+ "onUpdate": "no action"
4202
+ },
4203
+ "thread_cursors_authority_node_id_nodes_id_fk": {
4204
+ "name": "thread_cursors_authority_node_id_nodes_id_fk",
4205
+ "tableFrom": "thread_cursors",
4206
+ "tableTo": "nodes",
4207
+ "columnsFrom": [
4208
+ "authority_node_id"
4209
+ ],
4210
+ "columnsTo": [
4211
+ "id"
4212
+ ],
4213
+ "onDelete": "restrict",
4214
+ "onUpdate": "no action"
4215
+ }
4216
+ },
4217
+ "compositePrimaryKeys": {
4218
+ "thread_cursors_conversation_id_authority_node_id_pk": {
4219
+ "columns": [
4220
+ "conversation_id",
4221
+ "authority_node_id"
4222
+ ],
4223
+ "name": "thread_cursors_conversation_id_authority_node_id_pk"
4224
+ }
4225
+ },
4226
+ "uniqueConstraints": {},
4227
+ "checkConstraints": {}
4228
+ },
4229
+ "thread_events": {
4230
+ "name": "thread_events",
4231
+ "columns": {
4232
+ "id": {
4233
+ "name": "id",
4234
+ "type": "text",
4235
+ "primaryKey": true,
4236
+ "notNull": true,
4237
+ "autoincrement": false
4238
+ },
4239
+ "conversation_id": {
4240
+ "name": "conversation_id",
4241
+ "type": "text",
4242
+ "primaryKey": false,
4243
+ "notNull": true,
4244
+ "autoincrement": false
4245
+ },
4246
+ "authority_node_id": {
4247
+ "name": "authority_node_id",
4248
+ "type": "text",
4249
+ "primaryKey": false,
4250
+ "notNull": true,
4251
+ "autoincrement": false
4252
+ },
4253
+ "seq": {
4254
+ "name": "seq",
4255
+ "type": "integer",
4256
+ "primaryKey": false,
4257
+ "notNull": true,
4258
+ "autoincrement": false
4259
+ },
4260
+ "kind": {
4261
+ "name": "kind",
4262
+ "type": "text",
4263
+ "primaryKey": false,
4264
+ "notNull": true,
4265
+ "autoincrement": false
4266
+ },
4267
+ "actor_id": {
4268
+ "name": "actor_id",
4269
+ "type": "text",
4270
+ "primaryKey": false,
4271
+ "notNull": false,
4272
+ "autoincrement": false
4273
+ },
4274
+ "ts": {
4275
+ "name": "ts",
4276
+ "type": "integer",
4277
+ "primaryKey": false,
4278
+ "notNull": true,
4279
+ "autoincrement": false
4280
+ },
4281
+ "payload_json": {
4282
+ "name": "payload_json",
4283
+ "type": "text",
4284
+ "primaryKey": false,
4285
+ "notNull": true,
4286
+ "autoincrement": false
4287
+ },
4288
+ "notification_json": {
4289
+ "name": "notification_json",
4290
+ "type": "text",
4291
+ "primaryKey": false,
4292
+ "notNull": false,
4293
+ "autoincrement": false
4294
+ }
4295
+ },
4296
+ "indexes": {
4297
+ "idx_thread_events_conversation_seq": {
4298
+ "name": "idx_thread_events_conversation_seq",
4299
+ "columns": [
4300
+ "conversation_id",
4301
+ "\"seq\" desc"
4302
+ ],
4303
+ "isUnique": false
4304
+ },
4305
+ "idx_thread_events_conversation_ts": {
4306
+ "name": "idx_thread_events_conversation_ts",
4307
+ "columns": [
4308
+ "conversation_id",
4309
+ "\"ts\" desc"
4310
+ ],
4311
+ "isUnique": false
4312
+ },
4313
+ "thread_events_conversation_id_seq_unique": {
4314
+ "name": "thread_events_conversation_id_seq_unique",
4315
+ "columns": [
4316
+ "conversation_id",
4317
+ "seq"
4318
+ ],
4319
+ "isUnique": true
4320
+ }
4321
+ },
4322
+ "foreignKeys": {
4323
+ "thread_events_conversation_id_conversations_id_fk": {
4324
+ "name": "thread_events_conversation_id_conversations_id_fk",
4325
+ "tableFrom": "thread_events",
4326
+ "tableTo": "conversations",
4327
+ "columnsFrom": [
4328
+ "conversation_id"
4329
+ ],
4330
+ "columnsTo": [
4331
+ "id"
4332
+ ],
4333
+ "onDelete": "cascade",
4334
+ "onUpdate": "no action"
4335
+ },
4336
+ "thread_events_authority_node_id_nodes_id_fk": {
4337
+ "name": "thread_events_authority_node_id_nodes_id_fk",
4338
+ "tableFrom": "thread_events",
4339
+ "tableTo": "nodes",
4340
+ "columnsFrom": [
4341
+ "authority_node_id"
4342
+ ],
4343
+ "columnsTo": [
4344
+ "id"
4345
+ ],
4346
+ "onDelete": "restrict",
4347
+ "onUpdate": "no action"
4348
+ },
4349
+ "thread_events_actor_id_actors_id_fk": {
4350
+ "name": "thread_events_actor_id_actors_id_fk",
4351
+ "tableFrom": "thread_events",
4352
+ "tableTo": "actors",
4353
+ "columnsFrom": [
4354
+ "actor_id"
4355
+ ],
4356
+ "columnsTo": [
4357
+ "id"
4358
+ ],
4359
+ "onDelete": "set null",
4360
+ "onUpdate": "no action"
4361
+ }
4362
+ },
4363
+ "compositePrimaryKeys": {},
4364
+ "uniqueConstraints": {},
4365
+ "checkConstraints": {}
4366
+ }
4367
+ },
4368
+ "views": {},
4369
+ "enums": {},
4370
+ "_meta": {
4371
+ "schemas": {},
4372
+ "tables": {},
4373
+ "columns": {}
4374
+ },
4375
+ "internal": {
4376
+ "indexes": {
4377
+ "idx_activity_items_agent_ts": {
4378
+ "columns": {
4379
+ "\"ts\" desc": {
4380
+ "isExpression": true
4381
+ }
4382
+ }
4383
+ },
4384
+ "idx_activity_items_actor_ts": {
4385
+ "columns": {
4386
+ "\"ts\" desc": {
4387
+ "isExpression": true
4388
+ }
4389
+ }
4390
+ },
4391
+ "idx_activity_items_conversation_ts": {
4392
+ "columns": {
4393
+ "\"ts\" desc": {
4394
+ "isExpression": true
4395
+ }
4396
+ }
4397
+ },
4398
+ "idx_activity_items_ts": {
4399
+ "columns": {
4400
+ "\"ts\" desc": {
4401
+ "isExpression": true
4402
+ }
4403
+ }
4404
+ },
4405
+ "idx_activity_items_workspace_ts": {
4406
+ "columns": {
4407
+ "\"ts\" desc": {
4408
+ "isExpression": true
4409
+ }
4410
+ }
4411
+ },
4412
+ "idx_activity_items_kind_ts": {
4413
+ "columns": {
4414
+ "\"ts\" desc": {
4415
+ "isExpression": true
4416
+ }
4417
+ }
4418
+ },
4419
+ "idx_activity_items_session_ts": {
4420
+ "columns": {
4421
+ "\"ts\" desc": {
4422
+ "isExpression": true
4423
+ }
4424
+ }
4425
+ },
4426
+ "idx_agent_endpoints_agent_updated_at": {
4427
+ "columns": {
4428
+ "\"updated_at\" desc": {
4429
+ "isExpression": true
4430
+ }
4431
+ }
4432
+ },
4433
+ "idx_briefings_created_at": {
4434
+ "columns": {
4435
+ "\"created_at\" desc": {
4436
+ "isExpression": true
4437
+ }
4438
+ }
4439
+ },
4440
+ "idx_briefings_kind_created_at": {
4441
+ "columns": {
4442
+ "\"created_at\" desc": {
4443
+ "isExpression": true
4444
+ }
4445
+ }
4446
+ },
4447
+ "idx_budget_quota_windows_session_captured": {
4448
+ "columns": {
4449
+ "\"captured_at\" desc": {
4450
+ "isExpression": true
4451
+ }
4452
+ }
4453
+ },
4454
+ "idx_budget_quota_windows_provider_label": {
4455
+ "columns": {
4456
+ "\"captured_at\" desc": {
4457
+ "isExpression": true
4458
+ }
4459
+ }
4460
+ },
4461
+ "idx_budget_usage_events_scope_occurred": {
4462
+ "columns": {
4463
+ "\"occurred_at\" desc": {
4464
+ "isExpression": true
4465
+ }
4466
+ }
4467
+ },
4468
+ "idx_budget_usage_events_session_occurred": {
4469
+ "columns": {
4470
+ "\"occurred_at\" desc": {
4471
+ "isExpression": true
4472
+ }
4473
+ }
4474
+ },
4475
+ "idx_budget_usage_events_invocation": {
4476
+ "columns": {
4477
+ "\"occurred_at\" desc": {
4478
+ "isExpression": true
4479
+ }
4480
+ }
4481
+ },
4482
+ "idx_budget_usage_events_flight": {
4483
+ "columns": {
4484
+ "\"occurred_at\" desc": {
4485
+ "isExpression": true
4486
+ }
4487
+ }
4488
+ },
4489
+ "idx_collaboration_records_kind_state_updated_at": {
4490
+ "columns": {
4491
+ "\"updated_at\" desc": {
4492
+ "isExpression": true
4493
+ }
4494
+ }
4495
+ },
4496
+ "idx_collaboration_records_parent_kind_state_updated_at": {
4497
+ "columns": {
4498
+ "\"updated_at\" desc": {
4499
+ "isExpression": true
4500
+ }
4501
+ }
4502
+ },
4503
+ "idx_collaboration_records_owner_kind_state_updated_at": {
4504
+ "columns": {
4505
+ "\"updated_at\" desc": {
4506
+ "isExpression": true
4507
+ }
4508
+ }
4509
+ },
4510
+ "idx_collaboration_records_next_move_owner_kind_state_updated_at": {
4511
+ "columns": {
4512
+ "\"updated_at\" desc": {
4513
+ "isExpression": true
4514
+ }
4515
+ }
4516
+ },
4517
+ "idx_read_cursors_conversation_updated_at": {
4518
+ "columns": {
4519
+ "\"updated_at\" desc": {
4520
+ "isExpression": true
4521
+ }
4522
+ }
4523
+ },
4524
+ "idx_conversations_created_at": {
4525
+ "columns": {
4526
+ "\"created_at\" desc": {
4527
+ "isExpression": true
4528
+ }
4529
+ }
4530
+ },
4531
+ "idx_deliveries_created_at": {
4532
+ "columns": {
4533
+ "\"created_at\" desc": {
4534
+ "isExpression": true
4535
+ }
4536
+ }
4537
+ },
4538
+ "idx_delivery_attempts_created_at": {
4539
+ "columns": {
4540
+ "\"created_at\" desc": {
4541
+ "isExpression": true
4542
+ }
4543
+ }
4544
+ },
4545
+ "idx_durable_actions_kind_due_at_updated_at": {
4546
+ "columns": {
4547
+ "COALESCE(CAST(json_extract(metadata_json, '$.dueAt') AS REAL), CAST(json_extract(metadata_json, '$.due_at') AS REAL))": {
4548
+ "isExpression": true
4549
+ }
4550
+ }
4551
+ },
4552
+ "idx_invocations_requester_created_at": {
4553
+ "columns": {
4554
+ "\"created_at\" desc": {
4555
+ "isExpression": true
4556
+ }
4557
+ }
4558
+ },
4559
+ "idx_messages_created_at": {
4560
+ "columns": {
4561
+ "\"created_at\" desc": {
4562
+ "isExpression": true
4563
+ }
4564
+ }
4565
+ },
4566
+ "idx_messages_actor_created_at": {
4567
+ "columns": {
4568
+ "\"created_at\" desc": {
4569
+ "isExpression": true
4570
+ }
4571
+ }
4572
+ },
4573
+ "idx_mobile_push_registrations_device_updated_at": {
4574
+ "columns": {
4575
+ "\"updated_at\" desc": {
4576
+ "isExpression": true
4577
+ }
4578
+ }
4579
+ },
4580
+ "idx_runtime_session_aliases_alias": {
4581
+ "columns": {
4582
+ "\"last_seen_at\" desc": {
4583
+ "isExpression": true
4584
+ }
4585
+ }
4586
+ },
4587
+ "idx_runtime_sessions_agent_last_seen": {
4588
+ "columns": {
4589
+ "\"last_seen_at\" desc": {
4590
+ "isExpression": true
4591
+ }
4592
+ }
4593
+ },
4594
+ "idx_runtime_sessions_endpoint_last_seen": {
4595
+ "columns": {
4596
+ "\"last_seen_at\" desc": {
4597
+ "isExpression": true
4598
+ }
4599
+ }
4600
+ },
4601
+ "idx_scout_dispatches_dispatched_at": {
4602
+ "columns": {
4603
+ "\"dispatched_at\" desc": {
4604
+ "isExpression": true
4605
+ }
4606
+ }
4607
+ },
4608
+ "idx_scout_dispatches_conversation_ts": {
4609
+ "columns": {
4610
+ "\"dispatched_at\" desc": {
4611
+ "isExpression": true
4612
+ }
4613
+ }
4614
+ },
4615
+ "idx_thread_events_conversation_seq": {
4616
+ "columns": {
4617
+ "\"seq\" desc": {
4618
+ "isExpression": true
4619
+ }
4620
+ }
4621
+ },
4622
+ "idx_thread_events_conversation_ts": {
4623
+ "columns": {
4624
+ "\"ts\" desc": {
4625
+ "isExpression": true
4626
+ }
4627
+ }
4628
+ }
4629
+ }
4630
+ }
4631
+ }