@ash-ai/server 0.0.15 → 0.0.17

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,1009 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "bc5401b9-71a2-4c47-b12c-f480f3ccf7d7",
5
+ "prevId": "02584e3c-0edf-4035-89c0-de4fe7340315",
6
+ "tables": {
7
+ "agents": {
8
+ "name": "agents",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "tenant_id": {
18
+ "name": "tenant_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false,
23
+ "default": "'default'"
24
+ },
25
+ "name": {
26
+ "name": "name",
27
+ "type": "text",
28
+ "primaryKey": false,
29
+ "notNull": true,
30
+ "autoincrement": false
31
+ },
32
+ "version": {
33
+ "name": "version",
34
+ "type": "integer",
35
+ "primaryKey": false,
36
+ "notNull": true,
37
+ "autoincrement": false,
38
+ "default": 1
39
+ },
40
+ "path": {
41
+ "name": "path",
42
+ "type": "text",
43
+ "primaryKey": false,
44
+ "notNull": true,
45
+ "autoincrement": false
46
+ },
47
+ "created_at": {
48
+ "name": "created_at",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "autoincrement": false
53
+ },
54
+ "updated_at": {
55
+ "name": "updated_at",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": true,
59
+ "autoincrement": false
60
+ }
61
+ },
62
+ "indexes": {
63
+ "idx_agents_tenant_name": {
64
+ "name": "idx_agents_tenant_name",
65
+ "columns": [
66
+ "tenant_id",
67
+ "name"
68
+ ],
69
+ "isUnique": true
70
+ },
71
+ "idx_agents_tenant": {
72
+ "name": "idx_agents_tenant",
73
+ "columns": [
74
+ "tenant_id"
75
+ ],
76
+ "isUnique": false
77
+ }
78
+ },
79
+ "foreignKeys": {},
80
+ "compositePrimaryKeys": {},
81
+ "uniqueConstraints": {},
82
+ "checkConstraints": {}
83
+ },
84
+ "api_keys": {
85
+ "name": "api_keys",
86
+ "columns": {
87
+ "id": {
88
+ "name": "id",
89
+ "type": "text",
90
+ "primaryKey": true,
91
+ "notNull": true,
92
+ "autoincrement": false
93
+ },
94
+ "tenant_id": {
95
+ "name": "tenant_id",
96
+ "type": "text",
97
+ "primaryKey": false,
98
+ "notNull": true,
99
+ "autoincrement": false
100
+ },
101
+ "key_hash": {
102
+ "name": "key_hash",
103
+ "type": "text",
104
+ "primaryKey": false,
105
+ "notNull": true,
106
+ "autoincrement": false
107
+ },
108
+ "label": {
109
+ "name": "label",
110
+ "type": "text",
111
+ "primaryKey": false,
112
+ "notNull": true,
113
+ "autoincrement": false,
114
+ "default": "''"
115
+ },
116
+ "created_at": {
117
+ "name": "created_at",
118
+ "type": "text",
119
+ "primaryKey": false,
120
+ "notNull": true,
121
+ "autoincrement": false
122
+ }
123
+ },
124
+ "indexes": {
125
+ "api_keys_key_hash_unique": {
126
+ "name": "api_keys_key_hash_unique",
127
+ "columns": [
128
+ "key_hash"
129
+ ],
130
+ "isUnique": true
131
+ },
132
+ "idx_api_keys_tenant": {
133
+ "name": "idx_api_keys_tenant",
134
+ "columns": [
135
+ "tenant_id"
136
+ ],
137
+ "isUnique": false
138
+ },
139
+ "idx_api_keys_hash": {
140
+ "name": "idx_api_keys_hash",
141
+ "columns": [
142
+ "key_hash"
143
+ ],
144
+ "isUnique": false
145
+ }
146
+ },
147
+ "foreignKeys": {},
148
+ "compositePrimaryKeys": {},
149
+ "uniqueConstraints": {},
150
+ "checkConstraints": {}
151
+ },
152
+ "attachments": {
153
+ "name": "attachments",
154
+ "columns": {
155
+ "id": {
156
+ "name": "id",
157
+ "type": "text",
158
+ "primaryKey": true,
159
+ "notNull": true,
160
+ "autoincrement": false
161
+ },
162
+ "tenant_id": {
163
+ "name": "tenant_id",
164
+ "type": "text",
165
+ "primaryKey": false,
166
+ "notNull": true,
167
+ "autoincrement": false,
168
+ "default": "'default'"
169
+ },
170
+ "message_id": {
171
+ "name": "message_id",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true,
175
+ "autoincrement": false
176
+ },
177
+ "session_id": {
178
+ "name": "session_id",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": true,
182
+ "autoincrement": false
183
+ },
184
+ "filename": {
185
+ "name": "filename",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "mime_type": {
192
+ "name": "mime_type",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "autoincrement": false
197
+ },
198
+ "size": {
199
+ "name": "size",
200
+ "type": "integer",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "autoincrement": false
204
+ },
205
+ "storage_path": {
206
+ "name": "storage_path",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "autoincrement": false
211
+ },
212
+ "created_at": {
213
+ "name": "created_at",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": true,
217
+ "autoincrement": false
218
+ }
219
+ },
220
+ "indexes": {
221
+ "idx_attachments_session": {
222
+ "name": "idx_attachments_session",
223
+ "columns": [
224
+ "tenant_id",
225
+ "session_id"
226
+ ],
227
+ "isUnique": false
228
+ },
229
+ "idx_attachments_message": {
230
+ "name": "idx_attachments_message",
231
+ "columns": [
232
+ "message_id"
233
+ ],
234
+ "isUnique": false
235
+ }
236
+ },
237
+ "foreignKeys": {},
238
+ "compositePrimaryKeys": {},
239
+ "uniqueConstraints": {},
240
+ "checkConstraints": {}
241
+ },
242
+ "credentials": {
243
+ "name": "credentials",
244
+ "columns": {
245
+ "id": {
246
+ "name": "id",
247
+ "type": "text",
248
+ "primaryKey": true,
249
+ "notNull": true,
250
+ "autoincrement": false
251
+ },
252
+ "tenant_id": {
253
+ "name": "tenant_id",
254
+ "type": "text",
255
+ "primaryKey": false,
256
+ "notNull": true,
257
+ "autoincrement": false,
258
+ "default": "'default'"
259
+ },
260
+ "type": {
261
+ "name": "type",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": true,
265
+ "autoincrement": false
266
+ },
267
+ "encrypted_key": {
268
+ "name": "encrypted_key",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": true,
272
+ "autoincrement": false
273
+ },
274
+ "iv": {
275
+ "name": "iv",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": true,
279
+ "autoincrement": false
280
+ },
281
+ "auth_tag": {
282
+ "name": "auth_tag",
283
+ "type": "text",
284
+ "primaryKey": false,
285
+ "notNull": true,
286
+ "autoincrement": false
287
+ },
288
+ "salt": {
289
+ "name": "salt",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": false,
293
+ "autoincrement": false
294
+ },
295
+ "label": {
296
+ "name": "label",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true,
300
+ "autoincrement": false,
301
+ "default": "''"
302
+ },
303
+ "active": {
304
+ "name": "active",
305
+ "type": "integer",
306
+ "primaryKey": false,
307
+ "notNull": true,
308
+ "autoincrement": false,
309
+ "default": 1
310
+ },
311
+ "created_at": {
312
+ "name": "created_at",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "autoincrement": false
317
+ },
318
+ "last_used_at": {
319
+ "name": "last_used_at",
320
+ "type": "text",
321
+ "primaryKey": false,
322
+ "notNull": false,
323
+ "autoincrement": false
324
+ }
325
+ },
326
+ "indexes": {
327
+ "idx_credentials_tenant": {
328
+ "name": "idx_credentials_tenant",
329
+ "columns": [
330
+ "tenant_id"
331
+ ],
332
+ "isUnique": false
333
+ }
334
+ },
335
+ "foreignKeys": {},
336
+ "compositePrimaryKeys": {},
337
+ "uniqueConstraints": {},
338
+ "checkConstraints": {}
339
+ },
340
+ "messages": {
341
+ "name": "messages",
342
+ "columns": {
343
+ "id": {
344
+ "name": "id",
345
+ "type": "text",
346
+ "primaryKey": true,
347
+ "notNull": true,
348
+ "autoincrement": false
349
+ },
350
+ "tenant_id": {
351
+ "name": "tenant_id",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": true,
355
+ "autoincrement": false,
356
+ "default": "'default'"
357
+ },
358
+ "session_id": {
359
+ "name": "session_id",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true,
363
+ "autoincrement": false
364
+ },
365
+ "role": {
366
+ "name": "role",
367
+ "type": "text",
368
+ "primaryKey": false,
369
+ "notNull": true,
370
+ "autoincrement": false
371
+ },
372
+ "content": {
373
+ "name": "content",
374
+ "type": "text",
375
+ "primaryKey": false,
376
+ "notNull": true,
377
+ "autoincrement": false
378
+ },
379
+ "sequence": {
380
+ "name": "sequence",
381
+ "type": "integer",
382
+ "primaryKey": false,
383
+ "notNull": true,
384
+ "autoincrement": false
385
+ },
386
+ "created_at": {
387
+ "name": "created_at",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": true,
391
+ "autoincrement": false
392
+ }
393
+ },
394
+ "indexes": {
395
+ "idx_messages_unique_seq": {
396
+ "name": "idx_messages_unique_seq",
397
+ "columns": [
398
+ "tenant_id",
399
+ "session_id",
400
+ "sequence"
401
+ ],
402
+ "isUnique": true
403
+ },
404
+ "idx_messages_session": {
405
+ "name": "idx_messages_session",
406
+ "columns": [
407
+ "tenant_id",
408
+ "session_id",
409
+ "sequence"
410
+ ],
411
+ "isUnique": false
412
+ }
413
+ },
414
+ "foreignKeys": {},
415
+ "compositePrimaryKeys": {},
416
+ "uniqueConstraints": {},
417
+ "checkConstraints": {}
418
+ },
419
+ "queue_items": {
420
+ "name": "queue_items",
421
+ "columns": {
422
+ "id": {
423
+ "name": "id",
424
+ "type": "text",
425
+ "primaryKey": true,
426
+ "notNull": true,
427
+ "autoincrement": false
428
+ },
429
+ "tenant_id": {
430
+ "name": "tenant_id",
431
+ "type": "text",
432
+ "primaryKey": false,
433
+ "notNull": true,
434
+ "autoincrement": false,
435
+ "default": "'default'"
436
+ },
437
+ "session_id": {
438
+ "name": "session_id",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": false,
442
+ "autoincrement": false
443
+ },
444
+ "agent_name": {
445
+ "name": "agent_name",
446
+ "type": "text",
447
+ "primaryKey": false,
448
+ "notNull": true,
449
+ "autoincrement": false
450
+ },
451
+ "prompt": {
452
+ "name": "prompt",
453
+ "type": "text",
454
+ "primaryKey": false,
455
+ "notNull": true,
456
+ "autoincrement": false
457
+ },
458
+ "status": {
459
+ "name": "status",
460
+ "type": "text",
461
+ "primaryKey": false,
462
+ "notNull": true,
463
+ "autoincrement": false,
464
+ "default": "'pending'"
465
+ },
466
+ "priority": {
467
+ "name": "priority",
468
+ "type": "integer",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "autoincrement": false,
472
+ "default": 0
473
+ },
474
+ "retry_count": {
475
+ "name": "retry_count",
476
+ "type": "integer",
477
+ "primaryKey": false,
478
+ "notNull": true,
479
+ "autoincrement": false,
480
+ "default": 0
481
+ },
482
+ "max_retries": {
483
+ "name": "max_retries",
484
+ "type": "integer",
485
+ "primaryKey": false,
486
+ "notNull": true,
487
+ "autoincrement": false,
488
+ "default": 3
489
+ },
490
+ "error": {
491
+ "name": "error",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": false,
495
+ "autoincrement": false
496
+ },
497
+ "retry_after": {
498
+ "name": "retry_after",
499
+ "type": "text",
500
+ "primaryKey": false,
501
+ "notNull": false,
502
+ "autoincrement": false
503
+ },
504
+ "created_at": {
505
+ "name": "created_at",
506
+ "type": "text",
507
+ "primaryKey": false,
508
+ "notNull": true,
509
+ "autoincrement": false
510
+ },
511
+ "started_at": {
512
+ "name": "started_at",
513
+ "type": "text",
514
+ "primaryKey": false,
515
+ "notNull": false,
516
+ "autoincrement": false
517
+ },
518
+ "completed_at": {
519
+ "name": "completed_at",
520
+ "type": "text",
521
+ "primaryKey": false,
522
+ "notNull": false,
523
+ "autoincrement": false
524
+ }
525
+ },
526
+ "indexes": {
527
+ "idx_queue_tenant": {
528
+ "name": "idx_queue_tenant",
529
+ "columns": [
530
+ "tenant_id"
531
+ ],
532
+ "isUnique": false
533
+ },
534
+ "idx_queue_status": {
535
+ "name": "idx_queue_status",
536
+ "columns": [
537
+ "status",
538
+ "priority"
539
+ ],
540
+ "isUnique": false
541
+ }
542
+ },
543
+ "foreignKeys": {},
544
+ "compositePrimaryKeys": {},
545
+ "uniqueConstraints": {},
546
+ "checkConstraints": {}
547
+ },
548
+ "runners": {
549
+ "name": "runners",
550
+ "columns": {
551
+ "id": {
552
+ "name": "id",
553
+ "type": "text",
554
+ "primaryKey": true,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ },
558
+ "host": {
559
+ "name": "host",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ },
565
+ "port": {
566
+ "name": "port",
567
+ "type": "integer",
568
+ "primaryKey": false,
569
+ "notNull": true,
570
+ "autoincrement": false
571
+ },
572
+ "max_sandboxes": {
573
+ "name": "max_sandboxes",
574
+ "type": "integer",
575
+ "primaryKey": false,
576
+ "notNull": true,
577
+ "autoincrement": false,
578
+ "default": 100
579
+ },
580
+ "active_count": {
581
+ "name": "active_count",
582
+ "type": "integer",
583
+ "primaryKey": false,
584
+ "notNull": true,
585
+ "autoincrement": false,
586
+ "default": 0
587
+ },
588
+ "warming_count": {
589
+ "name": "warming_count",
590
+ "type": "integer",
591
+ "primaryKey": false,
592
+ "notNull": true,
593
+ "autoincrement": false,
594
+ "default": 0
595
+ },
596
+ "last_heartbeat_at": {
597
+ "name": "last_heartbeat_at",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": true,
601
+ "autoincrement": false
602
+ },
603
+ "registered_at": {
604
+ "name": "registered_at",
605
+ "type": "text",
606
+ "primaryKey": false,
607
+ "notNull": true,
608
+ "autoincrement": false
609
+ }
610
+ },
611
+ "indexes": {
612
+ "idx_runners_heartbeat": {
613
+ "name": "idx_runners_heartbeat",
614
+ "columns": [
615
+ "last_heartbeat_at"
616
+ ],
617
+ "isUnique": false
618
+ }
619
+ },
620
+ "foreignKeys": {},
621
+ "compositePrimaryKeys": {},
622
+ "uniqueConstraints": {},
623
+ "checkConstraints": {}
624
+ },
625
+ "sandboxes": {
626
+ "name": "sandboxes",
627
+ "columns": {
628
+ "id": {
629
+ "name": "id",
630
+ "type": "text",
631
+ "primaryKey": true,
632
+ "notNull": true,
633
+ "autoincrement": false
634
+ },
635
+ "tenant_id": {
636
+ "name": "tenant_id",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": true,
640
+ "autoincrement": false,
641
+ "default": "'default'"
642
+ },
643
+ "session_id": {
644
+ "name": "session_id",
645
+ "type": "text",
646
+ "primaryKey": false,
647
+ "notNull": false,
648
+ "autoincrement": false
649
+ },
650
+ "agent_name": {
651
+ "name": "agent_name",
652
+ "type": "text",
653
+ "primaryKey": false,
654
+ "notNull": true,
655
+ "autoincrement": false
656
+ },
657
+ "state": {
658
+ "name": "state",
659
+ "type": "text",
660
+ "primaryKey": false,
661
+ "notNull": true,
662
+ "autoincrement": false,
663
+ "default": "'warming'"
664
+ },
665
+ "workspace_dir": {
666
+ "name": "workspace_dir",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": true,
670
+ "autoincrement": false
671
+ },
672
+ "created_at": {
673
+ "name": "created_at",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": true,
677
+ "autoincrement": false
678
+ },
679
+ "last_used_at": {
680
+ "name": "last_used_at",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": true,
684
+ "autoincrement": false
685
+ }
686
+ },
687
+ "indexes": {
688
+ "idx_sandboxes_state": {
689
+ "name": "idx_sandboxes_state",
690
+ "columns": [
691
+ "state"
692
+ ],
693
+ "isUnique": false
694
+ },
695
+ "idx_sandboxes_session": {
696
+ "name": "idx_sandboxes_session",
697
+ "columns": [
698
+ "session_id"
699
+ ],
700
+ "isUnique": false
701
+ },
702
+ "idx_sandboxes_last_used": {
703
+ "name": "idx_sandboxes_last_used",
704
+ "columns": [
705
+ "last_used_at"
706
+ ],
707
+ "isUnique": false
708
+ },
709
+ "idx_sandboxes_tenant": {
710
+ "name": "idx_sandboxes_tenant",
711
+ "columns": [
712
+ "tenant_id"
713
+ ],
714
+ "isUnique": false
715
+ }
716
+ },
717
+ "foreignKeys": {},
718
+ "compositePrimaryKeys": {},
719
+ "uniqueConstraints": {},
720
+ "checkConstraints": {}
721
+ },
722
+ "session_events": {
723
+ "name": "session_events",
724
+ "columns": {
725
+ "id": {
726
+ "name": "id",
727
+ "type": "text",
728
+ "primaryKey": true,
729
+ "notNull": true,
730
+ "autoincrement": false
731
+ },
732
+ "tenant_id": {
733
+ "name": "tenant_id",
734
+ "type": "text",
735
+ "primaryKey": false,
736
+ "notNull": true,
737
+ "autoincrement": false,
738
+ "default": "'default'"
739
+ },
740
+ "session_id": {
741
+ "name": "session_id",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": true,
745
+ "autoincrement": false
746
+ },
747
+ "type": {
748
+ "name": "type",
749
+ "type": "text",
750
+ "primaryKey": false,
751
+ "notNull": true,
752
+ "autoincrement": false
753
+ },
754
+ "data": {
755
+ "name": "data",
756
+ "type": "text",
757
+ "primaryKey": false,
758
+ "notNull": false,
759
+ "autoincrement": false
760
+ },
761
+ "sequence": {
762
+ "name": "sequence",
763
+ "type": "integer",
764
+ "primaryKey": false,
765
+ "notNull": true,
766
+ "autoincrement": false
767
+ },
768
+ "created_at": {
769
+ "name": "created_at",
770
+ "type": "text",
771
+ "primaryKey": false,
772
+ "notNull": true,
773
+ "autoincrement": false
774
+ }
775
+ },
776
+ "indexes": {
777
+ "idx_session_events_unique_seq": {
778
+ "name": "idx_session_events_unique_seq",
779
+ "columns": [
780
+ "tenant_id",
781
+ "session_id",
782
+ "sequence"
783
+ ],
784
+ "isUnique": true
785
+ },
786
+ "idx_session_events_session": {
787
+ "name": "idx_session_events_session",
788
+ "columns": [
789
+ "tenant_id",
790
+ "session_id",
791
+ "sequence"
792
+ ],
793
+ "isUnique": false
794
+ },
795
+ "idx_session_events_type": {
796
+ "name": "idx_session_events_type",
797
+ "columns": [
798
+ "tenant_id",
799
+ "session_id",
800
+ "type"
801
+ ],
802
+ "isUnique": false
803
+ }
804
+ },
805
+ "foreignKeys": {},
806
+ "compositePrimaryKeys": {},
807
+ "uniqueConstraints": {},
808
+ "checkConstraints": {}
809
+ },
810
+ "sessions": {
811
+ "name": "sessions",
812
+ "columns": {
813
+ "id": {
814
+ "name": "id",
815
+ "type": "text",
816
+ "primaryKey": true,
817
+ "notNull": true,
818
+ "autoincrement": false
819
+ },
820
+ "tenant_id": {
821
+ "name": "tenant_id",
822
+ "type": "text",
823
+ "primaryKey": false,
824
+ "notNull": true,
825
+ "autoincrement": false,
826
+ "default": "'default'"
827
+ },
828
+ "agent_name": {
829
+ "name": "agent_name",
830
+ "type": "text",
831
+ "primaryKey": false,
832
+ "notNull": true,
833
+ "autoincrement": false
834
+ },
835
+ "sandbox_id": {
836
+ "name": "sandbox_id",
837
+ "type": "text",
838
+ "primaryKey": false,
839
+ "notNull": true,
840
+ "autoincrement": false
841
+ },
842
+ "status": {
843
+ "name": "status",
844
+ "type": "text",
845
+ "primaryKey": false,
846
+ "notNull": true,
847
+ "autoincrement": false,
848
+ "default": "'starting'"
849
+ },
850
+ "runner_id": {
851
+ "name": "runner_id",
852
+ "type": "text",
853
+ "primaryKey": false,
854
+ "notNull": false,
855
+ "autoincrement": false
856
+ },
857
+ "parent_session_id": {
858
+ "name": "parent_session_id",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": false,
862
+ "autoincrement": false
863
+ },
864
+ "model": {
865
+ "name": "model",
866
+ "type": "text",
867
+ "primaryKey": false,
868
+ "notNull": false,
869
+ "autoincrement": false
870
+ },
871
+ "config": {
872
+ "name": "config",
873
+ "type": "text",
874
+ "primaryKey": false,
875
+ "notNull": false,
876
+ "autoincrement": false
877
+ },
878
+ "created_at": {
879
+ "name": "created_at",
880
+ "type": "text",
881
+ "primaryKey": false,
882
+ "notNull": true,
883
+ "autoincrement": false
884
+ },
885
+ "last_active_at": {
886
+ "name": "last_active_at",
887
+ "type": "text",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "autoincrement": false
891
+ }
892
+ },
893
+ "indexes": {
894
+ "idx_sessions_tenant": {
895
+ "name": "idx_sessions_tenant",
896
+ "columns": [
897
+ "tenant_id"
898
+ ],
899
+ "isUnique": false
900
+ },
901
+ "idx_sessions_runner": {
902
+ "name": "idx_sessions_runner",
903
+ "columns": [
904
+ "runner_id"
905
+ ],
906
+ "isUnique": false
907
+ }
908
+ },
909
+ "foreignKeys": {},
910
+ "compositePrimaryKeys": {},
911
+ "uniqueConstraints": {},
912
+ "checkConstraints": {}
913
+ },
914
+ "usage_events": {
915
+ "name": "usage_events",
916
+ "columns": {
917
+ "id": {
918
+ "name": "id",
919
+ "type": "text",
920
+ "primaryKey": true,
921
+ "notNull": true,
922
+ "autoincrement": false
923
+ },
924
+ "tenant_id": {
925
+ "name": "tenant_id",
926
+ "type": "text",
927
+ "primaryKey": false,
928
+ "notNull": true,
929
+ "autoincrement": false,
930
+ "default": "'default'"
931
+ },
932
+ "session_id": {
933
+ "name": "session_id",
934
+ "type": "text",
935
+ "primaryKey": false,
936
+ "notNull": true,
937
+ "autoincrement": false
938
+ },
939
+ "agent_name": {
940
+ "name": "agent_name",
941
+ "type": "text",
942
+ "primaryKey": false,
943
+ "notNull": true,
944
+ "autoincrement": false
945
+ },
946
+ "event_type": {
947
+ "name": "event_type",
948
+ "type": "text",
949
+ "primaryKey": false,
950
+ "notNull": true,
951
+ "autoincrement": false
952
+ },
953
+ "value": {
954
+ "name": "value",
955
+ "type": "real",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "autoincrement": false
959
+ },
960
+ "created_at": {
961
+ "name": "created_at",
962
+ "type": "text",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "autoincrement": false
966
+ }
967
+ },
968
+ "indexes": {
969
+ "idx_usage_session": {
970
+ "name": "idx_usage_session",
971
+ "columns": [
972
+ "tenant_id",
973
+ "session_id"
974
+ ],
975
+ "isUnique": false
976
+ },
977
+ "idx_usage_agent": {
978
+ "name": "idx_usage_agent",
979
+ "columns": [
980
+ "tenant_id",
981
+ "agent_name"
982
+ ],
983
+ "isUnique": false
984
+ },
985
+ "idx_usage_type": {
986
+ "name": "idx_usage_type",
987
+ "columns": [
988
+ "event_type"
989
+ ],
990
+ "isUnique": false
991
+ }
992
+ },
993
+ "foreignKeys": {},
994
+ "compositePrimaryKeys": {},
995
+ "uniqueConstraints": {},
996
+ "checkConstraints": {}
997
+ }
998
+ },
999
+ "views": {},
1000
+ "enums": {},
1001
+ "_meta": {
1002
+ "schemas": {},
1003
+ "tables": {},
1004
+ "columns": {}
1005
+ },
1006
+ "internal": {
1007
+ "indexes": {}
1008
+ }
1009
+ }