@c4t4/heyamigo 0.9.24 → 0.10.0

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