@crewx/sdk 0.8.4-rc.3 → 0.8.4

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,1091 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "343164e8-2973-49ee-b3db-74c332c61ae2",
5
+ "prevId": "e370a9af-b45e-4090-9ca0-c64d345cf9a9",
6
+ "tables": {
7
+ "workspaces": {
8
+ "name": "workspaces",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "slug": {
18
+ "name": "slug",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "name": {
25
+ "name": "name",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "workspace_path": {
32
+ "name": "workspace_path",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "description": {
39
+ "name": "description",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "is_active": {
46
+ "name": "is_active",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false,
51
+ "default": 1
52
+ },
53
+ "created_at": {
54
+ "name": "created_at",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": true,
58
+ "autoincrement": false
59
+ },
60
+ "updated_at": {
61
+ "name": "updated_at",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "autoincrement": false
66
+ }
67
+ },
68
+ "indexes": {
69
+ "workspaces_slug_unique": {
70
+ "name": "workspaces_slug_unique",
71
+ "columns": [
72
+ "slug"
73
+ ],
74
+ "isUnique": true
75
+ }
76
+ },
77
+ "foreignKeys": {},
78
+ "compositePrimaryKeys": {},
79
+ "uniqueConstraints": {},
80
+ "checkConstraints": {}
81
+ },
82
+ "tasks": {
83
+ "name": "tasks",
84
+ "columns": {
85
+ "id": {
86
+ "name": "id",
87
+ "type": "text",
88
+ "primaryKey": true,
89
+ "notNull": true,
90
+ "autoincrement": false
91
+ },
92
+ "agent_id": {
93
+ "name": "agent_id",
94
+ "type": "text",
95
+ "primaryKey": false,
96
+ "notNull": true,
97
+ "autoincrement": false
98
+ },
99
+ "user_id": {
100
+ "name": "user_id",
101
+ "type": "text",
102
+ "primaryKey": false,
103
+ "notNull": false,
104
+ "autoincrement": false
105
+ },
106
+ "prompt": {
107
+ "name": "prompt",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "mode": {
114
+ "name": "mode",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false,
119
+ "default": "'execute'"
120
+ },
121
+ "status": {
122
+ "name": "status",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true,
126
+ "autoincrement": false,
127
+ "default": "'running'"
128
+ },
129
+ "result": {
130
+ "name": "result",
131
+ "type": "text",
132
+ "primaryKey": false,
133
+ "notNull": false,
134
+ "autoincrement": false
135
+ },
136
+ "error": {
137
+ "name": "error",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": false,
141
+ "autoincrement": false
142
+ },
143
+ "started_at": {
144
+ "name": "started_at",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true,
148
+ "autoincrement": false
149
+ },
150
+ "completed_at": {
151
+ "name": "completed_at",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": false,
155
+ "autoincrement": false
156
+ },
157
+ "duration_ms": {
158
+ "name": "duration_ms",
159
+ "type": "integer",
160
+ "primaryKey": false,
161
+ "notNull": false,
162
+ "autoincrement": false
163
+ },
164
+ "metadata": {
165
+ "name": "metadata",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": false,
169
+ "autoincrement": false
170
+ },
171
+ "workspace_id": {
172
+ "name": "workspace_id",
173
+ "type": "text",
174
+ "primaryKey": false,
175
+ "notNull": false,
176
+ "autoincrement": false
177
+ },
178
+ "workspace_name": {
179
+ "name": "workspace_name",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": false,
183
+ "autoincrement": false
184
+ },
185
+ "trace_id": {
186
+ "name": "trace_id",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": false,
190
+ "autoincrement": false
191
+ },
192
+ "parent_task_id": {
193
+ "name": "parent_task_id",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": false,
197
+ "autoincrement": false
198
+ },
199
+ "caller_agent_id": {
200
+ "name": "caller_agent_id",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": false,
204
+ "autoincrement": false
205
+ },
206
+ "model": {
207
+ "name": "model",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": false,
211
+ "autoincrement": false
212
+ },
213
+ "platform": {
214
+ "name": "platform",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": false,
218
+ "autoincrement": false,
219
+ "default": "'cli'"
220
+ },
221
+ "crewx_version": {
222
+ "name": "crewx_version",
223
+ "type": "text",
224
+ "primaryKey": false,
225
+ "notNull": false,
226
+ "autoincrement": false
227
+ },
228
+ "input_tokens": {
229
+ "name": "input_tokens",
230
+ "type": "integer",
231
+ "primaryKey": false,
232
+ "notNull": false,
233
+ "autoincrement": false,
234
+ "default": 0
235
+ },
236
+ "output_tokens": {
237
+ "name": "output_tokens",
238
+ "type": "integer",
239
+ "primaryKey": false,
240
+ "notNull": false,
241
+ "autoincrement": false,
242
+ "default": 0
243
+ },
244
+ "cost_usd": {
245
+ "name": "cost_usd",
246
+ "type": "real",
247
+ "primaryKey": false,
248
+ "notNull": false,
249
+ "autoincrement": false,
250
+ "default": 0
251
+ },
252
+ "pid": {
253
+ "name": "pid",
254
+ "type": "integer",
255
+ "primaryKey": false,
256
+ "notNull": false,
257
+ "autoincrement": false
258
+ },
259
+ "rendered_prompt": {
260
+ "name": "rendered_prompt",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": false,
264
+ "autoincrement": false
265
+ },
266
+ "command": {
267
+ "name": "command",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": false,
271
+ "autoincrement": false
272
+ },
273
+ "coding_agent_command": {
274
+ "name": "coding_agent_command",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": false,
278
+ "autoincrement": false
279
+ },
280
+ "exit_code": {
281
+ "name": "exit_code",
282
+ "type": "integer",
283
+ "primaryKey": false,
284
+ "notNull": false,
285
+ "autoincrement": false
286
+ },
287
+ "logs": {
288
+ "name": "logs",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": false,
292
+ "autoincrement": false
293
+ },
294
+ "thread_id": {
295
+ "name": "thread_id",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": false,
299
+ "autoincrement": false
300
+ },
301
+ "workspace_ref": {
302
+ "name": "workspace_ref",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": false,
306
+ "autoincrement": false
307
+ },
308
+ "project_id": {
309
+ "name": "project_id",
310
+ "type": "text",
311
+ "primaryKey": false,
312
+ "notNull": false,
313
+ "autoincrement": false
314
+ },
315
+ "project_name": {
316
+ "name": "project_name",
317
+ "type": "text",
318
+ "primaryKey": false,
319
+ "notNull": false,
320
+ "autoincrement": false
321
+ },
322
+ "project_ref": {
323
+ "name": "project_ref",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": false,
327
+ "autoincrement": false
328
+ },
329
+ "cached_input_tokens": {
330
+ "name": "cached_input_tokens",
331
+ "type": "integer",
332
+ "primaryKey": false,
333
+ "notNull": false,
334
+ "autoincrement": false,
335
+ "default": 0
336
+ }
337
+ },
338
+ "indexes": {
339
+ "idx_tasks_agent_id": {
340
+ "name": "idx_tasks_agent_id",
341
+ "columns": [
342
+ "agent_id"
343
+ ],
344
+ "isUnique": false
345
+ },
346
+ "idx_tasks_status": {
347
+ "name": "idx_tasks_status",
348
+ "columns": [
349
+ "status"
350
+ ],
351
+ "isUnique": false
352
+ },
353
+ "idx_tasks_started_at": {
354
+ "name": "idx_tasks_started_at",
355
+ "columns": [
356
+ "started_at"
357
+ ],
358
+ "isUnique": false
359
+ },
360
+ "idx_tasks_trace_id": {
361
+ "name": "idx_tasks_trace_id",
362
+ "columns": [
363
+ "trace_id"
364
+ ],
365
+ "isUnique": false
366
+ },
367
+ "idx_tasks_parent_task_id": {
368
+ "name": "idx_tasks_parent_task_id",
369
+ "columns": [
370
+ "parent_task_id"
371
+ ],
372
+ "isUnique": false
373
+ },
374
+ "idx_tasks_crewx_version": {
375
+ "name": "idx_tasks_crewx_version",
376
+ "columns": [
377
+ "crewx_version"
378
+ ],
379
+ "isUnique": false
380
+ },
381
+ "idx_tasks_pid": {
382
+ "name": "idx_tasks_pid",
383
+ "columns": [
384
+ "pid"
385
+ ],
386
+ "isUnique": false
387
+ },
388
+ "idx_tasks_thread_id": {
389
+ "name": "idx_tasks_thread_id",
390
+ "columns": [
391
+ "thread_id"
392
+ ],
393
+ "isUnique": false
394
+ },
395
+ "idx_tasks_workspace_id": {
396
+ "name": "idx_tasks_workspace_id",
397
+ "columns": [
398
+ "workspace_id"
399
+ ],
400
+ "isUnique": false
401
+ },
402
+ "idx_tasks_workspace_ref": {
403
+ "name": "idx_tasks_workspace_ref",
404
+ "columns": [
405
+ "workspace_ref"
406
+ ],
407
+ "isUnique": false
408
+ },
409
+ "idx_tasks_project_id": {
410
+ "name": "idx_tasks_project_id",
411
+ "columns": [
412
+ "project_id"
413
+ ],
414
+ "isUnique": false
415
+ },
416
+ "idx_tasks_ws_started": {
417
+ "name": "idx_tasks_ws_started",
418
+ "columns": [
419
+ "workspace_id",
420
+ "started_at"
421
+ ],
422
+ "isUnique": false
423
+ }
424
+ },
425
+ "foreignKeys": {},
426
+ "compositePrimaryKeys": {},
427
+ "uniqueConstraints": {},
428
+ "checkConstraints": {}
429
+ },
430
+ "threads": {
431
+ "name": "threads",
432
+ "columns": {
433
+ "id": {
434
+ "name": "id",
435
+ "type": "text",
436
+ "primaryKey": true,
437
+ "notNull": true,
438
+ "autoincrement": false
439
+ },
440
+ "workspace_id": {
441
+ "name": "workspace_id",
442
+ "type": "text",
443
+ "primaryKey": false,
444
+ "notNull": false,
445
+ "autoincrement": false
446
+ },
447
+ "platform": {
448
+ "name": "platform",
449
+ "type": "text",
450
+ "primaryKey": false,
451
+ "notNull": true,
452
+ "autoincrement": false,
453
+ "default": "'cli'"
454
+ },
455
+ "title": {
456
+ "name": "title",
457
+ "type": "text",
458
+ "primaryKey": false,
459
+ "notNull": false,
460
+ "autoincrement": false
461
+ },
462
+ "first_message": {
463
+ "name": "first_message",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": false,
467
+ "autoincrement": false
468
+ },
469
+ "last_message": {
470
+ "name": "last_message",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": false,
474
+ "autoincrement": false
475
+ },
476
+ "message_count": {
477
+ "name": "message_count",
478
+ "type": "integer",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "autoincrement": false,
482
+ "default": 0
483
+ },
484
+ "created_at": {
485
+ "name": "created_at",
486
+ "type": "text",
487
+ "primaryKey": false,
488
+ "notNull": true,
489
+ "autoincrement": false
490
+ },
491
+ "updated_at": {
492
+ "name": "updated_at",
493
+ "type": "text",
494
+ "primaryKey": false,
495
+ "notNull": true,
496
+ "autoincrement": false
497
+ },
498
+ "metadata": {
499
+ "name": "metadata",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": false,
503
+ "autoincrement": false
504
+ },
505
+ "title_locked": {
506
+ "name": "title_locked",
507
+ "type": "integer",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "autoincrement": false,
511
+ "default": 0
512
+ }
513
+ },
514
+ "indexes": {
515
+ "idx_threads_updated_at": {
516
+ "name": "idx_threads_updated_at",
517
+ "columns": [
518
+ "updated_at"
519
+ ],
520
+ "isUnique": false
521
+ },
522
+ "idx_threads_workspace_id": {
523
+ "name": "idx_threads_workspace_id",
524
+ "columns": [
525
+ "workspace_id"
526
+ ],
527
+ "isUnique": false
528
+ }
529
+ },
530
+ "foreignKeys": {
531
+ "threads_workspace_id_workspaces_id_fk": {
532
+ "name": "threads_workspace_id_workspaces_id_fk",
533
+ "tableFrom": "threads",
534
+ "tableTo": "workspaces",
535
+ "columnsFrom": [
536
+ "workspace_id"
537
+ ],
538
+ "columnsTo": [
539
+ "id"
540
+ ],
541
+ "onDelete": "set null",
542
+ "onUpdate": "no action"
543
+ }
544
+ },
545
+ "compositePrimaryKeys": {},
546
+ "uniqueConstraints": {},
547
+ "checkConstraints": {}
548
+ },
549
+ "spans": {
550
+ "name": "spans",
551
+ "columns": {
552
+ "id": {
553
+ "name": "id",
554
+ "type": "text",
555
+ "primaryKey": true,
556
+ "notNull": true,
557
+ "autoincrement": false
558
+ },
559
+ "task_id": {
560
+ "name": "task_id",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": false,
564
+ "autoincrement": false
565
+ },
566
+ "parent_span_id": {
567
+ "name": "parent_span_id",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": false,
571
+ "autoincrement": false
572
+ },
573
+ "name": {
574
+ "name": "name",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "autoincrement": false
579
+ },
580
+ "kind": {
581
+ "name": "kind",
582
+ "type": "text",
583
+ "primaryKey": false,
584
+ "notNull": true,
585
+ "autoincrement": false,
586
+ "default": "'internal'"
587
+ },
588
+ "status": {
589
+ "name": "status",
590
+ "type": "text",
591
+ "primaryKey": false,
592
+ "notNull": true,
593
+ "autoincrement": false,
594
+ "default": "'ok'"
595
+ },
596
+ "started_at": {
597
+ "name": "started_at",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": true,
601
+ "autoincrement": false
602
+ },
603
+ "completed_at": {
604
+ "name": "completed_at",
605
+ "type": "text",
606
+ "primaryKey": false,
607
+ "notNull": false,
608
+ "autoincrement": false
609
+ },
610
+ "duration_ms": {
611
+ "name": "duration_ms",
612
+ "type": "integer",
613
+ "primaryKey": false,
614
+ "notNull": false,
615
+ "autoincrement": false
616
+ },
617
+ "input": {
618
+ "name": "input",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": false,
622
+ "autoincrement": false
623
+ },
624
+ "output": {
625
+ "name": "output",
626
+ "type": "text",
627
+ "primaryKey": false,
628
+ "notNull": false,
629
+ "autoincrement": false
630
+ },
631
+ "error": {
632
+ "name": "error",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": false,
636
+ "autoincrement": false
637
+ },
638
+ "attributes": {
639
+ "name": "attributes",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": false,
643
+ "autoincrement": false
644
+ }
645
+ },
646
+ "indexes": {
647
+ "idx_spans_task_id": {
648
+ "name": "idx_spans_task_id",
649
+ "columns": [
650
+ "task_id"
651
+ ],
652
+ "isUnique": false
653
+ },
654
+ "idx_spans_parent_span_id": {
655
+ "name": "idx_spans_parent_span_id",
656
+ "columns": [
657
+ "parent_span_id"
658
+ ],
659
+ "isUnique": false
660
+ }
661
+ },
662
+ "foreignKeys": {
663
+ "spans_task_id_tasks_id_fk": {
664
+ "name": "spans_task_id_tasks_id_fk",
665
+ "tableFrom": "spans",
666
+ "tableTo": "tasks",
667
+ "columnsFrom": [
668
+ "task_id"
669
+ ],
670
+ "columnsTo": [
671
+ "id"
672
+ ],
673
+ "onDelete": "set null",
674
+ "onUpdate": "no action"
675
+ },
676
+ "spans_parent_span_id_spans_id_fk": {
677
+ "name": "spans_parent_span_id_spans_id_fk",
678
+ "tableFrom": "spans",
679
+ "tableTo": "spans",
680
+ "columnsFrom": [
681
+ "parent_span_id"
682
+ ],
683
+ "columnsTo": [
684
+ "id"
685
+ ],
686
+ "onDelete": "set null",
687
+ "onUpdate": "no action"
688
+ }
689
+ },
690
+ "compositePrimaryKeys": {},
691
+ "uniqueConstraints": {},
692
+ "checkConstraints": {}
693
+ },
694
+ "tool_calls": {
695
+ "name": "tool_calls",
696
+ "columns": {
697
+ "id": {
698
+ "name": "id",
699
+ "type": "text",
700
+ "primaryKey": true,
701
+ "notNull": true,
702
+ "autoincrement": false
703
+ },
704
+ "task_id": {
705
+ "name": "task_id",
706
+ "type": "text",
707
+ "primaryKey": false,
708
+ "notNull": false,
709
+ "autoincrement": false
710
+ },
711
+ "session_id": {
712
+ "name": "session_id",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": false,
716
+ "autoincrement": false
717
+ },
718
+ "tool_name": {
719
+ "name": "tool_name",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": true,
723
+ "autoincrement": false
724
+ },
725
+ "files": {
726
+ "name": "files",
727
+ "type": "text",
728
+ "primaryKey": false,
729
+ "notNull": false,
730
+ "autoincrement": false
731
+ },
732
+ "input": {
733
+ "name": "input",
734
+ "type": "text",
735
+ "primaryKey": false,
736
+ "notNull": false,
737
+ "autoincrement": false
738
+ },
739
+ "output": {
740
+ "name": "output",
741
+ "type": "text",
742
+ "primaryKey": false,
743
+ "notNull": false,
744
+ "autoincrement": false
745
+ },
746
+ "duration_ms": {
747
+ "name": "duration_ms",
748
+ "type": "integer",
749
+ "primaryKey": false,
750
+ "notNull": false,
751
+ "autoincrement": false
752
+ },
753
+ "timestamp": {
754
+ "name": "timestamp",
755
+ "type": "text",
756
+ "primaryKey": false,
757
+ "notNull": true,
758
+ "autoincrement": false
759
+ }
760
+ },
761
+ "indexes": {
762
+ "idx_tool_calls_task_id": {
763
+ "name": "idx_tool_calls_task_id",
764
+ "columns": [
765
+ "task_id"
766
+ ],
767
+ "isUnique": false
768
+ },
769
+ "idx_tool_calls_tool_name": {
770
+ "name": "idx_tool_calls_tool_name",
771
+ "columns": [
772
+ "tool_name"
773
+ ],
774
+ "isUnique": false
775
+ },
776
+ "idx_tool_calls_timestamp": {
777
+ "name": "idx_tool_calls_timestamp",
778
+ "columns": [
779
+ "timestamp"
780
+ ],
781
+ "isUnique": false
782
+ }
783
+ },
784
+ "foreignKeys": {
785
+ "tool_calls_task_id_tasks_id_fk": {
786
+ "name": "tool_calls_task_id_tasks_id_fk",
787
+ "tableFrom": "tool_calls",
788
+ "tableTo": "tasks",
789
+ "columnsFrom": [
790
+ "task_id"
791
+ ],
792
+ "columnsTo": [
793
+ "id"
794
+ ],
795
+ "onDelete": "cascade",
796
+ "onUpdate": "no action"
797
+ }
798
+ },
799
+ "compositePrimaryKeys": {},
800
+ "uniqueConstraints": {},
801
+ "checkConstraints": {}
802
+ },
803
+ "thread_boxes": {
804
+ "name": "thread_boxes",
805
+ "columns": {
806
+ "id": {
807
+ "name": "id",
808
+ "type": "text",
809
+ "primaryKey": true,
810
+ "notNull": true,
811
+ "autoincrement": false
812
+ },
813
+ "thread_id": {
814
+ "name": "thread_id",
815
+ "type": "text",
816
+ "primaryKey": false,
817
+ "notNull": true,
818
+ "autoincrement": false
819
+ },
820
+ "seq": {
821
+ "name": "seq",
822
+ "type": "integer",
823
+ "primaryKey": false,
824
+ "notNull": true,
825
+ "autoincrement": false
826
+ },
827
+ "first_task_id": {
828
+ "name": "first_task_id",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": true,
832
+ "autoincrement": false
833
+ },
834
+ "mid_task_id": {
835
+ "name": "mid_task_id",
836
+ "type": "text",
837
+ "primaryKey": false,
838
+ "notNull": true,
839
+ "autoincrement": false
840
+ },
841
+ "last_task_id": {
842
+ "name": "last_task_id",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": true,
846
+ "autoincrement": false
847
+ },
848
+ "task_count": {
849
+ "name": "task_count",
850
+ "type": "integer",
851
+ "primaryKey": false,
852
+ "notNull": true,
853
+ "autoincrement": false
854
+ },
855
+ "summary": {
856
+ "name": "summary",
857
+ "type": "text",
858
+ "primaryKey": false,
859
+ "notNull": false,
860
+ "autoincrement": false
861
+ },
862
+ "source_tokens": {
863
+ "name": "source_tokens",
864
+ "type": "integer",
865
+ "primaryKey": false,
866
+ "notNull": true,
867
+ "autoincrement": false
868
+ },
869
+ "summary_tokens": {
870
+ "name": "summary_tokens",
871
+ "type": "integer",
872
+ "primaryKey": false,
873
+ "notNull": false,
874
+ "autoincrement": false
875
+ },
876
+ "created_at": {
877
+ "name": "created_at",
878
+ "type": "text",
879
+ "primaryKey": false,
880
+ "notNull": true,
881
+ "autoincrement": false
882
+ }
883
+ },
884
+ "indexes": {
885
+ "idx_thread_boxes_thread_id": {
886
+ "name": "idx_thread_boxes_thread_id",
887
+ "columns": [
888
+ "thread_id"
889
+ ],
890
+ "isUnique": false
891
+ },
892
+ "idx_thread_boxes_seq": {
893
+ "name": "idx_thread_boxes_seq",
894
+ "columns": [
895
+ "thread_id",
896
+ "seq"
897
+ ],
898
+ "isUnique": false
899
+ },
900
+ "thread_boxes_thread_id_seq_unique": {
901
+ "name": "thread_boxes_thread_id_seq_unique",
902
+ "columns": [
903
+ "thread_id",
904
+ "seq"
905
+ ],
906
+ "isUnique": true
907
+ }
908
+ },
909
+ "foreignKeys": {
910
+ "thread_boxes_thread_id_threads_id_fk": {
911
+ "name": "thread_boxes_thread_id_threads_id_fk",
912
+ "tableFrom": "thread_boxes",
913
+ "tableTo": "threads",
914
+ "columnsFrom": [
915
+ "thread_id"
916
+ ],
917
+ "columnsTo": [
918
+ "id"
919
+ ],
920
+ "onDelete": "cascade",
921
+ "onUpdate": "no action"
922
+ }
923
+ },
924
+ "compositePrimaryKeys": {},
925
+ "uniqueConstraints": {},
926
+ "checkConstraints": {}
927
+ },
928
+ "request_logs": {
929
+ "name": "request_logs",
930
+ "columns": {
931
+ "id": {
932
+ "name": "id",
933
+ "type": "text",
934
+ "primaryKey": true,
935
+ "notNull": true,
936
+ "autoincrement": false
937
+ },
938
+ "path": {
939
+ "name": "path",
940
+ "type": "text",
941
+ "primaryKey": false,
942
+ "notNull": true,
943
+ "autoincrement": false
944
+ },
945
+ "method": {
946
+ "name": "method",
947
+ "type": "text",
948
+ "primaryKey": false,
949
+ "notNull": true,
950
+ "autoincrement": false
951
+ },
952
+ "status_code": {
953
+ "name": "status_code",
954
+ "type": "integer",
955
+ "primaryKey": false,
956
+ "notNull": true,
957
+ "autoincrement": false
958
+ },
959
+ "duration_ms": {
960
+ "name": "duration_ms",
961
+ "type": "integer",
962
+ "primaryKey": false,
963
+ "notNull": true,
964
+ "autoincrement": false
965
+ },
966
+ "ip": {
967
+ "name": "ip",
968
+ "type": "text",
969
+ "primaryKey": false,
970
+ "notNull": false,
971
+ "autoincrement": false
972
+ },
973
+ "request_headers": {
974
+ "name": "request_headers",
975
+ "type": "text",
976
+ "primaryKey": false,
977
+ "notNull": false,
978
+ "autoincrement": false
979
+ },
980
+ "response_headers": {
981
+ "name": "response_headers",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": false,
985
+ "autoincrement": false
986
+ },
987
+ "request_body": {
988
+ "name": "request_body",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": false,
992
+ "autoincrement": false
993
+ },
994
+ "response_body": {
995
+ "name": "response_body",
996
+ "type": "text",
997
+ "primaryKey": false,
998
+ "notNull": false,
999
+ "autoincrement": false
1000
+ },
1001
+ "query": {
1002
+ "name": "query",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": false,
1006
+ "autoincrement": false
1007
+ },
1008
+ "user_id": {
1009
+ "name": "user_id",
1010
+ "type": "text",
1011
+ "primaryKey": false,
1012
+ "notNull": false,
1013
+ "autoincrement": false
1014
+ },
1015
+ "project_id": {
1016
+ "name": "project_id",
1017
+ "type": "text",
1018
+ "primaryKey": false,
1019
+ "notNull": false,
1020
+ "autoincrement": false
1021
+ },
1022
+ "partition_key": {
1023
+ "name": "partition_key",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": true,
1027
+ "autoincrement": false
1028
+ },
1029
+ "timestamp": {
1030
+ "name": "timestamp",
1031
+ "type": "text",
1032
+ "primaryKey": false,
1033
+ "notNull": true,
1034
+ "autoincrement": false,
1035
+ "default": "(datetime('now'))"
1036
+ },
1037
+ "metadata": {
1038
+ "name": "metadata",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": false,
1042
+ "autoincrement": false
1043
+ }
1044
+ },
1045
+ "indexes": {
1046
+ "idx_request_logs_timestamp": {
1047
+ "name": "idx_request_logs_timestamp",
1048
+ "columns": [
1049
+ "timestamp"
1050
+ ],
1051
+ "isUnique": false
1052
+ },
1053
+ "idx_request_logs_path": {
1054
+ "name": "idx_request_logs_path",
1055
+ "columns": [
1056
+ "path"
1057
+ ],
1058
+ "isUnique": false
1059
+ },
1060
+ "idx_request_logs_status_code": {
1061
+ "name": "idx_request_logs_status_code",
1062
+ "columns": [
1063
+ "status_code"
1064
+ ],
1065
+ "isUnique": false
1066
+ },
1067
+ "idx_request_logs_partition_key": {
1068
+ "name": "idx_request_logs_partition_key",
1069
+ "columns": [
1070
+ "partition_key"
1071
+ ],
1072
+ "isUnique": false
1073
+ }
1074
+ },
1075
+ "foreignKeys": {},
1076
+ "compositePrimaryKeys": {},
1077
+ "uniqueConstraints": {},
1078
+ "checkConstraints": {}
1079
+ }
1080
+ },
1081
+ "views": {},
1082
+ "enums": {},
1083
+ "_meta": {
1084
+ "schemas": {},
1085
+ "tables": {},
1086
+ "columns": {}
1087
+ },
1088
+ "internal": {
1089
+ "indexes": {}
1090
+ }
1091
+ }