@makaio/storage-pg 1.0.0-dev-1781260968078

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.
@@ -0,0 +1,3323 @@
1
+ {
2
+ "id": "6d81bc47-5504-4e10-82f7-6a44bbd97953",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.preferences": {
8
+ "name": "preferences",
9
+ "schema": "",
10
+ "columns": {
11
+ "scope": {
12
+ "name": "scope",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "surface": {
18
+ "name": "surface",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "default": "'any'"
23
+ },
24
+ "context": {
25
+ "name": "context",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "default": "'any'"
30
+ },
31
+ "viewport": {
32
+ "name": "viewport",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "default": "'any'"
37
+ },
38
+ "category": {
39
+ "name": "category",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true
43
+ },
44
+ "value": {
45
+ "name": "value",
46
+ "type": "text",
47
+ "primaryKey": false,
48
+ "notNull": true
49
+ },
50
+ "updated_at": {
51
+ "name": "updated_at",
52
+ "type": "bigint",
53
+ "primaryKey": false,
54
+ "notNull": true
55
+ }
56
+ },
57
+ "indexes": {
58
+ "preferences_pk": {
59
+ "name": "preferences_pk",
60
+ "columns": [
61
+ {
62
+ "expression": "scope",
63
+ "isExpression": false,
64
+ "asc": true,
65
+ "nulls": "last"
66
+ },
67
+ {
68
+ "expression": "surface",
69
+ "isExpression": false,
70
+ "asc": true,
71
+ "nulls": "last"
72
+ },
73
+ {
74
+ "expression": "context",
75
+ "isExpression": false,
76
+ "asc": true,
77
+ "nulls": "last"
78
+ },
79
+ {
80
+ "expression": "viewport",
81
+ "isExpression": false,
82
+ "asc": true,
83
+ "nulls": "last"
84
+ },
85
+ {
86
+ "expression": "category",
87
+ "isExpression": false,
88
+ "asc": true,
89
+ "nulls": "last"
90
+ }
91
+ ],
92
+ "isUnique": true,
93
+ "concurrently": false,
94
+ "method": "btree",
95
+ "with": {}
96
+ }
97
+ },
98
+ "foreignKeys": {},
99
+ "compositePrimaryKeys": {},
100
+ "uniqueConstraints": {},
101
+ "policies": {},
102
+ "checkConstraints": {},
103
+ "isRLSEnabled": false
104
+ },
105
+ "public.harness_definitions": {
106
+ "name": "harness_definitions",
107
+ "schema": "",
108
+ "columns": {
109
+ "id": {
110
+ "name": "id",
111
+ "type": "text",
112
+ "primaryKey": true,
113
+ "notNull": true
114
+ },
115
+ "name": {
116
+ "name": "name",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": true
120
+ },
121
+ "description": {
122
+ "name": "description",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": false
126
+ },
127
+ "adapter_name": {
128
+ "name": "adapter_name",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": false
132
+ },
133
+ "client_id": {
134
+ "name": "client_id",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": false
138
+ },
139
+ "env": {
140
+ "name": "env",
141
+ "type": "jsonb",
142
+ "primaryKey": false,
143
+ "notNull": false
144
+ },
145
+ "credentials": {
146
+ "name": "credentials",
147
+ "type": "jsonb",
148
+ "primaryKey": false,
149
+ "notNull": false
150
+ },
151
+ "cwd": {
152
+ "name": "cwd",
153
+ "type": "text",
154
+ "primaryKey": false,
155
+ "notNull": false
156
+ },
157
+ "approval_policy": {
158
+ "name": "approval_policy",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": true,
162
+ "default": "'always-ask'"
163
+ },
164
+ "native_tools_enabled": {
165
+ "name": "native_tools_enabled",
166
+ "type": "jsonb",
167
+ "primaryKey": false,
168
+ "notNull": true
169
+ },
170
+ "native_tools_disabled": {
171
+ "name": "native_tools_disabled",
172
+ "type": "jsonb",
173
+ "primaryKey": false,
174
+ "notNull": true
175
+ },
176
+ "registry_tools_enabled": {
177
+ "name": "registry_tools_enabled",
178
+ "type": "jsonb",
179
+ "primaryKey": false,
180
+ "notNull": true
181
+ },
182
+ "registry_tools_disabled": {
183
+ "name": "registry_tools_disabled",
184
+ "type": "jsonb",
185
+ "primaryKey": false,
186
+ "notNull": true
187
+ },
188
+ "skills_enabled": {
189
+ "name": "skills_enabled",
190
+ "type": "jsonb",
191
+ "primaryKey": false,
192
+ "notNull": false
193
+ },
194
+ "skills_disabled": {
195
+ "name": "skills_disabled",
196
+ "type": "jsonb",
197
+ "primaryKey": false,
198
+ "notNull": false
199
+ },
200
+ "tool_capability_map": {
201
+ "name": "tool_capability_map",
202
+ "type": "jsonb",
203
+ "primaryKey": false,
204
+ "notNull": false
205
+ },
206
+ "capability_overrides": {
207
+ "name": "capability_overrides",
208
+ "type": "jsonb",
209
+ "primaryKey": false,
210
+ "notNull": false
211
+ },
212
+ "tool_approval_overrides": {
213
+ "name": "tool_approval_overrides",
214
+ "type": "jsonb",
215
+ "primaryKey": false,
216
+ "notNull": false
217
+ },
218
+ "is_default": {
219
+ "name": "is_default",
220
+ "type": "boolean",
221
+ "primaryKey": false,
222
+ "notNull": true,
223
+ "default": false
224
+ },
225
+ "enabled": {
226
+ "name": "enabled",
227
+ "type": "boolean",
228
+ "primaryKey": false,
229
+ "notNull": true,
230
+ "default": true
231
+ },
232
+ "created_at": {
233
+ "name": "created_at",
234
+ "type": "bigint",
235
+ "primaryKey": false,
236
+ "notNull": true
237
+ },
238
+ "updated_at": {
239
+ "name": "updated_at",
240
+ "type": "bigint",
241
+ "primaryKey": false,
242
+ "notNull": true
243
+ }
244
+ },
245
+ "indexes": {},
246
+ "foreignKeys": {},
247
+ "compositePrimaryKeys": {},
248
+ "uniqueConstraints": {},
249
+ "policies": {},
250
+ "checkConstraints": {},
251
+ "isRLSEnabled": false
252
+ },
253
+ "public.import_cursors": {
254
+ "name": "import_cursors",
255
+ "schema": "",
256
+ "columns": {
257
+ "file_path": {
258
+ "name": "file_path",
259
+ "type": "text",
260
+ "primaryKey": true,
261
+ "notNull": true
262
+ },
263
+ "bytes_read": {
264
+ "name": "bytes_read",
265
+ "type": "integer",
266
+ "primaryKey": false,
267
+ "notNull": true
268
+ },
269
+ "last_modified": {
270
+ "name": "last_modified",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": true
274
+ },
275
+ "updated_at": {
276
+ "name": "updated_at",
277
+ "type": "bigint",
278
+ "primaryKey": false,
279
+ "notNull": true
280
+ }
281
+ },
282
+ "indexes": {},
283
+ "foreignKeys": {},
284
+ "compositePrimaryKeys": {},
285
+ "uniqueConstraints": {},
286
+ "policies": {},
287
+ "checkConstraints": {},
288
+ "isRLSEnabled": false
289
+ },
290
+ "public.message_routing": {
291
+ "name": "message_routing",
292
+ "schema": "",
293
+ "columns": {
294
+ "message_id": {
295
+ "name": "message_id",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": true
299
+ },
300
+ "agent_id": {
301
+ "name": "agent_id",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": true
305
+ },
306
+ "status": {
307
+ "name": "status",
308
+ "type": "text",
309
+ "primaryKey": false,
310
+ "notNull": true
311
+ },
312
+ "timestamp": {
313
+ "name": "timestamp",
314
+ "type": "bigint",
315
+ "primaryKey": false,
316
+ "notNull": true
317
+ },
318
+ "error": {
319
+ "name": "error",
320
+ "type": "text",
321
+ "primaryKey": false,
322
+ "notNull": false
323
+ }
324
+ },
325
+ "indexes": {
326
+ "idx_routing_agent": {
327
+ "name": "idx_routing_agent",
328
+ "columns": [
329
+ {
330
+ "expression": "agent_id",
331
+ "isExpression": false,
332
+ "asc": true,
333
+ "nulls": "last"
334
+ },
335
+ {
336
+ "expression": "timestamp",
337
+ "isExpression": false,
338
+ "asc": true,
339
+ "nulls": "last"
340
+ }
341
+ ],
342
+ "isUnique": false,
343
+ "concurrently": false,
344
+ "method": "btree",
345
+ "with": {}
346
+ }
347
+ },
348
+ "foreignKeys": {
349
+ "message_routing_message_id_messages_message_id_fk": {
350
+ "name": "message_routing_message_id_messages_message_id_fk",
351
+ "tableFrom": "message_routing",
352
+ "tableTo": "messages",
353
+ "columnsFrom": ["message_id"],
354
+ "columnsTo": ["message_id"],
355
+ "onDelete": "cascade",
356
+ "onUpdate": "no action"
357
+ }
358
+ },
359
+ "compositePrimaryKeys": {
360
+ "message_routing_message_id_agent_id_status_pk": {
361
+ "name": "message_routing_message_id_agent_id_status_pk",
362
+ "columns": ["message_id", "agent_id", "status"]
363
+ }
364
+ },
365
+ "uniqueConstraints": {},
366
+ "policies": {},
367
+ "checkConstraints": {},
368
+ "isRLSEnabled": false
369
+ },
370
+ "public.messages": {
371
+ "name": "messages",
372
+ "schema": "",
373
+ "columns": {
374
+ "message_id": {
375
+ "name": "message_id",
376
+ "type": "text",
377
+ "primaryKey": true,
378
+ "notNull": true
379
+ },
380
+ "turn_id": {
381
+ "name": "turn_id",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": false
385
+ },
386
+ "session_id": {
387
+ "name": "session_id",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": true
391
+ },
392
+ "role": {
393
+ "name": "role",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": true
397
+ },
398
+ "content_text": {
399
+ "name": "content_text",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": true
403
+ },
404
+ "blocks": {
405
+ "name": "blocks",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "default": "'[]'"
410
+ },
411
+ "agent_id": {
412
+ "name": "agent_id",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": false
416
+ },
417
+ "adapter_session_id": {
418
+ "name": "adapter_session_id",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": false
422
+ },
423
+ "adapter_message_id": {
424
+ "name": "adapter_message_id",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": false
428
+ },
429
+ "timestamp": {
430
+ "name": "timestamp",
431
+ "type": "bigint",
432
+ "primaryKey": false,
433
+ "notNull": true
434
+ },
435
+ "edit_of": {
436
+ "name": "edit_of",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": false
440
+ },
441
+ "origin": {
442
+ "name": "origin",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": false
446
+ }
447
+ },
448
+ "indexes": {
449
+ "idx_messages_session": {
450
+ "name": "idx_messages_session",
451
+ "columns": [
452
+ {
453
+ "expression": "session_id",
454
+ "isExpression": false,
455
+ "asc": true,
456
+ "nulls": "last"
457
+ },
458
+ {
459
+ "expression": "timestamp",
460
+ "isExpression": false,
461
+ "asc": true,
462
+ "nulls": "last"
463
+ }
464
+ ],
465
+ "isUnique": false,
466
+ "concurrently": false,
467
+ "method": "btree",
468
+ "with": {}
469
+ },
470
+ "idx_messages_turn": {
471
+ "name": "idx_messages_turn",
472
+ "columns": [
473
+ {
474
+ "expression": "turn_id",
475
+ "isExpression": false,
476
+ "asc": true,
477
+ "nulls": "last"
478
+ },
479
+ {
480
+ "expression": "timestamp",
481
+ "isExpression": false,
482
+ "asc": true,
483
+ "nulls": "last"
484
+ }
485
+ ],
486
+ "isUnique": false,
487
+ "concurrently": false,
488
+ "method": "btree",
489
+ "with": {}
490
+ },
491
+ "idx_messages_agent": {
492
+ "name": "idx_messages_agent",
493
+ "columns": [
494
+ {
495
+ "expression": "agent_id",
496
+ "isExpression": false,
497
+ "asc": true,
498
+ "nulls": "last"
499
+ },
500
+ {
501
+ "expression": "timestamp",
502
+ "isExpression": false,
503
+ "asc": true,
504
+ "nulls": "last"
505
+ }
506
+ ],
507
+ "isUnique": false,
508
+ "concurrently": false,
509
+ "method": "btree",
510
+ "with": {}
511
+ },
512
+ "idx_messages_adapter_message_id": {
513
+ "name": "idx_messages_adapter_message_id",
514
+ "columns": [
515
+ {
516
+ "expression": "adapter_message_id",
517
+ "isExpression": false,
518
+ "asc": true,
519
+ "nulls": "last"
520
+ }
521
+ ],
522
+ "isUnique": false,
523
+ "concurrently": false,
524
+ "method": "btree",
525
+ "with": {}
526
+ }
527
+ },
528
+ "foreignKeys": {
529
+ "messages_turn_id_turns_turn_id_fk": {
530
+ "name": "messages_turn_id_turns_turn_id_fk",
531
+ "tableFrom": "messages",
532
+ "tableTo": "turns",
533
+ "columnsFrom": ["turn_id"],
534
+ "columnsTo": ["turn_id"],
535
+ "onDelete": "cascade",
536
+ "onUpdate": "no action"
537
+ },
538
+ "messages_session_id_sessions_session_id_fk": {
539
+ "name": "messages_session_id_sessions_session_id_fk",
540
+ "tableFrom": "messages",
541
+ "tableTo": "sessions",
542
+ "columnsFrom": ["session_id"],
543
+ "columnsTo": ["session_id"],
544
+ "onDelete": "cascade",
545
+ "onUpdate": "no action"
546
+ },
547
+ "messages_edit_of_messages_message_id_fk": {
548
+ "name": "messages_edit_of_messages_message_id_fk",
549
+ "tableFrom": "messages",
550
+ "tableTo": "messages",
551
+ "columnsFrom": ["edit_of"],
552
+ "columnsTo": ["message_id"],
553
+ "onDelete": "no action",
554
+ "onUpdate": "no action"
555
+ }
556
+ },
557
+ "compositePrimaryKeys": {},
558
+ "uniqueConstraints": {},
559
+ "policies": {},
560
+ "checkConstraints": {},
561
+ "isRLSEnabled": false
562
+ },
563
+ "public.session_events": {
564
+ "name": "session_events",
565
+ "schema": "",
566
+ "columns": {
567
+ "id": {
568
+ "name": "id",
569
+ "type": "bigint",
570
+ "primaryKey": true,
571
+ "notNull": true,
572
+ "identity": {
573
+ "type": "always",
574
+ "name": "session_events_id_seq",
575
+ "schema": "public",
576
+ "increment": "1",
577
+ "startWith": "1",
578
+ "minValue": "1",
579
+ "maxValue": "9223372036854775807",
580
+ "cache": "1",
581
+ "cycle": false
582
+ }
583
+ },
584
+ "session_id": {
585
+ "name": "session_id",
586
+ "type": "text",
587
+ "primaryKey": false,
588
+ "notNull": true
589
+ },
590
+ "event_id": {
591
+ "name": "event_id",
592
+ "type": "text",
593
+ "primaryKey": false,
594
+ "notNull": true
595
+ },
596
+ "timestamp": {
597
+ "name": "timestamp",
598
+ "type": "bigint",
599
+ "primaryKey": false,
600
+ "notNull": true
601
+ },
602
+ "type": {
603
+ "name": "type",
604
+ "type": "text",
605
+ "primaryKey": false,
606
+ "notNull": true
607
+ },
608
+ "agent_id": {
609
+ "name": "agent_id",
610
+ "type": "text",
611
+ "primaryKey": false,
612
+ "notNull": false
613
+ },
614
+ "adapter_id": {
615
+ "name": "adapter_id",
616
+ "type": "text",
617
+ "primaryKey": false,
618
+ "notNull": false
619
+ },
620
+ "originating_message_id": {
621
+ "name": "originating_message_id",
622
+ "type": "text",
623
+ "primaryKey": false,
624
+ "notNull": false
625
+ },
626
+ "message_id": {
627
+ "name": "message_id",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": false
631
+ },
632
+ "turn_id": {
633
+ "name": "turn_id",
634
+ "type": "text",
635
+ "primaryKey": false,
636
+ "notNull": false
637
+ },
638
+ "content_text": {
639
+ "name": "content_text",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": false
643
+ },
644
+ "payload": {
645
+ "name": "payload",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": true
649
+ }
650
+ },
651
+ "indexes": {
652
+ "idx_events_session_ts": {
653
+ "name": "idx_events_session_ts",
654
+ "columns": [
655
+ {
656
+ "expression": "session_id",
657
+ "isExpression": false,
658
+ "asc": true,
659
+ "nulls": "last"
660
+ },
661
+ {
662
+ "expression": "timestamp",
663
+ "isExpression": false,
664
+ "asc": true,
665
+ "nulls": "last"
666
+ }
667
+ ],
668
+ "isUnique": false,
669
+ "concurrently": false,
670
+ "method": "btree",
671
+ "with": {}
672
+ },
673
+ "idx_events_session_type": {
674
+ "name": "idx_events_session_type",
675
+ "columns": [
676
+ {
677
+ "expression": "session_id",
678
+ "isExpression": false,
679
+ "asc": true,
680
+ "nulls": "last"
681
+ },
682
+ {
683
+ "expression": "type",
684
+ "isExpression": false,
685
+ "asc": true,
686
+ "nulls": "last"
687
+ }
688
+ ],
689
+ "isUnique": false,
690
+ "concurrently": false,
691
+ "method": "btree",
692
+ "with": {}
693
+ },
694
+ "idx_events_turn": {
695
+ "name": "idx_events_turn",
696
+ "columns": [
697
+ {
698
+ "expression": "turn_id",
699
+ "isExpression": false,
700
+ "asc": true,
701
+ "nulls": "last"
702
+ }
703
+ ],
704
+ "isUnique": false,
705
+ "concurrently": false,
706
+ "method": "btree",
707
+ "with": {}
708
+ },
709
+ "idx_events_originating_message": {
710
+ "name": "idx_events_originating_message",
711
+ "columns": [
712
+ {
713
+ "expression": "originating_message_id",
714
+ "isExpression": false,
715
+ "asc": true,
716
+ "nulls": "last"
717
+ }
718
+ ],
719
+ "isUnique": false,
720
+ "concurrently": false,
721
+ "method": "btree",
722
+ "with": {}
723
+ }
724
+ },
725
+ "foreignKeys": {
726
+ "session_events_session_id_sessions_session_id_fk": {
727
+ "name": "session_events_session_id_sessions_session_id_fk",
728
+ "tableFrom": "session_events",
729
+ "tableTo": "sessions",
730
+ "columnsFrom": ["session_id"],
731
+ "columnsTo": ["session_id"],
732
+ "onDelete": "cascade",
733
+ "onUpdate": "no action"
734
+ },
735
+ "session_events_message_id_messages_message_id_fk": {
736
+ "name": "session_events_message_id_messages_message_id_fk",
737
+ "tableFrom": "session_events",
738
+ "tableTo": "messages",
739
+ "columnsFrom": ["message_id"],
740
+ "columnsTo": ["message_id"],
741
+ "onDelete": "cascade",
742
+ "onUpdate": "no action"
743
+ }
744
+ },
745
+ "compositePrimaryKeys": {},
746
+ "uniqueConstraints": {
747
+ "session_events_event_id_unique": {
748
+ "name": "session_events_event_id_unique",
749
+ "nullsNotDistinct": false,
750
+ "columns": ["event_id"]
751
+ }
752
+ },
753
+ "policies": {},
754
+ "checkConstraints": {},
755
+ "isRLSEnabled": false
756
+ },
757
+ "public.agents": {
758
+ "name": "agents",
759
+ "schema": "",
760
+ "columns": {
761
+ "agent_id": {
762
+ "name": "agent_id",
763
+ "type": "text",
764
+ "primaryKey": true,
765
+ "notNull": true
766
+ },
767
+ "adapter_id": {
768
+ "name": "adapter_id",
769
+ "type": "text",
770
+ "primaryKey": false,
771
+ "notNull": true
772
+ },
773
+ "adapter_name": {
774
+ "name": "adapter_name",
775
+ "type": "text",
776
+ "primaryKey": false,
777
+ "notNull": true
778
+ },
779
+ "session_id": {
780
+ "name": "session_id",
781
+ "type": "text",
782
+ "primaryKey": false,
783
+ "notNull": true
784
+ },
785
+ "adapter_session_id": {
786
+ "name": "adapter_session_id",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": false
790
+ },
791
+ "model": {
792
+ "name": "model",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": false
796
+ },
797
+ "cwd": {
798
+ "name": "cwd",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": false
802
+ },
803
+ "provider_config_id": {
804
+ "name": "provider_config_id",
805
+ "type": "text",
806
+ "primaryKey": false,
807
+ "notNull": false
808
+ },
809
+ "persona_id": {
810
+ "name": "persona_id",
811
+ "type": "text",
812
+ "primaryKey": false,
813
+ "notNull": false
814
+ },
815
+ "profile_id": {
816
+ "name": "profile_id",
817
+ "type": "text",
818
+ "primaryKey": false,
819
+ "notNull": false
820
+ },
821
+ "harness_id": {
822
+ "name": "harness_id",
823
+ "type": "text",
824
+ "primaryKey": false,
825
+ "notNull": false
826
+ },
827
+ "client_id": {
828
+ "name": "client_id",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false
832
+ },
833
+ "compression_mode": {
834
+ "name": "compression_mode",
835
+ "type": "text",
836
+ "primaryKey": false,
837
+ "notNull": false
838
+ },
839
+ "role": {
840
+ "name": "role",
841
+ "type": "text",
842
+ "primaryKey": false,
843
+ "notNull": true
844
+ },
845
+ "status": {
846
+ "name": "status",
847
+ "type": "text",
848
+ "primaryKey": false,
849
+ "notNull": true
850
+ },
851
+ "created_at": {
852
+ "name": "created_at",
853
+ "type": "bigint",
854
+ "primaryKey": false,
855
+ "notNull": true
856
+ },
857
+ "last_activity_at": {
858
+ "name": "last_activity_at",
859
+ "type": "bigint",
860
+ "primaryKey": false,
861
+ "notNull": true
862
+ }
863
+ },
864
+ "indexes": {
865
+ "agents_session_id_idx": {
866
+ "name": "agents_session_id_idx",
867
+ "columns": [
868
+ {
869
+ "expression": "session_id",
870
+ "isExpression": false,
871
+ "asc": true,
872
+ "nulls": "last"
873
+ }
874
+ ],
875
+ "isUnique": false,
876
+ "concurrently": false,
877
+ "method": "btree",
878
+ "with": {}
879
+ },
880
+ "agents_adapter_name_idx": {
881
+ "name": "agents_adapter_name_idx",
882
+ "columns": [
883
+ {
884
+ "expression": "adapter_name",
885
+ "isExpression": false,
886
+ "asc": true,
887
+ "nulls": "last"
888
+ }
889
+ ],
890
+ "isUnique": false,
891
+ "concurrently": false,
892
+ "method": "btree",
893
+ "with": {}
894
+ },
895
+ "agents_status_idx": {
896
+ "name": "agents_status_idx",
897
+ "columns": [
898
+ {
899
+ "expression": "status",
900
+ "isExpression": false,
901
+ "asc": true,
902
+ "nulls": "last"
903
+ }
904
+ ],
905
+ "isUnique": false,
906
+ "concurrently": false,
907
+ "method": "btree",
908
+ "with": {}
909
+ },
910
+ "agents_client_id_idx": {
911
+ "name": "agents_client_id_idx",
912
+ "columns": [
913
+ {
914
+ "expression": "client_id",
915
+ "isExpression": false,
916
+ "asc": true,
917
+ "nulls": "last"
918
+ }
919
+ ],
920
+ "isUnique": false,
921
+ "concurrently": false,
922
+ "method": "btree",
923
+ "with": {}
924
+ }
925
+ },
926
+ "foreignKeys": {
927
+ "agents_session_id_sessions_session_id_fk": {
928
+ "name": "agents_session_id_sessions_session_id_fk",
929
+ "tableFrom": "agents",
930
+ "tableTo": "sessions",
931
+ "columnsFrom": ["session_id"],
932
+ "columnsTo": ["session_id"],
933
+ "onDelete": "cascade",
934
+ "onUpdate": "no action"
935
+ }
936
+ },
937
+ "compositePrimaryKeys": {},
938
+ "uniqueConstraints": {},
939
+ "policies": {},
940
+ "checkConstraints": {},
941
+ "isRLSEnabled": false
942
+ },
943
+ "public.sessions": {
944
+ "name": "sessions",
945
+ "schema": "",
946
+ "columns": {
947
+ "session_id": {
948
+ "name": "session_id",
949
+ "type": "text",
950
+ "primaryKey": true,
951
+ "notNull": true
952
+ },
953
+ "created_at": {
954
+ "name": "created_at",
955
+ "type": "bigint",
956
+ "primaryKey": false,
957
+ "notNull": true
958
+ },
959
+ "last_activity_at": {
960
+ "name": "last_activity_at",
961
+ "type": "bigint",
962
+ "primaryKey": false,
963
+ "notNull": true
964
+ },
965
+ "status": {
966
+ "name": "status",
967
+ "type": "text",
968
+ "primaryKey": false,
969
+ "notNull": true
970
+ },
971
+ "lead_agent_id": {
972
+ "name": "lead_agent_id",
973
+ "type": "text",
974
+ "primaryKey": false,
975
+ "notNull": false
976
+ },
977
+ "parent_session_id": {
978
+ "name": "parent_session_id",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": false
982
+ },
983
+ "context_inheritance": {
984
+ "name": "context_inheritance",
985
+ "type": "text",
986
+ "primaryKey": false,
987
+ "notNull": false
988
+ },
989
+ "root_session_id": {
990
+ "name": "root_session_id",
991
+ "type": "text",
992
+ "primaryKey": false,
993
+ "notNull": false
994
+ },
995
+ "fork_point_message_id": {
996
+ "name": "fork_point_message_id",
997
+ "type": "text",
998
+ "primaryKey": false,
999
+ "notNull": false
1000
+ },
1001
+ "branch_kind": {
1002
+ "name": "branch_kind",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": false
1006
+ },
1007
+ "adapter_name": {
1008
+ "name": "adapter_name",
1009
+ "type": "text",
1010
+ "primaryKey": false,
1011
+ "notNull": false
1012
+ },
1013
+ "adapter_session_id": {
1014
+ "name": "adapter_session_id",
1015
+ "type": "text",
1016
+ "primaryKey": false,
1017
+ "notNull": false
1018
+ },
1019
+ "adapter_id": {
1020
+ "name": "adapter_id",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": false
1024
+ },
1025
+ "client_id": {
1026
+ "name": "client_id",
1027
+ "type": "text",
1028
+ "primaryKey": false,
1029
+ "notNull": false
1030
+ },
1031
+ "client_account_id": {
1032
+ "name": "client_account_id",
1033
+ "type": "text",
1034
+ "primaryKey": false,
1035
+ "notNull": false
1036
+ },
1037
+ "last_client_identity_observation": {
1038
+ "name": "last_client_identity_observation",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": false
1042
+ },
1043
+ "is_orchestrated": {
1044
+ "name": "is_orchestrated",
1045
+ "type": "boolean",
1046
+ "primaryKey": false,
1047
+ "notNull": false,
1048
+ "default": false
1049
+ },
1050
+ "title": {
1051
+ "name": "title",
1052
+ "type": "text",
1053
+ "primaryKey": false,
1054
+ "notNull": false
1055
+ },
1056
+ "summary": {
1057
+ "name": "summary",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": false
1061
+ },
1062
+ "summary_updated_at": {
1063
+ "name": "summary_updated_at",
1064
+ "type": "bigint",
1065
+ "primaryKey": false,
1066
+ "notNull": false
1067
+ },
1068
+ "is_imported": {
1069
+ "name": "is_imported",
1070
+ "type": "boolean",
1071
+ "primaryKey": false,
1072
+ "notNull": false,
1073
+ "default": false
1074
+ },
1075
+ "fork_transforms": {
1076
+ "name": "fork_transforms",
1077
+ "type": "text",
1078
+ "primaryKey": false,
1079
+ "notNull": false
1080
+ },
1081
+ "target_working_directory": {
1082
+ "name": "target_working_directory",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": false
1086
+ },
1087
+ "execution_target_id": {
1088
+ "name": "execution_target_id",
1089
+ "type": "text",
1090
+ "primaryKey": false,
1091
+ "notNull": false
1092
+ },
1093
+ "approval_policy_override": {
1094
+ "name": "approval_policy_override",
1095
+ "type": "text",
1096
+ "primaryKey": false,
1097
+ "notNull": false
1098
+ },
1099
+ "spawning_tool_call_id": {
1100
+ "name": "spawning_tool_call_id",
1101
+ "type": "text",
1102
+ "primaryKey": false,
1103
+ "notNull": false
1104
+ },
1105
+ "source": {
1106
+ "name": "source",
1107
+ "type": "text",
1108
+ "primaryKey": false,
1109
+ "notNull": false
1110
+ },
1111
+ "parent_external_session_id": {
1112
+ "name": "parent_external_session_id",
1113
+ "type": "text",
1114
+ "primaryKey": false,
1115
+ "notNull": false
1116
+ },
1117
+ "log_file_path": {
1118
+ "name": "log_file_path",
1119
+ "type": "text",
1120
+ "primaryKey": false,
1121
+ "notNull": false
1122
+ },
1123
+ "discovered_at": {
1124
+ "name": "discovered_at",
1125
+ "type": "bigint",
1126
+ "primaryKey": false,
1127
+ "notNull": false
1128
+ },
1129
+ "import_status": {
1130
+ "name": "import_status",
1131
+ "type": "text",
1132
+ "primaryKey": false,
1133
+ "notNull": false
1134
+ }
1135
+ },
1136
+ "indexes": {
1137
+ "uniq_sessions_source_adapter_session_id": {
1138
+ "name": "uniq_sessions_source_adapter_session_id",
1139
+ "columns": [
1140
+ {
1141
+ "expression": "source",
1142
+ "isExpression": false,
1143
+ "asc": true,
1144
+ "nulls": "last"
1145
+ },
1146
+ {
1147
+ "expression": "adapter_session_id",
1148
+ "isExpression": false,
1149
+ "asc": true,
1150
+ "nulls": "last"
1151
+ }
1152
+ ],
1153
+ "isUnique": true,
1154
+ "concurrently": false,
1155
+ "method": "btree",
1156
+ "with": {}
1157
+ },
1158
+ "uniq_sessions_log_file_path": {
1159
+ "name": "uniq_sessions_log_file_path",
1160
+ "columns": [
1161
+ {
1162
+ "expression": "log_file_path",
1163
+ "isExpression": false,
1164
+ "asc": true,
1165
+ "nulls": "last"
1166
+ }
1167
+ ],
1168
+ "isUnique": true,
1169
+ "concurrently": false,
1170
+ "method": "btree",
1171
+ "with": {}
1172
+ },
1173
+ "sessions_adapter_session_id_idx": {
1174
+ "name": "sessions_adapter_session_id_idx",
1175
+ "columns": [
1176
+ {
1177
+ "expression": "adapter_session_id",
1178
+ "isExpression": false,
1179
+ "asc": true,
1180
+ "nulls": "last"
1181
+ }
1182
+ ],
1183
+ "isUnique": false,
1184
+ "concurrently": false,
1185
+ "method": "btree",
1186
+ "with": {}
1187
+ },
1188
+ "idx_sessions_import_status": {
1189
+ "name": "idx_sessions_import_status",
1190
+ "columns": [
1191
+ {
1192
+ "expression": "import_status",
1193
+ "isExpression": false,
1194
+ "asc": true,
1195
+ "nulls": "last"
1196
+ }
1197
+ ],
1198
+ "isUnique": false,
1199
+ "concurrently": false,
1200
+ "method": "btree",
1201
+ "with": {}
1202
+ },
1203
+ "sessions_execution_target_id_idx": {
1204
+ "name": "sessions_execution_target_id_idx",
1205
+ "columns": [
1206
+ {
1207
+ "expression": "execution_target_id",
1208
+ "isExpression": false,
1209
+ "asc": true,
1210
+ "nulls": "last"
1211
+ }
1212
+ ],
1213
+ "isUnique": false,
1214
+ "concurrently": false,
1215
+ "method": "btree",
1216
+ "with": {}
1217
+ }
1218
+ },
1219
+ "foreignKeys": {},
1220
+ "compositePrimaryKeys": {},
1221
+ "uniqueConstraints": {},
1222
+ "policies": {},
1223
+ "checkConstraints": {
1224
+ "sessions_import_status_check": {
1225
+ "name": "sessions_import_status_check",
1226
+ "value": "\"sessions\".\"import_status\" IS NULL OR \"sessions\".\"import_status\" IN ('discovered', 'imported', 'tracking')"
1227
+ },
1228
+ "sessions_context_inheritance_check": {
1229
+ "name": "sessions_context_inheritance_check",
1230
+ "value": "\"sessions\".\"context_inheritance\" IS NULL OR \"sessions\".\"context_inheritance\" IN ('parent-history', 'none')"
1231
+ }
1232
+ },
1233
+ "isRLSEnabled": false
1234
+ },
1235
+ "public.turns": {
1236
+ "name": "turns",
1237
+ "schema": "",
1238
+ "columns": {
1239
+ "turn_id": {
1240
+ "name": "turn_id",
1241
+ "type": "text",
1242
+ "primaryKey": true,
1243
+ "notNull": true
1244
+ },
1245
+ "session_id": {
1246
+ "name": "session_id",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true
1250
+ },
1251
+ "turn_number": {
1252
+ "name": "turn_number",
1253
+ "type": "integer",
1254
+ "primaryKey": false,
1255
+ "notNull": true
1256
+ },
1257
+ "started_at": {
1258
+ "name": "started_at",
1259
+ "type": "bigint",
1260
+ "primaryKey": false,
1261
+ "notNull": true
1262
+ },
1263
+ "completed_at": {
1264
+ "name": "completed_at",
1265
+ "type": "bigint",
1266
+ "primaryKey": false,
1267
+ "notNull": false
1268
+ },
1269
+ "status": {
1270
+ "name": "status",
1271
+ "type": "text",
1272
+ "primaryKey": false,
1273
+ "notNull": true
1274
+ },
1275
+ "error": {
1276
+ "name": "error",
1277
+ "type": "text",
1278
+ "primaryKey": false,
1279
+ "notNull": false
1280
+ },
1281
+ "usage": {
1282
+ "name": "usage",
1283
+ "type": "text",
1284
+ "primaryKey": false,
1285
+ "notNull": false
1286
+ }
1287
+ },
1288
+ "indexes": {
1289
+ "idx_turns_session": {
1290
+ "name": "idx_turns_session",
1291
+ "columns": [
1292
+ {
1293
+ "expression": "session_id",
1294
+ "isExpression": false,
1295
+ "asc": true,
1296
+ "nulls": "last"
1297
+ },
1298
+ {
1299
+ "expression": "started_at",
1300
+ "isExpression": false,
1301
+ "asc": true,
1302
+ "nulls": "last"
1303
+ }
1304
+ ],
1305
+ "isUnique": false,
1306
+ "concurrently": false,
1307
+ "method": "btree",
1308
+ "with": {}
1309
+ },
1310
+ "uniq_turns_session_number": {
1311
+ "name": "uniq_turns_session_number",
1312
+ "columns": [
1313
+ {
1314
+ "expression": "session_id",
1315
+ "isExpression": false,
1316
+ "asc": true,
1317
+ "nulls": "last"
1318
+ },
1319
+ {
1320
+ "expression": "turn_number",
1321
+ "isExpression": false,
1322
+ "asc": true,
1323
+ "nulls": "last"
1324
+ }
1325
+ ],
1326
+ "isUnique": true,
1327
+ "concurrently": false,
1328
+ "method": "btree",
1329
+ "with": {}
1330
+ }
1331
+ },
1332
+ "foreignKeys": {
1333
+ "turns_session_id_sessions_session_id_fk": {
1334
+ "name": "turns_session_id_sessions_session_id_fk",
1335
+ "tableFrom": "turns",
1336
+ "tableTo": "sessions",
1337
+ "columnsFrom": ["session_id"],
1338
+ "columnsTo": ["session_id"],
1339
+ "onDelete": "cascade",
1340
+ "onUpdate": "no action"
1341
+ }
1342
+ },
1343
+ "compositePrimaryKeys": {},
1344
+ "uniqueConstraints": {},
1345
+ "policies": {},
1346
+ "checkConstraints": {},
1347
+ "isRLSEnabled": false
1348
+ },
1349
+ "public.log_import_settings": {
1350
+ "name": "log_import_settings",
1351
+ "schema": "",
1352
+ "columns": {
1353
+ "adapter_name": {
1354
+ "name": "adapter_name",
1355
+ "type": "text",
1356
+ "primaryKey": true,
1357
+ "notNull": true
1358
+ },
1359
+ "mode": {
1360
+ "name": "mode",
1361
+ "type": "text",
1362
+ "primaryKey": false,
1363
+ "notNull": true,
1364
+ "default": "'disabled'"
1365
+ },
1366
+ "created_at": {
1367
+ "name": "created_at",
1368
+ "type": "bigint",
1369
+ "primaryKey": false,
1370
+ "notNull": true
1371
+ },
1372
+ "updated_at": {
1373
+ "name": "updated_at",
1374
+ "type": "bigint",
1375
+ "primaryKey": false,
1376
+ "notNull": true
1377
+ }
1378
+ },
1379
+ "indexes": {},
1380
+ "foreignKeys": {},
1381
+ "compositePrimaryKeys": {},
1382
+ "uniqueConstraints": {},
1383
+ "policies": {},
1384
+ "checkConstraints": {},
1385
+ "isRLSEnabled": false
1386
+ },
1387
+ "public.client_binary_state": {
1388
+ "name": "client_binary_state",
1389
+ "schema": "",
1390
+ "columns": {
1391
+ "client_id": {
1392
+ "name": "client_id",
1393
+ "type": "text",
1394
+ "primaryKey": true,
1395
+ "notNull": true
1396
+ },
1397
+ "active_version": {
1398
+ "name": "active_version",
1399
+ "type": "text",
1400
+ "primaryKey": false,
1401
+ "notNull": false
1402
+ },
1403
+ "updated_at": {
1404
+ "name": "updated_at",
1405
+ "type": "bigint",
1406
+ "primaryKey": false,
1407
+ "notNull": true
1408
+ }
1409
+ },
1410
+ "indexes": {},
1411
+ "foreignKeys": {},
1412
+ "compositePrimaryKeys": {},
1413
+ "uniqueConstraints": {},
1414
+ "policies": {},
1415
+ "checkConstraints": {},
1416
+ "isRLSEnabled": false
1417
+ },
1418
+ "public.client_binary_versions": {
1419
+ "name": "client_binary_versions",
1420
+ "schema": "",
1421
+ "columns": {
1422
+ "id": {
1423
+ "name": "id",
1424
+ "type": "text",
1425
+ "primaryKey": true,
1426
+ "notNull": true
1427
+ },
1428
+ "client_id": {
1429
+ "name": "client_id",
1430
+ "type": "text",
1431
+ "primaryKey": false,
1432
+ "notNull": true
1433
+ },
1434
+ "version": {
1435
+ "name": "version",
1436
+ "type": "text",
1437
+ "primaryKey": false,
1438
+ "notNull": true
1439
+ },
1440
+ "install_path": {
1441
+ "name": "install_path",
1442
+ "type": "text",
1443
+ "primaryKey": false,
1444
+ "notNull": true
1445
+ },
1446
+ "installed_at": {
1447
+ "name": "installed_at",
1448
+ "type": "bigint",
1449
+ "primaryKey": false,
1450
+ "notNull": true
1451
+ },
1452
+ "created_at": {
1453
+ "name": "created_at",
1454
+ "type": "bigint",
1455
+ "primaryKey": false,
1456
+ "notNull": true
1457
+ }
1458
+ },
1459
+ "indexes": {},
1460
+ "foreignKeys": {},
1461
+ "compositePrimaryKeys": {},
1462
+ "uniqueConstraints": {
1463
+ "uq_client_binary_versions_client_version": {
1464
+ "name": "uq_client_binary_versions_client_version",
1465
+ "nullsNotDistinct": false,
1466
+ "columns": ["client_id", "version"]
1467
+ }
1468
+ },
1469
+ "policies": {},
1470
+ "checkConstraints": {},
1471
+ "isRLSEnabled": false
1472
+ },
1473
+ "public.client_profiles": {
1474
+ "name": "client_profiles",
1475
+ "schema": "",
1476
+ "columns": {
1477
+ "id": {
1478
+ "name": "id",
1479
+ "type": "text",
1480
+ "primaryKey": true,
1481
+ "notNull": true
1482
+ },
1483
+ "client_id": {
1484
+ "name": "client_id",
1485
+ "type": "text",
1486
+ "primaryKey": false,
1487
+ "notNull": true
1488
+ },
1489
+ "name": {
1490
+ "name": "name",
1491
+ "type": "text",
1492
+ "primaryKey": false,
1493
+ "notNull": true
1494
+ },
1495
+ "description": {
1496
+ "name": "description",
1497
+ "type": "text",
1498
+ "primaryKey": false,
1499
+ "notNull": false
1500
+ },
1501
+ "config_dir": {
1502
+ "name": "config_dir",
1503
+ "type": "text",
1504
+ "primaryKey": false,
1505
+ "notNull": true
1506
+ },
1507
+ "is_default": {
1508
+ "name": "is_default",
1509
+ "type": "boolean",
1510
+ "primaryKey": false,
1511
+ "notNull": true,
1512
+ "default": false
1513
+ },
1514
+ "created_at": {
1515
+ "name": "created_at",
1516
+ "type": "bigint",
1517
+ "primaryKey": false,
1518
+ "notNull": true
1519
+ },
1520
+ "updated_at": {
1521
+ "name": "updated_at",
1522
+ "type": "bigint",
1523
+ "primaryKey": false,
1524
+ "notNull": true
1525
+ }
1526
+ },
1527
+ "indexes": {
1528
+ "uq_client_profiles_client_name": {
1529
+ "name": "uq_client_profiles_client_name",
1530
+ "columns": [
1531
+ {
1532
+ "expression": "client_id",
1533
+ "isExpression": false,
1534
+ "asc": true,
1535
+ "nulls": "last"
1536
+ },
1537
+ {
1538
+ "expression": "name",
1539
+ "isExpression": false,
1540
+ "asc": true,
1541
+ "nulls": "last"
1542
+ }
1543
+ ],
1544
+ "isUnique": true,
1545
+ "concurrently": false,
1546
+ "method": "btree",
1547
+ "with": {}
1548
+ },
1549
+ "uq_client_profiles_default": {
1550
+ "name": "uq_client_profiles_default",
1551
+ "columns": [
1552
+ {
1553
+ "expression": "client_id",
1554
+ "isExpression": false,
1555
+ "asc": true,
1556
+ "nulls": "last"
1557
+ }
1558
+ ],
1559
+ "isUnique": true,
1560
+ "where": "\"client_profiles\".\"is_default\" = true",
1561
+ "concurrently": false,
1562
+ "method": "btree",
1563
+ "with": {}
1564
+ }
1565
+ },
1566
+ "foreignKeys": {},
1567
+ "compositePrimaryKeys": {},
1568
+ "uniqueConstraints": {},
1569
+ "policies": {},
1570
+ "checkConstraints": {},
1571
+ "isRLSEnabled": false
1572
+ },
1573
+ "public.client_runtimes": {
1574
+ "name": "client_runtimes",
1575
+ "schema": "",
1576
+ "columns": {
1577
+ "id": {
1578
+ "name": "id",
1579
+ "type": "text",
1580
+ "primaryKey": true,
1581
+ "notNull": true
1582
+ },
1583
+ "client_id": {
1584
+ "name": "client_id",
1585
+ "type": "text",
1586
+ "primaryKey": false,
1587
+ "notNull": true
1588
+ },
1589
+ "status": {
1590
+ "name": "status",
1591
+ "type": "text",
1592
+ "primaryKey": false,
1593
+ "notNull": true
1594
+ },
1595
+ "supervisor_session_id": {
1596
+ "name": "supervisor_session_id",
1597
+ "type": "text",
1598
+ "primaryKey": false,
1599
+ "notNull": false
1600
+ },
1601
+ "pid": {
1602
+ "name": "pid",
1603
+ "type": "integer",
1604
+ "primaryKey": false,
1605
+ "notNull": false
1606
+ },
1607
+ "parent_pid": {
1608
+ "name": "parent_pid",
1609
+ "type": "integer",
1610
+ "primaryKey": false,
1611
+ "notNull": false
1612
+ },
1613
+ "adapter_session_id": {
1614
+ "name": "adapter_session_id",
1615
+ "type": "text",
1616
+ "primaryKey": false,
1617
+ "notNull": false
1618
+ },
1619
+ "session_id": {
1620
+ "name": "session_id",
1621
+ "type": "text",
1622
+ "primaryKey": false,
1623
+ "notNull": false
1624
+ },
1625
+ "cwd": {
1626
+ "name": "cwd",
1627
+ "type": "text",
1628
+ "primaryKey": false,
1629
+ "notNull": false
1630
+ },
1631
+ "argv": {
1632
+ "name": "argv",
1633
+ "type": "jsonb",
1634
+ "primaryKey": false,
1635
+ "notNull": false
1636
+ },
1637
+ "metadata": {
1638
+ "name": "metadata",
1639
+ "type": "jsonb",
1640
+ "primaryKey": false,
1641
+ "notNull": false
1642
+ },
1643
+ "observed_at": {
1644
+ "name": "observed_at",
1645
+ "type": "bigint",
1646
+ "primaryKey": false,
1647
+ "notNull": true
1648
+ },
1649
+ "created_at": {
1650
+ "name": "created_at",
1651
+ "type": "bigint",
1652
+ "primaryKey": false,
1653
+ "notNull": true
1654
+ },
1655
+ "updated_at": {
1656
+ "name": "updated_at",
1657
+ "type": "bigint",
1658
+ "primaryKey": false,
1659
+ "notNull": true
1660
+ }
1661
+ },
1662
+ "indexes": {
1663
+ "idx_client_runtimes_supervisor_session_id": {
1664
+ "name": "idx_client_runtimes_supervisor_session_id",
1665
+ "columns": [
1666
+ {
1667
+ "expression": "supervisor_session_id",
1668
+ "isExpression": false,
1669
+ "asc": true,
1670
+ "nulls": "last"
1671
+ }
1672
+ ],
1673
+ "isUnique": false,
1674
+ "concurrently": false,
1675
+ "method": "btree",
1676
+ "with": {}
1677
+ },
1678
+ "idx_client_runtimes_pid_client_id": {
1679
+ "name": "idx_client_runtimes_pid_client_id",
1680
+ "columns": [
1681
+ {
1682
+ "expression": "pid",
1683
+ "isExpression": false,
1684
+ "asc": true,
1685
+ "nulls": "last"
1686
+ },
1687
+ {
1688
+ "expression": "client_id",
1689
+ "isExpression": false,
1690
+ "asc": true,
1691
+ "nulls": "last"
1692
+ }
1693
+ ],
1694
+ "isUnique": false,
1695
+ "concurrently": false,
1696
+ "method": "btree",
1697
+ "with": {}
1698
+ },
1699
+ "idx_client_runtimes_adapter_session_id_client_id": {
1700
+ "name": "idx_client_runtimes_adapter_session_id_client_id",
1701
+ "columns": [
1702
+ {
1703
+ "expression": "adapter_session_id",
1704
+ "isExpression": false,
1705
+ "asc": true,
1706
+ "nulls": "last"
1707
+ },
1708
+ {
1709
+ "expression": "client_id",
1710
+ "isExpression": false,
1711
+ "asc": true,
1712
+ "nulls": "last"
1713
+ }
1714
+ ],
1715
+ "isUnique": false,
1716
+ "concurrently": false,
1717
+ "method": "btree",
1718
+ "with": {}
1719
+ }
1720
+ },
1721
+ "foreignKeys": {},
1722
+ "compositePrimaryKeys": {},
1723
+ "uniqueConstraints": {},
1724
+ "policies": {},
1725
+ "checkConstraints": {},
1726
+ "isRLSEnabled": false
1727
+ },
1728
+ "public.supervisor_runtimes": {
1729
+ "name": "supervisor_runtimes",
1730
+ "schema": "",
1731
+ "columns": {
1732
+ "supervisor_session_id": {
1733
+ "name": "supervisor_session_id",
1734
+ "type": "text",
1735
+ "primaryKey": true,
1736
+ "notNull": true
1737
+ },
1738
+ "client_id": {
1739
+ "name": "client_id",
1740
+ "type": "text",
1741
+ "primaryKey": false,
1742
+ "notNull": true
1743
+ },
1744
+ "pid": {
1745
+ "name": "pid",
1746
+ "type": "integer",
1747
+ "primaryKey": false,
1748
+ "notNull": false
1749
+ },
1750
+ "status": {
1751
+ "name": "status",
1752
+ "type": "text",
1753
+ "primaryKey": false,
1754
+ "notNull": true
1755
+ },
1756
+ "cwd": {
1757
+ "name": "cwd",
1758
+ "type": "text",
1759
+ "primaryKey": false,
1760
+ "notNull": true
1761
+ },
1762
+ "command": {
1763
+ "name": "command",
1764
+ "type": "text",
1765
+ "primaryKey": false,
1766
+ "notNull": true
1767
+ },
1768
+ "args_json": {
1769
+ "name": "args_json",
1770
+ "type": "text",
1771
+ "primaryKey": false,
1772
+ "notNull": true
1773
+ },
1774
+ "env_json": {
1775
+ "name": "env_json",
1776
+ "type": "text",
1777
+ "primaryKey": false,
1778
+ "notNull": false
1779
+ },
1780
+ "session_id": {
1781
+ "name": "session_id",
1782
+ "type": "text",
1783
+ "primaryKey": false,
1784
+ "notNull": false
1785
+ },
1786
+ "adapter_session_id": {
1787
+ "name": "adapter_session_id",
1788
+ "type": "text",
1789
+ "primaryKey": false,
1790
+ "notNull": false
1791
+ },
1792
+ "started_at": {
1793
+ "name": "started_at",
1794
+ "type": "bigint",
1795
+ "primaryKey": false,
1796
+ "notNull": true
1797
+ },
1798
+ "stopped_at": {
1799
+ "name": "stopped_at",
1800
+ "type": "bigint",
1801
+ "primaryKey": false,
1802
+ "notNull": false
1803
+ },
1804
+ "metadata_json": {
1805
+ "name": "metadata_json",
1806
+ "type": "text",
1807
+ "primaryKey": false,
1808
+ "notNull": false
1809
+ }
1810
+ },
1811
+ "indexes": {
1812
+ "supervisor_runtimes_session_id_idx": {
1813
+ "name": "supervisor_runtimes_session_id_idx",
1814
+ "columns": [
1815
+ {
1816
+ "expression": "session_id",
1817
+ "isExpression": false,
1818
+ "asc": true,
1819
+ "nulls": "last"
1820
+ }
1821
+ ],
1822
+ "isUnique": false,
1823
+ "concurrently": false,
1824
+ "method": "btree",
1825
+ "with": {}
1826
+ },
1827
+ "supervisor_runtimes_adapter_session_id_idx": {
1828
+ "name": "supervisor_runtimes_adapter_session_id_idx",
1829
+ "columns": [
1830
+ {
1831
+ "expression": "adapter_session_id",
1832
+ "isExpression": false,
1833
+ "asc": true,
1834
+ "nulls": "last"
1835
+ }
1836
+ ],
1837
+ "isUnique": false,
1838
+ "concurrently": false,
1839
+ "method": "btree",
1840
+ "with": {}
1841
+ },
1842
+ "supervisor_runtimes_status_idx": {
1843
+ "name": "supervisor_runtimes_status_idx",
1844
+ "columns": [
1845
+ {
1846
+ "expression": "status",
1847
+ "isExpression": false,
1848
+ "asc": true,
1849
+ "nulls": "last"
1850
+ }
1851
+ ],
1852
+ "isUnique": false,
1853
+ "concurrently": false,
1854
+ "method": "btree",
1855
+ "with": {}
1856
+ }
1857
+ },
1858
+ "foreignKeys": {},
1859
+ "compositePrimaryKeys": {},
1860
+ "uniqueConstraints": {},
1861
+ "policies": {},
1862
+ "checkConstraints": {},
1863
+ "isRLSEnabled": false
1864
+ },
1865
+ "public.workflow_definitions": {
1866
+ "name": "workflow_definitions",
1867
+ "schema": "",
1868
+ "columns": {
1869
+ "id": {
1870
+ "name": "id",
1871
+ "type": "text",
1872
+ "primaryKey": true,
1873
+ "notNull": true
1874
+ },
1875
+ "name": {
1876
+ "name": "name",
1877
+ "type": "text",
1878
+ "primaryKey": false,
1879
+ "notNull": true
1880
+ },
1881
+ "description": {
1882
+ "name": "description",
1883
+ "type": "text",
1884
+ "primaryKey": false,
1885
+ "notNull": false
1886
+ },
1887
+ "root": {
1888
+ "name": "root",
1889
+ "type": "jsonb",
1890
+ "primaryKey": false,
1891
+ "notNull": true
1892
+ },
1893
+ "input_schema": {
1894
+ "name": "input_schema",
1895
+ "type": "jsonb",
1896
+ "primaryKey": false,
1897
+ "notNull": false
1898
+ },
1899
+ "config_schema": {
1900
+ "name": "config_schema",
1901
+ "type": "jsonb",
1902
+ "primaryKey": false,
1903
+ "notNull": false
1904
+ },
1905
+ "output_schema": {
1906
+ "name": "output_schema",
1907
+ "type": "jsonb",
1908
+ "primaryKey": false,
1909
+ "notNull": false
1910
+ },
1911
+ "artifact": {
1912
+ "name": "artifact",
1913
+ "type": "jsonb",
1914
+ "primaryKey": false,
1915
+ "notNull": false
1916
+ },
1917
+ "triggers": {
1918
+ "name": "triggers",
1919
+ "type": "jsonb",
1920
+ "primaryKey": false,
1921
+ "notNull": false
1922
+ },
1923
+ "scope_type": {
1924
+ "name": "scope_type",
1925
+ "type": "text",
1926
+ "primaryKey": false,
1927
+ "notNull": true
1928
+ },
1929
+ "scope_kind": {
1930
+ "name": "scope_kind",
1931
+ "type": "text",
1932
+ "primaryKey": false,
1933
+ "notNull": true,
1934
+ "default": "''"
1935
+ },
1936
+ "scope_id": {
1937
+ "name": "scope_id",
1938
+ "type": "text",
1939
+ "primaryKey": false,
1940
+ "notNull": true,
1941
+ "default": "''"
1942
+ },
1943
+ "created_at": {
1944
+ "name": "created_at",
1945
+ "type": "bigint",
1946
+ "primaryKey": false,
1947
+ "notNull": true
1948
+ },
1949
+ "updated_at": {
1950
+ "name": "updated_at",
1951
+ "type": "bigint",
1952
+ "primaryKey": false,
1953
+ "notNull": true
1954
+ },
1955
+ "canvas_layout": {
1956
+ "name": "canvas_layout",
1957
+ "type": "jsonb",
1958
+ "primaryKey": false,
1959
+ "notNull": false
1960
+ },
1961
+ "source": {
1962
+ "name": "source",
1963
+ "type": "jsonb",
1964
+ "primaryKey": false,
1965
+ "notNull": false
1966
+ },
1967
+ "execution_hints": {
1968
+ "name": "execution_hints",
1969
+ "type": "jsonb",
1970
+ "primaryKey": false,
1971
+ "notNull": false
1972
+ }
1973
+ },
1974
+ "indexes": {
1975
+ "uniq_workflow_definitions_name_scope": {
1976
+ "name": "uniq_workflow_definitions_name_scope",
1977
+ "columns": [
1978
+ {
1979
+ "expression": "name",
1980
+ "isExpression": false,
1981
+ "asc": true,
1982
+ "nulls": "last"
1983
+ },
1984
+ {
1985
+ "expression": "scope_type",
1986
+ "isExpression": false,
1987
+ "asc": true,
1988
+ "nulls": "last"
1989
+ },
1990
+ {
1991
+ "expression": "scope_kind",
1992
+ "isExpression": false,
1993
+ "asc": true,
1994
+ "nulls": "last"
1995
+ },
1996
+ {
1997
+ "expression": "scope_id",
1998
+ "isExpression": false,
1999
+ "asc": true,
2000
+ "nulls": "last"
2001
+ }
2002
+ ],
2003
+ "isUnique": true,
2004
+ "concurrently": false,
2005
+ "method": "btree",
2006
+ "with": {}
2007
+ },
2008
+ "idx_workflow_definitions_scope": {
2009
+ "name": "idx_workflow_definitions_scope",
2010
+ "columns": [
2011
+ {
2012
+ "expression": "scope_type",
2013
+ "isExpression": false,
2014
+ "asc": true,
2015
+ "nulls": "last"
2016
+ },
2017
+ {
2018
+ "expression": "scope_kind",
2019
+ "isExpression": false,
2020
+ "asc": true,
2021
+ "nulls": "last"
2022
+ },
2023
+ {
2024
+ "expression": "scope_id",
2025
+ "isExpression": false,
2026
+ "asc": true,
2027
+ "nulls": "last"
2028
+ }
2029
+ ],
2030
+ "isUnique": false,
2031
+ "concurrently": false,
2032
+ "method": "btree",
2033
+ "with": {}
2034
+ }
2035
+ },
2036
+ "foreignKeys": {},
2037
+ "compositePrimaryKeys": {},
2038
+ "uniqueConstraints": {},
2039
+ "policies": {},
2040
+ "checkConstraints": {},
2041
+ "isRLSEnabled": false
2042
+ },
2043
+ "public.workflow_execution_frames": {
2044
+ "name": "workflow_execution_frames",
2045
+ "schema": "",
2046
+ "columns": {
2047
+ "frame_id": {
2048
+ "name": "frame_id",
2049
+ "type": "text",
2050
+ "primaryKey": true,
2051
+ "notNull": true
2052
+ },
2053
+ "execution_id": {
2054
+ "name": "execution_id",
2055
+ "type": "text",
2056
+ "primaryKey": false,
2057
+ "notNull": true
2058
+ },
2059
+ "node_id": {
2060
+ "name": "node_id",
2061
+ "type": "text",
2062
+ "primaryKey": false,
2063
+ "notNull": true
2064
+ },
2065
+ "node_type": {
2066
+ "name": "node_type",
2067
+ "type": "text",
2068
+ "primaryKey": false,
2069
+ "notNull": true
2070
+ },
2071
+ "path": {
2072
+ "name": "path",
2073
+ "type": "jsonb",
2074
+ "primaryKey": false,
2075
+ "notNull": true
2076
+ },
2077
+ "parent_frame_id": {
2078
+ "name": "parent_frame_id",
2079
+ "type": "text",
2080
+ "primaryKey": false,
2081
+ "notNull": false
2082
+ },
2083
+ "status": {
2084
+ "name": "status",
2085
+ "type": "text",
2086
+ "primaryKey": false,
2087
+ "notNull": true,
2088
+ "default": "'pending'"
2089
+ },
2090
+ "attempt": {
2091
+ "name": "attempt",
2092
+ "type": "integer",
2093
+ "primaryKey": false,
2094
+ "notNull": true,
2095
+ "default": 0
2096
+ },
2097
+ "iteration": {
2098
+ "name": "iteration",
2099
+ "type": "integer",
2100
+ "primaryKey": false,
2101
+ "notNull": false
2102
+ },
2103
+ "branch_key": {
2104
+ "name": "branch_key",
2105
+ "type": "text",
2106
+ "primaryKey": false,
2107
+ "notNull": false
2108
+ },
2109
+ "output": {
2110
+ "name": "output",
2111
+ "type": "jsonb",
2112
+ "primaryKey": false,
2113
+ "notNull": false
2114
+ },
2115
+ "output_present": {
2116
+ "name": "output_present",
2117
+ "type": "boolean",
2118
+ "primaryKey": false,
2119
+ "notNull": true,
2120
+ "default": false
2121
+ },
2122
+ "error": {
2123
+ "name": "error",
2124
+ "type": "text",
2125
+ "primaryKey": false,
2126
+ "notNull": false
2127
+ },
2128
+ "started_at": {
2129
+ "name": "started_at",
2130
+ "type": "bigint",
2131
+ "primaryKey": false,
2132
+ "notNull": false
2133
+ },
2134
+ "completed_at": {
2135
+ "name": "completed_at",
2136
+ "type": "bigint",
2137
+ "primaryKey": false,
2138
+ "notNull": false
2139
+ }
2140
+ },
2141
+ "indexes": {
2142
+ "idx_workflow_execution_frames_execution": {
2143
+ "name": "idx_workflow_execution_frames_execution",
2144
+ "columns": [
2145
+ {
2146
+ "expression": "execution_id",
2147
+ "isExpression": false,
2148
+ "asc": true,
2149
+ "nulls": "last"
2150
+ }
2151
+ ],
2152
+ "isUnique": false,
2153
+ "concurrently": false,
2154
+ "method": "btree",
2155
+ "with": {}
2156
+ },
2157
+ "idx_workflow_execution_frames_parent": {
2158
+ "name": "idx_workflow_execution_frames_parent",
2159
+ "columns": [
2160
+ {
2161
+ "expression": "parent_frame_id",
2162
+ "isExpression": false,
2163
+ "asc": true,
2164
+ "nulls": "last"
2165
+ }
2166
+ ],
2167
+ "isUnique": false,
2168
+ "concurrently": false,
2169
+ "method": "btree",
2170
+ "with": {}
2171
+ }
2172
+ },
2173
+ "foreignKeys": {
2174
+ "workflow_execution_frames_execution_id_workflow_executions_id_fk": {
2175
+ "name": "workflow_execution_frames_execution_id_workflow_executions_id_fk",
2176
+ "tableFrom": "workflow_execution_frames",
2177
+ "tableTo": "workflow_executions",
2178
+ "columnsFrom": ["execution_id"],
2179
+ "columnsTo": ["id"],
2180
+ "onDelete": "cascade",
2181
+ "onUpdate": "no action"
2182
+ }
2183
+ },
2184
+ "compositePrimaryKeys": {},
2185
+ "uniqueConstraints": {},
2186
+ "policies": {},
2187
+ "checkConstraints": {},
2188
+ "isRLSEnabled": false
2189
+ },
2190
+ "public.workflow_execution_links": {
2191
+ "name": "workflow_execution_links",
2192
+ "schema": "",
2193
+ "columns": {
2194
+ "source_execution_id": {
2195
+ "name": "source_execution_id",
2196
+ "type": "text",
2197
+ "primaryKey": false,
2198
+ "notNull": true
2199
+ },
2200
+ "target_execution_id": {
2201
+ "name": "target_execution_id",
2202
+ "type": "text",
2203
+ "primaryKey": false,
2204
+ "notNull": true
2205
+ },
2206
+ "link_type": {
2207
+ "name": "link_type",
2208
+ "type": "text",
2209
+ "primaryKey": false,
2210
+ "notNull": true
2211
+ },
2212
+ "metadata": {
2213
+ "name": "metadata",
2214
+ "type": "jsonb",
2215
+ "primaryKey": false,
2216
+ "notNull": false
2217
+ }
2218
+ },
2219
+ "indexes": {
2220
+ "idx_workflow_execution_links_target": {
2221
+ "name": "idx_workflow_execution_links_target",
2222
+ "columns": [
2223
+ {
2224
+ "expression": "target_execution_id",
2225
+ "isExpression": false,
2226
+ "asc": true,
2227
+ "nulls": "last"
2228
+ }
2229
+ ],
2230
+ "isUnique": false,
2231
+ "concurrently": false,
2232
+ "method": "btree",
2233
+ "with": {}
2234
+ }
2235
+ },
2236
+ "foreignKeys": {
2237
+ "workflow_execution_links_source_execution_id_workflow_executions_id_fk": {
2238
+ "name": "workflow_execution_links_source_execution_id_workflow_executions_id_fk",
2239
+ "tableFrom": "workflow_execution_links",
2240
+ "tableTo": "workflow_executions",
2241
+ "columnsFrom": ["source_execution_id"],
2242
+ "columnsTo": ["id"],
2243
+ "onDelete": "cascade",
2244
+ "onUpdate": "no action"
2245
+ },
2246
+ "workflow_execution_links_target_execution_id_workflow_executions_id_fk": {
2247
+ "name": "workflow_execution_links_target_execution_id_workflow_executions_id_fk",
2248
+ "tableFrom": "workflow_execution_links",
2249
+ "tableTo": "workflow_executions",
2250
+ "columnsFrom": ["target_execution_id"],
2251
+ "columnsTo": ["id"],
2252
+ "onDelete": "cascade",
2253
+ "onUpdate": "no action"
2254
+ }
2255
+ },
2256
+ "compositePrimaryKeys": {
2257
+ "workflow_execution_links_source_execution_id_target_execution_id_pk": {
2258
+ "name": "workflow_execution_links_source_execution_id_target_execution_id_pk",
2259
+ "columns": ["source_execution_id", "target_execution_id"]
2260
+ }
2261
+ },
2262
+ "uniqueConstraints": {},
2263
+ "policies": {},
2264
+ "checkConstraints": {},
2265
+ "isRLSEnabled": false
2266
+ },
2267
+ "public.workflow_executions": {
2268
+ "name": "workflow_executions",
2269
+ "schema": "",
2270
+ "columns": {
2271
+ "id": {
2272
+ "name": "id",
2273
+ "type": "text",
2274
+ "primaryKey": true,
2275
+ "notNull": true
2276
+ },
2277
+ "workflow_id": {
2278
+ "name": "workflow_id",
2279
+ "type": "text",
2280
+ "primaryKey": false,
2281
+ "notNull": true
2282
+ },
2283
+ "coordinator_session_id": {
2284
+ "name": "coordinator_session_id",
2285
+ "type": "text",
2286
+ "primaryKey": false,
2287
+ "notNull": false
2288
+ },
2289
+ "status": {
2290
+ "name": "status",
2291
+ "type": "text",
2292
+ "primaryKey": false,
2293
+ "notNull": true
2294
+ },
2295
+ "inputs": {
2296
+ "name": "inputs",
2297
+ "type": "jsonb",
2298
+ "primaryKey": false,
2299
+ "notNull": false
2300
+ },
2301
+ "error": {
2302
+ "name": "error",
2303
+ "type": "text",
2304
+ "primaryKey": false,
2305
+ "notNull": false
2306
+ },
2307
+ "reason": {
2308
+ "name": "reason",
2309
+ "type": "text",
2310
+ "primaryKey": false,
2311
+ "notNull": false
2312
+ },
2313
+ "started_at": {
2314
+ "name": "started_at",
2315
+ "type": "bigint",
2316
+ "primaryKey": false,
2317
+ "notNull": true
2318
+ },
2319
+ "completed_at": {
2320
+ "name": "completed_at",
2321
+ "type": "bigint",
2322
+ "primaryKey": false,
2323
+ "notNull": false
2324
+ },
2325
+ "trigger_payload": {
2326
+ "name": "trigger_payload",
2327
+ "type": "jsonb",
2328
+ "primaryKey": false,
2329
+ "notNull": false
2330
+ },
2331
+ "scope_type": {
2332
+ "name": "scope_type",
2333
+ "type": "text",
2334
+ "primaryKey": false,
2335
+ "notNull": true
2336
+ },
2337
+ "scope_kind": {
2338
+ "name": "scope_kind",
2339
+ "type": "text",
2340
+ "primaryKey": false,
2341
+ "notNull": true,
2342
+ "default": "''"
2343
+ },
2344
+ "scope_id": {
2345
+ "name": "scope_id",
2346
+ "type": "text",
2347
+ "primaryKey": false,
2348
+ "notNull": true,
2349
+ "default": "''"
2350
+ }
2351
+ },
2352
+ "indexes": {
2353
+ "idx_workflow_executions_status": {
2354
+ "name": "idx_workflow_executions_status",
2355
+ "columns": [
2356
+ {
2357
+ "expression": "status",
2358
+ "isExpression": false,
2359
+ "asc": true,
2360
+ "nulls": "last"
2361
+ }
2362
+ ],
2363
+ "isUnique": false,
2364
+ "concurrently": false,
2365
+ "method": "btree",
2366
+ "with": {}
2367
+ },
2368
+ "idx_workflow_executions_scope_started": {
2369
+ "name": "idx_workflow_executions_scope_started",
2370
+ "columns": [
2371
+ {
2372
+ "expression": "scope_type",
2373
+ "isExpression": false,
2374
+ "asc": true,
2375
+ "nulls": "last"
2376
+ },
2377
+ {
2378
+ "expression": "scope_kind",
2379
+ "isExpression": false,
2380
+ "asc": true,
2381
+ "nulls": "last"
2382
+ },
2383
+ {
2384
+ "expression": "scope_id",
2385
+ "isExpression": false,
2386
+ "asc": true,
2387
+ "nulls": "last"
2388
+ },
2389
+ {
2390
+ "expression": "started_at",
2391
+ "isExpression": false,
2392
+ "asc": true,
2393
+ "nulls": "last"
2394
+ }
2395
+ ],
2396
+ "isUnique": false,
2397
+ "concurrently": false,
2398
+ "method": "btree",
2399
+ "with": {}
2400
+ },
2401
+ "idx_workflow_executions_workflow_started": {
2402
+ "name": "idx_workflow_executions_workflow_started",
2403
+ "columns": [
2404
+ {
2405
+ "expression": "workflow_id",
2406
+ "isExpression": false,
2407
+ "asc": true,
2408
+ "nulls": "last"
2409
+ },
2410
+ {
2411
+ "expression": "started_at",
2412
+ "isExpression": false,
2413
+ "asc": true,
2414
+ "nulls": "last"
2415
+ }
2416
+ ],
2417
+ "isUnique": false,
2418
+ "concurrently": false,
2419
+ "method": "btree",
2420
+ "with": {}
2421
+ }
2422
+ },
2423
+ "foreignKeys": {},
2424
+ "compositePrimaryKeys": {},
2425
+ "uniqueConstraints": {},
2426
+ "policies": {},
2427
+ "checkConstraints": {},
2428
+ "isRLSEnabled": false
2429
+ },
2430
+ "public.workflow_gate_instances": {
2431
+ "name": "workflow_gate_instances",
2432
+ "schema": "",
2433
+ "columns": {
2434
+ "id": {
2435
+ "name": "id",
2436
+ "type": "text",
2437
+ "primaryKey": true,
2438
+ "notNull": true
2439
+ },
2440
+ "execution_id": {
2441
+ "name": "execution_id",
2442
+ "type": "text",
2443
+ "primaryKey": false,
2444
+ "notNull": true
2445
+ },
2446
+ "node_id": {
2447
+ "name": "node_id",
2448
+ "type": "text",
2449
+ "primaryKey": false,
2450
+ "notNull": true
2451
+ },
2452
+ "frame_id": {
2453
+ "name": "frame_id",
2454
+ "type": "text",
2455
+ "primaryKey": false,
2456
+ "notNull": true
2457
+ },
2458
+ "schema": {
2459
+ "name": "schema",
2460
+ "type": "jsonb",
2461
+ "primaryKey": false,
2462
+ "notNull": true
2463
+ },
2464
+ "prompt": {
2465
+ "name": "prompt",
2466
+ "type": "text",
2467
+ "primaryKey": false,
2468
+ "notNull": false
2469
+ },
2470
+ "status": {
2471
+ "name": "status",
2472
+ "type": "text",
2473
+ "primaryKey": false,
2474
+ "notNull": true,
2475
+ "default": "'waiting'"
2476
+ },
2477
+ "auto_action": {
2478
+ "name": "auto_action",
2479
+ "type": "text",
2480
+ "primaryKey": false,
2481
+ "notNull": true,
2482
+ "default": "'reject'"
2483
+ },
2484
+ "timeout_ms": {
2485
+ "name": "timeout_ms",
2486
+ "type": "integer",
2487
+ "primaryKey": false,
2488
+ "notNull": false
2489
+ },
2490
+ "resume_data": {
2491
+ "name": "resume_data",
2492
+ "type": "jsonb",
2493
+ "primaryKey": false,
2494
+ "notNull": false
2495
+ },
2496
+ "resume_data_present": {
2497
+ "name": "resume_data_present",
2498
+ "type": "boolean",
2499
+ "primaryKey": false,
2500
+ "notNull": true,
2501
+ "default": false
2502
+ },
2503
+ "created_at": {
2504
+ "name": "created_at",
2505
+ "type": "bigint",
2506
+ "primaryKey": false,
2507
+ "notNull": true
2508
+ },
2509
+ "resolved_at": {
2510
+ "name": "resolved_at",
2511
+ "type": "bigint",
2512
+ "primaryKey": false,
2513
+ "notNull": false
2514
+ }
2515
+ },
2516
+ "indexes": {
2517
+ "idx_workflow_gate_instances_execution": {
2518
+ "name": "idx_workflow_gate_instances_execution",
2519
+ "columns": [
2520
+ {
2521
+ "expression": "execution_id",
2522
+ "isExpression": false,
2523
+ "asc": true,
2524
+ "nulls": "last"
2525
+ }
2526
+ ],
2527
+ "isUnique": false,
2528
+ "concurrently": false,
2529
+ "method": "btree",
2530
+ "with": {}
2531
+ },
2532
+ "idx_workflow_gate_instances_frame": {
2533
+ "name": "idx_workflow_gate_instances_frame",
2534
+ "columns": [
2535
+ {
2536
+ "expression": "frame_id",
2537
+ "isExpression": false,
2538
+ "asc": true,
2539
+ "nulls": "last"
2540
+ }
2541
+ ],
2542
+ "isUnique": false,
2543
+ "concurrently": false,
2544
+ "method": "btree",
2545
+ "with": {}
2546
+ }
2547
+ },
2548
+ "foreignKeys": {
2549
+ "workflow_gate_instances_execution_id_workflow_executions_id_fk": {
2550
+ "name": "workflow_gate_instances_execution_id_workflow_executions_id_fk",
2551
+ "tableFrom": "workflow_gate_instances",
2552
+ "tableTo": "workflow_executions",
2553
+ "columnsFrom": ["execution_id"],
2554
+ "columnsTo": ["id"],
2555
+ "onDelete": "cascade",
2556
+ "onUpdate": "no action"
2557
+ }
2558
+ },
2559
+ "compositePrimaryKeys": {},
2560
+ "uniqueConstraints": {},
2561
+ "policies": {},
2562
+ "checkConstraints": {},
2563
+ "isRLSEnabled": false
2564
+ },
2565
+ "public.workflow_run_contexts": {
2566
+ "name": "workflow_run_contexts",
2567
+ "schema": "",
2568
+ "columns": {
2569
+ "execution_id": {
2570
+ "name": "execution_id",
2571
+ "type": "text",
2572
+ "primaryKey": true,
2573
+ "notNull": true
2574
+ },
2575
+ "workflow_id": {
2576
+ "name": "workflow_id",
2577
+ "type": "text",
2578
+ "primaryKey": false,
2579
+ "notNull": true
2580
+ },
2581
+ "coordinator_session_id": {
2582
+ "name": "coordinator_session_id",
2583
+ "type": "text",
2584
+ "primaryKey": false,
2585
+ "notNull": true
2586
+ },
2587
+ "source_kind": {
2588
+ "name": "source_kind",
2589
+ "type": "text",
2590
+ "primaryKey": false,
2591
+ "notNull": true
2592
+ },
2593
+ "source_path": {
2594
+ "name": "source_path",
2595
+ "type": "text",
2596
+ "primaryKey": false,
2597
+ "notNull": false
2598
+ },
2599
+ "source_filename": {
2600
+ "name": "source_filename",
2601
+ "type": "text",
2602
+ "primaryKey": false,
2603
+ "notNull": false
2604
+ },
2605
+ "source_code": {
2606
+ "name": "source_code",
2607
+ "type": "text",
2608
+ "primaryKey": false,
2609
+ "notNull": false
2610
+ },
2611
+ "definition_snapshot": {
2612
+ "name": "definition_snapshot",
2613
+ "type": "jsonb",
2614
+ "primaryKey": false,
2615
+ "notNull": false
2616
+ },
2617
+ "worker_manifest": {
2618
+ "name": "worker_manifest",
2619
+ "type": "jsonb",
2620
+ "primaryKey": false,
2621
+ "notNull": true
2622
+ },
2623
+ "inputs": {
2624
+ "name": "inputs",
2625
+ "type": "jsonb",
2626
+ "primaryKey": false,
2627
+ "notNull": false
2628
+ },
2629
+ "config": {
2630
+ "name": "config",
2631
+ "type": "jsonb",
2632
+ "primaryKey": false,
2633
+ "notNull": true,
2634
+ "default": "'{}'"
2635
+ },
2636
+ "trigger_payload": {
2637
+ "name": "trigger_payload",
2638
+ "type": "jsonb",
2639
+ "primaryKey": false,
2640
+ "notNull": true
2641
+ },
2642
+ "artifact_ref": {
2643
+ "name": "artifact_ref",
2644
+ "type": "jsonb",
2645
+ "primaryKey": false,
2646
+ "notNull": false
2647
+ },
2648
+ "execution_hints": {
2649
+ "name": "execution_hints",
2650
+ "type": "jsonb",
2651
+ "primaryKey": false,
2652
+ "notNull": false
2653
+ },
2654
+ "dispatch_metadata": {
2655
+ "name": "dispatch_metadata",
2656
+ "type": "jsonb",
2657
+ "primaryKey": false,
2658
+ "notNull": false
2659
+ },
2660
+ "scope_type": {
2661
+ "name": "scope_type",
2662
+ "type": "text",
2663
+ "primaryKey": false,
2664
+ "notNull": true,
2665
+ "default": "'global'"
2666
+ },
2667
+ "scope_kind": {
2668
+ "name": "scope_kind",
2669
+ "type": "text",
2670
+ "primaryKey": false,
2671
+ "notNull": true,
2672
+ "default": "''"
2673
+ },
2674
+ "scope_id": {
2675
+ "name": "scope_id",
2676
+ "type": "text",
2677
+ "primaryKey": false,
2678
+ "notNull": true,
2679
+ "default": "''"
2680
+ },
2681
+ "cancel_subject": {
2682
+ "name": "cancel_subject",
2683
+ "type": "text",
2684
+ "primaryKey": false,
2685
+ "notNull": true
2686
+ },
2687
+ "context": {
2688
+ "name": "context",
2689
+ "type": "jsonb",
2690
+ "primaryKey": false,
2691
+ "notNull": true
2692
+ },
2693
+ "env": {
2694
+ "name": "env",
2695
+ "type": "jsonb",
2696
+ "primaryKey": false,
2697
+ "notNull": true
2698
+ },
2699
+ "created_at": {
2700
+ "name": "created_at",
2701
+ "type": "bigint",
2702
+ "primaryKey": false,
2703
+ "notNull": true
2704
+ },
2705
+ "suspension_strategy": {
2706
+ "name": "suspension_strategy",
2707
+ "type": "text",
2708
+ "primaryKey": false,
2709
+ "notNull": false
2710
+ }
2711
+ },
2712
+ "indexes": {
2713
+ "idx_run_contexts_workflow": {
2714
+ "name": "idx_run_contexts_workflow",
2715
+ "columns": [
2716
+ {
2717
+ "expression": "workflow_id",
2718
+ "isExpression": false,
2719
+ "asc": true,
2720
+ "nulls": "last"
2721
+ }
2722
+ ],
2723
+ "isUnique": false,
2724
+ "concurrently": false,
2725
+ "method": "btree",
2726
+ "with": {}
2727
+ }
2728
+ },
2729
+ "foreignKeys": {},
2730
+ "compositePrimaryKeys": {},
2731
+ "uniqueConstraints": {},
2732
+ "policies": {},
2733
+ "checkConstraints": {},
2734
+ "isRLSEnabled": false
2735
+ },
2736
+ "public.workflow_step_spans": {
2737
+ "name": "workflow_step_spans",
2738
+ "schema": "",
2739
+ "columns": {
2740
+ "execution_id": {
2741
+ "name": "execution_id",
2742
+ "type": "text",
2743
+ "primaryKey": false,
2744
+ "notNull": true
2745
+ },
2746
+ "frame_id": {
2747
+ "name": "frame_id",
2748
+ "type": "text",
2749
+ "primaryKey": false,
2750
+ "notNull": true
2751
+ },
2752
+ "step_id": {
2753
+ "name": "step_id",
2754
+ "type": "text",
2755
+ "primaryKey": false,
2756
+ "notNull": true
2757
+ },
2758
+ "step_type": {
2759
+ "name": "step_type",
2760
+ "type": "text",
2761
+ "primaryKey": false,
2762
+ "notNull": true
2763
+ },
2764
+ "status": {
2765
+ "name": "status",
2766
+ "type": "text",
2767
+ "primaryKey": false,
2768
+ "notNull": true
2769
+ },
2770
+ "started_at": {
2771
+ "name": "started_at",
2772
+ "type": "bigint",
2773
+ "primaryKey": false,
2774
+ "notNull": false
2775
+ },
2776
+ "completed_at": {
2777
+ "name": "completed_at",
2778
+ "type": "bigint",
2779
+ "primaryKey": false,
2780
+ "notNull": false
2781
+ },
2782
+ "duration_ms": {
2783
+ "name": "duration_ms",
2784
+ "type": "integer",
2785
+ "primaryKey": false,
2786
+ "notNull": false
2787
+ },
2788
+ "input_tokens": {
2789
+ "name": "input_tokens",
2790
+ "type": "integer",
2791
+ "primaryKey": false,
2792
+ "notNull": false
2793
+ },
2794
+ "output_tokens": {
2795
+ "name": "output_tokens",
2796
+ "type": "integer",
2797
+ "primaryKey": false,
2798
+ "notNull": false
2799
+ },
2800
+ "estimated_cost": {
2801
+ "name": "estimated_cost",
2802
+ "type": "double precision",
2803
+ "primaryKey": false,
2804
+ "notNull": false
2805
+ },
2806
+ "tool_call_count": {
2807
+ "name": "tool_call_count",
2808
+ "type": "integer",
2809
+ "primaryKey": false,
2810
+ "notNull": false
2811
+ },
2812
+ "input": {
2813
+ "name": "input",
2814
+ "type": "text",
2815
+ "primaryKey": false,
2816
+ "notNull": false
2817
+ },
2818
+ "output": {
2819
+ "name": "output",
2820
+ "type": "text",
2821
+ "primaryKey": false,
2822
+ "notNull": false
2823
+ }
2824
+ },
2825
+ "indexes": {
2826
+ "idx_workflow_step_spans_status": {
2827
+ "name": "idx_workflow_step_spans_status",
2828
+ "columns": [
2829
+ {
2830
+ "expression": "status",
2831
+ "isExpression": false,
2832
+ "asc": true,
2833
+ "nulls": "last"
2834
+ }
2835
+ ],
2836
+ "isUnique": false,
2837
+ "concurrently": false,
2838
+ "method": "btree",
2839
+ "with": {}
2840
+ }
2841
+ },
2842
+ "foreignKeys": {
2843
+ "workflow_step_spans_execution_id_workflow_executions_id_fk": {
2844
+ "name": "workflow_step_spans_execution_id_workflow_executions_id_fk",
2845
+ "tableFrom": "workflow_step_spans",
2846
+ "tableTo": "workflow_executions",
2847
+ "columnsFrom": ["execution_id"],
2848
+ "columnsTo": ["id"],
2849
+ "onDelete": "cascade",
2850
+ "onUpdate": "no action"
2851
+ }
2852
+ },
2853
+ "compositePrimaryKeys": {
2854
+ "workflow_step_spans_execution_id_frame_id_pk": {
2855
+ "name": "workflow_step_spans_execution_id_frame_id_pk",
2856
+ "columns": ["execution_id", "frame_id"]
2857
+ }
2858
+ },
2859
+ "uniqueConstraints": {},
2860
+ "policies": {},
2861
+ "checkConstraints": {},
2862
+ "isRLSEnabled": false
2863
+ },
2864
+ "public.worklog_artifact_writes": {
2865
+ "name": "worklog_artifact_writes",
2866
+ "schema": "",
2867
+ "columns": {
2868
+ "id": {
2869
+ "name": "id",
2870
+ "type": "text",
2871
+ "primaryKey": true,
2872
+ "notNull": true
2873
+ },
2874
+ "execution_id": {
2875
+ "name": "execution_id",
2876
+ "type": "text",
2877
+ "primaryKey": false,
2878
+ "notNull": true
2879
+ },
2880
+ "frame_id": {
2881
+ "name": "frame_id",
2882
+ "type": "text",
2883
+ "primaryKey": false,
2884
+ "notNull": true
2885
+ },
2886
+ "node_id": {
2887
+ "name": "node_id",
2888
+ "type": "text",
2889
+ "primaryKey": false,
2890
+ "notNull": true
2891
+ },
2892
+ "artifact": {
2893
+ "name": "artifact",
2894
+ "type": "jsonb",
2895
+ "primaryKey": false,
2896
+ "notNull": true
2897
+ },
2898
+ "revision": {
2899
+ "name": "revision",
2900
+ "type": "text",
2901
+ "primaryKey": false,
2902
+ "notNull": false
2903
+ },
2904
+ "written_at": {
2905
+ "name": "written_at",
2906
+ "type": "bigint",
2907
+ "primaryKey": false,
2908
+ "notNull": true
2909
+ }
2910
+ },
2911
+ "indexes": {
2912
+ "idx_worklog_artifact_writes_execution": {
2913
+ "name": "idx_worklog_artifact_writes_execution",
2914
+ "columns": [
2915
+ {
2916
+ "expression": "execution_id",
2917
+ "isExpression": false,
2918
+ "asc": true,
2919
+ "nulls": "last"
2920
+ }
2921
+ ],
2922
+ "isUnique": false,
2923
+ "concurrently": false,
2924
+ "method": "btree",
2925
+ "with": {}
2926
+ }
2927
+ },
2928
+ "foreignKeys": {
2929
+ "worklog_artifact_writes_execution_id_workflow_executions_id_fk": {
2930
+ "name": "worklog_artifact_writes_execution_id_workflow_executions_id_fk",
2931
+ "tableFrom": "worklog_artifact_writes",
2932
+ "tableTo": "workflow_executions",
2933
+ "columnsFrom": ["execution_id"],
2934
+ "columnsTo": ["id"],
2935
+ "onDelete": "cascade",
2936
+ "onUpdate": "no action"
2937
+ }
2938
+ },
2939
+ "compositePrimaryKeys": {},
2940
+ "uniqueConstraints": {},
2941
+ "policies": {},
2942
+ "checkConstraints": {},
2943
+ "isRLSEnabled": false
2944
+ },
2945
+ "public.worklog_frame_entries": {
2946
+ "name": "worklog_frame_entries",
2947
+ "schema": "",
2948
+ "columns": {
2949
+ "frame_id": {
2950
+ "name": "frame_id",
2951
+ "type": "text",
2952
+ "primaryKey": true,
2953
+ "notNull": true
2954
+ },
2955
+ "execution_id": {
2956
+ "name": "execution_id",
2957
+ "type": "text",
2958
+ "primaryKey": false,
2959
+ "notNull": true
2960
+ },
2961
+ "node_id": {
2962
+ "name": "node_id",
2963
+ "type": "text",
2964
+ "primaryKey": false,
2965
+ "notNull": true
2966
+ },
2967
+ "node_type": {
2968
+ "name": "node_type",
2969
+ "type": "text",
2970
+ "primaryKey": false,
2971
+ "notNull": true
2972
+ },
2973
+ "path": {
2974
+ "name": "path",
2975
+ "type": "jsonb",
2976
+ "primaryKey": false,
2977
+ "notNull": true
2978
+ },
2979
+ "status": {
2980
+ "name": "status",
2981
+ "type": "text",
2982
+ "primaryKey": false,
2983
+ "notNull": true
2984
+ },
2985
+ "attempt": {
2986
+ "name": "attempt",
2987
+ "type": "integer",
2988
+ "primaryKey": false,
2989
+ "notNull": true,
2990
+ "default": 0
2991
+ },
2992
+ "iteration": {
2993
+ "name": "iteration",
2994
+ "type": "integer",
2995
+ "primaryKey": false,
2996
+ "notNull": false
2997
+ },
2998
+ "branch_key": {
2999
+ "name": "branch_key",
3000
+ "type": "text",
3001
+ "primaryKey": false,
3002
+ "notNull": false
3003
+ },
3004
+ "started_at": {
3005
+ "name": "started_at",
3006
+ "type": "bigint",
3007
+ "primaryKey": false,
3008
+ "notNull": false
3009
+ },
3010
+ "completed_at": {
3011
+ "name": "completed_at",
3012
+ "type": "bigint",
3013
+ "primaryKey": false,
3014
+ "notNull": false
3015
+ },
3016
+ "duration_ms": {
3017
+ "name": "duration_ms",
3018
+ "type": "integer",
3019
+ "primaryKey": false,
3020
+ "notNull": false
3021
+ },
3022
+ "input_tokens": {
3023
+ "name": "input_tokens",
3024
+ "type": "integer",
3025
+ "primaryKey": false,
3026
+ "notNull": false
3027
+ },
3028
+ "output_tokens": {
3029
+ "name": "output_tokens",
3030
+ "type": "integer",
3031
+ "primaryKey": false,
3032
+ "notNull": false
3033
+ },
3034
+ "estimated_cost": {
3035
+ "name": "estimated_cost",
3036
+ "type": "double precision",
3037
+ "primaryKey": false,
3038
+ "notNull": false
3039
+ },
3040
+ "error": {
3041
+ "name": "error",
3042
+ "type": "text",
3043
+ "primaryKey": false,
3044
+ "notNull": false
3045
+ }
3046
+ },
3047
+ "indexes": {
3048
+ "idx_worklog_frame_entries_execution": {
3049
+ "name": "idx_worklog_frame_entries_execution",
3050
+ "columns": [
3051
+ {
3052
+ "expression": "execution_id",
3053
+ "isExpression": false,
3054
+ "asc": true,
3055
+ "nulls": "last"
3056
+ }
3057
+ ],
3058
+ "isUnique": false,
3059
+ "concurrently": false,
3060
+ "method": "btree",
3061
+ "with": {}
3062
+ }
3063
+ },
3064
+ "foreignKeys": {
3065
+ "worklog_frame_entries_execution_id_workflow_executions_id_fk": {
3066
+ "name": "worklog_frame_entries_execution_id_workflow_executions_id_fk",
3067
+ "tableFrom": "worklog_frame_entries",
3068
+ "tableTo": "workflow_executions",
3069
+ "columnsFrom": ["execution_id"],
3070
+ "columnsTo": ["id"],
3071
+ "onDelete": "cascade",
3072
+ "onUpdate": "no action"
3073
+ }
3074
+ },
3075
+ "compositePrimaryKeys": {},
3076
+ "uniqueConstraints": {},
3077
+ "policies": {},
3078
+ "checkConstraints": {},
3079
+ "isRLSEnabled": false
3080
+ },
3081
+ "public.worklog_gate_events": {
3082
+ "name": "worklog_gate_events",
3083
+ "schema": "",
3084
+ "columns": {
3085
+ "id": {
3086
+ "name": "id",
3087
+ "type": "text",
3088
+ "primaryKey": true,
3089
+ "notNull": true
3090
+ },
3091
+ "execution_id": {
3092
+ "name": "execution_id",
3093
+ "type": "text",
3094
+ "primaryKey": false,
3095
+ "notNull": true
3096
+ },
3097
+ "node_id": {
3098
+ "name": "node_id",
3099
+ "type": "text",
3100
+ "primaryKey": false,
3101
+ "notNull": true
3102
+ },
3103
+ "frame_id": {
3104
+ "name": "frame_id",
3105
+ "type": "text",
3106
+ "primaryKey": false,
3107
+ "notNull": true
3108
+ },
3109
+ "status": {
3110
+ "name": "status",
3111
+ "type": "text",
3112
+ "primaryKey": false,
3113
+ "notNull": true
3114
+ },
3115
+ "prompt": {
3116
+ "name": "prompt",
3117
+ "type": "text",
3118
+ "primaryKey": false,
3119
+ "notNull": false
3120
+ },
3121
+ "opened_at": {
3122
+ "name": "opened_at",
3123
+ "type": "bigint",
3124
+ "primaryKey": false,
3125
+ "notNull": true
3126
+ },
3127
+ "resolved_at": {
3128
+ "name": "resolved_at",
3129
+ "type": "bigint",
3130
+ "primaryKey": false,
3131
+ "notNull": false
3132
+ },
3133
+ "resume_data": {
3134
+ "name": "resume_data",
3135
+ "type": "jsonb",
3136
+ "primaryKey": false,
3137
+ "notNull": false
3138
+ }
3139
+ },
3140
+ "indexes": {
3141
+ "idx_worklog_gate_events_execution": {
3142
+ "name": "idx_worklog_gate_events_execution",
3143
+ "columns": [
3144
+ {
3145
+ "expression": "execution_id",
3146
+ "isExpression": false,
3147
+ "asc": true,
3148
+ "nulls": "last"
3149
+ }
3150
+ ],
3151
+ "isUnique": false,
3152
+ "concurrently": false,
3153
+ "method": "btree",
3154
+ "with": {}
3155
+ },
3156
+ "idx_worklog_gate_events_status": {
3157
+ "name": "idx_worklog_gate_events_status",
3158
+ "columns": [
3159
+ {
3160
+ "expression": "status",
3161
+ "isExpression": false,
3162
+ "asc": true,
3163
+ "nulls": "last"
3164
+ }
3165
+ ],
3166
+ "isUnique": false,
3167
+ "concurrently": false,
3168
+ "method": "btree",
3169
+ "with": {}
3170
+ }
3171
+ },
3172
+ "foreignKeys": {
3173
+ "worklog_gate_events_execution_id_workflow_executions_id_fk": {
3174
+ "name": "worklog_gate_events_execution_id_workflow_executions_id_fk",
3175
+ "tableFrom": "worklog_gate_events",
3176
+ "tableTo": "workflow_executions",
3177
+ "columnsFrom": ["execution_id"],
3178
+ "columnsTo": ["id"],
3179
+ "onDelete": "cascade",
3180
+ "onUpdate": "no action"
3181
+ }
3182
+ },
3183
+ "compositePrimaryKeys": {},
3184
+ "uniqueConstraints": {},
3185
+ "policies": {},
3186
+ "checkConstraints": {},
3187
+ "isRLSEnabled": false
3188
+ },
3189
+ "public.worklog_summaries": {
3190
+ "name": "worklog_summaries",
3191
+ "schema": "",
3192
+ "columns": {
3193
+ "execution_id": {
3194
+ "name": "execution_id",
3195
+ "type": "text",
3196
+ "primaryKey": true,
3197
+ "notNull": true
3198
+ },
3199
+ "workflow_id": {
3200
+ "name": "workflow_id",
3201
+ "type": "text",
3202
+ "primaryKey": false,
3203
+ "notNull": true
3204
+ },
3205
+ "workflow_name": {
3206
+ "name": "workflow_name",
3207
+ "type": "text",
3208
+ "primaryKey": false,
3209
+ "notNull": false
3210
+ },
3211
+ "status": {
3212
+ "name": "status",
3213
+ "type": "text",
3214
+ "primaryKey": false,
3215
+ "notNull": true
3216
+ },
3217
+ "started_at": {
3218
+ "name": "started_at",
3219
+ "type": "bigint",
3220
+ "primaryKey": false,
3221
+ "notNull": true
3222
+ },
3223
+ "completed_at": {
3224
+ "name": "completed_at",
3225
+ "type": "bigint",
3226
+ "primaryKey": false,
3227
+ "notNull": false
3228
+ },
3229
+ "duration_ms": {
3230
+ "name": "duration_ms",
3231
+ "type": "integer",
3232
+ "primaryKey": false,
3233
+ "notNull": false
3234
+ },
3235
+ "total_input_tokens": {
3236
+ "name": "total_input_tokens",
3237
+ "type": "integer",
3238
+ "primaryKey": false,
3239
+ "notNull": false
3240
+ },
3241
+ "total_output_tokens": {
3242
+ "name": "total_output_tokens",
3243
+ "type": "integer",
3244
+ "primaryKey": false,
3245
+ "notNull": false
3246
+ },
3247
+ "total_estimated_cost": {
3248
+ "name": "total_estimated_cost",
3249
+ "type": "double precision",
3250
+ "primaryKey": false,
3251
+ "notNull": false
3252
+ },
3253
+ "error": {
3254
+ "name": "error",
3255
+ "type": "text",
3256
+ "primaryKey": false,
3257
+ "notNull": false
3258
+ },
3259
+ "failed_node_id": {
3260
+ "name": "failed_node_id",
3261
+ "type": "text",
3262
+ "primaryKey": false,
3263
+ "notNull": false
3264
+ }
3265
+ },
3266
+ "indexes": {
3267
+ "idx_worklog_summaries_workflow_started": {
3268
+ "name": "idx_worklog_summaries_workflow_started",
3269
+ "columns": [
3270
+ {
3271
+ "expression": "workflow_id",
3272
+ "isExpression": false,
3273
+ "asc": true,
3274
+ "nulls": "last"
3275
+ },
3276
+ {
3277
+ "expression": "started_at",
3278
+ "isExpression": false,
3279
+ "asc": true,
3280
+ "nulls": "last"
3281
+ }
3282
+ ],
3283
+ "isUnique": false,
3284
+ "concurrently": false,
3285
+ "method": "btree",
3286
+ "with": {}
3287
+ },
3288
+ "idx_worklog_summaries_status": {
3289
+ "name": "idx_worklog_summaries_status",
3290
+ "columns": [
3291
+ {
3292
+ "expression": "status",
3293
+ "isExpression": false,
3294
+ "asc": true,
3295
+ "nulls": "last"
3296
+ }
3297
+ ],
3298
+ "isUnique": false,
3299
+ "concurrently": false,
3300
+ "method": "btree",
3301
+ "with": {}
3302
+ }
3303
+ },
3304
+ "foreignKeys": {},
3305
+ "compositePrimaryKeys": {},
3306
+ "uniqueConstraints": {},
3307
+ "policies": {},
3308
+ "checkConstraints": {},
3309
+ "isRLSEnabled": false
3310
+ }
3311
+ },
3312
+ "enums": {},
3313
+ "schemas": {},
3314
+ "sequences": {},
3315
+ "roles": {},
3316
+ "policies": {},
3317
+ "views": {},
3318
+ "_meta": {
3319
+ "columns": {},
3320
+ "schemas": {},
3321
+ "tables": {}
3322
+ }
3323
+ }