fourth-spark 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1234 @@
1
+ {
2
+ "id": "36215917-5f67-49fe-9c7d-17ecd8fb2917",
3
+ "prevId": "2e9398f3-71b1-4df1-bfec-9ecffa39fd5c",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.custom_agent_fragments": {
8
+ "name": "custom_agent_fragments",
9
+ "schema": "",
10
+ "columns": {
11
+ "custom_agent_id": {
12
+ "name": "custom_agent_id",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "fragment_id": {
18
+ "name": "fragment_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "position": {
24
+ "name": "position",
25
+ "type": "integer",
26
+ "primaryKey": false,
27
+ "notNull": true,
28
+ "default": 0
29
+ }
30
+ },
31
+ "indexes": {},
32
+ "foreignKeys": {
33
+ "custom_agent_fragments_custom_agent_id_custom_agents_id_fk": {
34
+ "name": "custom_agent_fragments_custom_agent_id_custom_agents_id_fk",
35
+ "tableFrom": "custom_agent_fragments",
36
+ "tableTo": "custom_agents",
37
+ "columnsFrom": [
38
+ "custom_agent_id"
39
+ ],
40
+ "columnsTo": [
41
+ "id"
42
+ ],
43
+ "onDelete": "cascade",
44
+ "onUpdate": "no action"
45
+ },
46
+ "custom_agent_fragments_fragment_id_prompt_fragments_id_fk": {
47
+ "name": "custom_agent_fragments_fragment_id_prompt_fragments_id_fk",
48
+ "tableFrom": "custom_agent_fragments",
49
+ "tableTo": "prompt_fragments",
50
+ "columnsFrom": [
51
+ "fragment_id"
52
+ ],
53
+ "columnsTo": [
54
+ "id"
55
+ ],
56
+ "onDelete": "cascade",
57
+ "onUpdate": "no action"
58
+ }
59
+ },
60
+ "compositePrimaryKeys": {
61
+ "custom_agent_fragments_custom_agent_id_fragment_id_pk": {
62
+ "name": "custom_agent_fragments_custom_agent_id_fragment_id_pk",
63
+ "columns": [
64
+ "custom_agent_id",
65
+ "fragment_id"
66
+ ]
67
+ }
68
+ },
69
+ "uniqueConstraints": {},
70
+ "policies": {},
71
+ "checkConstraints": {},
72
+ "isRLSEnabled": false
73
+ },
74
+ "public.custom_agents": {
75
+ "name": "custom_agents",
76
+ "schema": "",
77
+ "columns": {
78
+ "id": {
79
+ "name": "id",
80
+ "type": "text",
81
+ "primaryKey": true,
82
+ "notNull": true
83
+ },
84
+ "name": {
85
+ "name": "name",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ },
90
+ "base_agent": {
91
+ "name": "base_agent",
92
+ "type": "text",
93
+ "primaryKey": false,
94
+ "notNull": true
95
+ },
96
+ "model": {
97
+ "name": "model",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": false
101
+ },
102
+ "system_prompt": {
103
+ "name": "system_prompt",
104
+ "type": "text",
105
+ "primaryKey": false,
106
+ "notNull": true,
107
+ "default": "''"
108
+ },
109
+ "repo_id": {
110
+ "name": "repo_id",
111
+ "type": "text",
112
+ "primaryKey": false,
113
+ "notNull": false
114
+ },
115
+ "sort_order": {
116
+ "name": "sort_order",
117
+ "type": "integer",
118
+ "primaryKey": false,
119
+ "notNull": true,
120
+ "default": 0
121
+ },
122
+ "created_at": {
123
+ "name": "created_at",
124
+ "type": "bigint",
125
+ "primaryKey": false,
126
+ "notNull": true
127
+ },
128
+ "updated_at": {
129
+ "name": "updated_at",
130
+ "type": "bigint",
131
+ "primaryKey": false,
132
+ "notNull": true
133
+ }
134
+ },
135
+ "indexes": {
136
+ "custom_agents_repo_idx": {
137
+ "name": "custom_agents_repo_idx",
138
+ "columns": [
139
+ {
140
+ "expression": "repo_id",
141
+ "isExpression": false,
142
+ "asc": true,
143
+ "nulls": "last"
144
+ }
145
+ ],
146
+ "isUnique": false,
147
+ "concurrently": false,
148
+ "method": "btree",
149
+ "with": {}
150
+ }
151
+ },
152
+ "foreignKeys": {
153
+ "custom_agents_repo_id_repos_id_fk": {
154
+ "name": "custom_agents_repo_id_repos_id_fk",
155
+ "tableFrom": "custom_agents",
156
+ "tableTo": "repos",
157
+ "columnsFrom": [
158
+ "repo_id"
159
+ ],
160
+ "columnsTo": [
161
+ "id"
162
+ ],
163
+ "onDelete": "cascade",
164
+ "onUpdate": "no action"
165
+ }
166
+ },
167
+ "compositePrimaryKeys": {},
168
+ "uniqueConstraints": {},
169
+ "policies": {},
170
+ "checkConstraints": {},
171
+ "isRLSEnabled": false
172
+ },
173
+ "public.git_hosts": {
174
+ "name": "git_hosts",
175
+ "schema": "",
176
+ "columns": {
177
+ "id": {
178
+ "name": "id",
179
+ "type": "text",
180
+ "primaryKey": true,
181
+ "notNull": true
182
+ },
183
+ "host": {
184
+ "name": "host",
185
+ "type": "text",
186
+ "primaryKey": false,
187
+ "notNull": true
188
+ },
189
+ "platform": {
190
+ "name": "platform",
191
+ "type": "text",
192
+ "primaryKey": false,
193
+ "notNull": true,
194
+ "default": "'gitea'"
195
+ },
196
+ "name": {
197
+ "name": "name",
198
+ "type": "text",
199
+ "primaryKey": false,
200
+ "notNull": true
201
+ },
202
+ "token": {
203
+ "name": "token",
204
+ "type": "text",
205
+ "primaryKey": false,
206
+ "notNull": true
207
+ },
208
+ "created_at": {
209
+ "name": "created_at",
210
+ "type": "bigint",
211
+ "primaryKey": false,
212
+ "notNull": true
213
+ },
214
+ "updated_at": {
215
+ "name": "updated_at",
216
+ "type": "bigint",
217
+ "primaryKey": false,
218
+ "notNull": true
219
+ }
220
+ },
221
+ "indexes": {
222
+ "git_hosts_host_idx": {
223
+ "name": "git_hosts_host_idx",
224
+ "columns": [
225
+ {
226
+ "expression": "host",
227
+ "isExpression": false,
228
+ "asc": true,
229
+ "nulls": "last"
230
+ }
231
+ ],
232
+ "isUnique": true,
233
+ "concurrently": false,
234
+ "method": "btree",
235
+ "with": {}
236
+ }
237
+ },
238
+ "foreignKeys": {},
239
+ "compositePrimaryKeys": {},
240
+ "uniqueConstraints": {},
241
+ "policies": {},
242
+ "checkConstraints": {},
243
+ "isRLSEnabled": false
244
+ },
245
+ "public.issue_comments": {
246
+ "name": "issue_comments",
247
+ "schema": "",
248
+ "columns": {
249
+ "id": {
250
+ "name": "id",
251
+ "type": "text",
252
+ "primaryKey": true,
253
+ "notNull": true
254
+ },
255
+ "issue_id": {
256
+ "name": "issue_id",
257
+ "type": "text",
258
+ "primaryKey": false,
259
+ "notNull": true
260
+ },
261
+ "repo_id": {
262
+ "name": "repo_id",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": true
266
+ },
267
+ "author_login": {
268
+ "name": "author_login",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": true
272
+ },
273
+ "author_avatar": {
274
+ "name": "author_avatar",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": false
278
+ },
279
+ "body": {
280
+ "name": "body",
281
+ "type": "text",
282
+ "primaryKey": false,
283
+ "notNull": true
284
+ },
285
+ "created_at": {
286
+ "name": "created_at",
287
+ "type": "bigint",
288
+ "primaryKey": false,
289
+ "notNull": true
290
+ },
291
+ "updated_at": {
292
+ "name": "updated_at",
293
+ "type": "bigint",
294
+ "primaryKey": false,
295
+ "notNull": true
296
+ }
297
+ },
298
+ "indexes": {
299
+ "issue_comments_issue_idx": {
300
+ "name": "issue_comments_issue_idx",
301
+ "columns": [
302
+ {
303
+ "expression": "issue_id",
304
+ "isExpression": false,
305
+ "asc": true,
306
+ "nulls": "last"
307
+ }
308
+ ],
309
+ "isUnique": false,
310
+ "concurrently": false,
311
+ "method": "btree",
312
+ "with": {}
313
+ },
314
+ "issue_comments_repo_idx": {
315
+ "name": "issue_comments_repo_idx",
316
+ "columns": [
317
+ {
318
+ "expression": "repo_id",
319
+ "isExpression": false,
320
+ "asc": true,
321
+ "nulls": "last"
322
+ }
323
+ ],
324
+ "isUnique": false,
325
+ "concurrently": false,
326
+ "method": "btree",
327
+ "with": {}
328
+ }
329
+ },
330
+ "foreignKeys": {
331
+ "issue_comments_issue_id_issues_id_fk": {
332
+ "name": "issue_comments_issue_id_issues_id_fk",
333
+ "tableFrom": "issue_comments",
334
+ "tableTo": "issues",
335
+ "columnsFrom": [
336
+ "issue_id"
337
+ ],
338
+ "columnsTo": [
339
+ "id"
340
+ ],
341
+ "onDelete": "cascade",
342
+ "onUpdate": "no action"
343
+ },
344
+ "issue_comments_repo_id_repos_id_fk": {
345
+ "name": "issue_comments_repo_id_repos_id_fk",
346
+ "tableFrom": "issue_comments",
347
+ "tableTo": "repos",
348
+ "columnsFrom": [
349
+ "repo_id"
350
+ ],
351
+ "columnsTo": [
352
+ "id"
353
+ ],
354
+ "onDelete": "cascade",
355
+ "onUpdate": "no action"
356
+ }
357
+ },
358
+ "compositePrimaryKeys": {},
359
+ "uniqueConstraints": {},
360
+ "policies": {},
361
+ "checkConstraints": {},
362
+ "isRLSEnabled": false
363
+ },
364
+ "public.issues": {
365
+ "name": "issues",
366
+ "schema": "",
367
+ "columns": {
368
+ "id": {
369
+ "name": "id",
370
+ "type": "text",
371
+ "primaryKey": true,
372
+ "notNull": true
373
+ },
374
+ "repo_id": {
375
+ "name": "repo_id",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": true
379
+ },
380
+ "parent_id": {
381
+ "name": "parent_id",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": false
385
+ },
386
+ "number": {
387
+ "name": "number",
388
+ "type": "integer",
389
+ "primaryKey": false,
390
+ "notNull": true
391
+ },
392
+ "title": {
393
+ "name": "title",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": true
397
+ },
398
+ "body": {
399
+ "name": "body",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": false
403
+ },
404
+ "state": {
405
+ "name": "state",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "default": "'open'"
410
+ },
411
+ "labels": {
412
+ "name": "labels",
413
+ "type": "jsonb",
414
+ "primaryKey": false,
415
+ "notNull": false
416
+ },
417
+ "html_url": {
418
+ "name": "html_url",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": false
422
+ },
423
+ "created_at": {
424
+ "name": "created_at",
425
+ "type": "bigint",
426
+ "primaryKey": false,
427
+ "notNull": true
428
+ },
429
+ "updated_at": {
430
+ "name": "updated_at",
431
+ "type": "bigint",
432
+ "primaryKey": false,
433
+ "notNull": true
434
+ }
435
+ },
436
+ "indexes": {
437
+ "issues_repo_number_idx": {
438
+ "name": "issues_repo_number_idx",
439
+ "columns": [
440
+ {
441
+ "expression": "repo_id",
442
+ "isExpression": false,
443
+ "asc": true,
444
+ "nulls": "last"
445
+ },
446
+ {
447
+ "expression": "number",
448
+ "isExpression": false,
449
+ "asc": true,
450
+ "nulls": "last"
451
+ }
452
+ ],
453
+ "isUnique": true,
454
+ "concurrently": false,
455
+ "method": "btree",
456
+ "with": {}
457
+ },
458
+ "issues_repo_state_idx": {
459
+ "name": "issues_repo_state_idx",
460
+ "columns": [
461
+ {
462
+ "expression": "repo_id",
463
+ "isExpression": false,
464
+ "asc": true,
465
+ "nulls": "last"
466
+ },
467
+ {
468
+ "expression": "state",
469
+ "isExpression": false,
470
+ "asc": true,
471
+ "nulls": "last"
472
+ }
473
+ ],
474
+ "isUnique": false,
475
+ "concurrently": false,
476
+ "method": "btree",
477
+ "with": {}
478
+ },
479
+ "issues_parent_idx": {
480
+ "name": "issues_parent_idx",
481
+ "columns": [
482
+ {
483
+ "expression": "parent_id",
484
+ "isExpression": false,
485
+ "asc": true,
486
+ "nulls": "last"
487
+ }
488
+ ],
489
+ "isUnique": false,
490
+ "concurrently": false,
491
+ "method": "btree",
492
+ "with": {}
493
+ }
494
+ },
495
+ "foreignKeys": {
496
+ "issues_repo_id_repos_id_fk": {
497
+ "name": "issues_repo_id_repos_id_fk",
498
+ "tableFrom": "issues",
499
+ "tableTo": "repos",
500
+ "columnsFrom": [
501
+ "repo_id"
502
+ ],
503
+ "columnsTo": [
504
+ "id"
505
+ ],
506
+ "onDelete": "cascade",
507
+ "onUpdate": "no action"
508
+ }
509
+ },
510
+ "compositePrimaryKeys": {},
511
+ "uniqueConstraints": {},
512
+ "policies": {},
513
+ "checkConstraints": {},
514
+ "isRLSEnabled": false
515
+ },
516
+ "public.messages": {
517
+ "name": "messages",
518
+ "schema": "",
519
+ "columns": {
520
+ "id": {
521
+ "name": "id",
522
+ "type": "text",
523
+ "primaryKey": true,
524
+ "notNull": true
525
+ },
526
+ "session_id": {
527
+ "name": "session_id",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true
531
+ },
532
+ "role": {
533
+ "name": "role",
534
+ "type": "text",
535
+ "primaryKey": false,
536
+ "notNull": true
537
+ },
538
+ "agent": {
539
+ "name": "agent",
540
+ "type": "text",
541
+ "primaryKey": false,
542
+ "notNull": false
543
+ },
544
+ "model": {
545
+ "name": "model",
546
+ "type": "text",
547
+ "primaryKey": false,
548
+ "notNull": false
549
+ },
550
+ "provider": {
551
+ "name": "provider",
552
+ "type": "text",
553
+ "primaryKey": false,
554
+ "notNull": false
555
+ },
556
+ "variant": {
557
+ "name": "variant",
558
+ "type": "text",
559
+ "primaryKey": false,
560
+ "notNull": false
561
+ },
562
+ "cost": {
563
+ "name": "cost",
564
+ "type": "real",
565
+ "primaryKey": false,
566
+ "notNull": false
567
+ },
568
+ "time_created": {
569
+ "name": "time_created",
570
+ "type": "bigint",
571
+ "primaryKey": false,
572
+ "notNull": true
573
+ },
574
+ "time_updated": {
575
+ "name": "time_updated",
576
+ "type": "bigint",
577
+ "primaryKey": false,
578
+ "notNull": true
579
+ }
580
+ },
581
+ "indexes": {
582
+ "messages_session_idx": {
583
+ "name": "messages_session_idx",
584
+ "columns": [
585
+ {
586
+ "expression": "session_id",
587
+ "isExpression": false,
588
+ "asc": true,
589
+ "nulls": "last"
590
+ },
591
+ {
592
+ "expression": "time_created",
593
+ "isExpression": false,
594
+ "asc": true,
595
+ "nulls": "last"
596
+ }
597
+ ],
598
+ "isUnique": false,
599
+ "concurrently": false,
600
+ "method": "btree",
601
+ "with": {}
602
+ }
603
+ },
604
+ "foreignKeys": {
605
+ "messages_session_id_sessions_id_fk": {
606
+ "name": "messages_session_id_sessions_id_fk",
607
+ "tableFrom": "messages",
608
+ "tableTo": "sessions",
609
+ "columnsFrom": [
610
+ "session_id"
611
+ ],
612
+ "columnsTo": [
613
+ "id"
614
+ ],
615
+ "onDelete": "cascade",
616
+ "onUpdate": "no action"
617
+ }
618
+ },
619
+ "compositePrimaryKeys": {},
620
+ "uniqueConstraints": {},
621
+ "policies": {},
622
+ "checkConstraints": {},
623
+ "isRLSEnabled": false
624
+ },
625
+ "public.parts": {
626
+ "name": "parts",
627
+ "schema": "",
628
+ "columns": {
629
+ "id": {
630
+ "name": "id",
631
+ "type": "text",
632
+ "primaryKey": true,
633
+ "notNull": true
634
+ },
635
+ "message_id": {
636
+ "name": "message_id",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ },
641
+ "session_id": {
642
+ "name": "session_id",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true
646
+ },
647
+ "type": {
648
+ "name": "type",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": true
652
+ },
653
+ "data": {
654
+ "name": "data",
655
+ "type": "jsonb",
656
+ "primaryKey": false,
657
+ "notNull": true
658
+ },
659
+ "time_created": {
660
+ "name": "time_created",
661
+ "type": "bigint",
662
+ "primaryKey": false,
663
+ "notNull": true
664
+ },
665
+ "time_updated": {
666
+ "name": "time_updated",
667
+ "type": "bigint",
668
+ "primaryKey": false,
669
+ "notNull": true
670
+ }
671
+ },
672
+ "indexes": {
673
+ "parts_message_idx": {
674
+ "name": "parts_message_idx",
675
+ "columns": [
676
+ {
677
+ "expression": "message_id",
678
+ "isExpression": false,
679
+ "asc": true,
680
+ "nulls": "last"
681
+ }
682
+ ],
683
+ "isUnique": false,
684
+ "concurrently": false,
685
+ "method": "btree",
686
+ "with": {}
687
+ },
688
+ "parts_session_idx": {
689
+ "name": "parts_session_idx",
690
+ "columns": [
691
+ {
692
+ "expression": "session_id",
693
+ "isExpression": false,
694
+ "asc": true,
695
+ "nulls": "last"
696
+ }
697
+ ],
698
+ "isUnique": false,
699
+ "concurrently": false,
700
+ "method": "btree",
701
+ "with": {}
702
+ }
703
+ },
704
+ "foreignKeys": {
705
+ "parts_message_id_messages_id_fk": {
706
+ "name": "parts_message_id_messages_id_fk",
707
+ "tableFrom": "parts",
708
+ "tableTo": "messages",
709
+ "columnsFrom": [
710
+ "message_id"
711
+ ],
712
+ "columnsTo": [
713
+ "id"
714
+ ],
715
+ "onDelete": "cascade",
716
+ "onUpdate": "no action"
717
+ },
718
+ "parts_session_id_sessions_id_fk": {
719
+ "name": "parts_session_id_sessions_id_fk",
720
+ "tableFrom": "parts",
721
+ "tableTo": "sessions",
722
+ "columnsFrom": [
723
+ "session_id"
724
+ ],
725
+ "columnsTo": [
726
+ "id"
727
+ ],
728
+ "onDelete": "cascade",
729
+ "onUpdate": "no action"
730
+ }
731
+ },
732
+ "compositePrimaryKeys": {},
733
+ "uniqueConstraints": {},
734
+ "policies": {},
735
+ "checkConstraints": {},
736
+ "isRLSEnabled": false
737
+ },
738
+ "public.prompt_fragments": {
739
+ "name": "prompt_fragments",
740
+ "schema": "",
741
+ "columns": {
742
+ "id": {
743
+ "name": "id",
744
+ "type": "text",
745
+ "primaryKey": true,
746
+ "notNull": true
747
+ },
748
+ "name": {
749
+ "name": "name",
750
+ "type": "text",
751
+ "primaryKey": false,
752
+ "notNull": true
753
+ },
754
+ "content": {
755
+ "name": "content",
756
+ "type": "text",
757
+ "primaryKey": false,
758
+ "notNull": true,
759
+ "default": "''"
760
+ },
761
+ "repo_id": {
762
+ "name": "repo_id",
763
+ "type": "text",
764
+ "primaryKey": false,
765
+ "notNull": false
766
+ },
767
+ "sort_order": {
768
+ "name": "sort_order",
769
+ "type": "integer",
770
+ "primaryKey": false,
771
+ "notNull": true,
772
+ "default": 0
773
+ },
774
+ "created_at": {
775
+ "name": "created_at",
776
+ "type": "bigint",
777
+ "primaryKey": false,
778
+ "notNull": true
779
+ },
780
+ "updated_at": {
781
+ "name": "updated_at",
782
+ "type": "bigint",
783
+ "primaryKey": false,
784
+ "notNull": true
785
+ }
786
+ },
787
+ "indexes": {
788
+ "prompt_fragments_repo_idx": {
789
+ "name": "prompt_fragments_repo_idx",
790
+ "columns": [
791
+ {
792
+ "expression": "repo_id",
793
+ "isExpression": false,
794
+ "asc": true,
795
+ "nulls": "last"
796
+ }
797
+ ],
798
+ "isUnique": false,
799
+ "concurrently": false,
800
+ "method": "btree",
801
+ "with": {}
802
+ }
803
+ },
804
+ "foreignKeys": {
805
+ "prompt_fragments_repo_id_repos_id_fk": {
806
+ "name": "prompt_fragments_repo_id_repos_id_fk",
807
+ "tableFrom": "prompt_fragments",
808
+ "tableTo": "repos",
809
+ "columnsFrom": [
810
+ "repo_id"
811
+ ],
812
+ "columnsTo": [
813
+ "id"
814
+ ],
815
+ "onDelete": "cascade",
816
+ "onUpdate": "no action"
817
+ }
818
+ },
819
+ "compositePrimaryKeys": {},
820
+ "uniqueConstraints": {},
821
+ "policies": {},
822
+ "checkConstraints": {},
823
+ "isRLSEnabled": false
824
+ },
825
+ "public.repos": {
826
+ "name": "repos",
827
+ "schema": "",
828
+ "columns": {
829
+ "id": {
830
+ "name": "id",
831
+ "type": "text",
832
+ "primaryKey": true,
833
+ "notNull": true
834
+ },
835
+ "name": {
836
+ "name": "name",
837
+ "type": "text",
838
+ "primaryKey": false,
839
+ "notNull": true
840
+ },
841
+ "git_url": {
842
+ "name": "git_url",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": true
846
+ },
847
+ "local_path": {
848
+ "name": "local_path",
849
+ "type": "text",
850
+ "primaryKey": false,
851
+ "notNull": true
852
+ },
853
+ "port": {
854
+ "name": "port",
855
+ "type": "integer",
856
+ "primaryKey": false,
857
+ "notNull": false
858
+ },
859
+ "status": {
860
+ "name": "status",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": true,
864
+ "default": "'inactive'"
865
+ },
866
+ "created_at": {
867
+ "name": "created_at",
868
+ "type": "bigint",
869
+ "primaryKey": false,
870
+ "notNull": true
871
+ },
872
+ "updated_at": {
873
+ "name": "updated_at",
874
+ "type": "bigint",
875
+ "primaryKey": false,
876
+ "notNull": true
877
+ }
878
+ },
879
+ "indexes": {
880
+ "repos_local_path_idx": {
881
+ "name": "repos_local_path_idx",
882
+ "columns": [
883
+ {
884
+ "expression": "local_path",
885
+ "isExpression": false,
886
+ "asc": true,
887
+ "nulls": "last"
888
+ }
889
+ ],
890
+ "isUnique": true,
891
+ "concurrently": false,
892
+ "method": "btree",
893
+ "with": {}
894
+ }
895
+ },
896
+ "foreignKeys": {},
897
+ "compositePrimaryKeys": {},
898
+ "uniqueConstraints": {},
899
+ "policies": {},
900
+ "checkConstraints": {},
901
+ "isRLSEnabled": false
902
+ },
903
+ "public.sessions": {
904
+ "name": "sessions",
905
+ "schema": "",
906
+ "columns": {
907
+ "id": {
908
+ "name": "id",
909
+ "type": "text",
910
+ "primaryKey": true,
911
+ "notNull": true
912
+ },
913
+ "parent_id": {
914
+ "name": "parent_id",
915
+ "type": "text",
916
+ "primaryKey": false,
917
+ "notNull": false
918
+ },
919
+ "issue_id": {
920
+ "name": "issue_id",
921
+ "type": "text",
922
+ "primaryKey": false,
923
+ "notNull": false
924
+ },
925
+ "custom_agent_id": {
926
+ "name": "custom_agent_id",
927
+ "type": "text",
928
+ "primaryKey": false,
929
+ "notNull": false
930
+ },
931
+ "title": {
932
+ "name": "title",
933
+ "type": "text",
934
+ "primaryKey": false,
935
+ "notNull": true,
936
+ "default": "''"
937
+ },
938
+ "agent": {
939
+ "name": "agent",
940
+ "type": "text",
941
+ "primaryKey": false,
942
+ "notNull": false
943
+ },
944
+ "model": {
945
+ "name": "model",
946
+ "type": "jsonb",
947
+ "primaryKey": false,
948
+ "notNull": false
949
+ },
950
+ "directory": {
951
+ "name": "directory",
952
+ "type": "text",
953
+ "primaryKey": false,
954
+ "notNull": false
955
+ },
956
+ "cost": {
957
+ "name": "cost",
958
+ "type": "real",
959
+ "primaryKey": false,
960
+ "notNull": true,
961
+ "default": 0
962
+ },
963
+ "tokens_input": {
964
+ "name": "tokens_input",
965
+ "type": "bigint",
966
+ "primaryKey": false,
967
+ "notNull": true,
968
+ "default": 0
969
+ },
970
+ "tokens_output": {
971
+ "name": "tokens_output",
972
+ "type": "bigint",
973
+ "primaryKey": false,
974
+ "notNull": true,
975
+ "default": 0
976
+ },
977
+ "tokens_reasoning": {
978
+ "name": "tokens_reasoning",
979
+ "type": "bigint",
980
+ "primaryKey": false,
981
+ "notNull": true,
982
+ "default": 0
983
+ },
984
+ "tokens_cache_read": {
985
+ "name": "tokens_cache_read",
986
+ "type": "bigint",
987
+ "primaryKey": false,
988
+ "notNull": true,
989
+ "default": 0
990
+ },
991
+ "tokens_cache_write": {
992
+ "name": "tokens_cache_write",
993
+ "type": "bigint",
994
+ "primaryKey": false,
995
+ "notNull": true,
996
+ "default": 0
997
+ },
998
+ "user_id": {
999
+ "name": "user_id",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": false
1003
+ },
1004
+ "time_created": {
1005
+ "name": "time_created",
1006
+ "type": "bigint",
1007
+ "primaryKey": false,
1008
+ "notNull": true
1009
+ },
1010
+ "time_updated": {
1011
+ "name": "time_updated",
1012
+ "type": "bigint",
1013
+ "primaryKey": false,
1014
+ "notNull": true
1015
+ }
1016
+ },
1017
+ "indexes": {
1018
+ "sessions_user_idx": {
1019
+ "name": "sessions_user_idx",
1020
+ "columns": [
1021
+ {
1022
+ "expression": "user_id",
1023
+ "isExpression": false,
1024
+ "asc": true,
1025
+ "nulls": "last"
1026
+ }
1027
+ ],
1028
+ "isUnique": false,
1029
+ "concurrently": false,
1030
+ "method": "btree",
1031
+ "with": {}
1032
+ },
1033
+ "sessions_time_created_idx": {
1034
+ "name": "sessions_time_created_idx",
1035
+ "columns": [
1036
+ {
1037
+ "expression": "time_created",
1038
+ "isExpression": false,
1039
+ "asc": true,
1040
+ "nulls": "last"
1041
+ }
1042
+ ],
1043
+ "isUnique": false,
1044
+ "concurrently": false,
1045
+ "method": "btree",
1046
+ "with": {}
1047
+ },
1048
+ "sessions_issue_idx": {
1049
+ "name": "sessions_issue_idx",
1050
+ "columns": [
1051
+ {
1052
+ "expression": "issue_id",
1053
+ "isExpression": false,
1054
+ "asc": true,
1055
+ "nulls": "last"
1056
+ }
1057
+ ],
1058
+ "isUnique": false,
1059
+ "concurrently": false,
1060
+ "method": "btree",
1061
+ "with": {}
1062
+ },
1063
+ "sessions_custom_agent_idx": {
1064
+ "name": "sessions_custom_agent_idx",
1065
+ "columns": [
1066
+ {
1067
+ "expression": "custom_agent_id",
1068
+ "isExpression": false,
1069
+ "asc": true,
1070
+ "nulls": "last"
1071
+ }
1072
+ ],
1073
+ "isUnique": false,
1074
+ "concurrently": false,
1075
+ "method": "btree",
1076
+ "with": {}
1077
+ }
1078
+ },
1079
+ "foreignKeys": {
1080
+ "sessions_issue_id_issues_id_fk": {
1081
+ "name": "sessions_issue_id_issues_id_fk",
1082
+ "tableFrom": "sessions",
1083
+ "tableTo": "issues",
1084
+ "columnsFrom": [
1085
+ "issue_id"
1086
+ ],
1087
+ "columnsTo": [
1088
+ "id"
1089
+ ],
1090
+ "onDelete": "set null",
1091
+ "onUpdate": "no action"
1092
+ },
1093
+ "sessions_custom_agent_id_custom_agents_id_fk": {
1094
+ "name": "sessions_custom_agent_id_custom_agents_id_fk",
1095
+ "tableFrom": "sessions",
1096
+ "tableTo": "custom_agents",
1097
+ "columnsFrom": [
1098
+ "custom_agent_id"
1099
+ ],
1100
+ "columnsTo": [
1101
+ "id"
1102
+ ],
1103
+ "onDelete": "set null",
1104
+ "onUpdate": "no action"
1105
+ }
1106
+ },
1107
+ "compositePrimaryKeys": {},
1108
+ "uniqueConstraints": {},
1109
+ "policies": {},
1110
+ "checkConstraints": {},
1111
+ "isRLSEnabled": false
1112
+ },
1113
+ "public.settings": {
1114
+ "name": "settings",
1115
+ "schema": "",
1116
+ "columns": {
1117
+ "key": {
1118
+ "name": "key",
1119
+ "type": "text",
1120
+ "primaryKey": true,
1121
+ "notNull": true
1122
+ },
1123
+ "value": {
1124
+ "name": "value",
1125
+ "type": "text",
1126
+ "primaryKey": false,
1127
+ "notNull": true
1128
+ },
1129
+ "updated_at": {
1130
+ "name": "updated_at",
1131
+ "type": "bigint",
1132
+ "primaryKey": false,
1133
+ "notNull": true
1134
+ }
1135
+ },
1136
+ "indexes": {},
1137
+ "foreignKeys": {},
1138
+ "compositePrimaryKeys": {},
1139
+ "uniqueConstraints": {},
1140
+ "policies": {},
1141
+ "checkConstraints": {},
1142
+ "isRLSEnabled": false
1143
+ },
1144
+ "public.todos": {
1145
+ "name": "todos",
1146
+ "schema": "",
1147
+ "columns": {
1148
+ "session_id": {
1149
+ "name": "session_id",
1150
+ "type": "text",
1151
+ "primaryKey": false,
1152
+ "notNull": true
1153
+ },
1154
+ "position": {
1155
+ "name": "position",
1156
+ "type": "integer",
1157
+ "primaryKey": false,
1158
+ "notNull": true
1159
+ },
1160
+ "content": {
1161
+ "name": "content",
1162
+ "type": "text",
1163
+ "primaryKey": false,
1164
+ "notNull": true
1165
+ },
1166
+ "status": {
1167
+ "name": "status",
1168
+ "type": "text",
1169
+ "primaryKey": false,
1170
+ "notNull": true
1171
+ },
1172
+ "priority": {
1173
+ "name": "priority",
1174
+ "type": "text",
1175
+ "primaryKey": false,
1176
+ "notNull": true,
1177
+ "default": "'medium'"
1178
+ },
1179
+ "time_created": {
1180
+ "name": "time_created",
1181
+ "type": "bigint",
1182
+ "primaryKey": false,
1183
+ "notNull": true
1184
+ },
1185
+ "time_updated": {
1186
+ "name": "time_updated",
1187
+ "type": "bigint",
1188
+ "primaryKey": false,
1189
+ "notNull": true
1190
+ }
1191
+ },
1192
+ "indexes": {},
1193
+ "foreignKeys": {
1194
+ "todos_session_id_sessions_id_fk": {
1195
+ "name": "todos_session_id_sessions_id_fk",
1196
+ "tableFrom": "todos",
1197
+ "tableTo": "sessions",
1198
+ "columnsFrom": [
1199
+ "session_id"
1200
+ ],
1201
+ "columnsTo": [
1202
+ "id"
1203
+ ],
1204
+ "onDelete": "cascade",
1205
+ "onUpdate": "no action"
1206
+ }
1207
+ },
1208
+ "compositePrimaryKeys": {
1209
+ "todos_session_id_position_pk": {
1210
+ "name": "todos_session_id_position_pk",
1211
+ "columns": [
1212
+ "session_id",
1213
+ "position"
1214
+ ]
1215
+ }
1216
+ },
1217
+ "uniqueConstraints": {},
1218
+ "policies": {},
1219
+ "checkConstraints": {},
1220
+ "isRLSEnabled": false
1221
+ }
1222
+ },
1223
+ "enums": {},
1224
+ "schemas": {},
1225
+ "sequences": {},
1226
+ "roles": {},
1227
+ "policies": {},
1228
+ "views": {},
1229
+ "_meta": {
1230
+ "columns": {},
1231
+ "schemas": {},
1232
+ "tables": {}
1233
+ }
1234
+ }