@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,3407 @@
1
+ {
2
+ "id": "33df77ff-bdb8-4bcd-a20d-8dd872414385",
3
+ "prevId": "93926a9a-19ef-4622-b323-846c1b0c69f0",
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
+ "artifact_kind": {
2357
+ "name": "artifact_kind",
2358
+ "type": "text",
2359
+ "primaryKey": false,
2360
+ "notNull": false
2361
+ },
2362
+ "artifact_id": {
2363
+ "name": "artifact_id",
2364
+ "type": "text",
2365
+ "primaryKey": false,
2366
+ "notNull": false
2367
+ },
2368
+ "scope_type": {
2369
+ "name": "scope_type",
2370
+ "type": "text",
2371
+ "primaryKey": false,
2372
+ "notNull": true
2373
+ },
2374
+ "scope_kind": {
2375
+ "name": "scope_kind",
2376
+ "type": "text",
2377
+ "primaryKey": false,
2378
+ "notNull": true,
2379
+ "default": "''"
2380
+ },
2381
+ "scope_id": {
2382
+ "name": "scope_id",
2383
+ "type": "text",
2384
+ "primaryKey": false,
2385
+ "notNull": true,
2386
+ "default": "''"
2387
+ }
2388
+ },
2389
+ "indexes": {
2390
+ "idx_workflow_executions_status": {
2391
+ "name": "idx_workflow_executions_status",
2392
+ "columns": [
2393
+ {
2394
+ "expression": "status",
2395
+ "isExpression": false,
2396
+ "asc": true,
2397
+ "nulls": "last"
2398
+ }
2399
+ ],
2400
+ "isUnique": false,
2401
+ "concurrently": false,
2402
+ "method": "btree",
2403
+ "with": {}
2404
+ },
2405
+ "idx_workflow_executions_scope_started": {
2406
+ "name": "idx_workflow_executions_scope_started",
2407
+ "columns": [
2408
+ {
2409
+ "expression": "scope_type",
2410
+ "isExpression": false,
2411
+ "asc": true,
2412
+ "nulls": "last"
2413
+ },
2414
+ {
2415
+ "expression": "scope_kind",
2416
+ "isExpression": false,
2417
+ "asc": true,
2418
+ "nulls": "last"
2419
+ },
2420
+ {
2421
+ "expression": "scope_id",
2422
+ "isExpression": false,
2423
+ "asc": true,
2424
+ "nulls": "last"
2425
+ },
2426
+ {
2427
+ "expression": "started_at",
2428
+ "isExpression": false,
2429
+ "asc": true,
2430
+ "nulls": "last"
2431
+ }
2432
+ ],
2433
+ "isUnique": false,
2434
+ "concurrently": false,
2435
+ "method": "btree",
2436
+ "with": {}
2437
+ },
2438
+ "idx_workflow_executions_workflow_started": {
2439
+ "name": "idx_workflow_executions_workflow_started",
2440
+ "columns": [
2441
+ {
2442
+ "expression": "workflow_id",
2443
+ "isExpression": false,
2444
+ "asc": true,
2445
+ "nulls": "last"
2446
+ },
2447
+ {
2448
+ "expression": "started_at",
2449
+ "isExpression": false,
2450
+ "asc": true,
2451
+ "nulls": "last"
2452
+ }
2453
+ ],
2454
+ "isUnique": false,
2455
+ "concurrently": false,
2456
+ "method": "btree",
2457
+ "with": {}
2458
+ },
2459
+ "idx_workflow_executions_artifact": {
2460
+ "name": "idx_workflow_executions_artifact",
2461
+ "columns": [
2462
+ {
2463
+ "expression": "artifact_kind",
2464
+ "isExpression": false,
2465
+ "asc": true,
2466
+ "nulls": "last"
2467
+ },
2468
+ {
2469
+ "expression": "artifact_id",
2470
+ "isExpression": false,
2471
+ "asc": true,
2472
+ "nulls": "last"
2473
+ },
2474
+ {
2475
+ "expression": "started_at",
2476
+ "isExpression": false,
2477
+ "asc": true,
2478
+ "nulls": "last"
2479
+ }
2480
+ ],
2481
+ "isUnique": false,
2482
+ "concurrently": false,
2483
+ "method": "btree",
2484
+ "with": {}
2485
+ }
2486
+ },
2487
+ "foreignKeys": {},
2488
+ "compositePrimaryKeys": {},
2489
+ "uniqueConstraints": {},
2490
+ "policies": {},
2491
+ "checkConstraints": {},
2492
+ "isRLSEnabled": false
2493
+ },
2494
+ "public.workflow_gate_instances": {
2495
+ "name": "workflow_gate_instances",
2496
+ "schema": "",
2497
+ "columns": {
2498
+ "id": {
2499
+ "name": "id",
2500
+ "type": "text",
2501
+ "primaryKey": true,
2502
+ "notNull": true
2503
+ },
2504
+ "execution_id": {
2505
+ "name": "execution_id",
2506
+ "type": "text",
2507
+ "primaryKey": false,
2508
+ "notNull": true
2509
+ },
2510
+ "node_id": {
2511
+ "name": "node_id",
2512
+ "type": "text",
2513
+ "primaryKey": false,
2514
+ "notNull": true
2515
+ },
2516
+ "frame_id": {
2517
+ "name": "frame_id",
2518
+ "type": "text",
2519
+ "primaryKey": false,
2520
+ "notNull": true
2521
+ },
2522
+ "schema": {
2523
+ "name": "schema",
2524
+ "type": "jsonb",
2525
+ "primaryKey": false,
2526
+ "notNull": true
2527
+ },
2528
+ "prompt": {
2529
+ "name": "prompt",
2530
+ "type": "text",
2531
+ "primaryKey": false,
2532
+ "notNull": false
2533
+ },
2534
+ "status": {
2535
+ "name": "status",
2536
+ "type": "text",
2537
+ "primaryKey": false,
2538
+ "notNull": true,
2539
+ "default": "'waiting'"
2540
+ },
2541
+ "auto_action": {
2542
+ "name": "auto_action",
2543
+ "type": "text",
2544
+ "primaryKey": false,
2545
+ "notNull": true,
2546
+ "default": "'reject'"
2547
+ },
2548
+ "timeout_ms": {
2549
+ "name": "timeout_ms",
2550
+ "type": "integer",
2551
+ "primaryKey": false,
2552
+ "notNull": false
2553
+ },
2554
+ "resume_data": {
2555
+ "name": "resume_data",
2556
+ "type": "jsonb",
2557
+ "primaryKey": false,
2558
+ "notNull": false
2559
+ },
2560
+ "resume_data_present": {
2561
+ "name": "resume_data_present",
2562
+ "type": "boolean",
2563
+ "primaryKey": false,
2564
+ "notNull": true,
2565
+ "default": false
2566
+ },
2567
+ "created_at": {
2568
+ "name": "created_at",
2569
+ "type": "bigint",
2570
+ "primaryKey": false,
2571
+ "notNull": true
2572
+ },
2573
+ "resolved_at": {
2574
+ "name": "resolved_at",
2575
+ "type": "bigint",
2576
+ "primaryKey": false,
2577
+ "notNull": false
2578
+ }
2579
+ },
2580
+ "indexes": {
2581
+ "idx_workflow_gate_instances_execution": {
2582
+ "name": "idx_workflow_gate_instances_execution",
2583
+ "columns": [
2584
+ {
2585
+ "expression": "execution_id",
2586
+ "isExpression": false,
2587
+ "asc": true,
2588
+ "nulls": "last"
2589
+ }
2590
+ ],
2591
+ "isUnique": false,
2592
+ "concurrently": false,
2593
+ "method": "btree",
2594
+ "with": {}
2595
+ },
2596
+ "idx_workflow_gate_instances_frame": {
2597
+ "name": "idx_workflow_gate_instances_frame",
2598
+ "columns": [
2599
+ {
2600
+ "expression": "frame_id",
2601
+ "isExpression": false,
2602
+ "asc": true,
2603
+ "nulls": "last"
2604
+ }
2605
+ ],
2606
+ "isUnique": false,
2607
+ "concurrently": false,
2608
+ "method": "btree",
2609
+ "with": {}
2610
+ }
2611
+ },
2612
+ "foreignKeys": {
2613
+ "workflow_gate_instances_execution_id_workflow_executions_id_fk": {
2614
+ "name": "workflow_gate_instances_execution_id_workflow_executions_id_fk",
2615
+ "tableFrom": "workflow_gate_instances",
2616
+ "tableTo": "workflow_executions",
2617
+ "columnsFrom": ["execution_id"],
2618
+ "columnsTo": ["id"],
2619
+ "onDelete": "cascade",
2620
+ "onUpdate": "no action"
2621
+ }
2622
+ },
2623
+ "compositePrimaryKeys": {},
2624
+ "uniqueConstraints": {},
2625
+ "policies": {},
2626
+ "checkConstraints": {},
2627
+ "isRLSEnabled": false
2628
+ },
2629
+ "public.workflow_run_contexts": {
2630
+ "name": "workflow_run_contexts",
2631
+ "schema": "",
2632
+ "columns": {
2633
+ "execution_id": {
2634
+ "name": "execution_id",
2635
+ "type": "text",
2636
+ "primaryKey": true,
2637
+ "notNull": true
2638
+ },
2639
+ "workflow_id": {
2640
+ "name": "workflow_id",
2641
+ "type": "text",
2642
+ "primaryKey": false,
2643
+ "notNull": true
2644
+ },
2645
+ "coordinator_session_id": {
2646
+ "name": "coordinator_session_id",
2647
+ "type": "text",
2648
+ "primaryKey": false,
2649
+ "notNull": true
2650
+ },
2651
+ "source_kind": {
2652
+ "name": "source_kind",
2653
+ "type": "text",
2654
+ "primaryKey": false,
2655
+ "notNull": true
2656
+ },
2657
+ "source_path": {
2658
+ "name": "source_path",
2659
+ "type": "text",
2660
+ "primaryKey": false,
2661
+ "notNull": false
2662
+ },
2663
+ "source_filename": {
2664
+ "name": "source_filename",
2665
+ "type": "text",
2666
+ "primaryKey": false,
2667
+ "notNull": false
2668
+ },
2669
+ "source_code": {
2670
+ "name": "source_code",
2671
+ "type": "text",
2672
+ "primaryKey": false,
2673
+ "notNull": false
2674
+ },
2675
+ "definition_snapshot": {
2676
+ "name": "definition_snapshot",
2677
+ "type": "jsonb",
2678
+ "primaryKey": false,
2679
+ "notNull": false
2680
+ },
2681
+ "worker_manifest": {
2682
+ "name": "worker_manifest",
2683
+ "type": "jsonb",
2684
+ "primaryKey": false,
2685
+ "notNull": true
2686
+ },
2687
+ "inputs": {
2688
+ "name": "inputs",
2689
+ "type": "jsonb",
2690
+ "primaryKey": false,
2691
+ "notNull": false
2692
+ },
2693
+ "config": {
2694
+ "name": "config",
2695
+ "type": "jsonb",
2696
+ "primaryKey": false,
2697
+ "notNull": true,
2698
+ "default": "'{}'"
2699
+ },
2700
+ "trigger_payload": {
2701
+ "name": "trigger_payload",
2702
+ "type": "jsonb",
2703
+ "primaryKey": false,
2704
+ "notNull": true
2705
+ },
2706
+ "artifact_ref": {
2707
+ "name": "artifact_ref",
2708
+ "type": "jsonb",
2709
+ "primaryKey": false,
2710
+ "notNull": false
2711
+ },
2712
+ "execution_hints": {
2713
+ "name": "execution_hints",
2714
+ "type": "jsonb",
2715
+ "primaryKey": false,
2716
+ "notNull": false
2717
+ },
2718
+ "dispatch_metadata": {
2719
+ "name": "dispatch_metadata",
2720
+ "type": "jsonb",
2721
+ "primaryKey": false,
2722
+ "notNull": false
2723
+ },
2724
+ "scope_type": {
2725
+ "name": "scope_type",
2726
+ "type": "text",
2727
+ "primaryKey": false,
2728
+ "notNull": true,
2729
+ "default": "'global'"
2730
+ },
2731
+ "scope_kind": {
2732
+ "name": "scope_kind",
2733
+ "type": "text",
2734
+ "primaryKey": false,
2735
+ "notNull": true,
2736
+ "default": "''"
2737
+ },
2738
+ "scope_id": {
2739
+ "name": "scope_id",
2740
+ "type": "text",
2741
+ "primaryKey": false,
2742
+ "notNull": true,
2743
+ "default": "''"
2744
+ },
2745
+ "cancel_subject": {
2746
+ "name": "cancel_subject",
2747
+ "type": "text",
2748
+ "primaryKey": false,
2749
+ "notNull": true
2750
+ },
2751
+ "context": {
2752
+ "name": "context",
2753
+ "type": "jsonb",
2754
+ "primaryKey": false,
2755
+ "notNull": true
2756
+ },
2757
+ "env": {
2758
+ "name": "env",
2759
+ "type": "jsonb",
2760
+ "primaryKey": false,
2761
+ "notNull": true
2762
+ },
2763
+ "created_at": {
2764
+ "name": "created_at",
2765
+ "type": "bigint",
2766
+ "primaryKey": false,
2767
+ "notNull": true
2768
+ },
2769
+ "suspension_strategy": {
2770
+ "name": "suspension_strategy",
2771
+ "type": "text",
2772
+ "primaryKey": false,
2773
+ "notNull": false
2774
+ }
2775
+ },
2776
+ "indexes": {
2777
+ "idx_run_contexts_workflow": {
2778
+ "name": "idx_run_contexts_workflow",
2779
+ "columns": [
2780
+ {
2781
+ "expression": "workflow_id",
2782
+ "isExpression": false,
2783
+ "asc": true,
2784
+ "nulls": "last"
2785
+ }
2786
+ ],
2787
+ "isUnique": false,
2788
+ "concurrently": false,
2789
+ "method": "btree",
2790
+ "with": {}
2791
+ }
2792
+ },
2793
+ "foreignKeys": {
2794
+ "workflow_run_contexts_execution_id_workflow_executions_id_fk": {
2795
+ "name": "workflow_run_contexts_execution_id_workflow_executions_id_fk",
2796
+ "tableFrom": "workflow_run_contexts",
2797
+ "tableTo": "workflow_executions",
2798
+ "columnsFrom": ["execution_id"],
2799
+ "columnsTo": ["id"],
2800
+ "onDelete": "cascade",
2801
+ "onUpdate": "no action"
2802
+ }
2803
+ },
2804
+ "compositePrimaryKeys": {},
2805
+ "uniqueConstraints": {},
2806
+ "policies": {},
2807
+ "checkConstraints": {},
2808
+ "isRLSEnabled": false
2809
+ },
2810
+ "public.workflow_step_spans": {
2811
+ "name": "workflow_step_spans",
2812
+ "schema": "",
2813
+ "columns": {
2814
+ "execution_id": {
2815
+ "name": "execution_id",
2816
+ "type": "text",
2817
+ "primaryKey": false,
2818
+ "notNull": true
2819
+ },
2820
+ "frame_id": {
2821
+ "name": "frame_id",
2822
+ "type": "text",
2823
+ "primaryKey": false,
2824
+ "notNull": true
2825
+ },
2826
+ "step_id": {
2827
+ "name": "step_id",
2828
+ "type": "text",
2829
+ "primaryKey": false,
2830
+ "notNull": true
2831
+ },
2832
+ "step_type": {
2833
+ "name": "step_type",
2834
+ "type": "text",
2835
+ "primaryKey": false,
2836
+ "notNull": true
2837
+ },
2838
+ "status": {
2839
+ "name": "status",
2840
+ "type": "text",
2841
+ "primaryKey": false,
2842
+ "notNull": true
2843
+ },
2844
+ "started_at": {
2845
+ "name": "started_at",
2846
+ "type": "bigint",
2847
+ "primaryKey": false,
2848
+ "notNull": false
2849
+ },
2850
+ "completed_at": {
2851
+ "name": "completed_at",
2852
+ "type": "bigint",
2853
+ "primaryKey": false,
2854
+ "notNull": false
2855
+ },
2856
+ "duration_ms": {
2857
+ "name": "duration_ms",
2858
+ "type": "integer",
2859
+ "primaryKey": false,
2860
+ "notNull": false
2861
+ },
2862
+ "input_tokens": {
2863
+ "name": "input_tokens",
2864
+ "type": "integer",
2865
+ "primaryKey": false,
2866
+ "notNull": false
2867
+ },
2868
+ "output_tokens": {
2869
+ "name": "output_tokens",
2870
+ "type": "integer",
2871
+ "primaryKey": false,
2872
+ "notNull": false
2873
+ },
2874
+ "estimated_cost": {
2875
+ "name": "estimated_cost",
2876
+ "type": "double precision",
2877
+ "primaryKey": false,
2878
+ "notNull": false
2879
+ },
2880
+ "tool_call_count": {
2881
+ "name": "tool_call_count",
2882
+ "type": "integer",
2883
+ "primaryKey": false,
2884
+ "notNull": false
2885
+ },
2886
+ "input": {
2887
+ "name": "input",
2888
+ "type": "text",
2889
+ "primaryKey": false,
2890
+ "notNull": false
2891
+ },
2892
+ "output": {
2893
+ "name": "output",
2894
+ "type": "text",
2895
+ "primaryKey": false,
2896
+ "notNull": false
2897
+ }
2898
+ },
2899
+ "indexes": {
2900
+ "idx_workflow_step_spans_status": {
2901
+ "name": "idx_workflow_step_spans_status",
2902
+ "columns": [
2903
+ {
2904
+ "expression": "status",
2905
+ "isExpression": false,
2906
+ "asc": true,
2907
+ "nulls": "last"
2908
+ }
2909
+ ],
2910
+ "isUnique": false,
2911
+ "concurrently": false,
2912
+ "method": "btree",
2913
+ "with": {}
2914
+ }
2915
+ },
2916
+ "foreignKeys": {
2917
+ "workflow_step_spans_execution_id_workflow_executions_id_fk": {
2918
+ "name": "workflow_step_spans_execution_id_workflow_executions_id_fk",
2919
+ "tableFrom": "workflow_step_spans",
2920
+ "tableTo": "workflow_executions",
2921
+ "columnsFrom": ["execution_id"],
2922
+ "columnsTo": ["id"],
2923
+ "onDelete": "cascade",
2924
+ "onUpdate": "no action"
2925
+ }
2926
+ },
2927
+ "compositePrimaryKeys": {
2928
+ "workflow_step_spans_execution_id_frame_id_pk": {
2929
+ "name": "workflow_step_spans_execution_id_frame_id_pk",
2930
+ "columns": ["execution_id", "frame_id"]
2931
+ }
2932
+ },
2933
+ "uniqueConstraints": {},
2934
+ "policies": {},
2935
+ "checkConstraints": {},
2936
+ "isRLSEnabled": false
2937
+ },
2938
+ "public.worklog_artifact_writes": {
2939
+ "name": "worklog_artifact_writes",
2940
+ "schema": "",
2941
+ "columns": {
2942
+ "id": {
2943
+ "name": "id",
2944
+ "type": "text",
2945
+ "primaryKey": true,
2946
+ "notNull": true
2947
+ },
2948
+ "execution_id": {
2949
+ "name": "execution_id",
2950
+ "type": "text",
2951
+ "primaryKey": false,
2952
+ "notNull": true
2953
+ },
2954
+ "frame_id": {
2955
+ "name": "frame_id",
2956
+ "type": "text",
2957
+ "primaryKey": false,
2958
+ "notNull": true
2959
+ },
2960
+ "node_id": {
2961
+ "name": "node_id",
2962
+ "type": "text",
2963
+ "primaryKey": false,
2964
+ "notNull": true
2965
+ },
2966
+ "artifact": {
2967
+ "name": "artifact",
2968
+ "type": "jsonb",
2969
+ "primaryKey": false,
2970
+ "notNull": true
2971
+ },
2972
+ "revision": {
2973
+ "name": "revision",
2974
+ "type": "text",
2975
+ "primaryKey": false,
2976
+ "notNull": false
2977
+ },
2978
+ "written_at": {
2979
+ "name": "written_at",
2980
+ "type": "bigint",
2981
+ "primaryKey": false,
2982
+ "notNull": true
2983
+ }
2984
+ },
2985
+ "indexes": {
2986
+ "idx_worklog_artifact_writes_execution": {
2987
+ "name": "idx_worklog_artifact_writes_execution",
2988
+ "columns": [
2989
+ {
2990
+ "expression": "execution_id",
2991
+ "isExpression": false,
2992
+ "asc": true,
2993
+ "nulls": "last"
2994
+ }
2995
+ ],
2996
+ "isUnique": false,
2997
+ "concurrently": false,
2998
+ "method": "btree",
2999
+ "with": {}
3000
+ }
3001
+ },
3002
+ "foreignKeys": {
3003
+ "worklog_artifact_writes_execution_id_workflow_executions_id_fk": {
3004
+ "name": "worklog_artifact_writes_execution_id_workflow_executions_id_fk",
3005
+ "tableFrom": "worklog_artifact_writes",
3006
+ "tableTo": "workflow_executions",
3007
+ "columnsFrom": ["execution_id"],
3008
+ "columnsTo": ["id"],
3009
+ "onDelete": "cascade",
3010
+ "onUpdate": "no action"
3011
+ }
3012
+ },
3013
+ "compositePrimaryKeys": {},
3014
+ "uniqueConstraints": {},
3015
+ "policies": {},
3016
+ "checkConstraints": {},
3017
+ "isRLSEnabled": false
3018
+ },
3019
+ "public.worklog_frame_entries": {
3020
+ "name": "worklog_frame_entries",
3021
+ "schema": "",
3022
+ "columns": {
3023
+ "frame_id": {
3024
+ "name": "frame_id",
3025
+ "type": "text",
3026
+ "primaryKey": true,
3027
+ "notNull": true
3028
+ },
3029
+ "execution_id": {
3030
+ "name": "execution_id",
3031
+ "type": "text",
3032
+ "primaryKey": false,
3033
+ "notNull": true
3034
+ },
3035
+ "node_id": {
3036
+ "name": "node_id",
3037
+ "type": "text",
3038
+ "primaryKey": false,
3039
+ "notNull": true
3040
+ },
3041
+ "node_type": {
3042
+ "name": "node_type",
3043
+ "type": "text",
3044
+ "primaryKey": false,
3045
+ "notNull": true
3046
+ },
3047
+ "path": {
3048
+ "name": "path",
3049
+ "type": "jsonb",
3050
+ "primaryKey": false,
3051
+ "notNull": true
3052
+ },
3053
+ "status": {
3054
+ "name": "status",
3055
+ "type": "text",
3056
+ "primaryKey": false,
3057
+ "notNull": true
3058
+ },
3059
+ "attempt": {
3060
+ "name": "attempt",
3061
+ "type": "integer",
3062
+ "primaryKey": false,
3063
+ "notNull": true,
3064
+ "default": 0
3065
+ },
3066
+ "iteration": {
3067
+ "name": "iteration",
3068
+ "type": "integer",
3069
+ "primaryKey": false,
3070
+ "notNull": false
3071
+ },
3072
+ "branch_key": {
3073
+ "name": "branch_key",
3074
+ "type": "text",
3075
+ "primaryKey": false,
3076
+ "notNull": false
3077
+ },
3078
+ "started_at": {
3079
+ "name": "started_at",
3080
+ "type": "bigint",
3081
+ "primaryKey": false,
3082
+ "notNull": false
3083
+ },
3084
+ "completed_at": {
3085
+ "name": "completed_at",
3086
+ "type": "bigint",
3087
+ "primaryKey": false,
3088
+ "notNull": false
3089
+ },
3090
+ "duration_ms": {
3091
+ "name": "duration_ms",
3092
+ "type": "integer",
3093
+ "primaryKey": false,
3094
+ "notNull": false
3095
+ },
3096
+ "input_tokens": {
3097
+ "name": "input_tokens",
3098
+ "type": "integer",
3099
+ "primaryKey": false,
3100
+ "notNull": false
3101
+ },
3102
+ "output_tokens": {
3103
+ "name": "output_tokens",
3104
+ "type": "integer",
3105
+ "primaryKey": false,
3106
+ "notNull": false
3107
+ },
3108
+ "estimated_cost": {
3109
+ "name": "estimated_cost",
3110
+ "type": "double precision",
3111
+ "primaryKey": false,
3112
+ "notNull": false
3113
+ },
3114
+ "error": {
3115
+ "name": "error",
3116
+ "type": "text",
3117
+ "primaryKey": false,
3118
+ "notNull": false
3119
+ }
3120
+ },
3121
+ "indexes": {
3122
+ "idx_worklog_frame_entries_execution": {
3123
+ "name": "idx_worklog_frame_entries_execution",
3124
+ "columns": [
3125
+ {
3126
+ "expression": "execution_id",
3127
+ "isExpression": false,
3128
+ "asc": true,
3129
+ "nulls": "last"
3130
+ }
3131
+ ],
3132
+ "isUnique": false,
3133
+ "concurrently": false,
3134
+ "method": "btree",
3135
+ "with": {}
3136
+ }
3137
+ },
3138
+ "foreignKeys": {
3139
+ "worklog_frame_entries_execution_id_workflow_executions_id_fk": {
3140
+ "name": "worklog_frame_entries_execution_id_workflow_executions_id_fk",
3141
+ "tableFrom": "worklog_frame_entries",
3142
+ "tableTo": "workflow_executions",
3143
+ "columnsFrom": ["execution_id"],
3144
+ "columnsTo": ["id"],
3145
+ "onDelete": "cascade",
3146
+ "onUpdate": "no action"
3147
+ }
3148
+ },
3149
+ "compositePrimaryKeys": {},
3150
+ "uniqueConstraints": {},
3151
+ "policies": {},
3152
+ "checkConstraints": {},
3153
+ "isRLSEnabled": false
3154
+ },
3155
+ "public.worklog_gate_events": {
3156
+ "name": "worklog_gate_events",
3157
+ "schema": "",
3158
+ "columns": {
3159
+ "id": {
3160
+ "name": "id",
3161
+ "type": "text",
3162
+ "primaryKey": true,
3163
+ "notNull": true
3164
+ },
3165
+ "execution_id": {
3166
+ "name": "execution_id",
3167
+ "type": "text",
3168
+ "primaryKey": false,
3169
+ "notNull": true
3170
+ },
3171
+ "node_id": {
3172
+ "name": "node_id",
3173
+ "type": "text",
3174
+ "primaryKey": false,
3175
+ "notNull": true
3176
+ },
3177
+ "frame_id": {
3178
+ "name": "frame_id",
3179
+ "type": "text",
3180
+ "primaryKey": false,
3181
+ "notNull": true
3182
+ },
3183
+ "status": {
3184
+ "name": "status",
3185
+ "type": "text",
3186
+ "primaryKey": false,
3187
+ "notNull": true
3188
+ },
3189
+ "prompt": {
3190
+ "name": "prompt",
3191
+ "type": "text",
3192
+ "primaryKey": false,
3193
+ "notNull": false
3194
+ },
3195
+ "opened_at": {
3196
+ "name": "opened_at",
3197
+ "type": "bigint",
3198
+ "primaryKey": false,
3199
+ "notNull": true
3200
+ },
3201
+ "resolved_at": {
3202
+ "name": "resolved_at",
3203
+ "type": "bigint",
3204
+ "primaryKey": false,
3205
+ "notNull": false
3206
+ },
3207
+ "resume_data": {
3208
+ "name": "resume_data",
3209
+ "type": "jsonb",
3210
+ "primaryKey": false,
3211
+ "notNull": false
3212
+ }
3213
+ },
3214
+ "indexes": {
3215
+ "idx_worklog_gate_events_execution": {
3216
+ "name": "idx_worklog_gate_events_execution",
3217
+ "columns": [
3218
+ {
3219
+ "expression": "execution_id",
3220
+ "isExpression": false,
3221
+ "asc": true,
3222
+ "nulls": "last"
3223
+ }
3224
+ ],
3225
+ "isUnique": false,
3226
+ "concurrently": false,
3227
+ "method": "btree",
3228
+ "with": {}
3229
+ },
3230
+ "idx_worklog_gate_events_status": {
3231
+ "name": "idx_worklog_gate_events_status",
3232
+ "columns": [
3233
+ {
3234
+ "expression": "status",
3235
+ "isExpression": false,
3236
+ "asc": true,
3237
+ "nulls": "last"
3238
+ }
3239
+ ],
3240
+ "isUnique": false,
3241
+ "concurrently": false,
3242
+ "method": "btree",
3243
+ "with": {}
3244
+ }
3245
+ },
3246
+ "foreignKeys": {
3247
+ "worklog_gate_events_execution_id_workflow_executions_id_fk": {
3248
+ "name": "worklog_gate_events_execution_id_workflow_executions_id_fk",
3249
+ "tableFrom": "worklog_gate_events",
3250
+ "tableTo": "workflow_executions",
3251
+ "columnsFrom": ["execution_id"],
3252
+ "columnsTo": ["id"],
3253
+ "onDelete": "cascade",
3254
+ "onUpdate": "no action"
3255
+ }
3256
+ },
3257
+ "compositePrimaryKeys": {},
3258
+ "uniqueConstraints": {},
3259
+ "policies": {},
3260
+ "checkConstraints": {},
3261
+ "isRLSEnabled": false
3262
+ },
3263
+ "public.worklog_summaries": {
3264
+ "name": "worklog_summaries",
3265
+ "schema": "",
3266
+ "columns": {
3267
+ "execution_id": {
3268
+ "name": "execution_id",
3269
+ "type": "text",
3270
+ "primaryKey": true,
3271
+ "notNull": true
3272
+ },
3273
+ "workflow_id": {
3274
+ "name": "workflow_id",
3275
+ "type": "text",
3276
+ "primaryKey": false,
3277
+ "notNull": true
3278
+ },
3279
+ "workflow_name": {
3280
+ "name": "workflow_name",
3281
+ "type": "text",
3282
+ "primaryKey": false,
3283
+ "notNull": false
3284
+ },
3285
+ "status": {
3286
+ "name": "status",
3287
+ "type": "text",
3288
+ "primaryKey": false,
3289
+ "notNull": true
3290
+ },
3291
+ "started_at": {
3292
+ "name": "started_at",
3293
+ "type": "bigint",
3294
+ "primaryKey": false,
3295
+ "notNull": true
3296
+ },
3297
+ "completed_at": {
3298
+ "name": "completed_at",
3299
+ "type": "bigint",
3300
+ "primaryKey": false,
3301
+ "notNull": false
3302
+ },
3303
+ "duration_ms": {
3304
+ "name": "duration_ms",
3305
+ "type": "integer",
3306
+ "primaryKey": false,
3307
+ "notNull": false
3308
+ },
3309
+ "total_input_tokens": {
3310
+ "name": "total_input_tokens",
3311
+ "type": "integer",
3312
+ "primaryKey": false,
3313
+ "notNull": false
3314
+ },
3315
+ "total_output_tokens": {
3316
+ "name": "total_output_tokens",
3317
+ "type": "integer",
3318
+ "primaryKey": false,
3319
+ "notNull": false
3320
+ },
3321
+ "total_estimated_cost": {
3322
+ "name": "total_estimated_cost",
3323
+ "type": "double precision",
3324
+ "primaryKey": false,
3325
+ "notNull": false
3326
+ },
3327
+ "error": {
3328
+ "name": "error",
3329
+ "type": "text",
3330
+ "primaryKey": false,
3331
+ "notNull": false
3332
+ },
3333
+ "failed_node_id": {
3334
+ "name": "failed_node_id",
3335
+ "type": "text",
3336
+ "primaryKey": false,
3337
+ "notNull": false
3338
+ }
3339
+ },
3340
+ "indexes": {
3341
+ "idx_worklog_summaries_workflow_started": {
3342
+ "name": "idx_worklog_summaries_workflow_started",
3343
+ "columns": [
3344
+ {
3345
+ "expression": "workflow_id",
3346
+ "isExpression": false,
3347
+ "asc": true,
3348
+ "nulls": "last"
3349
+ },
3350
+ {
3351
+ "expression": "started_at",
3352
+ "isExpression": false,
3353
+ "asc": true,
3354
+ "nulls": "last"
3355
+ }
3356
+ ],
3357
+ "isUnique": false,
3358
+ "concurrently": false,
3359
+ "method": "btree",
3360
+ "with": {}
3361
+ },
3362
+ "idx_worklog_summaries_status": {
3363
+ "name": "idx_worklog_summaries_status",
3364
+ "columns": [
3365
+ {
3366
+ "expression": "status",
3367
+ "isExpression": false,
3368
+ "asc": true,
3369
+ "nulls": "last"
3370
+ }
3371
+ ],
3372
+ "isUnique": false,
3373
+ "concurrently": false,
3374
+ "method": "btree",
3375
+ "with": {}
3376
+ }
3377
+ },
3378
+ "foreignKeys": {
3379
+ "worklog_summaries_execution_id_workflow_executions_id_fk": {
3380
+ "name": "worklog_summaries_execution_id_workflow_executions_id_fk",
3381
+ "tableFrom": "worklog_summaries",
3382
+ "tableTo": "workflow_executions",
3383
+ "columnsFrom": ["execution_id"],
3384
+ "columnsTo": ["id"],
3385
+ "onDelete": "cascade",
3386
+ "onUpdate": "no action"
3387
+ }
3388
+ },
3389
+ "compositePrimaryKeys": {},
3390
+ "uniqueConstraints": {},
3391
+ "policies": {},
3392
+ "checkConstraints": {},
3393
+ "isRLSEnabled": false
3394
+ }
3395
+ },
3396
+ "enums": {},
3397
+ "schemas": {},
3398
+ "sequences": {},
3399
+ "roles": {},
3400
+ "policies": {},
3401
+ "views": {},
3402
+ "_meta": {
3403
+ "columns": {},
3404
+ "schemas": {},
3405
+ "tables": {}
3406
+ }
3407
+ }