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