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,1645 @@
1
+ {
2
+ "id": "2ae43645-5374-4385-817c-328c401093a1",
3
+ "prevId": "36215917-5f67-49fe-9c7d-17ecd8fb2917",
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
+ "system_prompt_position": {
110
+ "name": "system_prompt_position",
111
+ "type": "integer",
112
+ "primaryKey": false,
113
+ "notNull": true,
114
+ "default": -1
115
+ },
116
+ "repo_id": {
117
+ "name": "repo_id",
118
+ "type": "text",
119
+ "primaryKey": false,
120
+ "notNull": false
121
+ },
122
+ "sort_order": {
123
+ "name": "sort_order",
124
+ "type": "integer",
125
+ "primaryKey": false,
126
+ "notNull": true,
127
+ "default": 0
128
+ },
129
+ "created_at": {
130
+ "name": "created_at",
131
+ "type": "bigint",
132
+ "primaryKey": false,
133
+ "notNull": true
134
+ },
135
+ "updated_at": {
136
+ "name": "updated_at",
137
+ "type": "bigint",
138
+ "primaryKey": false,
139
+ "notNull": true
140
+ }
141
+ },
142
+ "indexes": {
143
+ "custom_agents_repo_idx": {
144
+ "name": "custom_agents_repo_idx",
145
+ "columns": [
146
+ {
147
+ "expression": "repo_id",
148
+ "isExpression": false,
149
+ "asc": true,
150
+ "nulls": "last"
151
+ }
152
+ ],
153
+ "isUnique": false,
154
+ "concurrently": false,
155
+ "method": "btree",
156
+ "with": {}
157
+ }
158
+ },
159
+ "foreignKeys": {
160
+ "custom_agents_repo_id_repos_id_fk": {
161
+ "name": "custom_agents_repo_id_repos_id_fk",
162
+ "tableFrom": "custom_agents",
163
+ "tableTo": "repos",
164
+ "columnsFrom": [
165
+ "repo_id"
166
+ ],
167
+ "columnsTo": [
168
+ "id"
169
+ ],
170
+ "onDelete": "cascade",
171
+ "onUpdate": "no action"
172
+ }
173
+ },
174
+ "compositePrimaryKeys": {},
175
+ "uniqueConstraints": {},
176
+ "policies": {},
177
+ "checkConstraints": {},
178
+ "isRLSEnabled": false
179
+ },
180
+ "public.device_tokens": {
181
+ "name": "device_tokens",
182
+ "schema": "",
183
+ "columns": {
184
+ "id": {
185
+ "name": "id",
186
+ "type": "text",
187
+ "primaryKey": true,
188
+ "notNull": true
189
+ },
190
+ "token": {
191
+ "name": "token",
192
+ "type": "text",
193
+ "primaryKey": false,
194
+ "notNull": true
195
+ },
196
+ "platform": {
197
+ "name": "platform",
198
+ "type": "text",
199
+ "primaryKey": false,
200
+ "notNull": true,
201
+ "default": "'ios'"
202
+ },
203
+ "created_at": {
204
+ "name": "created_at",
205
+ "type": "bigint",
206
+ "primaryKey": false,
207
+ "notNull": true
208
+ },
209
+ "updated_at": {
210
+ "name": "updated_at",
211
+ "type": "bigint",
212
+ "primaryKey": false,
213
+ "notNull": true
214
+ }
215
+ },
216
+ "indexes": {
217
+ "device_tokens_token_idx": {
218
+ "name": "device_tokens_token_idx",
219
+ "columns": [
220
+ {
221
+ "expression": "token",
222
+ "isExpression": false,
223
+ "asc": true,
224
+ "nulls": "last"
225
+ }
226
+ ],
227
+ "isUnique": true,
228
+ "concurrently": false,
229
+ "method": "btree",
230
+ "with": {}
231
+ }
232
+ },
233
+ "foreignKeys": {},
234
+ "compositePrimaryKeys": {},
235
+ "uniqueConstraints": {},
236
+ "policies": {},
237
+ "checkConstraints": {},
238
+ "isRLSEnabled": false
239
+ },
240
+ "public.git_hosts": {
241
+ "name": "git_hosts",
242
+ "schema": "",
243
+ "columns": {
244
+ "id": {
245
+ "name": "id",
246
+ "type": "text",
247
+ "primaryKey": true,
248
+ "notNull": true
249
+ },
250
+ "host": {
251
+ "name": "host",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": true
255
+ },
256
+ "platform": {
257
+ "name": "platform",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true,
261
+ "default": "'gitea'"
262
+ },
263
+ "name": {
264
+ "name": "name",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": true
268
+ },
269
+ "token": {
270
+ "name": "token",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": true
274
+ },
275
+ "created_at": {
276
+ "name": "created_at",
277
+ "type": "bigint",
278
+ "primaryKey": false,
279
+ "notNull": true
280
+ },
281
+ "updated_at": {
282
+ "name": "updated_at",
283
+ "type": "bigint",
284
+ "primaryKey": false,
285
+ "notNull": true
286
+ }
287
+ },
288
+ "indexes": {
289
+ "git_hosts_host_idx": {
290
+ "name": "git_hosts_host_idx",
291
+ "columns": [
292
+ {
293
+ "expression": "host",
294
+ "isExpression": false,
295
+ "asc": true,
296
+ "nulls": "last"
297
+ }
298
+ ],
299
+ "isUnique": true,
300
+ "concurrently": false,
301
+ "method": "btree",
302
+ "with": {}
303
+ }
304
+ },
305
+ "foreignKeys": {},
306
+ "compositePrimaryKeys": {},
307
+ "uniqueConstraints": {},
308
+ "policies": {},
309
+ "checkConstraints": {},
310
+ "isRLSEnabled": false
311
+ },
312
+ "public.issue_comments": {
313
+ "name": "issue_comments",
314
+ "schema": "",
315
+ "columns": {
316
+ "id": {
317
+ "name": "id",
318
+ "type": "text",
319
+ "primaryKey": true,
320
+ "notNull": true
321
+ },
322
+ "issue_id": {
323
+ "name": "issue_id",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": true
327
+ },
328
+ "repo_id": {
329
+ "name": "repo_id",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": true
333
+ },
334
+ "author_login": {
335
+ "name": "author_login",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": true
339
+ },
340
+ "author_avatar": {
341
+ "name": "author_avatar",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": false
345
+ },
346
+ "body": {
347
+ "name": "body",
348
+ "type": "text",
349
+ "primaryKey": false,
350
+ "notNull": true
351
+ },
352
+ "created_at": {
353
+ "name": "created_at",
354
+ "type": "bigint",
355
+ "primaryKey": false,
356
+ "notNull": true
357
+ },
358
+ "updated_at": {
359
+ "name": "updated_at",
360
+ "type": "bigint",
361
+ "primaryKey": false,
362
+ "notNull": true
363
+ }
364
+ },
365
+ "indexes": {
366
+ "issue_comments_issue_idx": {
367
+ "name": "issue_comments_issue_idx",
368
+ "columns": [
369
+ {
370
+ "expression": "issue_id",
371
+ "isExpression": false,
372
+ "asc": true,
373
+ "nulls": "last"
374
+ }
375
+ ],
376
+ "isUnique": false,
377
+ "concurrently": false,
378
+ "method": "btree",
379
+ "with": {}
380
+ },
381
+ "issue_comments_repo_idx": {
382
+ "name": "issue_comments_repo_idx",
383
+ "columns": [
384
+ {
385
+ "expression": "repo_id",
386
+ "isExpression": false,
387
+ "asc": true,
388
+ "nulls": "last"
389
+ }
390
+ ],
391
+ "isUnique": false,
392
+ "concurrently": false,
393
+ "method": "btree",
394
+ "with": {}
395
+ }
396
+ },
397
+ "foreignKeys": {
398
+ "issue_comments_issue_id_issues_id_fk": {
399
+ "name": "issue_comments_issue_id_issues_id_fk",
400
+ "tableFrom": "issue_comments",
401
+ "tableTo": "issues",
402
+ "columnsFrom": [
403
+ "issue_id"
404
+ ],
405
+ "columnsTo": [
406
+ "id"
407
+ ],
408
+ "onDelete": "cascade",
409
+ "onUpdate": "no action"
410
+ },
411
+ "issue_comments_repo_id_repos_id_fk": {
412
+ "name": "issue_comments_repo_id_repos_id_fk",
413
+ "tableFrom": "issue_comments",
414
+ "tableTo": "repos",
415
+ "columnsFrom": [
416
+ "repo_id"
417
+ ],
418
+ "columnsTo": [
419
+ "id"
420
+ ],
421
+ "onDelete": "cascade",
422
+ "onUpdate": "no action"
423
+ }
424
+ },
425
+ "compositePrimaryKeys": {},
426
+ "uniqueConstraints": {},
427
+ "policies": {},
428
+ "checkConstraints": {},
429
+ "isRLSEnabled": false
430
+ },
431
+ "public.issue_tags": {
432
+ "name": "issue_tags",
433
+ "schema": "",
434
+ "columns": {
435
+ "issue_id": {
436
+ "name": "issue_id",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": true
440
+ },
441
+ "tag_id": {
442
+ "name": "tag_id",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": true
446
+ }
447
+ },
448
+ "indexes": {
449
+ "issue_tags_tag_idx": {
450
+ "name": "issue_tags_tag_idx",
451
+ "columns": [
452
+ {
453
+ "expression": "tag_id",
454
+ "isExpression": false,
455
+ "asc": true,
456
+ "nulls": "last"
457
+ }
458
+ ],
459
+ "isUnique": false,
460
+ "concurrently": false,
461
+ "method": "btree",
462
+ "with": {}
463
+ }
464
+ },
465
+ "foreignKeys": {
466
+ "issue_tags_issue_id_issues_id_fk": {
467
+ "name": "issue_tags_issue_id_issues_id_fk",
468
+ "tableFrom": "issue_tags",
469
+ "tableTo": "issues",
470
+ "columnsFrom": [
471
+ "issue_id"
472
+ ],
473
+ "columnsTo": [
474
+ "id"
475
+ ],
476
+ "onDelete": "cascade",
477
+ "onUpdate": "no action"
478
+ },
479
+ "issue_tags_tag_id_tags_id_fk": {
480
+ "name": "issue_tags_tag_id_tags_id_fk",
481
+ "tableFrom": "issue_tags",
482
+ "tableTo": "tags",
483
+ "columnsFrom": [
484
+ "tag_id"
485
+ ],
486
+ "columnsTo": [
487
+ "id"
488
+ ],
489
+ "onDelete": "cascade",
490
+ "onUpdate": "no action"
491
+ }
492
+ },
493
+ "compositePrimaryKeys": {
494
+ "issue_tags_issue_id_tag_id_pk": {
495
+ "name": "issue_tags_issue_id_tag_id_pk",
496
+ "columns": [
497
+ "issue_id",
498
+ "tag_id"
499
+ ]
500
+ }
501
+ },
502
+ "uniqueConstraints": {},
503
+ "policies": {},
504
+ "checkConstraints": {},
505
+ "isRLSEnabled": false
506
+ },
507
+ "public.issues": {
508
+ "name": "issues",
509
+ "schema": "",
510
+ "columns": {
511
+ "id": {
512
+ "name": "id",
513
+ "type": "text",
514
+ "primaryKey": true,
515
+ "notNull": true
516
+ },
517
+ "repo_id": {
518
+ "name": "repo_id",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": true
522
+ },
523
+ "parent_id": {
524
+ "name": "parent_id",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": false
528
+ },
529
+ "number": {
530
+ "name": "number",
531
+ "type": "integer",
532
+ "primaryKey": false,
533
+ "notNull": true
534
+ },
535
+ "title": {
536
+ "name": "title",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true
540
+ },
541
+ "body": {
542
+ "name": "body",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": false
546
+ },
547
+ "state": {
548
+ "name": "state",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": true,
552
+ "default": "'open'"
553
+ },
554
+ "labels": {
555
+ "name": "labels",
556
+ "type": "jsonb",
557
+ "primaryKey": false,
558
+ "notNull": false
559
+ },
560
+ "milestone_id": {
561
+ "name": "milestone_id",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": false
565
+ },
566
+ "html_url": {
567
+ "name": "html_url",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": false
571
+ },
572
+ "created_at": {
573
+ "name": "created_at",
574
+ "type": "bigint",
575
+ "primaryKey": false,
576
+ "notNull": true
577
+ },
578
+ "updated_at": {
579
+ "name": "updated_at",
580
+ "type": "bigint",
581
+ "primaryKey": false,
582
+ "notNull": true
583
+ }
584
+ },
585
+ "indexes": {
586
+ "issues_repo_number_idx": {
587
+ "name": "issues_repo_number_idx",
588
+ "columns": [
589
+ {
590
+ "expression": "repo_id",
591
+ "isExpression": false,
592
+ "asc": true,
593
+ "nulls": "last"
594
+ },
595
+ {
596
+ "expression": "number",
597
+ "isExpression": false,
598
+ "asc": true,
599
+ "nulls": "last"
600
+ }
601
+ ],
602
+ "isUnique": true,
603
+ "concurrently": false,
604
+ "method": "btree",
605
+ "with": {}
606
+ },
607
+ "issues_repo_state_idx": {
608
+ "name": "issues_repo_state_idx",
609
+ "columns": [
610
+ {
611
+ "expression": "repo_id",
612
+ "isExpression": false,
613
+ "asc": true,
614
+ "nulls": "last"
615
+ },
616
+ {
617
+ "expression": "state",
618
+ "isExpression": false,
619
+ "asc": true,
620
+ "nulls": "last"
621
+ }
622
+ ],
623
+ "isUnique": false,
624
+ "concurrently": false,
625
+ "method": "btree",
626
+ "with": {}
627
+ },
628
+ "issues_parent_idx": {
629
+ "name": "issues_parent_idx",
630
+ "columns": [
631
+ {
632
+ "expression": "parent_id",
633
+ "isExpression": false,
634
+ "asc": true,
635
+ "nulls": "last"
636
+ }
637
+ ],
638
+ "isUnique": false,
639
+ "concurrently": false,
640
+ "method": "btree",
641
+ "with": {}
642
+ },
643
+ "issues_milestone_idx": {
644
+ "name": "issues_milestone_idx",
645
+ "columns": [
646
+ {
647
+ "expression": "milestone_id",
648
+ "isExpression": false,
649
+ "asc": true,
650
+ "nulls": "last"
651
+ }
652
+ ],
653
+ "isUnique": false,
654
+ "concurrently": false,
655
+ "method": "btree",
656
+ "with": {}
657
+ }
658
+ },
659
+ "foreignKeys": {
660
+ "issues_repo_id_repos_id_fk": {
661
+ "name": "issues_repo_id_repos_id_fk",
662
+ "tableFrom": "issues",
663
+ "tableTo": "repos",
664
+ "columnsFrom": [
665
+ "repo_id"
666
+ ],
667
+ "columnsTo": [
668
+ "id"
669
+ ],
670
+ "onDelete": "cascade",
671
+ "onUpdate": "no action"
672
+ },
673
+ "issues_milestone_id_milestones_id_fk": {
674
+ "name": "issues_milestone_id_milestones_id_fk",
675
+ "tableFrom": "issues",
676
+ "tableTo": "milestones",
677
+ "columnsFrom": [
678
+ "milestone_id"
679
+ ],
680
+ "columnsTo": [
681
+ "id"
682
+ ],
683
+ "onDelete": "set null",
684
+ "onUpdate": "no action"
685
+ }
686
+ },
687
+ "compositePrimaryKeys": {},
688
+ "uniqueConstraints": {},
689
+ "policies": {},
690
+ "checkConstraints": {},
691
+ "isRLSEnabled": false
692
+ },
693
+ "public.messages": {
694
+ "name": "messages",
695
+ "schema": "",
696
+ "columns": {
697
+ "id": {
698
+ "name": "id",
699
+ "type": "text",
700
+ "primaryKey": true,
701
+ "notNull": true
702
+ },
703
+ "session_id": {
704
+ "name": "session_id",
705
+ "type": "text",
706
+ "primaryKey": false,
707
+ "notNull": true
708
+ },
709
+ "role": {
710
+ "name": "role",
711
+ "type": "text",
712
+ "primaryKey": false,
713
+ "notNull": true
714
+ },
715
+ "agent": {
716
+ "name": "agent",
717
+ "type": "text",
718
+ "primaryKey": false,
719
+ "notNull": false
720
+ },
721
+ "model": {
722
+ "name": "model",
723
+ "type": "text",
724
+ "primaryKey": false,
725
+ "notNull": false
726
+ },
727
+ "provider": {
728
+ "name": "provider",
729
+ "type": "text",
730
+ "primaryKey": false,
731
+ "notNull": false
732
+ },
733
+ "variant": {
734
+ "name": "variant",
735
+ "type": "text",
736
+ "primaryKey": false,
737
+ "notNull": false
738
+ },
739
+ "cost": {
740
+ "name": "cost",
741
+ "type": "real",
742
+ "primaryKey": false,
743
+ "notNull": false
744
+ },
745
+ "time_created": {
746
+ "name": "time_created",
747
+ "type": "bigint",
748
+ "primaryKey": false,
749
+ "notNull": true
750
+ },
751
+ "time_updated": {
752
+ "name": "time_updated",
753
+ "type": "bigint",
754
+ "primaryKey": false,
755
+ "notNull": true
756
+ }
757
+ },
758
+ "indexes": {
759
+ "messages_session_idx": {
760
+ "name": "messages_session_idx",
761
+ "columns": [
762
+ {
763
+ "expression": "session_id",
764
+ "isExpression": false,
765
+ "asc": true,
766
+ "nulls": "last"
767
+ },
768
+ {
769
+ "expression": "time_created",
770
+ "isExpression": false,
771
+ "asc": true,
772
+ "nulls": "last"
773
+ }
774
+ ],
775
+ "isUnique": false,
776
+ "concurrently": false,
777
+ "method": "btree",
778
+ "with": {}
779
+ }
780
+ },
781
+ "foreignKeys": {
782
+ "messages_session_id_sessions_id_fk": {
783
+ "name": "messages_session_id_sessions_id_fk",
784
+ "tableFrom": "messages",
785
+ "tableTo": "sessions",
786
+ "columnsFrom": [
787
+ "session_id"
788
+ ],
789
+ "columnsTo": [
790
+ "id"
791
+ ],
792
+ "onDelete": "cascade",
793
+ "onUpdate": "no action"
794
+ }
795
+ },
796
+ "compositePrimaryKeys": {},
797
+ "uniqueConstraints": {},
798
+ "policies": {},
799
+ "checkConstraints": {},
800
+ "isRLSEnabled": false
801
+ },
802
+ "public.milestones": {
803
+ "name": "milestones",
804
+ "schema": "",
805
+ "columns": {
806
+ "id": {
807
+ "name": "id",
808
+ "type": "text",
809
+ "primaryKey": true,
810
+ "notNull": true
811
+ },
812
+ "repo_id": {
813
+ "name": "repo_id",
814
+ "type": "text",
815
+ "primaryKey": false,
816
+ "notNull": true
817
+ },
818
+ "number": {
819
+ "name": "number",
820
+ "type": "integer",
821
+ "primaryKey": false,
822
+ "notNull": true
823
+ },
824
+ "title": {
825
+ "name": "title",
826
+ "type": "text",
827
+ "primaryKey": false,
828
+ "notNull": true
829
+ },
830
+ "description": {
831
+ "name": "description",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": false
835
+ },
836
+ "state": {
837
+ "name": "state",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": true,
841
+ "default": "'open'"
842
+ },
843
+ "due_on": {
844
+ "name": "due_on",
845
+ "type": "bigint",
846
+ "primaryKey": false,
847
+ "notNull": false
848
+ },
849
+ "open_issues": {
850
+ "name": "open_issues",
851
+ "type": "integer",
852
+ "primaryKey": false,
853
+ "notNull": true,
854
+ "default": 0
855
+ },
856
+ "closed_issues": {
857
+ "name": "closed_issues",
858
+ "type": "integer",
859
+ "primaryKey": false,
860
+ "notNull": true,
861
+ "default": 0
862
+ },
863
+ "created_at": {
864
+ "name": "created_at",
865
+ "type": "bigint",
866
+ "primaryKey": false,
867
+ "notNull": true
868
+ },
869
+ "updated_at": {
870
+ "name": "updated_at",
871
+ "type": "bigint",
872
+ "primaryKey": false,
873
+ "notNull": true
874
+ }
875
+ },
876
+ "indexes": {
877
+ "milestones_repo_number_idx": {
878
+ "name": "milestones_repo_number_idx",
879
+ "columns": [
880
+ {
881
+ "expression": "repo_id",
882
+ "isExpression": false,
883
+ "asc": true,
884
+ "nulls": "last"
885
+ },
886
+ {
887
+ "expression": "number",
888
+ "isExpression": false,
889
+ "asc": true,
890
+ "nulls": "last"
891
+ }
892
+ ],
893
+ "isUnique": true,
894
+ "concurrently": false,
895
+ "method": "btree",
896
+ "with": {}
897
+ },
898
+ "milestones_repo_idx": {
899
+ "name": "milestones_repo_idx",
900
+ "columns": [
901
+ {
902
+ "expression": "repo_id",
903
+ "isExpression": false,
904
+ "asc": true,
905
+ "nulls": "last"
906
+ }
907
+ ],
908
+ "isUnique": false,
909
+ "concurrently": false,
910
+ "method": "btree",
911
+ "with": {}
912
+ }
913
+ },
914
+ "foreignKeys": {
915
+ "milestones_repo_id_repos_id_fk": {
916
+ "name": "milestones_repo_id_repos_id_fk",
917
+ "tableFrom": "milestones",
918
+ "tableTo": "repos",
919
+ "columnsFrom": [
920
+ "repo_id"
921
+ ],
922
+ "columnsTo": [
923
+ "id"
924
+ ],
925
+ "onDelete": "cascade",
926
+ "onUpdate": "no action"
927
+ }
928
+ },
929
+ "compositePrimaryKeys": {},
930
+ "uniqueConstraints": {},
931
+ "policies": {},
932
+ "checkConstraints": {},
933
+ "isRLSEnabled": false
934
+ },
935
+ "public.parts": {
936
+ "name": "parts",
937
+ "schema": "",
938
+ "columns": {
939
+ "id": {
940
+ "name": "id",
941
+ "type": "text",
942
+ "primaryKey": true,
943
+ "notNull": true
944
+ },
945
+ "message_id": {
946
+ "name": "message_id",
947
+ "type": "text",
948
+ "primaryKey": false,
949
+ "notNull": true
950
+ },
951
+ "session_id": {
952
+ "name": "session_id",
953
+ "type": "text",
954
+ "primaryKey": false,
955
+ "notNull": true
956
+ },
957
+ "type": {
958
+ "name": "type",
959
+ "type": "text",
960
+ "primaryKey": false,
961
+ "notNull": true
962
+ },
963
+ "data": {
964
+ "name": "data",
965
+ "type": "jsonb",
966
+ "primaryKey": false,
967
+ "notNull": true
968
+ },
969
+ "time_created": {
970
+ "name": "time_created",
971
+ "type": "bigint",
972
+ "primaryKey": false,
973
+ "notNull": true
974
+ },
975
+ "time_updated": {
976
+ "name": "time_updated",
977
+ "type": "bigint",
978
+ "primaryKey": false,
979
+ "notNull": true
980
+ }
981
+ },
982
+ "indexes": {
983
+ "parts_message_idx": {
984
+ "name": "parts_message_idx",
985
+ "columns": [
986
+ {
987
+ "expression": "message_id",
988
+ "isExpression": false,
989
+ "asc": true,
990
+ "nulls": "last"
991
+ }
992
+ ],
993
+ "isUnique": false,
994
+ "concurrently": false,
995
+ "method": "btree",
996
+ "with": {}
997
+ },
998
+ "parts_session_idx": {
999
+ "name": "parts_session_idx",
1000
+ "columns": [
1001
+ {
1002
+ "expression": "session_id",
1003
+ "isExpression": false,
1004
+ "asc": true,
1005
+ "nulls": "last"
1006
+ }
1007
+ ],
1008
+ "isUnique": false,
1009
+ "concurrently": false,
1010
+ "method": "btree",
1011
+ "with": {}
1012
+ }
1013
+ },
1014
+ "foreignKeys": {
1015
+ "parts_message_id_messages_id_fk": {
1016
+ "name": "parts_message_id_messages_id_fk",
1017
+ "tableFrom": "parts",
1018
+ "tableTo": "messages",
1019
+ "columnsFrom": [
1020
+ "message_id"
1021
+ ],
1022
+ "columnsTo": [
1023
+ "id"
1024
+ ],
1025
+ "onDelete": "cascade",
1026
+ "onUpdate": "no action"
1027
+ },
1028
+ "parts_session_id_sessions_id_fk": {
1029
+ "name": "parts_session_id_sessions_id_fk",
1030
+ "tableFrom": "parts",
1031
+ "tableTo": "sessions",
1032
+ "columnsFrom": [
1033
+ "session_id"
1034
+ ],
1035
+ "columnsTo": [
1036
+ "id"
1037
+ ],
1038
+ "onDelete": "cascade",
1039
+ "onUpdate": "no action"
1040
+ }
1041
+ },
1042
+ "compositePrimaryKeys": {},
1043
+ "uniqueConstraints": {},
1044
+ "policies": {},
1045
+ "checkConstraints": {},
1046
+ "isRLSEnabled": false
1047
+ },
1048
+ "public.prompt_fragments": {
1049
+ "name": "prompt_fragments",
1050
+ "schema": "",
1051
+ "columns": {
1052
+ "id": {
1053
+ "name": "id",
1054
+ "type": "text",
1055
+ "primaryKey": true,
1056
+ "notNull": true
1057
+ },
1058
+ "name": {
1059
+ "name": "name",
1060
+ "type": "text",
1061
+ "primaryKey": false,
1062
+ "notNull": true
1063
+ },
1064
+ "content": {
1065
+ "name": "content",
1066
+ "type": "text",
1067
+ "primaryKey": false,
1068
+ "notNull": true,
1069
+ "default": "''"
1070
+ },
1071
+ "repo_id": {
1072
+ "name": "repo_id",
1073
+ "type": "text",
1074
+ "primaryKey": false,
1075
+ "notNull": false
1076
+ },
1077
+ "sort_order": {
1078
+ "name": "sort_order",
1079
+ "type": "integer",
1080
+ "primaryKey": false,
1081
+ "notNull": true,
1082
+ "default": 0
1083
+ },
1084
+ "created_at": {
1085
+ "name": "created_at",
1086
+ "type": "bigint",
1087
+ "primaryKey": false,
1088
+ "notNull": true
1089
+ },
1090
+ "updated_at": {
1091
+ "name": "updated_at",
1092
+ "type": "bigint",
1093
+ "primaryKey": false,
1094
+ "notNull": true
1095
+ }
1096
+ },
1097
+ "indexes": {
1098
+ "prompt_fragments_repo_idx": {
1099
+ "name": "prompt_fragments_repo_idx",
1100
+ "columns": [
1101
+ {
1102
+ "expression": "repo_id",
1103
+ "isExpression": false,
1104
+ "asc": true,
1105
+ "nulls": "last"
1106
+ }
1107
+ ],
1108
+ "isUnique": false,
1109
+ "concurrently": false,
1110
+ "method": "btree",
1111
+ "with": {}
1112
+ }
1113
+ },
1114
+ "foreignKeys": {
1115
+ "prompt_fragments_repo_id_repos_id_fk": {
1116
+ "name": "prompt_fragments_repo_id_repos_id_fk",
1117
+ "tableFrom": "prompt_fragments",
1118
+ "tableTo": "repos",
1119
+ "columnsFrom": [
1120
+ "repo_id"
1121
+ ],
1122
+ "columnsTo": [
1123
+ "id"
1124
+ ],
1125
+ "onDelete": "cascade",
1126
+ "onUpdate": "no action"
1127
+ }
1128
+ },
1129
+ "compositePrimaryKeys": {},
1130
+ "uniqueConstraints": {},
1131
+ "policies": {},
1132
+ "checkConstraints": {},
1133
+ "isRLSEnabled": false
1134
+ },
1135
+ "public.repos": {
1136
+ "name": "repos",
1137
+ "schema": "",
1138
+ "columns": {
1139
+ "id": {
1140
+ "name": "id",
1141
+ "type": "text",
1142
+ "primaryKey": true,
1143
+ "notNull": true
1144
+ },
1145
+ "name": {
1146
+ "name": "name",
1147
+ "type": "text",
1148
+ "primaryKey": false,
1149
+ "notNull": true
1150
+ },
1151
+ "git_url": {
1152
+ "name": "git_url",
1153
+ "type": "text",
1154
+ "primaryKey": false,
1155
+ "notNull": true
1156
+ },
1157
+ "local_path": {
1158
+ "name": "local_path",
1159
+ "type": "text",
1160
+ "primaryKey": false,
1161
+ "notNull": true
1162
+ },
1163
+ "port": {
1164
+ "name": "port",
1165
+ "type": "integer",
1166
+ "primaryKey": false,
1167
+ "notNull": false
1168
+ },
1169
+ "status": {
1170
+ "name": "status",
1171
+ "type": "text",
1172
+ "primaryKey": false,
1173
+ "notNull": true,
1174
+ "default": "'inactive'"
1175
+ },
1176
+ "created_at": {
1177
+ "name": "created_at",
1178
+ "type": "bigint",
1179
+ "primaryKey": false,
1180
+ "notNull": true
1181
+ },
1182
+ "updated_at": {
1183
+ "name": "updated_at",
1184
+ "type": "bigint",
1185
+ "primaryKey": false,
1186
+ "notNull": true
1187
+ }
1188
+ },
1189
+ "indexes": {
1190
+ "repos_local_path_idx": {
1191
+ "name": "repos_local_path_idx",
1192
+ "columns": [
1193
+ {
1194
+ "expression": "local_path",
1195
+ "isExpression": false,
1196
+ "asc": true,
1197
+ "nulls": "last"
1198
+ }
1199
+ ],
1200
+ "isUnique": true,
1201
+ "concurrently": false,
1202
+ "method": "btree",
1203
+ "with": {}
1204
+ }
1205
+ },
1206
+ "foreignKeys": {},
1207
+ "compositePrimaryKeys": {},
1208
+ "uniqueConstraints": {},
1209
+ "policies": {},
1210
+ "checkConstraints": {},
1211
+ "isRLSEnabled": false
1212
+ },
1213
+ "public.sessions": {
1214
+ "name": "sessions",
1215
+ "schema": "",
1216
+ "columns": {
1217
+ "id": {
1218
+ "name": "id",
1219
+ "type": "text",
1220
+ "primaryKey": true,
1221
+ "notNull": true
1222
+ },
1223
+ "parent_id": {
1224
+ "name": "parent_id",
1225
+ "type": "text",
1226
+ "primaryKey": false,
1227
+ "notNull": false
1228
+ },
1229
+ "issue_id": {
1230
+ "name": "issue_id",
1231
+ "type": "text",
1232
+ "primaryKey": false,
1233
+ "notNull": false
1234
+ },
1235
+ "custom_agent_id": {
1236
+ "name": "custom_agent_id",
1237
+ "type": "text",
1238
+ "primaryKey": false,
1239
+ "notNull": false
1240
+ },
1241
+ "title": {
1242
+ "name": "title",
1243
+ "type": "text",
1244
+ "primaryKey": false,
1245
+ "notNull": true,
1246
+ "default": "''"
1247
+ },
1248
+ "agent": {
1249
+ "name": "agent",
1250
+ "type": "text",
1251
+ "primaryKey": false,
1252
+ "notNull": false
1253
+ },
1254
+ "model": {
1255
+ "name": "model",
1256
+ "type": "jsonb",
1257
+ "primaryKey": false,
1258
+ "notNull": false
1259
+ },
1260
+ "directory": {
1261
+ "name": "directory",
1262
+ "type": "text",
1263
+ "primaryKey": false,
1264
+ "notNull": false
1265
+ },
1266
+ "cost": {
1267
+ "name": "cost",
1268
+ "type": "real",
1269
+ "primaryKey": false,
1270
+ "notNull": true,
1271
+ "default": 0
1272
+ },
1273
+ "tokens_input": {
1274
+ "name": "tokens_input",
1275
+ "type": "bigint",
1276
+ "primaryKey": false,
1277
+ "notNull": true,
1278
+ "default": 0
1279
+ },
1280
+ "tokens_output": {
1281
+ "name": "tokens_output",
1282
+ "type": "bigint",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "default": 0
1286
+ },
1287
+ "tokens_reasoning": {
1288
+ "name": "tokens_reasoning",
1289
+ "type": "bigint",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "default": 0
1293
+ },
1294
+ "tokens_cache_read": {
1295
+ "name": "tokens_cache_read",
1296
+ "type": "bigint",
1297
+ "primaryKey": false,
1298
+ "notNull": true,
1299
+ "default": 0
1300
+ },
1301
+ "tokens_cache_write": {
1302
+ "name": "tokens_cache_write",
1303
+ "type": "bigint",
1304
+ "primaryKey": false,
1305
+ "notNull": true,
1306
+ "default": 0
1307
+ },
1308
+ "user_id": {
1309
+ "name": "user_id",
1310
+ "type": "text",
1311
+ "primaryKey": false,
1312
+ "notNull": false
1313
+ },
1314
+ "time_created": {
1315
+ "name": "time_created",
1316
+ "type": "bigint",
1317
+ "primaryKey": false,
1318
+ "notNull": true
1319
+ },
1320
+ "time_updated": {
1321
+ "name": "time_updated",
1322
+ "type": "bigint",
1323
+ "primaryKey": false,
1324
+ "notNull": true
1325
+ }
1326
+ },
1327
+ "indexes": {
1328
+ "sessions_user_idx": {
1329
+ "name": "sessions_user_idx",
1330
+ "columns": [
1331
+ {
1332
+ "expression": "user_id",
1333
+ "isExpression": false,
1334
+ "asc": true,
1335
+ "nulls": "last"
1336
+ }
1337
+ ],
1338
+ "isUnique": false,
1339
+ "concurrently": false,
1340
+ "method": "btree",
1341
+ "with": {}
1342
+ },
1343
+ "sessions_time_created_idx": {
1344
+ "name": "sessions_time_created_idx",
1345
+ "columns": [
1346
+ {
1347
+ "expression": "time_created",
1348
+ "isExpression": false,
1349
+ "asc": true,
1350
+ "nulls": "last"
1351
+ }
1352
+ ],
1353
+ "isUnique": false,
1354
+ "concurrently": false,
1355
+ "method": "btree",
1356
+ "with": {}
1357
+ },
1358
+ "sessions_issue_idx": {
1359
+ "name": "sessions_issue_idx",
1360
+ "columns": [
1361
+ {
1362
+ "expression": "issue_id",
1363
+ "isExpression": false,
1364
+ "asc": true,
1365
+ "nulls": "last"
1366
+ }
1367
+ ],
1368
+ "isUnique": false,
1369
+ "concurrently": false,
1370
+ "method": "btree",
1371
+ "with": {}
1372
+ },
1373
+ "sessions_custom_agent_idx": {
1374
+ "name": "sessions_custom_agent_idx",
1375
+ "columns": [
1376
+ {
1377
+ "expression": "custom_agent_id",
1378
+ "isExpression": false,
1379
+ "asc": true,
1380
+ "nulls": "last"
1381
+ }
1382
+ ],
1383
+ "isUnique": false,
1384
+ "concurrently": false,
1385
+ "method": "btree",
1386
+ "with": {}
1387
+ }
1388
+ },
1389
+ "foreignKeys": {
1390
+ "sessions_issue_id_issues_id_fk": {
1391
+ "name": "sessions_issue_id_issues_id_fk",
1392
+ "tableFrom": "sessions",
1393
+ "tableTo": "issues",
1394
+ "columnsFrom": [
1395
+ "issue_id"
1396
+ ],
1397
+ "columnsTo": [
1398
+ "id"
1399
+ ],
1400
+ "onDelete": "set null",
1401
+ "onUpdate": "no action"
1402
+ },
1403
+ "sessions_custom_agent_id_custom_agents_id_fk": {
1404
+ "name": "sessions_custom_agent_id_custom_agents_id_fk",
1405
+ "tableFrom": "sessions",
1406
+ "tableTo": "custom_agents",
1407
+ "columnsFrom": [
1408
+ "custom_agent_id"
1409
+ ],
1410
+ "columnsTo": [
1411
+ "id"
1412
+ ],
1413
+ "onDelete": "set null",
1414
+ "onUpdate": "no action"
1415
+ }
1416
+ },
1417
+ "compositePrimaryKeys": {},
1418
+ "uniqueConstraints": {},
1419
+ "policies": {},
1420
+ "checkConstraints": {},
1421
+ "isRLSEnabled": false
1422
+ },
1423
+ "public.settings": {
1424
+ "name": "settings",
1425
+ "schema": "",
1426
+ "columns": {
1427
+ "key": {
1428
+ "name": "key",
1429
+ "type": "text",
1430
+ "primaryKey": true,
1431
+ "notNull": true
1432
+ },
1433
+ "value": {
1434
+ "name": "value",
1435
+ "type": "text",
1436
+ "primaryKey": false,
1437
+ "notNull": true
1438
+ },
1439
+ "updated_at": {
1440
+ "name": "updated_at",
1441
+ "type": "bigint",
1442
+ "primaryKey": false,
1443
+ "notNull": true
1444
+ }
1445
+ },
1446
+ "indexes": {},
1447
+ "foreignKeys": {},
1448
+ "compositePrimaryKeys": {},
1449
+ "uniqueConstraints": {},
1450
+ "policies": {},
1451
+ "checkConstraints": {},
1452
+ "isRLSEnabled": false
1453
+ },
1454
+ "public.tags": {
1455
+ "name": "tags",
1456
+ "schema": "",
1457
+ "columns": {
1458
+ "id": {
1459
+ "name": "id",
1460
+ "type": "text",
1461
+ "primaryKey": true,
1462
+ "notNull": true
1463
+ },
1464
+ "repo_id": {
1465
+ "name": "repo_id",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": true
1469
+ },
1470
+ "name": {
1471
+ "name": "name",
1472
+ "type": "text",
1473
+ "primaryKey": false,
1474
+ "notNull": true
1475
+ },
1476
+ "color": {
1477
+ "name": "color",
1478
+ "type": "text",
1479
+ "primaryKey": false,
1480
+ "notNull": true,
1481
+ "default": "'6b7280'"
1482
+ },
1483
+ "description": {
1484
+ "name": "description",
1485
+ "type": "text",
1486
+ "primaryKey": false,
1487
+ "notNull": false
1488
+ },
1489
+ "created_at": {
1490
+ "name": "created_at",
1491
+ "type": "bigint",
1492
+ "primaryKey": false,
1493
+ "notNull": true
1494
+ }
1495
+ },
1496
+ "indexes": {
1497
+ "tags_repo_name_idx": {
1498
+ "name": "tags_repo_name_idx",
1499
+ "columns": [
1500
+ {
1501
+ "expression": "repo_id",
1502
+ "isExpression": false,
1503
+ "asc": true,
1504
+ "nulls": "last"
1505
+ },
1506
+ {
1507
+ "expression": "name",
1508
+ "isExpression": false,
1509
+ "asc": true,
1510
+ "nulls": "last"
1511
+ }
1512
+ ],
1513
+ "isUnique": true,
1514
+ "concurrently": false,
1515
+ "method": "btree",
1516
+ "with": {}
1517
+ },
1518
+ "tags_repo_idx": {
1519
+ "name": "tags_repo_idx",
1520
+ "columns": [
1521
+ {
1522
+ "expression": "repo_id",
1523
+ "isExpression": false,
1524
+ "asc": true,
1525
+ "nulls": "last"
1526
+ }
1527
+ ],
1528
+ "isUnique": false,
1529
+ "concurrently": false,
1530
+ "method": "btree",
1531
+ "with": {}
1532
+ }
1533
+ },
1534
+ "foreignKeys": {
1535
+ "tags_repo_id_repos_id_fk": {
1536
+ "name": "tags_repo_id_repos_id_fk",
1537
+ "tableFrom": "tags",
1538
+ "tableTo": "repos",
1539
+ "columnsFrom": [
1540
+ "repo_id"
1541
+ ],
1542
+ "columnsTo": [
1543
+ "id"
1544
+ ],
1545
+ "onDelete": "cascade",
1546
+ "onUpdate": "no action"
1547
+ }
1548
+ },
1549
+ "compositePrimaryKeys": {},
1550
+ "uniqueConstraints": {},
1551
+ "policies": {},
1552
+ "checkConstraints": {},
1553
+ "isRLSEnabled": false
1554
+ },
1555
+ "public.todos": {
1556
+ "name": "todos",
1557
+ "schema": "",
1558
+ "columns": {
1559
+ "session_id": {
1560
+ "name": "session_id",
1561
+ "type": "text",
1562
+ "primaryKey": false,
1563
+ "notNull": true
1564
+ },
1565
+ "position": {
1566
+ "name": "position",
1567
+ "type": "integer",
1568
+ "primaryKey": false,
1569
+ "notNull": true
1570
+ },
1571
+ "content": {
1572
+ "name": "content",
1573
+ "type": "text",
1574
+ "primaryKey": false,
1575
+ "notNull": true
1576
+ },
1577
+ "status": {
1578
+ "name": "status",
1579
+ "type": "text",
1580
+ "primaryKey": false,
1581
+ "notNull": true
1582
+ },
1583
+ "priority": {
1584
+ "name": "priority",
1585
+ "type": "text",
1586
+ "primaryKey": false,
1587
+ "notNull": true,
1588
+ "default": "'medium'"
1589
+ },
1590
+ "time_created": {
1591
+ "name": "time_created",
1592
+ "type": "bigint",
1593
+ "primaryKey": false,
1594
+ "notNull": true
1595
+ },
1596
+ "time_updated": {
1597
+ "name": "time_updated",
1598
+ "type": "bigint",
1599
+ "primaryKey": false,
1600
+ "notNull": true
1601
+ }
1602
+ },
1603
+ "indexes": {},
1604
+ "foreignKeys": {
1605
+ "todos_session_id_sessions_id_fk": {
1606
+ "name": "todos_session_id_sessions_id_fk",
1607
+ "tableFrom": "todos",
1608
+ "tableTo": "sessions",
1609
+ "columnsFrom": [
1610
+ "session_id"
1611
+ ],
1612
+ "columnsTo": [
1613
+ "id"
1614
+ ],
1615
+ "onDelete": "cascade",
1616
+ "onUpdate": "no action"
1617
+ }
1618
+ },
1619
+ "compositePrimaryKeys": {
1620
+ "todos_session_id_position_pk": {
1621
+ "name": "todos_session_id_position_pk",
1622
+ "columns": [
1623
+ "session_id",
1624
+ "position"
1625
+ ]
1626
+ }
1627
+ },
1628
+ "uniqueConstraints": {},
1629
+ "policies": {},
1630
+ "checkConstraints": {},
1631
+ "isRLSEnabled": false
1632
+ }
1633
+ },
1634
+ "enums": {},
1635
+ "schemas": {},
1636
+ "sequences": {},
1637
+ "roles": {},
1638
+ "policies": {},
1639
+ "views": {},
1640
+ "_meta": {
1641
+ "columns": {},
1642
+ "schemas": {},
1643
+ "tables": {}
1644
+ }
1645
+ }