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,2037 @@
1
+ {
2
+ "id": "04cabd55-cedd-49ea-b94d-305c7cea5bc0",
3
+ "prevId": "2ae43645-5374-4385-817c-328c401093a1",
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
+ "is_system": {
117
+ "name": "is_system",
118
+ "type": "integer",
119
+ "primaryKey": false,
120
+ "notNull": true,
121
+ "default": 0
122
+ },
123
+ "repo_id": {
124
+ "name": "repo_id",
125
+ "type": "text",
126
+ "primaryKey": false,
127
+ "notNull": false
128
+ },
129
+ "sort_order": {
130
+ "name": "sort_order",
131
+ "type": "integer",
132
+ "primaryKey": false,
133
+ "notNull": true,
134
+ "default": 0
135
+ },
136
+ "created_at": {
137
+ "name": "created_at",
138
+ "type": "bigint",
139
+ "primaryKey": false,
140
+ "notNull": true
141
+ },
142
+ "updated_at": {
143
+ "name": "updated_at",
144
+ "type": "bigint",
145
+ "primaryKey": false,
146
+ "notNull": true
147
+ }
148
+ },
149
+ "indexes": {
150
+ "custom_agents_repo_idx": {
151
+ "name": "custom_agents_repo_idx",
152
+ "columns": [
153
+ {
154
+ "expression": "repo_id",
155
+ "isExpression": false,
156
+ "asc": true,
157
+ "nulls": "last"
158
+ }
159
+ ],
160
+ "isUnique": false,
161
+ "concurrently": false,
162
+ "method": "btree",
163
+ "with": {}
164
+ }
165
+ },
166
+ "foreignKeys": {
167
+ "custom_agents_repo_id_repos_id_fk": {
168
+ "name": "custom_agents_repo_id_repos_id_fk",
169
+ "tableFrom": "custom_agents",
170
+ "tableTo": "repos",
171
+ "columnsFrom": [
172
+ "repo_id"
173
+ ],
174
+ "columnsTo": [
175
+ "id"
176
+ ],
177
+ "onDelete": "cascade",
178
+ "onUpdate": "no action"
179
+ }
180
+ },
181
+ "compositePrimaryKeys": {},
182
+ "uniqueConstraints": {},
183
+ "policies": {},
184
+ "checkConstraints": {},
185
+ "isRLSEnabled": false
186
+ },
187
+ "public.device_tokens": {
188
+ "name": "device_tokens",
189
+ "schema": "",
190
+ "columns": {
191
+ "id": {
192
+ "name": "id",
193
+ "type": "text",
194
+ "primaryKey": true,
195
+ "notNull": true
196
+ },
197
+ "token": {
198
+ "name": "token",
199
+ "type": "text",
200
+ "primaryKey": false,
201
+ "notNull": true
202
+ },
203
+ "platform": {
204
+ "name": "platform",
205
+ "type": "text",
206
+ "primaryKey": false,
207
+ "notNull": true,
208
+ "default": "'ios'"
209
+ },
210
+ "created_at": {
211
+ "name": "created_at",
212
+ "type": "bigint",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "updated_at": {
217
+ "name": "updated_at",
218
+ "type": "bigint",
219
+ "primaryKey": false,
220
+ "notNull": true
221
+ }
222
+ },
223
+ "indexes": {
224
+ "device_tokens_token_idx": {
225
+ "name": "device_tokens_token_idx",
226
+ "columns": [
227
+ {
228
+ "expression": "token",
229
+ "isExpression": false,
230
+ "asc": true,
231
+ "nulls": "last"
232
+ }
233
+ ],
234
+ "isUnique": true,
235
+ "concurrently": false,
236
+ "method": "btree",
237
+ "with": {}
238
+ }
239
+ },
240
+ "foreignKeys": {},
241
+ "compositePrimaryKeys": {},
242
+ "uniqueConstraints": {},
243
+ "policies": {},
244
+ "checkConstraints": {},
245
+ "isRLSEnabled": false
246
+ },
247
+ "public.git_hosts": {
248
+ "name": "git_hosts",
249
+ "schema": "",
250
+ "columns": {
251
+ "id": {
252
+ "name": "id",
253
+ "type": "text",
254
+ "primaryKey": true,
255
+ "notNull": true
256
+ },
257
+ "host": {
258
+ "name": "host",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true
262
+ },
263
+ "platform": {
264
+ "name": "platform",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": true,
268
+ "default": "'gitea'"
269
+ },
270
+ "name": {
271
+ "name": "name",
272
+ "type": "text",
273
+ "primaryKey": false,
274
+ "notNull": true
275
+ },
276
+ "token": {
277
+ "name": "token",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": true
281
+ },
282
+ "created_at": {
283
+ "name": "created_at",
284
+ "type": "bigint",
285
+ "primaryKey": false,
286
+ "notNull": true
287
+ },
288
+ "updated_at": {
289
+ "name": "updated_at",
290
+ "type": "bigint",
291
+ "primaryKey": false,
292
+ "notNull": true
293
+ }
294
+ },
295
+ "indexes": {
296
+ "git_hosts_host_idx": {
297
+ "name": "git_hosts_host_idx",
298
+ "columns": [
299
+ {
300
+ "expression": "host",
301
+ "isExpression": false,
302
+ "asc": true,
303
+ "nulls": "last"
304
+ }
305
+ ],
306
+ "isUnique": true,
307
+ "concurrently": false,
308
+ "method": "btree",
309
+ "with": {}
310
+ }
311
+ },
312
+ "foreignKeys": {},
313
+ "compositePrimaryKeys": {},
314
+ "uniqueConstraints": {},
315
+ "policies": {},
316
+ "checkConstraints": {},
317
+ "isRLSEnabled": false
318
+ },
319
+ "public.issue_comments": {
320
+ "name": "issue_comments",
321
+ "schema": "",
322
+ "columns": {
323
+ "id": {
324
+ "name": "id",
325
+ "type": "text",
326
+ "primaryKey": true,
327
+ "notNull": true
328
+ },
329
+ "issue_id": {
330
+ "name": "issue_id",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true
334
+ },
335
+ "repo_id": {
336
+ "name": "repo_id",
337
+ "type": "text",
338
+ "primaryKey": false,
339
+ "notNull": true
340
+ },
341
+ "author_login": {
342
+ "name": "author_login",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true
346
+ },
347
+ "author_avatar": {
348
+ "name": "author_avatar",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": false
352
+ },
353
+ "body": {
354
+ "name": "body",
355
+ "type": "text",
356
+ "primaryKey": false,
357
+ "notNull": true
358
+ },
359
+ "created_at": {
360
+ "name": "created_at",
361
+ "type": "bigint",
362
+ "primaryKey": false,
363
+ "notNull": true
364
+ },
365
+ "updated_at": {
366
+ "name": "updated_at",
367
+ "type": "bigint",
368
+ "primaryKey": false,
369
+ "notNull": true
370
+ }
371
+ },
372
+ "indexes": {
373
+ "issue_comments_issue_idx": {
374
+ "name": "issue_comments_issue_idx",
375
+ "columns": [
376
+ {
377
+ "expression": "issue_id",
378
+ "isExpression": false,
379
+ "asc": true,
380
+ "nulls": "last"
381
+ }
382
+ ],
383
+ "isUnique": false,
384
+ "concurrently": false,
385
+ "method": "btree",
386
+ "with": {}
387
+ },
388
+ "issue_comments_repo_idx": {
389
+ "name": "issue_comments_repo_idx",
390
+ "columns": [
391
+ {
392
+ "expression": "repo_id",
393
+ "isExpression": false,
394
+ "asc": true,
395
+ "nulls": "last"
396
+ }
397
+ ],
398
+ "isUnique": false,
399
+ "concurrently": false,
400
+ "method": "btree",
401
+ "with": {}
402
+ }
403
+ },
404
+ "foreignKeys": {
405
+ "issue_comments_issue_id_issues_id_fk": {
406
+ "name": "issue_comments_issue_id_issues_id_fk",
407
+ "tableFrom": "issue_comments",
408
+ "tableTo": "issues",
409
+ "columnsFrom": [
410
+ "issue_id"
411
+ ],
412
+ "columnsTo": [
413
+ "id"
414
+ ],
415
+ "onDelete": "cascade",
416
+ "onUpdate": "no action"
417
+ },
418
+ "issue_comments_repo_id_repos_id_fk": {
419
+ "name": "issue_comments_repo_id_repos_id_fk",
420
+ "tableFrom": "issue_comments",
421
+ "tableTo": "repos",
422
+ "columnsFrom": [
423
+ "repo_id"
424
+ ],
425
+ "columnsTo": [
426
+ "id"
427
+ ],
428
+ "onDelete": "cascade",
429
+ "onUpdate": "no action"
430
+ }
431
+ },
432
+ "compositePrimaryKeys": {},
433
+ "uniqueConstraints": {},
434
+ "policies": {},
435
+ "checkConstraints": {},
436
+ "isRLSEnabled": false
437
+ },
438
+ "public.issue_tags": {
439
+ "name": "issue_tags",
440
+ "schema": "",
441
+ "columns": {
442
+ "issue_id": {
443
+ "name": "issue_id",
444
+ "type": "text",
445
+ "primaryKey": false,
446
+ "notNull": true
447
+ },
448
+ "tag_id": {
449
+ "name": "tag_id",
450
+ "type": "text",
451
+ "primaryKey": false,
452
+ "notNull": true
453
+ }
454
+ },
455
+ "indexes": {
456
+ "issue_tags_tag_idx": {
457
+ "name": "issue_tags_tag_idx",
458
+ "columns": [
459
+ {
460
+ "expression": "tag_id",
461
+ "isExpression": false,
462
+ "asc": true,
463
+ "nulls": "last"
464
+ }
465
+ ],
466
+ "isUnique": false,
467
+ "concurrently": false,
468
+ "method": "btree",
469
+ "with": {}
470
+ }
471
+ },
472
+ "foreignKeys": {
473
+ "issue_tags_issue_id_issues_id_fk": {
474
+ "name": "issue_tags_issue_id_issues_id_fk",
475
+ "tableFrom": "issue_tags",
476
+ "tableTo": "issues",
477
+ "columnsFrom": [
478
+ "issue_id"
479
+ ],
480
+ "columnsTo": [
481
+ "id"
482
+ ],
483
+ "onDelete": "cascade",
484
+ "onUpdate": "no action"
485
+ },
486
+ "issue_tags_tag_id_tags_id_fk": {
487
+ "name": "issue_tags_tag_id_tags_id_fk",
488
+ "tableFrom": "issue_tags",
489
+ "tableTo": "tags",
490
+ "columnsFrom": [
491
+ "tag_id"
492
+ ],
493
+ "columnsTo": [
494
+ "id"
495
+ ],
496
+ "onDelete": "cascade",
497
+ "onUpdate": "no action"
498
+ }
499
+ },
500
+ "compositePrimaryKeys": {
501
+ "issue_tags_issue_id_tag_id_pk": {
502
+ "name": "issue_tags_issue_id_tag_id_pk",
503
+ "columns": [
504
+ "issue_id",
505
+ "tag_id"
506
+ ]
507
+ }
508
+ },
509
+ "uniqueConstraints": {},
510
+ "policies": {},
511
+ "checkConstraints": {},
512
+ "isRLSEnabled": false
513
+ },
514
+ "public.issues": {
515
+ "name": "issues",
516
+ "schema": "",
517
+ "columns": {
518
+ "id": {
519
+ "name": "id",
520
+ "type": "text",
521
+ "primaryKey": true,
522
+ "notNull": true
523
+ },
524
+ "repo_id": {
525
+ "name": "repo_id",
526
+ "type": "text",
527
+ "primaryKey": false,
528
+ "notNull": true
529
+ },
530
+ "parent_id": {
531
+ "name": "parent_id",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": false
535
+ },
536
+ "number": {
537
+ "name": "number",
538
+ "type": "integer",
539
+ "primaryKey": false,
540
+ "notNull": true
541
+ },
542
+ "title": {
543
+ "name": "title",
544
+ "type": "text",
545
+ "primaryKey": false,
546
+ "notNull": true
547
+ },
548
+ "body": {
549
+ "name": "body",
550
+ "type": "text",
551
+ "primaryKey": false,
552
+ "notNull": false
553
+ },
554
+ "state": {
555
+ "name": "state",
556
+ "type": "text",
557
+ "primaryKey": false,
558
+ "notNull": true,
559
+ "default": "'open'"
560
+ },
561
+ "labels": {
562
+ "name": "labels",
563
+ "type": "jsonb",
564
+ "primaryKey": false,
565
+ "notNull": false
566
+ },
567
+ "milestone_id": {
568
+ "name": "milestone_id",
569
+ "type": "text",
570
+ "primaryKey": false,
571
+ "notNull": false
572
+ },
573
+ "html_url": {
574
+ "name": "html_url",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": false
578
+ },
579
+ "author_login": {
580
+ "name": "author_login",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": false
584
+ },
585
+ "author_avatar": {
586
+ "name": "author_avatar",
587
+ "type": "text",
588
+ "primaryKey": false,
589
+ "notNull": false
590
+ },
591
+ "assignees": {
592
+ "name": "assignees",
593
+ "type": "jsonb",
594
+ "primaryKey": false,
595
+ "notNull": false
596
+ },
597
+ "comment_count": {
598
+ "name": "comment_count",
599
+ "type": "integer",
600
+ "primaryKey": false,
601
+ "notNull": true,
602
+ "default": 0
603
+ },
604
+ "created_at": {
605
+ "name": "created_at",
606
+ "type": "bigint",
607
+ "primaryKey": false,
608
+ "notNull": true
609
+ },
610
+ "updated_at": {
611
+ "name": "updated_at",
612
+ "type": "bigint",
613
+ "primaryKey": false,
614
+ "notNull": true
615
+ }
616
+ },
617
+ "indexes": {
618
+ "issues_repo_number_idx": {
619
+ "name": "issues_repo_number_idx",
620
+ "columns": [
621
+ {
622
+ "expression": "repo_id",
623
+ "isExpression": false,
624
+ "asc": true,
625
+ "nulls": "last"
626
+ },
627
+ {
628
+ "expression": "number",
629
+ "isExpression": false,
630
+ "asc": true,
631
+ "nulls": "last"
632
+ }
633
+ ],
634
+ "isUnique": true,
635
+ "concurrently": false,
636
+ "method": "btree",
637
+ "with": {}
638
+ },
639
+ "issues_repo_state_idx": {
640
+ "name": "issues_repo_state_idx",
641
+ "columns": [
642
+ {
643
+ "expression": "repo_id",
644
+ "isExpression": false,
645
+ "asc": true,
646
+ "nulls": "last"
647
+ },
648
+ {
649
+ "expression": "state",
650
+ "isExpression": false,
651
+ "asc": true,
652
+ "nulls": "last"
653
+ }
654
+ ],
655
+ "isUnique": false,
656
+ "concurrently": false,
657
+ "method": "btree",
658
+ "with": {}
659
+ },
660
+ "issues_parent_idx": {
661
+ "name": "issues_parent_idx",
662
+ "columns": [
663
+ {
664
+ "expression": "parent_id",
665
+ "isExpression": false,
666
+ "asc": true,
667
+ "nulls": "last"
668
+ }
669
+ ],
670
+ "isUnique": false,
671
+ "concurrently": false,
672
+ "method": "btree",
673
+ "with": {}
674
+ },
675
+ "issues_milestone_idx": {
676
+ "name": "issues_milestone_idx",
677
+ "columns": [
678
+ {
679
+ "expression": "milestone_id",
680
+ "isExpression": false,
681
+ "asc": true,
682
+ "nulls": "last"
683
+ }
684
+ ],
685
+ "isUnique": false,
686
+ "concurrently": false,
687
+ "method": "btree",
688
+ "with": {}
689
+ }
690
+ },
691
+ "foreignKeys": {
692
+ "issues_repo_id_repos_id_fk": {
693
+ "name": "issues_repo_id_repos_id_fk",
694
+ "tableFrom": "issues",
695
+ "tableTo": "repos",
696
+ "columnsFrom": [
697
+ "repo_id"
698
+ ],
699
+ "columnsTo": [
700
+ "id"
701
+ ],
702
+ "onDelete": "cascade",
703
+ "onUpdate": "no action"
704
+ },
705
+ "issues_milestone_id_milestones_id_fk": {
706
+ "name": "issues_milestone_id_milestones_id_fk",
707
+ "tableFrom": "issues",
708
+ "tableTo": "milestones",
709
+ "columnsFrom": [
710
+ "milestone_id"
711
+ ],
712
+ "columnsTo": [
713
+ "id"
714
+ ],
715
+ "onDelete": "set null",
716
+ "onUpdate": "no action"
717
+ }
718
+ },
719
+ "compositePrimaryKeys": {},
720
+ "uniqueConstraints": {},
721
+ "policies": {},
722
+ "checkConstraints": {},
723
+ "isRLSEnabled": false
724
+ },
725
+ "public.messages": {
726
+ "name": "messages",
727
+ "schema": "",
728
+ "columns": {
729
+ "id": {
730
+ "name": "id",
731
+ "type": "text",
732
+ "primaryKey": true,
733
+ "notNull": true
734
+ },
735
+ "session_id": {
736
+ "name": "session_id",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": true
740
+ },
741
+ "role": {
742
+ "name": "role",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": true
746
+ },
747
+ "agent": {
748
+ "name": "agent",
749
+ "type": "text",
750
+ "primaryKey": false,
751
+ "notNull": false
752
+ },
753
+ "model": {
754
+ "name": "model",
755
+ "type": "text",
756
+ "primaryKey": false,
757
+ "notNull": false
758
+ },
759
+ "provider": {
760
+ "name": "provider",
761
+ "type": "text",
762
+ "primaryKey": false,
763
+ "notNull": false
764
+ },
765
+ "variant": {
766
+ "name": "variant",
767
+ "type": "text",
768
+ "primaryKey": false,
769
+ "notNull": false
770
+ },
771
+ "cost": {
772
+ "name": "cost",
773
+ "type": "real",
774
+ "primaryKey": false,
775
+ "notNull": false
776
+ },
777
+ "time_created": {
778
+ "name": "time_created",
779
+ "type": "bigint",
780
+ "primaryKey": false,
781
+ "notNull": true
782
+ },
783
+ "time_updated": {
784
+ "name": "time_updated",
785
+ "type": "bigint",
786
+ "primaryKey": false,
787
+ "notNull": true
788
+ }
789
+ },
790
+ "indexes": {
791
+ "messages_session_idx": {
792
+ "name": "messages_session_idx",
793
+ "columns": [
794
+ {
795
+ "expression": "session_id",
796
+ "isExpression": false,
797
+ "asc": true,
798
+ "nulls": "last"
799
+ },
800
+ {
801
+ "expression": "time_created",
802
+ "isExpression": false,
803
+ "asc": true,
804
+ "nulls": "last"
805
+ }
806
+ ],
807
+ "isUnique": false,
808
+ "concurrently": false,
809
+ "method": "btree",
810
+ "with": {}
811
+ }
812
+ },
813
+ "foreignKeys": {
814
+ "messages_session_id_sessions_id_fk": {
815
+ "name": "messages_session_id_sessions_id_fk",
816
+ "tableFrom": "messages",
817
+ "tableTo": "sessions",
818
+ "columnsFrom": [
819
+ "session_id"
820
+ ],
821
+ "columnsTo": [
822
+ "id"
823
+ ],
824
+ "onDelete": "cascade",
825
+ "onUpdate": "no action"
826
+ }
827
+ },
828
+ "compositePrimaryKeys": {},
829
+ "uniqueConstraints": {},
830
+ "policies": {},
831
+ "checkConstraints": {},
832
+ "isRLSEnabled": false
833
+ },
834
+ "public.milestones": {
835
+ "name": "milestones",
836
+ "schema": "",
837
+ "columns": {
838
+ "id": {
839
+ "name": "id",
840
+ "type": "text",
841
+ "primaryKey": true,
842
+ "notNull": true
843
+ },
844
+ "repo_id": {
845
+ "name": "repo_id",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": true
849
+ },
850
+ "number": {
851
+ "name": "number",
852
+ "type": "integer",
853
+ "primaryKey": false,
854
+ "notNull": true
855
+ },
856
+ "title": {
857
+ "name": "title",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": true
861
+ },
862
+ "description": {
863
+ "name": "description",
864
+ "type": "text",
865
+ "primaryKey": false,
866
+ "notNull": false
867
+ },
868
+ "state": {
869
+ "name": "state",
870
+ "type": "text",
871
+ "primaryKey": false,
872
+ "notNull": true,
873
+ "default": "'open'"
874
+ },
875
+ "due_on": {
876
+ "name": "due_on",
877
+ "type": "bigint",
878
+ "primaryKey": false,
879
+ "notNull": false
880
+ },
881
+ "open_issues": {
882
+ "name": "open_issues",
883
+ "type": "integer",
884
+ "primaryKey": false,
885
+ "notNull": true,
886
+ "default": 0
887
+ },
888
+ "closed_issues": {
889
+ "name": "closed_issues",
890
+ "type": "integer",
891
+ "primaryKey": false,
892
+ "notNull": true,
893
+ "default": 0
894
+ },
895
+ "created_at": {
896
+ "name": "created_at",
897
+ "type": "bigint",
898
+ "primaryKey": false,
899
+ "notNull": true
900
+ },
901
+ "updated_at": {
902
+ "name": "updated_at",
903
+ "type": "bigint",
904
+ "primaryKey": false,
905
+ "notNull": true
906
+ }
907
+ },
908
+ "indexes": {
909
+ "milestones_repo_number_idx": {
910
+ "name": "milestones_repo_number_idx",
911
+ "columns": [
912
+ {
913
+ "expression": "repo_id",
914
+ "isExpression": false,
915
+ "asc": true,
916
+ "nulls": "last"
917
+ },
918
+ {
919
+ "expression": "number",
920
+ "isExpression": false,
921
+ "asc": true,
922
+ "nulls": "last"
923
+ }
924
+ ],
925
+ "isUnique": true,
926
+ "concurrently": false,
927
+ "method": "btree",
928
+ "with": {}
929
+ },
930
+ "milestones_repo_idx": {
931
+ "name": "milestones_repo_idx",
932
+ "columns": [
933
+ {
934
+ "expression": "repo_id",
935
+ "isExpression": false,
936
+ "asc": true,
937
+ "nulls": "last"
938
+ }
939
+ ],
940
+ "isUnique": false,
941
+ "concurrently": false,
942
+ "method": "btree",
943
+ "with": {}
944
+ }
945
+ },
946
+ "foreignKeys": {
947
+ "milestones_repo_id_repos_id_fk": {
948
+ "name": "milestones_repo_id_repos_id_fk",
949
+ "tableFrom": "milestones",
950
+ "tableTo": "repos",
951
+ "columnsFrom": [
952
+ "repo_id"
953
+ ],
954
+ "columnsTo": [
955
+ "id"
956
+ ],
957
+ "onDelete": "cascade",
958
+ "onUpdate": "no action"
959
+ }
960
+ },
961
+ "compositePrimaryKeys": {},
962
+ "uniqueConstraints": {},
963
+ "policies": {},
964
+ "checkConstraints": {},
965
+ "isRLSEnabled": false
966
+ },
967
+ "public.parts": {
968
+ "name": "parts",
969
+ "schema": "",
970
+ "columns": {
971
+ "id": {
972
+ "name": "id",
973
+ "type": "text",
974
+ "primaryKey": true,
975
+ "notNull": true
976
+ },
977
+ "message_id": {
978
+ "name": "message_id",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": true
982
+ },
983
+ "session_id": {
984
+ "name": "session_id",
985
+ "type": "text",
986
+ "primaryKey": false,
987
+ "notNull": true
988
+ },
989
+ "type": {
990
+ "name": "type",
991
+ "type": "text",
992
+ "primaryKey": false,
993
+ "notNull": true
994
+ },
995
+ "data": {
996
+ "name": "data",
997
+ "type": "jsonb",
998
+ "primaryKey": false,
999
+ "notNull": true
1000
+ },
1001
+ "time_created": {
1002
+ "name": "time_created",
1003
+ "type": "bigint",
1004
+ "primaryKey": false,
1005
+ "notNull": true
1006
+ },
1007
+ "time_updated": {
1008
+ "name": "time_updated",
1009
+ "type": "bigint",
1010
+ "primaryKey": false,
1011
+ "notNull": true
1012
+ }
1013
+ },
1014
+ "indexes": {
1015
+ "parts_message_idx": {
1016
+ "name": "parts_message_idx",
1017
+ "columns": [
1018
+ {
1019
+ "expression": "message_id",
1020
+ "isExpression": false,
1021
+ "asc": true,
1022
+ "nulls": "last"
1023
+ }
1024
+ ],
1025
+ "isUnique": false,
1026
+ "concurrently": false,
1027
+ "method": "btree",
1028
+ "with": {}
1029
+ },
1030
+ "parts_session_idx": {
1031
+ "name": "parts_session_idx",
1032
+ "columns": [
1033
+ {
1034
+ "expression": "session_id",
1035
+ "isExpression": false,
1036
+ "asc": true,
1037
+ "nulls": "last"
1038
+ }
1039
+ ],
1040
+ "isUnique": false,
1041
+ "concurrently": false,
1042
+ "method": "btree",
1043
+ "with": {}
1044
+ }
1045
+ },
1046
+ "foreignKeys": {
1047
+ "parts_message_id_messages_id_fk": {
1048
+ "name": "parts_message_id_messages_id_fk",
1049
+ "tableFrom": "parts",
1050
+ "tableTo": "messages",
1051
+ "columnsFrom": [
1052
+ "message_id"
1053
+ ],
1054
+ "columnsTo": [
1055
+ "id"
1056
+ ],
1057
+ "onDelete": "cascade",
1058
+ "onUpdate": "no action"
1059
+ },
1060
+ "parts_session_id_sessions_id_fk": {
1061
+ "name": "parts_session_id_sessions_id_fk",
1062
+ "tableFrom": "parts",
1063
+ "tableTo": "sessions",
1064
+ "columnsFrom": [
1065
+ "session_id"
1066
+ ],
1067
+ "columnsTo": [
1068
+ "id"
1069
+ ],
1070
+ "onDelete": "cascade",
1071
+ "onUpdate": "no action"
1072
+ }
1073
+ },
1074
+ "compositePrimaryKeys": {},
1075
+ "uniqueConstraints": {},
1076
+ "policies": {},
1077
+ "checkConstraints": {},
1078
+ "isRLSEnabled": false
1079
+ },
1080
+ "public.pr_issue_links": {
1081
+ "name": "pr_issue_links",
1082
+ "schema": "",
1083
+ "columns": {
1084
+ "pr_id": {
1085
+ "name": "pr_id",
1086
+ "type": "text",
1087
+ "primaryKey": false,
1088
+ "notNull": true
1089
+ },
1090
+ "issue_id": {
1091
+ "name": "issue_id",
1092
+ "type": "text",
1093
+ "primaryKey": false,
1094
+ "notNull": true
1095
+ }
1096
+ },
1097
+ "indexes": {
1098
+ "pr_issue_links_issue_idx": {
1099
+ "name": "pr_issue_links_issue_idx",
1100
+ "columns": [
1101
+ {
1102
+ "expression": "issue_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
+ "pr_issue_links_pr_id_pull_requests_id_fk": {
1116
+ "name": "pr_issue_links_pr_id_pull_requests_id_fk",
1117
+ "tableFrom": "pr_issue_links",
1118
+ "tableTo": "pull_requests",
1119
+ "columnsFrom": [
1120
+ "pr_id"
1121
+ ],
1122
+ "columnsTo": [
1123
+ "id"
1124
+ ],
1125
+ "onDelete": "cascade",
1126
+ "onUpdate": "no action"
1127
+ },
1128
+ "pr_issue_links_issue_id_issues_id_fk": {
1129
+ "name": "pr_issue_links_issue_id_issues_id_fk",
1130
+ "tableFrom": "pr_issue_links",
1131
+ "tableTo": "issues",
1132
+ "columnsFrom": [
1133
+ "issue_id"
1134
+ ],
1135
+ "columnsTo": [
1136
+ "id"
1137
+ ],
1138
+ "onDelete": "cascade",
1139
+ "onUpdate": "no action"
1140
+ }
1141
+ },
1142
+ "compositePrimaryKeys": {
1143
+ "pr_issue_links_pr_id_issue_id_pk": {
1144
+ "name": "pr_issue_links_pr_id_issue_id_pk",
1145
+ "columns": [
1146
+ "pr_id",
1147
+ "issue_id"
1148
+ ]
1149
+ }
1150
+ },
1151
+ "uniqueConstraints": {},
1152
+ "policies": {},
1153
+ "checkConstraints": {},
1154
+ "isRLSEnabled": false
1155
+ },
1156
+ "public.prompt_fragments": {
1157
+ "name": "prompt_fragments",
1158
+ "schema": "",
1159
+ "columns": {
1160
+ "id": {
1161
+ "name": "id",
1162
+ "type": "text",
1163
+ "primaryKey": true,
1164
+ "notNull": true
1165
+ },
1166
+ "name": {
1167
+ "name": "name",
1168
+ "type": "text",
1169
+ "primaryKey": false,
1170
+ "notNull": true
1171
+ },
1172
+ "content": {
1173
+ "name": "content",
1174
+ "type": "text",
1175
+ "primaryKey": false,
1176
+ "notNull": true,
1177
+ "default": "''"
1178
+ },
1179
+ "repo_id": {
1180
+ "name": "repo_id",
1181
+ "type": "text",
1182
+ "primaryKey": false,
1183
+ "notNull": false
1184
+ },
1185
+ "sort_order": {
1186
+ "name": "sort_order",
1187
+ "type": "integer",
1188
+ "primaryKey": false,
1189
+ "notNull": true,
1190
+ "default": 0
1191
+ },
1192
+ "created_at": {
1193
+ "name": "created_at",
1194
+ "type": "bigint",
1195
+ "primaryKey": false,
1196
+ "notNull": true
1197
+ },
1198
+ "updated_at": {
1199
+ "name": "updated_at",
1200
+ "type": "bigint",
1201
+ "primaryKey": false,
1202
+ "notNull": true
1203
+ }
1204
+ },
1205
+ "indexes": {
1206
+ "prompt_fragments_repo_idx": {
1207
+ "name": "prompt_fragments_repo_idx",
1208
+ "columns": [
1209
+ {
1210
+ "expression": "repo_id",
1211
+ "isExpression": false,
1212
+ "asc": true,
1213
+ "nulls": "last"
1214
+ }
1215
+ ],
1216
+ "isUnique": false,
1217
+ "concurrently": false,
1218
+ "method": "btree",
1219
+ "with": {}
1220
+ }
1221
+ },
1222
+ "foreignKeys": {
1223
+ "prompt_fragments_repo_id_repos_id_fk": {
1224
+ "name": "prompt_fragments_repo_id_repos_id_fk",
1225
+ "tableFrom": "prompt_fragments",
1226
+ "tableTo": "repos",
1227
+ "columnsFrom": [
1228
+ "repo_id"
1229
+ ],
1230
+ "columnsTo": [
1231
+ "id"
1232
+ ],
1233
+ "onDelete": "cascade",
1234
+ "onUpdate": "no action"
1235
+ }
1236
+ },
1237
+ "compositePrimaryKeys": {},
1238
+ "uniqueConstraints": {},
1239
+ "policies": {},
1240
+ "checkConstraints": {},
1241
+ "isRLSEnabled": false
1242
+ },
1243
+ "public.pull_requests": {
1244
+ "name": "pull_requests",
1245
+ "schema": "",
1246
+ "columns": {
1247
+ "id": {
1248
+ "name": "id",
1249
+ "type": "text",
1250
+ "primaryKey": true,
1251
+ "notNull": true
1252
+ },
1253
+ "repo_id": {
1254
+ "name": "repo_id",
1255
+ "type": "text",
1256
+ "primaryKey": false,
1257
+ "notNull": true
1258
+ },
1259
+ "number": {
1260
+ "name": "number",
1261
+ "type": "integer",
1262
+ "primaryKey": false,
1263
+ "notNull": true
1264
+ },
1265
+ "title": {
1266
+ "name": "title",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true
1270
+ },
1271
+ "body": {
1272
+ "name": "body",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": false
1276
+ },
1277
+ "state": {
1278
+ "name": "state",
1279
+ "type": "text",
1280
+ "primaryKey": false,
1281
+ "notNull": true,
1282
+ "default": "'open'"
1283
+ },
1284
+ "head_branch": {
1285
+ "name": "head_branch",
1286
+ "type": "text",
1287
+ "primaryKey": false,
1288
+ "notNull": true
1289
+ },
1290
+ "base_branch": {
1291
+ "name": "base_branch",
1292
+ "type": "text",
1293
+ "primaryKey": false,
1294
+ "notNull": true
1295
+ },
1296
+ "labels": {
1297
+ "name": "labels",
1298
+ "type": "jsonb",
1299
+ "primaryKey": false,
1300
+ "notNull": false
1301
+ },
1302
+ "html_url": {
1303
+ "name": "html_url",
1304
+ "type": "text",
1305
+ "primaryKey": false,
1306
+ "notNull": false
1307
+ },
1308
+ "author_login": {
1309
+ "name": "author_login",
1310
+ "type": "text",
1311
+ "primaryKey": false,
1312
+ "notNull": false
1313
+ },
1314
+ "author_avatar": {
1315
+ "name": "author_avatar",
1316
+ "type": "text",
1317
+ "primaryKey": false,
1318
+ "notNull": false
1319
+ },
1320
+ "assignees": {
1321
+ "name": "assignees",
1322
+ "type": "jsonb",
1323
+ "primaryKey": false,
1324
+ "notNull": false
1325
+ },
1326
+ "mergeable": {
1327
+ "name": "mergeable",
1328
+ "type": "text",
1329
+ "primaryKey": false,
1330
+ "notNull": false
1331
+ },
1332
+ "draft": {
1333
+ "name": "draft",
1334
+ "type": "integer",
1335
+ "primaryKey": false,
1336
+ "notNull": true,
1337
+ "default": 0
1338
+ },
1339
+ "comment_count": {
1340
+ "name": "comment_count",
1341
+ "type": "integer",
1342
+ "primaryKey": false,
1343
+ "notNull": true,
1344
+ "default": 0
1345
+ },
1346
+ "created_at": {
1347
+ "name": "created_at",
1348
+ "type": "bigint",
1349
+ "primaryKey": false,
1350
+ "notNull": true
1351
+ },
1352
+ "updated_at": {
1353
+ "name": "updated_at",
1354
+ "type": "bigint",
1355
+ "primaryKey": false,
1356
+ "notNull": true
1357
+ },
1358
+ "merged_at": {
1359
+ "name": "merged_at",
1360
+ "type": "bigint",
1361
+ "primaryKey": false,
1362
+ "notNull": false
1363
+ }
1364
+ },
1365
+ "indexes": {
1366
+ "pull_requests_repo_number_idx": {
1367
+ "name": "pull_requests_repo_number_idx",
1368
+ "columns": [
1369
+ {
1370
+ "expression": "repo_id",
1371
+ "isExpression": false,
1372
+ "asc": true,
1373
+ "nulls": "last"
1374
+ },
1375
+ {
1376
+ "expression": "number",
1377
+ "isExpression": false,
1378
+ "asc": true,
1379
+ "nulls": "last"
1380
+ }
1381
+ ],
1382
+ "isUnique": true,
1383
+ "concurrently": false,
1384
+ "method": "btree",
1385
+ "with": {}
1386
+ },
1387
+ "pull_requests_repo_state_idx": {
1388
+ "name": "pull_requests_repo_state_idx",
1389
+ "columns": [
1390
+ {
1391
+ "expression": "repo_id",
1392
+ "isExpression": false,
1393
+ "asc": true,
1394
+ "nulls": "last"
1395
+ },
1396
+ {
1397
+ "expression": "state",
1398
+ "isExpression": false,
1399
+ "asc": true,
1400
+ "nulls": "last"
1401
+ }
1402
+ ],
1403
+ "isUnique": false,
1404
+ "concurrently": false,
1405
+ "method": "btree",
1406
+ "with": {}
1407
+ }
1408
+ },
1409
+ "foreignKeys": {
1410
+ "pull_requests_repo_id_repos_id_fk": {
1411
+ "name": "pull_requests_repo_id_repos_id_fk",
1412
+ "tableFrom": "pull_requests",
1413
+ "tableTo": "repos",
1414
+ "columnsFrom": [
1415
+ "repo_id"
1416
+ ],
1417
+ "columnsTo": [
1418
+ "id"
1419
+ ],
1420
+ "onDelete": "cascade",
1421
+ "onUpdate": "no action"
1422
+ }
1423
+ },
1424
+ "compositePrimaryKeys": {},
1425
+ "uniqueConstraints": {},
1426
+ "policies": {},
1427
+ "checkConstraints": {},
1428
+ "isRLSEnabled": false
1429
+ },
1430
+ "public.repos": {
1431
+ "name": "repos",
1432
+ "schema": "",
1433
+ "columns": {
1434
+ "id": {
1435
+ "name": "id",
1436
+ "type": "text",
1437
+ "primaryKey": true,
1438
+ "notNull": true
1439
+ },
1440
+ "name": {
1441
+ "name": "name",
1442
+ "type": "text",
1443
+ "primaryKey": false,
1444
+ "notNull": true
1445
+ },
1446
+ "git_url": {
1447
+ "name": "git_url",
1448
+ "type": "text",
1449
+ "primaryKey": false,
1450
+ "notNull": true
1451
+ },
1452
+ "local_path": {
1453
+ "name": "local_path",
1454
+ "type": "text",
1455
+ "primaryKey": false,
1456
+ "notNull": true
1457
+ },
1458
+ "port": {
1459
+ "name": "port",
1460
+ "type": "integer",
1461
+ "primaryKey": false,
1462
+ "notNull": false
1463
+ },
1464
+ "status": {
1465
+ "name": "status",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": true,
1469
+ "default": "'inactive'"
1470
+ },
1471
+ "created_at": {
1472
+ "name": "created_at",
1473
+ "type": "bigint",
1474
+ "primaryKey": false,
1475
+ "notNull": true
1476
+ },
1477
+ "updated_at": {
1478
+ "name": "updated_at",
1479
+ "type": "bigint",
1480
+ "primaryKey": false,
1481
+ "notNull": true
1482
+ }
1483
+ },
1484
+ "indexes": {
1485
+ "repos_local_path_idx": {
1486
+ "name": "repos_local_path_idx",
1487
+ "columns": [
1488
+ {
1489
+ "expression": "local_path",
1490
+ "isExpression": false,
1491
+ "asc": true,
1492
+ "nulls": "last"
1493
+ }
1494
+ ],
1495
+ "isUnique": true,
1496
+ "concurrently": false,
1497
+ "method": "btree",
1498
+ "with": {}
1499
+ }
1500
+ },
1501
+ "foreignKeys": {},
1502
+ "compositePrimaryKeys": {},
1503
+ "uniqueConstraints": {},
1504
+ "policies": {},
1505
+ "checkConstraints": {},
1506
+ "isRLSEnabled": false
1507
+ },
1508
+ "public.session_links": {
1509
+ "name": "session_links",
1510
+ "schema": "",
1511
+ "columns": {
1512
+ "session_id": {
1513
+ "name": "session_id",
1514
+ "type": "text",
1515
+ "primaryKey": false,
1516
+ "notNull": true
1517
+ },
1518
+ "type": {
1519
+ "name": "type",
1520
+ "type": "text",
1521
+ "primaryKey": false,
1522
+ "notNull": true
1523
+ },
1524
+ "target_id": {
1525
+ "name": "target_id",
1526
+ "type": "text",
1527
+ "primaryKey": false,
1528
+ "notNull": true
1529
+ },
1530
+ "created_at": {
1531
+ "name": "created_at",
1532
+ "type": "bigint",
1533
+ "primaryKey": false,
1534
+ "notNull": true
1535
+ }
1536
+ },
1537
+ "indexes": {
1538
+ "session_links_session_idx": {
1539
+ "name": "session_links_session_idx",
1540
+ "columns": [
1541
+ {
1542
+ "expression": "session_id",
1543
+ "isExpression": false,
1544
+ "asc": true,
1545
+ "nulls": "last"
1546
+ }
1547
+ ],
1548
+ "isUnique": false,
1549
+ "concurrently": false,
1550
+ "method": "btree",
1551
+ "with": {}
1552
+ },
1553
+ "session_links_target_idx": {
1554
+ "name": "session_links_target_idx",
1555
+ "columns": [
1556
+ {
1557
+ "expression": "type",
1558
+ "isExpression": false,
1559
+ "asc": true,
1560
+ "nulls": "last"
1561
+ },
1562
+ {
1563
+ "expression": "target_id",
1564
+ "isExpression": false,
1565
+ "asc": true,
1566
+ "nulls": "last"
1567
+ }
1568
+ ],
1569
+ "isUnique": false,
1570
+ "concurrently": false,
1571
+ "method": "btree",
1572
+ "with": {}
1573
+ }
1574
+ },
1575
+ "foreignKeys": {
1576
+ "session_links_session_id_sessions_id_fk": {
1577
+ "name": "session_links_session_id_sessions_id_fk",
1578
+ "tableFrom": "session_links",
1579
+ "tableTo": "sessions",
1580
+ "columnsFrom": [
1581
+ "session_id"
1582
+ ],
1583
+ "columnsTo": [
1584
+ "id"
1585
+ ],
1586
+ "onDelete": "cascade",
1587
+ "onUpdate": "no action"
1588
+ }
1589
+ },
1590
+ "compositePrimaryKeys": {
1591
+ "session_links_session_id_type_target_id_pk": {
1592
+ "name": "session_links_session_id_type_target_id_pk",
1593
+ "columns": [
1594
+ "session_id",
1595
+ "type",
1596
+ "target_id"
1597
+ ]
1598
+ }
1599
+ },
1600
+ "uniqueConstraints": {},
1601
+ "policies": {},
1602
+ "checkConstraints": {},
1603
+ "isRLSEnabled": false
1604
+ },
1605
+ "public.sessions": {
1606
+ "name": "sessions",
1607
+ "schema": "",
1608
+ "columns": {
1609
+ "id": {
1610
+ "name": "id",
1611
+ "type": "text",
1612
+ "primaryKey": true,
1613
+ "notNull": true
1614
+ },
1615
+ "parent_id": {
1616
+ "name": "parent_id",
1617
+ "type": "text",
1618
+ "primaryKey": false,
1619
+ "notNull": false
1620
+ },
1621
+ "issue_id": {
1622
+ "name": "issue_id",
1623
+ "type": "text",
1624
+ "primaryKey": false,
1625
+ "notNull": false
1626
+ },
1627
+ "custom_agent_id": {
1628
+ "name": "custom_agent_id",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": false
1632
+ },
1633
+ "title": {
1634
+ "name": "title",
1635
+ "type": "text",
1636
+ "primaryKey": false,
1637
+ "notNull": true,
1638
+ "default": "''"
1639
+ },
1640
+ "agent": {
1641
+ "name": "agent",
1642
+ "type": "text",
1643
+ "primaryKey": false,
1644
+ "notNull": false
1645
+ },
1646
+ "model": {
1647
+ "name": "model",
1648
+ "type": "jsonb",
1649
+ "primaryKey": false,
1650
+ "notNull": false
1651
+ },
1652
+ "directory": {
1653
+ "name": "directory",
1654
+ "type": "text",
1655
+ "primaryKey": false,
1656
+ "notNull": false
1657
+ },
1658
+ "cost": {
1659
+ "name": "cost",
1660
+ "type": "real",
1661
+ "primaryKey": false,
1662
+ "notNull": true,
1663
+ "default": 0
1664
+ },
1665
+ "tokens_input": {
1666
+ "name": "tokens_input",
1667
+ "type": "bigint",
1668
+ "primaryKey": false,
1669
+ "notNull": true,
1670
+ "default": 0
1671
+ },
1672
+ "tokens_output": {
1673
+ "name": "tokens_output",
1674
+ "type": "bigint",
1675
+ "primaryKey": false,
1676
+ "notNull": true,
1677
+ "default": 0
1678
+ },
1679
+ "tokens_reasoning": {
1680
+ "name": "tokens_reasoning",
1681
+ "type": "bigint",
1682
+ "primaryKey": false,
1683
+ "notNull": true,
1684
+ "default": 0
1685
+ },
1686
+ "tokens_cache_read": {
1687
+ "name": "tokens_cache_read",
1688
+ "type": "bigint",
1689
+ "primaryKey": false,
1690
+ "notNull": true,
1691
+ "default": 0
1692
+ },
1693
+ "tokens_cache_write": {
1694
+ "name": "tokens_cache_write",
1695
+ "type": "bigint",
1696
+ "primaryKey": false,
1697
+ "notNull": true,
1698
+ "default": 0
1699
+ },
1700
+ "user_id": {
1701
+ "name": "user_id",
1702
+ "type": "text",
1703
+ "primaryKey": false,
1704
+ "notNull": false
1705
+ },
1706
+ "time_created": {
1707
+ "name": "time_created",
1708
+ "type": "bigint",
1709
+ "primaryKey": false,
1710
+ "notNull": true
1711
+ },
1712
+ "time_updated": {
1713
+ "name": "time_updated",
1714
+ "type": "bigint",
1715
+ "primaryKey": false,
1716
+ "notNull": true
1717
+ }
1718
+ },
1719
+ "indexes": {
1720
+ "sessions_user_idx": {
1721
+ "name": "sessions_user_idx",
1722
+ "columns": [
1723
+ {
1724
+ "expression": "user_id",
1725
+ "isExpression": false,
1726
+ "asc": true,
1727
+ "nulls": "last"
1728
+ }
1729
+ ],
1730
+ "isUnique": false,
1731
+ "concurrently": false,
1732
+ "method": "btree",
1733
+ "with": {}
1734
+ },
1735
+ "sessions_time_created_idx": {
1736
+ "name": "sessions_time_created_idx",
1737
+ "columns": [
1738
+ {
1739
+ "expression": "time_created",
1740
+ "isExpression": false,
1741
+ "asc": true,
1742
+ "nulls": "last"
1743
+ }
1744
+ ],
1745
+ "isUnique": false,
1746
+ "concurrently": false,
1747
+ "method": "btree",
1748
+ "with": {}
1749
+ },
1750
+ "sessions_issue_idx": {
1751
+ "name": "sessions_issue_idx",
1752
+ "columns": [
1753
+ {
1754
+ "expression": "issue_id",
1755
+ "isExpression": false,
1756
+ "asc": true,
1757
+ "nulls": "last"
1758
+ }
1759
+ ],
1760
+ "isUnique": false,
1761
+ "concurrently": false,
1762
+ "method": "btree",
1763
+ "with": {}
1764
+ },
1765
+ "sessions_custom_agent_idx": {
1766
+ "name": "sessions_custom_agent_idx",
1767
+ "columns": [
1768
+ {
1769
+ "expression": "custom_agent_id",
1770
+ "isExpression": false,
1771
+ "asc": true,
1772
+ "nulls": "last"
1773
+ }
1774
+ ],
1775
+ "isUnique": false,
1776
+ "concurrently": false,
1777
+ "method": "btree",
1778
+ "with": {}
1779
+ }
1780
+ },
1781
+ "foreignKeys": {
1782
+ "sessions_issue_id_issues_id_fk": {
1783
+ "name": "sessions_issue_id_issues_id_fk",
1784
+ "tableFrom": "sessions",
1785
+ "tableTo": "issues",
1786
+ "columnsFrom": [
1787
+ "issue_id"
1788
+ ],
1789
+ "columnsTo": [
1790
+ "id"
1791
+ ],
1792
+ "onDelete": "set null",
1793
+ "onUpdate": "no action"
1794
+ },
1795
+ "sessions_custom_agent_id_custom_agents_id_fk": {
1796
+ "name": "sessions_custom_agent_id_custom_agents_id_fk",
1797
+ "tableFrom": "sessions",
1798
+ "tableTo": "custom_agents",
1799
+ "columnsFrom": [
1800
+ "custom_agent_id"
1801
+ ],
1802
+ "columnsTo": [
1803
+ "id"
1804
+ ],
1805
+ "onDelete": "set null",
1806
+ "onUpdate": "no action"
1807
+ }
1808
+ },
1809
+ "compositePrimaryKeys": {},
1810
+ "uniqueConstraints": {},
1811
+ "policies": {},
1812
+ "checkConstraints": {},
1813
+ "isRLSEnabled": false
1814
+ },
1815
+ "public.settings": {
1816
+ "name": "settings",
1817
+ "schema": "",
1818
+ "columns": {
1819
+ "key": {
1820
+ "name": "key",
1821
+ "type": "text",
1822
+ "primaryKey": true,
1823
+ "notNull": true
1824
+ },
1825
+ "value": {
1826
+ "name": "value",
1827
+ "type": "text",
1828
+ "primaryKey": false,
1829
+ "notNull": true
1830
+ },
1831
+ "updated_at": {
1832
+ "name": "updated_at",
1833
+ "type": "bigint",
1834
+ "primaryKey": false,
1835
+ "notNull": true
1836
+ }
1837
+ },
1838
+ "indexes": {},
1839
+ "foreignKeys": {},
1840
+ "compositePrimaryKeys": {},
1841
+ "uniqueConstraints": {},
1842
+ "policies": {},
1843
+ "checkConstraints": {},
1844
+ "isRLSEnabled": false
1845
+ },
1846
+ "public.tags": {
1847
+ "name": "tags",
1848
+ "schema": "",
1849
+ "columns": {
1850
+ "id": {
1851
+ "name": "id",
1852
+ "type": "text",
1853
+ "primaryKey": true,
1854
+ "notNull": true
1855
+ },
1856
+ "repo_id": {
1857
+ "name": "repo_id",
1858
+ "type": "text",
1859
+ "primaryKey": false,
1860
+ "notNull": true
1861
+ },
1862
+ "name": {
1863
+ "name": "name",
1864
+ "type": "text",
1865
+ "primaryKey": false,
1866
+ "notNull": true
1867
+ },
1868
+ "color": {
1869
+ "name": "color",
1870
+ "type": "text",
1871
+ "primaryKey": false,
1872
+ "notNull": true,
1873
+ "default": "'6b7280'"
1874
+ },
1875
+ "description": {
1876
+ "name": "description",
1877
+ "type": "text",
1878
+ "primaryKey": false,
1879
+ "notNull": false
1880
+ },
1881
+ "created_at": {
1882
+ "name": "created_at",
1883
+ "type": "bigint",
1884
+ "primaryKey": false,
1885
+ "notNull": true
1886
+ }
1887
+ },
1888
+ "indexes": {
1889
+ "tags_repo_name_idx": {
1890
+ "name": "tags_repo_name_idx",
1891
+ "columns": [
1892
+ {
1893
+ "expression": "repo_id",
1894
+ "isExpression": false,
1895
+ "asc": true,
1896
+ "nulls": "last"
1897
+ },
1898
+ {
1899
+ "expression": "name",
1900
+ "isExpression": false,
1901
+ "asc": true,
1902
+ "nulls": "last"
1903
+ }
1904
+ ],
1905
+ "isUnique": true,
1906
+ "concurrently": false,
1907
+ "method": "btree",
1908
+ "with": {}
1909
+ },
1910
+ "tags_repo_idx": {
1911
+ "name": "tags_repo_idx",
1912
+ "columns": [
1913
+ {
1914
+ "expression": "repo_id",
1915
+ "isExpression": false,
1916
+ "asc": true,
1917
+ "nulls": "last"
1918
+ }
1919
+ ],
1920
+ "isUnique": false,
1921
+ "concurrently": false,
1922
+ "method": "btree",
1923
+ "with": {}
1924
+ }
1925
+ },
1926
+ "foreignKeys": {
1927
+ "tags_repo_id_repos_id_fk": {
1928
+ "name": "tags_repo_id_repos_id_fk",
1929
+ "tableFrom": "tags",
1930
+ "tableTo": "repos",
1931
+ "columnsFrom": [
1932
+ "repo_id"
1933
+ ],
1934
+ "columnsTo": [
1935
+ "id"
1936
+ ],
1937
+ "onDelete": "cascade",
1938
+ "onUpdate": "no action"
1939
+ }
1940
+ },
1941
+ "compositePrimaryKeys": {},
1942
+ "uniqueConstraints": {},
1943
+ "policies": {},
1944
+ "checkConstraints": {},
1945
+ "isRLSEnabled": false
1946
+ },
1947
+ "public.todos": {
1948
+ "name": "todos",
1949
+ "schema": "",
1950
+ "columns": {
1951
+ "session_id": {
1952
+ "name": "session_id",
1953
+ "type": "text",
1954
+ "primaryKey": false,
1955
+ "notNull": true
1956
+ },
1957
+ "position": {
1958
+ "name": "position",
1959
+ "type": "integer",
1960
+ "primaryKey": false,
1961
+ "notNull": true
1962
+ },
1963
+ "content": {
1964
+ "name": "content",
1965
+ "type": "text",
1966
+ "primaryKey": false,
1967
+ "notNull": true
1968
+ },
1969
+ "status": {
1970
+ "name": "status",
1971
+ "type": "text",
1972
+ "primaryKey": false,
1973
+ "notNull": true
1974
+ },
1975
+ "priority": {
1976
+ "name": "priority",
1977
+ "type": "text",
1978
+ "primaryKey": false,
1979
+ "notNull": true,
1980
+ "default": "'medium'"
1981
+ },
1982
+ "time_created": {
1983
+ "name": "time_created",
1984
+ "type": "bigint",
1985
+ "primaryKey": false,
1986
+ "notNull": true
1987
+ },
1988
+ "time_updated": {
1989
+ "name": "time_updated",
1990
+ "type": "bigint",
1991
+ "primaryKey": false,
1992
+ "notNull": true
1993
+ }
1994
+ },
1995
+ "indexes": {},
1996
+ "foreignKeys": {
1997
+ "todos_session_id_sessions_id_fk": {
1998
+ "name": "todos_session_id_sessions_id_fk",
1999
+ "tableFrom": "todos",
2000
+ "tableTo": "sessions",
2001
+ "columnsFrom": [
2002
+ "session_id"
2003
+ ],
2004
+ "columnsTo": [
2005
+ "id"
2006
+ ],
2007
+ "onDelete": "cascade",
2008
+ "onUpdate": "no action"
2009
+ }
2010
+ },
2011
+ "compositePrimaryKeys": {
2012
+ "todos_session_id_position_pk": {
2013
+ "name": "todos_session_id_position_pk",
2014
+ "columns": [
2015
+ "session_id",
2016
+ "position"
2017
+ ]
2018
+ }
2019
+ },
2020
+ "uniqueConstraints": {},
2021
+ "policies": {},
2022
+ "checkConstraints": {},
2023
+ "isRLSEnabled": false
2024
+ }
2025
+ },
2026
+ "enums": {},
2027
+ "schemas": {},
2028
+ "sequences": {},
2029
+ "roles": {},
2030
+ "policies": {},
2031
+ "views": {},
2032
+ "_meta": {
2033
+ "columns": {},
2034
+ "schemas": {},
2035
+ "tables": {}
2036
+ }
2037
+ }