@opentrust/db 7.3.8 → 7.3.10

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