@crewx/sdk 0.9.0-rc.1 → 0.9.0-rc.3

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,1217 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "b06fdfa1-3648-4419-afbf-08a1a164390e",
5
+ "prevId": "a1b2c3d4-norm-0002-drop-workspace-project-name",
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
+ "run_epoch": {
324
+ "name": "run_epoch",
325
+ "type": "integer",
326
+ "primaryKey": false,
327
+ "notNull": false,
328
+ "autoincrement": false,
329
+ "default": 0
330
+ }
331
+ },
332
+ "indexes": {
333
+ "idx_tasks_agent_id": {
334
+ "name": "idx_tasks_agent_id",
335
+ "columns": [
336
+ "agent_id"
337
+ ],
338
+ "isUnique": false
339
+ },
340
+ "idx_tasks_status": {
341
+ "name": "idx_tasks_status",
342
+ "columns": [
343
+ "status"
344
+ ],
345
+ "isUnique": false
346
+ },
347
+ "idx_tasks_started_at": {
348
+ "name": "idx_tasks_started_at",
349
+ "columns": [
350
+ "started_at"
351
+ ],
352
+ "isUnique": false
353
+ },
354
+ "idx_tasks_trace_id": {
355
+ "name": "idx_tasks_trace_id",
356
+ "columns": [
357
+ "trace_id"
358
+ ],
359
+ "isUnique": false
360
+ },
361
+ "idx_tasks_parent_task_id": {
362
+ "name": "idx_tasks_parent_task_id",
363
+ "columns": [
364
+ "parent_task_id"
365
+ ],
366
+ "isUnique": false
367
+ },
368
+ "idx_tasks_crewx_version": {
369
+ "name": "idx_tasks_crewx_version",
370
+ "columns": [
371
+ "crewx_version"
372
+ ],
373
+ "isUnique": false
374
+ },
375
+ "idx_tasks_pid": {
376
+ "name": "idx_tasks_pid",
377
+ "columns": [
378
+ "pid"
379
+ ],
380
+ "isUnique": false
381
+ },
382
+ "idx_tasks_thread_id": {
383
+ "name": "idx_tasks_thread_id",
384
+ "columns": [
385
+ "thread_id"
386
+ ],
387
+ "isUnique": false
388
+ },
389
+ "idx_tasks_workspace_id": {
390
+ "name": "idx_tasks_workspace_id",
391
+ "columns": [
392
+ "workspace_id"
393
+ ],
394
+ "isUnique": false
395
+ },
396
+ "idx_tasks_workspace_ref": {
397
+ "name": "idx_tasks_workspace_ref",
398
+ "columns": [
399
+ "workspace_ref"
400
+ ],
401
+ "isUnique": false
402
+ },
403
+ "idx_tasks_project_id": {
404
+ "name": "idx_tasks_project_id",
405
+ "columns": [
406
+ "project_id"
407
+ ],
408
+ "isUnique": false
409
+ },
410
+ "idx_tasks_ws_started": {
411
+ "name": "idx_tasks_ws_started",
412
+ "columns": [
413
+ "workspace_id",
414
+ "started_at"
415
+ ],
416
+ "isUnique": false
417
+ }
418
+ },
419
+ "foreignKeys": {},
420
+ "compositePrimaryKeys": {},
421
+ "uniqueConstraints": {},
422
+ "checkConstraints": {}
423
+ },
424
+ "threads": {
425
+ "name": "threads",
426
+ "columns": {
427
+ "id": {
428
+ "name": "id",
429
+ "type": "text",
430
+ "primaryKey": true,
431
+ "notNull": true,
432
+ "autoincrement": false
433
+ },
434
+ "workspace_id": {
435
+ "name": "workspace_id",
436
+ "type": "text",
437
+ "primaryKey": false,
438
+ "notNull": false,
439
+ "autoincrement": false
440
+ },
441
+ "platform": {
442
+ "name": "platform",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": true,
446
+ "autoincrement": false,
447
+ "default": "'cli'"
448
+ },
449
+ "title": {
450
+ "name": "title",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": false,
454
+ "autoincrement": false
455
+ },
456
+ "first_message": {
457
+ "name": "first_message",
458
+ "type": "text",
459
+ "primaryKey": false,
460
+ "notNull": false,
461
+ "autoincrement": false
462
+ },
463
+ "last_message": {
464
+ "name": "last_message",
465
+ "type": "text",
466
+ "primaryKey": false,
467
+ "notNull": false,
468
+ "autoincrement": false
469
+ },
470
+ "message_count": {
471
+ "name": "message_count",
472
+ "type": "integer",
473
+ "primaryKey": false,
474
+ "notNull": true,
475
+ "autoincrement": false,
476
+ "default": 0
477
+ },
478
+ "created_at": {
479
+ "name": "created_at",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": true,
483
+ "autoincrement": false
484
+ },
485
+ "updated_at": {
486
+ "name": "updated_at",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false
491
+ },
492
+ "metadata": {
493
+ "name": "metadata",
494
+ "type": "text",
495
+ "primaryKey": false,
496
+ "notNull": false,
497
+ "autoincrement": false
498
+ },
499
+ "title_locked": {
500
+ "name": "title_locked",
501
+ "type": "integer",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "autoincrement": false,
505
+ "default": 0
506
+ },
507
+ "pinned": {
508
+ "name": "pinned",
509
+ "type": "integer",
510
+ "primaryKey": false,
511
+ "notNull": true,
512
+ "autoincrement": false,
513
+ "default": 0
514
+ },
515
+ "starred": {
516
+ "name": "starred",
517
+ "type": "integer",
518
+ "primaryKey": false,
519
+ "notNull": true,
520
+ "autoincrement": false,
521
+ "default": 0
522
+ }
523
+ },
524
+ "indexes": {
525
+ "idx_threads_updated_at": {
526
+ "name": "idx_threads_updated_at",
527
+ "columns": [
528
+ "updated_at"
529
+ ],
530
+ "isUnique": false
531
+ },
532
+ "idx_threads_workspace_id": {
533
+ "name": "idx_threads_workspace_id",
534
+ "columns": [
535
+ "workspace_id"
536
+ ],
537
+ "isUnique": false
538
+ }
539
+ },
540
+ "foreignKeys": {
541
+ "threads_workspace_id_workspaces_id_fk": {
542
+ "name": "threads_workspace_id_workspaces_id_fk",
543
+ "tableFrom": "threads",
544
+ "tableTo": "workspaces",
545
+ "columnsFrom": [
546
+ "workspace_id"
547
+ ],
548
+ "columnsTo": [
549
+ "id"
550
+ ],
551
+ "onDelete": "set null",
552
+ "onUpdate": "no action"
553
+ }
554
+ },
555
+ "compositePrimaryKeys": {},
556
+ "uniqueConstraints": {},
557
+ "checkConstraints": {}
558
+ },
559
+ "spans": {
560
+ "name": "spans",
561
+ "columns": {
562
+ "id": {
563
+ "name": "id",
564
+ "type": "text",
565
+ "primaryKey": true,
566
+ "notNull": true,
567
+ "autoincrement": false
568
+ },
569
+ "task_id": {
570
+ "name": "task_id",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": false,
574
+ "autoincrement": false
575
+ },
576
+ "parent_span_id": {
577
+ "name": "parent_span_id",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": false,
581
+ "autoincrement": false
582
+ },
583
+ "name": {
584
+ "name": "name",
585
+ "type": "text",
586
+ "primaryKey": false,
587
+ "notNull": true,
588
+ "autoincrement": false
589
+ },
590
+ "kind": {
591
+ "name": "kind",
592
+ "type": "text",
593
+ "primaryKey": false,
594
+ "notNull": true,
595
+ "autoincrement": false,
596
+ "default": "'internal'"
597
+ },
598
+ "status": {
599
+ "name": "status",
600
+ "type": "text",
601
+ "primaryKey": false,
602
+ "notNull": true,
603
+ "autoincrement": false,
604
+ "default": "'ok'"
605
+ },
606
+ "started_at": {
607
+ "name": "started_at",
608
+ "type": "text",
609
+ "primaryKey": false,
610
+ "notNull": true,
611
+ "autoincrement": false
612
+ },
613
+ "completed_at": {
614
+ "name": "completed_at",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": false,
618
+ "autoincrement": false
619
+ },
620
+ "duration_ms": {
621
+ "name": "duration_ms",
622
+ "type": "integer",
623
+ "primaryKey": false,
624
+ "notNull": false,
625
+ "autoincrement": false
626
+ },
627
+ "input": {
628
+ "name": "input",
629
+ "type": "text",
630
+ "primaryKey": false,
631
+ "notNull": false,
632
+ "autoincrement": false
633
+ },
634
+ "output": {
635
+ "name": "output",
636
+ "type": "text",
637
+ "primaryKey": false,
638
+ "notNull": false,
639
+ "autoincrement": false
640
+ },
641
+ "error": {
642
+ "name": "error",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": false,
646
+ "autoincrement": false
647
+ },
648
+ "attributes": {
649
+ "name": "attributes",
650
+ "type": "text",
651
+ "primaryKey": false,
652
+ "notNull": false,
653
+ "autoincrement": false
654
+ }
655
+ },
656
+ "indexes": {
657
+ "idx_spans_task_id": {
658
+ "name": "idx_spans_task_id",
659
+ "columns": [
660
+ "task_id"
661
+ ],
662
+ "isUnique": false
663
+ },
664
+ "idx_spans_parent_span_id": {
665
+ "name": "idx_spans_parent_span_id",
666
+ "columns": [
667
+ "parent_span_id"
668
+ ],
669
+ "isUnique": false
670
+ }
671
+ },
672
+ "foreignKeys": {
673
+ "spans_task_id_tasks_id_fk": {
674
+ "name": "spans_task_id_tasks_id_fk",
675
+ "tableFrom": "spans",
676
+ "tableTo": "tasks",
677
+ "columnsFrom": [
678
+ "task_id"
679
+ ],
680
+ "columnsTo": [
681
+ "id"
682
+ ],
683
+ "onDelete": "set null",
684
+ "onUpdate": "no action"
685
+ },
686
+ "spans_parent_span_id_spans_id_fk": {
687
+ "name": "spans_parent_span_id_spans_id_fk",
688
+ "tableFrom": "spans",
689
+ "tableTo": "spans",
690
+ "columnsFrom": [
691
+ "parent_span_id"
692
+ ],
693
+ "columnsTo": [
694
+ "id"
695
+ ],
696
+ "onDelete": "set null",
697
+ "onUpdate": "no action"
698
+ }
699
+ },
700
+ "compositePrimaryKeys": {},
701
+ "uniqueConstraints": {},
702
+ "checkConstraints": {}
703
+ },
704
+ "tool_calls": {
705
+ "name": "tool_calls",
706
+ "columns": {
707
+ "id": {
708
+ "name": "id",
709
+ "type": "text",
710
+ "primaryKey": true,
711
+ "notNull": true,
712
+ "autoincrement": false
713
+ },
714
+ "task_id": {
715
+ "name": "task_id",
716
+ "type": "text",
717
+ "primaryKey": false,
718
+ "notNull": false,
719
+ "autoincrement": false
720
+ },
721
+ "session_id": {
722
+ "name": "session_id",
723
+ "type": "text",
724
+ "primaryKey": false,
725
+ "notNull": false,
726
+ "autoincrement": false
727
+ },
728
+ "tool_name": {
729
+ "name": "tool_name",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": true,
733
+ "autoincrement": false
734
+ },
735
+ "files": {
736
+ "name": "files",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": false,
740
+ "autoincrement": false
741
+ },
742
+ "input": {
743
+ "name": "input",
744
+ "type": "text",
745
+ "primaryKey": false,
746
+ "notNull": false,
747
+ "autoincrement": false
748
+ },
749
+ "output": {
750
+ "name": "output",
751
+ "type": "text",
752
+ "primaryKey": false,
753
+ "notNull": false,
754
+ "autoincrement": false
755
+ },
756
+ "duration_ms": {
757
+ "name": "duration_ms",
758
+ "type": "integer",
759
+ "primaryKey": false,
760
+ "notNull": false,
761
+ "autoincrement": false
762
+ },
763
+ "timestamp": {
764
+ "name": "timestamp",
765
+ "type": "text",
766
+ "primaryKey": false,
767
+ "notNull": true,
768
+ "autoincrement": false
769
+ }
770
+ },
771
+ "indexes": {
772
+ "idx_tool_calls_task_id": {
773
+ "name": "idx_tool_calls_task_id",
774
+ "columns": [
775
+ "task_id"
776
+ ],
777
+ "isUnique": false
778
+ },
779
+ "idx_tool_calls_tool_name": {
780
+ "name": "idx_tool_calls_tool_name",
781
+ "columns": [
782
+ "tool_name"
783
+ ],
784
+ "isUnique": false
785
+ },
786
+ "idx_tool_calls_timestamp": {
787
+ "name": "idx_tool_calls_timestamp",
788
+ "columns": [
789
+ "timestamp"
790
+ ],
791
+ "isUnique": false
792
+ }
793
+ },
794
+ "foreignKeys": {
795
+ "tool_calls_task_id_tasks_id_fk": {
796
+ "name": "tool_calls_task_id_tasks_id_fk",
797
+ "tableFrom": "tool_calls",
798
+ "tableTo": "tasks",
799
+ "columnsFrom": [
800
+ "task_id"
801
+ ],
802
+ "columnsTo": [
803
+ "id"
804
+ ],
805
+ "onDelete": "cascade",
806
+ "onUpdate": "no action"
807
+ }
808
+ },
809
+ "compositePrimaryKeys": {},
810
+ "uniqueConstraints": {},
811
+ "checkConstraints": {}
812
+ },
813
+ "thread_boxes": {
814
+ "name": "thread_boxes",
815
+ "columns": {
816
+ "id": {
817
+ "name": "id",
818
+ "type": "text",
819
+ "primaryKey": true,
820
+ "notNull": true,
821
+ "autoincrement": false
822
+ },
823
+ "thread_id": {
824
+ "name": "thread_id",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": true,
828
+ "autoincrement": false
829
+ },
830
+ "seq": {
831
+ "name": "seq",
832
+ "type": "integer",
833
+ "primaryKey": false,
834
+ "notNull": true,
835
+ "autoincrement": false
836
+ },
837
+ "first_task_id": {
838
+ "name": "first_task_id",
839
+ "type": "text",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "autoincrement": false
843
+ },
844
+ "mid_task_id": {
845
+ "name": "mid_task_id",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": true,
849
+ "autoincrement": false
850
+ },
851
+ "last_task_id": {
852
+ "name": "last_task_id",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": true,
856
+ "autoincrement": false
857
+ },
858
+ "task_count": {
859
+ "name": "task_count",
860
+ "type": "integer",
861
+ "primaryKey": false,
862
+ "notNull": true,
863
+ "autoincrement": false
864
+ },
865
+ "summary": {
866
+ "name": "summary",
867
+ "type": "text",
868
+ "primaryKey": false,
869
+ "notNull": false,
870
+ "autoincrement": false
871
+ },
872
+ "source_tokens": {
873
+ "name": "source_tokens",
874
+ "type": "integer",
875
+ "primaryKey": false,
876
+ "notNull": true,
877
+ "autoincrement": false
878
+ },
879
+ "summary_tokens": {
880
+ "name": "summary_tokens",
881
+ "type": "integer",
882
+ "primaryKey": false,
883
+ "notNull": false,
884
+ "autoincrement": false
885
+ },
886
+ "created_at": {
887
+ "name": "created_at",
888
+ "type": "text",
889
+ "primaryKey": false,
890
+ "notNull": true,
891
+ "autoincrement": false
892
+ }
893
+ },
894
+ "indexes": {
895
+ "idx_thread_boxes_thread_id": {
896
+ "name": "idx_thread_boxes_thread_id",
897
+ "columns": [
898
+ "thread_id"
899
+ ],
900
+ "isUnique": false
901
+ },
902
+ "idx_thread_boxes_seq": {
903
+ "name": "idx_thread_boxes_seq",
904
+ "columns": [
905
+ "thread_id",
906
+ "seq"
907
+ ],
908
+ "isUnique": false
909
+ },
910
+ "thread_boxes_thread_id_seq_unique": {
911
+ "name": "thread_boxes_thread_id_seq_unique",
912
+ "columns": [
913
+ "thread_id",
914
+ "seq"
915
+ ],
916
+ "isUnique": true
917
+ }
918
+ },
919
+ "foreignKeys": {
920
+ "thread_boxes_thread_id_threads_id_fk": {
921
+ "name": "thread_boxes_thread_id_threads_id_fk",
922
+ "tableFrom": "thread_boxes",
923
+ "tableTo": "threads",
924
+ "columnsFrom": [
925
+ "thread_id"
926
+ ],
927
+ "columnsTo": [
928
+ "id"
929
+ ],
930
+ "onDelete": "cascade",
931
+ "onUpdate": "no action"
932
+ }
933
+ },
934
+ "compositePrimaryKeys": {},
935
+ "uniqueConstraints": {},
936
+ "checkConstraints": {}
937
+ },
938
+ "request_logs": {
939
+ "name": "request_logs",
940
+ "columns": {
941
+ "id": {
942
+ "name": "id",
943
+ "type": "text",
944
+ "primaryKey": true,
945
+ "notNull": true,
946
+ "autoincrement": false
947
+ },
948
+ "path": {
949
+ "name": "path",
950
+ "type": "text",
951
+ "primaryKey": false,
952
+ "notNull": true,
953
+ "autoincrement": false
954
+ },
955
+ "method": {
956
+ "name": "method",
957
+ "type": "text",
958
+ "primaryKey": false,
959
+ "notNull": true,
960
+ "autoincrement": false
961
+ },
962
+ "status_code": {
963
+ "name": "status_code",
964
+ "type": "integer",
965
+ "primaryKey": false,
966
+ "notNull": true,
967
+ "autoincrement": false
968
+ },
969
+ "duration_ms": {
970
+ "name": "duration_ms",
971
+ "type": "integer",
972
+ "primaryKey": false,
973
+ "notNull": true,
974
+ "autoincrement": false
975
+ },
976
+ "ip": {
977
+ "name": "ip",
978
+ "type": "text",
979
+ "primaryKey": false,
980
+ "notNull": false,
981
+ "autoincrement": false
982
+ },
983
+ "request_headers": {
984
+ "name": "request_headers",
985
+ "type": "text",
986
+ "primaryKey": false,
987
+ "notNull": false,
988
+ "autoincrement": false
989
+ },
990
+ "response_headers": {
991
+ "name": "response_headers",
992
+ "type": "text",
993
+ "primaryKey": false,
994
+ "notNull": false,
995
+ "autoincrement": false
996
+ },
997
+ "request_body": {
998
+ "name": "request_body",
999
+ "type": "text",
1000
+ "primaryKey": false,
1001
+ "notNull": false,
1002
+ "autoincrement": false
1003
+ },
1004
+ "response_body": {
1005
+ "name": "response_body",
1006
+ "type": "text",
1007
+ "primaryKey": false,
1008
+ "notNull": false,
1009
+ "autoincrement": false
1010
+ },
1011
+ "query": {
1012
+ "name": "query",
1013
+ "type": "text",
1014
+ "primaryKey": false,
1015
+ "notNull": false,
1016
+ "autoincrement": false
1017
+ },
1018
+ "user_id": {
1019
+ "name": "user_id",
1020
+ "type": "text",
1021
+ "primaryKey": false,
1022
+ "notNull": false,
1023
+ "autoincrement": false
1024
+ },
1025
+ "project_id": {
1026
+ "name": "project_id",
1027
+ "type": "text",
1028
+ "primaryKey": false,
1029
+ "notNull": false,
1030
+ "autoincrement": false
1031
+ },
1032
+ "partition_key": {
1033
+ "name": "partition_key",
1034
+ "type": "text",
1035
+ "primaryKey": false,
1036
+ "notNull": true,
1037
+ "autoincrement": false
1038
+ },
1039
+ "timestamp": {
1040
+ "name": "timestamp",
1041
+ "type": "text",
1042
+ "primaryKey": false,
1043
+ "notNull": true,
1044
+ "autoincrement": false,
1045
+ "default": "(datetime('now'))"
1046
+ },
1047
+ "metadata": {
1048
+ "name": "metadata",
1049
+ "type": "text",
1050
+ "primaryKey": false,
1051
+ "notNull": false,
1052
+ "autoincrement": false
1053
+ }
1054
+ },
1055
+ "indexes": {
1056
+ "idx_request_logs_timestamp": {
1057
+ "name": "idx_request_logs_timestamp",
1058
+ "columns": [
1059
+ "timestamp"
1060
+ ],
1061
+ "isUnique": false
1062
+ },
1063
+ "idx_request_logs_path": {
1064
+ "name": "idx_request_logs_path",
1065
+ "columns": [
1066
+ "path"
1067
+ ],
1068
+ "isUnique": false
1069
+ },
1070
+ "idx_request_logs_status_code": {
1071
+ "name": "idx_request_logs_status_code",
1072
+ "columns": [
1073
+ "status_code"
1074
+ ],
1075
+ "isUnique": false
1076
+ },
1077
+ "idx_request_logs_partition_key": {
1078
+ "name": "idx_request_logs_partition_key",
1079
+ "columns": [
1080
+ "partition_key"
1081
+ ],
1082
+ "isUnique": false
1083
+ }
1084
+ },
1085
+ "foreignKeys": {},
1086
+ "compositePrimaryKeys": {},
1087
+ "uniqueConstraints": {},
1088
+ "checkConstraints": {}
1089
+ },
1090
+ "usage_limit_snapshots": {
1091
+ "name": "usage_limit_snapshots",
1092
+ "columns": {
1093
+ "id": {
1094
+ "name": "id",
1095
+ "type": "text",
1096
+ "primaryKey": true,
1097
+ "notNull": true,
1098
+ "autoincrement": false
1099
+ },
1100
+ "provider": {
1101
+ "name": "provider",
1102
+ "type": "text",
1103
+ "primaryKey": false,
1104
+ "notNull": true,
1105
+ "autoincrement": false
1106
+ },
1107
+ "account_ref": {
1108
+ "name": "account_ref",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": true,
1112
+ "autoincrement": false,
1113
+ "default": "'default'"
1114
+ },
1115
+ "limit_window": {
1116
+ "name": "limit_window",
1117
+ "type": "text",
1118
+ "primaryKey": false,
1119
+ "notNull": true,
1120
+ "autoincrement": false
1121
+ },
1122
+ "bucket_start": {
1123
+ "name": "bucket_start",
1124
+ "type": "text",
1125
+ "primaryKey": false,
1126
+ "notNull": true,
1127
+ "autoincrement": false
1128
+ },
1129
+ "captured_at": {
1130
+ "name": "captured_at",
1131
+ "type": "text",
1132
+ "primaryKey": false,
1133
+ "notNull": true,
1134
+ "autoincrement": false
1135
+ },
1136
+ "used_percent": {
1137
+ "name": "used_percent",
1138
+ "type": "integer",
1139
+ "primaryKey": false,
1140
+ "notNull": true,
1141
+ "autoincrement": false
1142
+ },
1143
+ "remaining_percent": {
1144
+ "name": "remaining_percent",
1145
+ "type": "integer",
1146
+ "primaryKey": false,
1147
+ "notNull": true,
1148
+ "autoincrement": false
1149
+ },
1150
+ "resets_at": {
1151
+ "name": "resets_at",
1152
+ "type": "text",
1153
+ "primaryKey": false,
1154
+ "notNull": false,
1155
+ "autoincrement": false
1156
+ },
1157
+ "source": {
1158
+ "name": "source",
1159
+ "type": "text",
1160
+ "primaryKey": false,
1161
+ "notNull": true,
1162
+ "autoincrement": false
1163
+ },
1164
+ "metadata": {
1165
+ "name": "metadata",
1166
+ "type": "text",
1167
+ "primaryKey": false,
1168
+ "notNull": false,
1169
+ "autoincrement": false
1170
+ }
1171
+ },
1172
+ "indexes": {
1173
+ "uniq_usage_limit_snapshots_bucket": {
1174
+ "name": "uniq_usage_limit_snapshots_bucket",
1175
+ "columns": [
1176
+ "provider",
1177
+ "account_ref",
1178
+ "limit_window",
1179
+ "bucket_start"
1180
+ ],
1181
+ "isUnique": true
1182
+ },
1183
+ "idx_usage_limit_snapshots_window_bucket": {
1184
+ "name": "idx_usage_limit_snapshots_window_bucket",
1185
+ "columns": [
1186
+ "limit_window",
1187
+ "bucket_start"
1188
+ ],
1189
+ "isUnique": false
1190
+ },
1191
+ "idx_usage_limit_snapshots_provider_window_bucket": {
1192
+ "name": "idx_usage_limit_snapshots_provider_window_bucket",
1193
+ "columns": [
1194
+ "provider",
1195
+ "limit_window",
1196
+ "bucket_start"
1197
+ ],
1198
+ "isUnique": false
1199
+ }
1200
+ },
1201
+ "foreignKeys": {},
1202
+ "compositePrimaryKeys": {},
1203
+ "uniqueConstraints": {},
1204
+ "checkConstraints": {}
1205
+ }
1206
+ },
1207
+ "views": {},
1208
+ "enums": {},
1209
+ "_meta": {
1210
+ "schemas": {},
1211
+ "tables": {},
1212
+ "columns": {}
1213
+ },
1214
+ "internal": {
1215
+ "indexes": {}
1216
+ }
1217
+ }