@crewx/sdk 0.8.6-rc.8 → 0.8.6

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