codeden 0.6.2 → 0.7.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.
Files changed (44) hide show
  1. package/README.md +12 -5
  2. package/dist/cli.js +1 -1
  3. package/dist/drizzle/20261112140714_turn_fork_point/migration.sql +1 -0
  4. package/dist/drizzle/20261112140714_turn_fork_point/snapshot.json +3524 -0
  5. package/dist/drizzle/20261113075317_transcript_search/migration.sql +29 -0
  6. package/dist/drizzle/20261113075317_transcript_search/snapshot.json +3635 -0
  7. package/dist/drizzle/20261113083655_runners/migration.sql +17 -0
  8. package/dist/drizzle/20261113083655_runners/snapshot.json +3792 -0
  9. package/dist/drizzle/20261113165404_search_newest_first/migration.sql +43 -0
  10. package/dist/drizzle/20261113165404_search_newest_first/snapshot.json +3785 -0
  11. package/dist/{main-hdQfX9V6.js → main-BITVD_Bx.js} +7311 -3019
  12. package/dist/main-BITVD_Bx.js.map +1 -0
  13. package/dist/{main-DZBmzxSH.js → main-NN0iK2tB.js} +2 -2
  14. package/dist/{main-DZBmzxSH.js.map → main-NN0iK2tB.js.map} +1 -1
  15. package/dist/{mediaType-nJs-4z5U.js → mediaType-N0hKQqG9.js} +2 -2
  16. package/dist/{mediaType-nJs-4z5U.js.map → mediaType-N0hKQqG9.js.map} +1 -1
  17. package/dist/{runner-DYf8dV43.js → runner-CQYh087M.js} +1948 -385
  18. package/dist/runner-CQYh087M.js.map +1 -0
  19. package/dist/runner.js +1 -1
  20. package/dist/{server-test-COAiKxTV.js → server-test-BwyCFssm.js} +3 -3
  21. package/dist/{server-test-COAiKxTV.js.map → server-test-BwyCFssm.js.map} +1 -1
  22. package/dist/{tree-CF7Q8tXK.js → tree-Bjv-rXir.js} +638 -41
  23. package/dist/tree-Bjv-rXir.js.map +1 -0
  24. package/dist/web/assets/{core-Rhf-hNq6.js → core-EsMgAasL.js} +1 -1
  25. package/dist/web/assets/engine-oniguruma-C2eJcn5h.js +1 -0
  26. package/dist/web/assets/{highlighted-body-JLMTFACH-DcKwRTm5.js → highlighted-body-JLMTFACH-Co1oXN1b.js} +1 -1
  27. package/dist/web/assets/{highlights-DCtMC0YR.js → highlights-DUjJZrPQ.js} +1 -1
  28. package/dist/web/assets/index-29XyPQXD.css +1 -0
  29. package/dist/web/assets/index-DK4GsIYY.js +943 -0
  30. package/dist/web/assets/langs-BduZAjBk.js +1 -0
  31. package/dist/web/assets/mermaid-WFAXDIZX-D00b7K53.js +1 -0
  32. package/dist/web/assets/{shiki-B3-ws3OK.js → shiki-DP8JfDZC.js} +2 -2
  33. package/dist/web/assets/{stream-tokenizer-hKFrMxml.js → stream-tokenizer-IR1cpBIQ.js} +1 -1
  34. package/dist/web/assets/{themes-Cvhh4Ovr.js → themes-D2aixyve.js} +2 -2
  35. package/dist/web/index.html +2 -2
  36. package/package.json +1 -1
  37. package/dist/main-hdQfX9V6.js.map +0 -1
  38. package/dist/runner-DYf8dV43.js.map +0 -1
  39. package/dist/tree-CF7Q8tXK.js.map +0 -1
  40. package/dist/web/assets/engine-oniguruma-BbpT993F.js +0 -1
  41. package/dist/web/assets/index-BLggvVMT.js +0 -942
  42. package/dist/web/assets/index-JjF9o00P.css +0 -1
  43. package/dist/web/assets/langs-B2ZGl3f_.js +0 -1
  44. package/dist/web/assets/mermaid-WFAXDIZX-C2_MUy_a.js +0 -1
@@ -0,0 +1,3635 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "id": "29a3e392-1efa-4ff0-bb67-c154b140dc55",
5
+ "prevIds": [
6
+ "9c2b80a3-5308-4079-bd1d-69500280a404"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "name": "automation_projects",
11
+ "entityType": "tables"
12
+ },
13
+ {
14
+ "name": "automation_schedules",
15
+ "entityType": "tables"
16
+ },
17
+ {
18
+ "name": "artifacts",
19
+ "entityType": "tables"
20
+ },
21
+ {
22
+ "name": "automation_runs",
23
+ "entityType": "tables"
24
+ },
25
+ {
26
+ "name": "automations",
27
+ "entityType": "tables"
28
+ },
29
+ {
30
+ "name": "checkpoints",
31
+ "entityType": "tables"
32
+ },
33
+ {
34
+ "name": "events",
35
+ "entityType": "tables"
36
+ },
37
+ {
38
+ "name": "inbox_items",
39
+ "entityType": "tables"
40
+ },
41
+ {
42
+ "name": "items",
43
+ "entityType": "tables"
44
+ },
45
+ {
46
+ "name": "mcp_tokens",
47
+ "entityType": "tables"
48
+ },
49
+ {
50
+ "name": "projects",
51
+ "entityType": "tables"
52
+ },
53
+ {
54
+ "name": "queued_messages",
55
+ "entityType": "tables"
56
+ },
57
+ {
58
+ "name": "runner_state",
59
+ "entityType": "tables"
60
+ },
61
+ {
62
+ "name": "sessions",
63
+ "entityType": "tables"
64
+ },
65
+ {
66
+ "name": "threads",
67
+ "entityType": "tables"
68
+ },
69
+ {
70
+ "name": "turns",
71
+ "entityType": "tables"
72
+ },
73
+ {
74
+ "name": "factory_digests",
75
+ "entityType": "tables"
76
+ },
77
+ {
78
+ "name": "factory_items",
79
+ "entityType": "tables"
80
+ },
81
+ {
82
+ "name": "factory_loops",
83
+ "entityType": "tables"
84
+ },
85
+ {
86
+ "name": "github_issues",
87
+ "entityType": "tables"
88
+ },
89
+ {
90
+ "name": "github_prs",
91
+ "entityType": "tables"
92
+ },
93
+ {
94
+ "name": "github_sync_state",
95
+ "entityType": "tables"
96
+ },
97
+ {
98
+ "name": "conflicts",
99
+ "entityType": "tables"
100
+ },
101
+ {
102
+ "name": "notices",
103
+ "entityType": "tables"
104
+ },
105
+ {
106
+ "name": "item_search",
107
+ "entityType": "tables"
108
+ },
109
+ {
110
+ "name": "rate_limit_windows",
111
+ "entityType": "tables"
112
+ },
113
+ {
114
+ "name": "usage_ledger",
115
+ "entityType": "tables"
116
+ },
117
+ {
118
+ "table": "automation_projects",
119
+ "name": "project_id",
120
+ "type": "text",
121
+ "notNull": false,
122
+ "autoincrement": false,
123
+ "default": null,
124
+ "generated": null,
125
+ "entityType": "columns"
126
+ },
127
+ {
128
+ "table": "automation_projects",
129
+ "name": "enabled",
130
+ "type": "integer",
131
+ "notNull": true,
132
+ "autoincrement": false,
133
+ "default": "true",
134
+ "generated": null,
135
+ "entityType": "columns"
136
+ },
137
+ {
138
+ "table": "automation_projects",
139
+ "name": "updated_at",
140
+ "type": "text",
141
+ "notNull": true,
142
+ "autoincrement": false,
143
+ "default": null,
144
+ "generated": null,
145
+ "entityType": "columns"
146
+ },
147
+ {
148
+ "table": "automation_schedules",
149
+ "name": "automation_id",
150
+ "type": "text",
151
+ "notNull": true,
152
+ "autoincrement": false,
153
+ "default": null,
154
+ "generated": null,
155
+ "entityType": "columns"
156
+ },
157
+ {
158
+ "table": "automation_schedules",
159
+ "name": "project_id",
160
+ "type": "text",
161
+ "notNull": true,
162
+ "autoincrement": false,
163
+ "default": null,
164
+ "generated": null,
165
+ "entityType": "columns"
166
+ },
167
+ {
168
+ "table": "automation_schedules",
169
+ "name": "signature",
170
+ "type": "text",
171
+ "notNull": false,
172
+ "autoincrement": false,
173
+ "default": null,
174
+ "generated": null,
175
+ "entityType": "columns"
176
+ },
177
+ {
178
+ "table": "automation_schedules",
179
+ "name": "next_run_at",
180
+ "type": "text",
181
+ "notNull": false,
182
+ "autoincrement": false,
183
+ "default": null,
184
+ "generated": null,
185
+ "entityType": "columns"
186
+ },
187
+ {
188
+ "table": "automation_schedules",
189
+ "name": "skip_at",
190
+ "type": "text",
191
+ "notNull": false,
192
+ "autoincrement": false,
193
+ "default": null,
194
+ "generated": null,
195
+ "entityType": "columns"
196
+ },
197
+ {
198
+ "table": "automation_schedules",
199
+ "name": "paused",
200
+ "type": "integer",
201
+ "notNull": true,
202
+ "autoincrement": false,
203
+ "default": "false",
204
+ "generated": null,
205
+ "entityType": "columns"
206
+ },
207
+ {
208
+ "table": "automation_schedules",
209
+ "name": "enabled_override",
210
+ "type": "integer",
211
+ "notNull": false,
212
+ "autoincrement": false,
213
+ "default": null,
214
+ "generated": null,
215
+ "entityType": "columns"
216
+ },
217
+ {
218
+ "table": "automation_schedules",
219
+ "name": "last_fired_at",
220
+ "type": "text",
221
+ "notNull": false,
222
+ "autoincrement": false,
223
+ "default": null,
224
+ "generated": null,
225
+ "entityType": "columns"
226
+ },
227
+ {
228
+ "table": "automation_schedules",
229
+ "name": "updated_at",
230
+ "type": "text",
231
+ "notNull": true,
232
+ "autoincrement": false,
233
+ "default": null,
234
+ "generated": null,
235
+ "entityType": "columns"
236
+ },
237
+ {
238
+ "table": "artifacts",
239
+ "name": "id",
240
+ "type": "text",
241
+ "notNull": false,
242
+ "autoincrement": false,
243
+ "default": null,
244
+ "generated": null,
245
+ "entityType": "columns"
246
+ },
247
+ {
248
+ "table": "artifacts",
249
+ "name": "kind",
250
+ "type": "text",
251
+ "notNull": true,
252
+ "autoincrement": false,
253
+ "default": null,
254
+ "generated": null,
255
+ "entityType": "columns"
256
+ },
257
+ {
258
+ "table": "artifacts",
259
+ "name": "name",
260
+ "type": "text",
261
+ "notNull": true,
262
+ "autoincrement": false,
263
+ "default": null,
264
+ "generated": null,
265
+ "entityType": "columns"
266
+ },
267
+ {
268
+ "table": "artifacts",
269
+ "name": "media_type",
270
+ "type": "text",
271
+ "notNull": true,
272
+ "autoincrement": false,
273
+ "default": null,
274
+ "generated": null,
275
+ "entityType": "columns"
276
+ },
277
+ {
278
+ "table": "artifacts",
279
+ "name": "path",
280
+ "type": "text",
281
+ "notNull": true,
282
+ "autoincrement": false,
283
+ "default": null,
284
+ "generated": null,
285
+ "entityType": "columns"
286
+ },
287
+ {
288
+ "table": "artifacts",
289
+ "name": "size_bytes",
290
+ "type": "integer",
291
+ "notNull": true,
292
+ "autoincrement": false,
293
+ "default": null,
294
+ "generated": null,
295
+ "entityType": "columns"
296
+ },
297
+ {
298
+ "table": "artifacts",
299
+ "name": "sha256",
300
+ "type": "text",
301
+ "notNull": false,
302
+ "autoincrement": false,
303
+ "default": null,
304
+ "generated": null,
305
+ "entityType": "columns"
306
+ },
307
+ {
308
+ "table": "artifacts",
309
+ "name": "project_id",
310
+ "type": "text",
311
+ "notNull": false,
312
+ "autoincrement": false,
313
+ "default": null,
314
+ "generated": null,
315
+ "entityType": "columns"
316
+ },
317
+ {
318
+ "table": "artifacts",
319
+ "name": "session_id",
320
+ "type": "text",
321
+ "notNull": false,
322
+ "autoincrement": false,
323
+ "default": null,
324
+ "generated": null,
325
+ "entityType": "columns"
326
+ },
327
+ {
328
+ "table": "artifacts",
329
+ "name": "thread_id",
330
+ "type": "text",
331
+ "notNull": false,
332
+ "autoincrement": false,
333
+ "default": null,
334
+ "generated": null,
335
+ "entityType": "columns"
336
+ },
337
+ {
338
+ "table": "artifacts",
339
+ "name": "item_id",
340
+ "type": "text",
341
+ "notNull": false,
342
+ "autoincrement": false,
343
+ "default": null,
344
+ "generated": null,
345
+ "entityType": "columns"
346
+ },
347
+ {
348
+ "table": "artifacts",
349
+ "name": "created_at",
350
+ "type": "text",
351
+ "notNull": true,
352
+ "autoincrement": false,
353
+ "default": null,
354
+ "generated": null,
355
+ "entityType": "columns"
356
+ },
357
+ {
358
+ "table": "automation_runs",
359
+ "name": "id",
360
+ "type": "text",
361
+ "notNull": false,
362
+ "autoincrement": false,
363
+ "default": null,
364
+ "generated": null,
365
+ "entityType": "columns"
366
+ },
367
+ {
368
+ "table": "automation_runs",
369
+ "name": "automation_id",
370
+ "type": "text",
371
+ "notNull": true,
372
+ "autoincrement": false,
373
+ "default": null,
374
+ "generated": null,
375
+ "entityType": "columns"
376
+ },
377
+ {
378
+ "table": "automation_runs",
379
+ "name": "project_id",
380
+ "type": "text",
381
+ "notNull": false,
382
+ "autoincrement": false,
383
+ "default": null,
384
+ "generated": null,
385
+ "entityType": "columns"
386
+ },
387
+ {
388
+ "table": "automation_runs",
389
+ "name": "status",
390
+ "type": "text",
391
+ "notNull": true,
392
+ "autoincrement": false,
393
+ "default": null,
394
+ "generated": null,
395
+ "entityType": "columns"
396
+ },
397
+ {
398
+ "table": "automation_runs",
399
+ "name": "triggered_by",
400
+ "type": "text",
401
+ "notNull": true,
402
+ "autoincrement": false,
403
+ "default": null,
404
+ "generated": null,
405
+ "entityType": "columns"
406
+ },
407
+ {
408
+ "table": "automation_runs",
409
+ "name": "started_by",
410
+ "type": "text",
411
+ "notNull": true,
412
+ "autoincrement": false,
413
+ "default": null,
414
+ "generated": null,
415
+ "entityType": "columns"
416
+ },
417
+ {
418
+ "table": "automation_runs",
419
+ "name": "purpose",
420
+ "type": "text",
421
+ "notNull": true,
422
+ "autoincrement": false,
423
+ "default": null,
424
+ "generated": null,
425
+ "entityType": "columns"
426
+ },
427
+ {
428
+ "table": "automation_runs",
429
+ "name": "work_key",
430
+ "type": "text",
431
+ "notNull": true,
432
+ "autoincrement": false,
433
+ "default": null,
434
+ "generated": null,
435
+ "entityType": "columns"
436
+ },
437
+ {
438
+ "table": "automation_runs",
439
+ "name": "scope",
440
+ "type": "text",
441
+ "notNull": true,
442
+ "autoincrement": false,
443
+ "default": null,
444
+ "generated": null,
445
+ "entityType": "columns"
446
+ },
447
+ {
448
+ "table": "automation_runs",
449
+ "name": "progress",
450
+ "type": "text",
451
+ "notNull": false,
452
+ "autoincrement": false,
453
+ "default": null,
454
+ "generated": null,
455
+ "entityType": "columns"
456
+ },
457
+ {
458
+ "table": "automation_runs",
459
+ "name": "skip_reason",
460
+ "type": "text",
461
+ "notNull": false,
462
+ "autoincrement": false,
463
+ "default": null,
464
+ "generated": null,
465
+ "entityType": "columns"
466
+ },
467
+ {
468
+ "table": "automation_runs",
469
+ "name": "session_id",
470
+ "type": "text",
471
+ "notNull": false,
472
+ "autoincrement": false,
473
+ "default": null,
474
+ "generated": null,
475
+ "entityType": "columns"
476
+ },
477
+ {
478
+ "table": "automation_runs",
479
+ "name": "issue_number",
480
+ "type": "integer",
481
+ "notNull": false,
482
+ "autoincrement": false,
483
+ "default": null,
484
+ "generated": null,
485
+ "entityType": "columns"
486
+ },
487
+ {
488
+ "table": "automation_runs",
489
+ "name": "started_at",
490
+ "type": "text",
491
+ "notNull": true,
492
+ "autoincrement": false,
493
+ "default": null,
494
+ "generated": null,
495
+ "entityType": "columns"
496
+ },
497
+ {
498
+ "table": "automation_runs",
499
+ "name": "finished_at",
500
+ "type": "text",
501
+ "notNull": false,
502
+ "autoincrement": false,
503
+ "default": null,
504
+ "generated": null,
505
+ "entityType": "columns"
506
+ },
507
+ {
508
+ "table": "automation_runs",
509
+ "name": "error",
510
+ "type": "text",
511
+ "notNull": false,
512
+ "autoincrement": false,
513
+ "default": null,
514
+ "generated": null,
515
+ "entityType": "columns"
516
+ },
517
+ {
518
+ "table": "automations",
519
+ "name": "id",
520
+ "type": "text",
521
+ "notNull": false,
522
+ "autoincrement": false,
523
+ "default": null,
524
+ "generated": null,
525
+ "entityType": "columns"
526
+ },
527
+ {
528
+ "table": "automations",
529
+ "name": "name",
530
+ "type": "text",
531
+ "notNull": true,
532
+ "autoincrement": false,
533
+ "default": null,
534
+ "generated": null,
535
+ "entityType": "columns"
536
+ },
537
+ {
538
+ "table": "automations",
539
+ "name": "description",
540
+ "type": "text",
541
+ "notNull": false,
542
+ "autoincrement": false,
543
+ "default": null,
544
+ "generated": null,
545
+ "entityType": "columns"
546
+ },
547
+ {
548
+ "table": "automations",
549
+ "name": "enabled",
550
+ "type": "integer",
551
+ "notNull": true,
552
+ "autoincrement": false,
553
+ "default": "false",
554
+ "generated": null,
555
+ "entityType": "columns"
556
+ },
557
+ {
558
+ "table": "automations",
559
+ "name": "source",
560
+ "type": "text",
561
+ "notNull": true,
562
+ "autoincrement": false,
563
+ "default": null,
564
+ "generated": null,
565
+ "entityType": "columns"
566
+ },
567
+ {
568
+ "table": "automations",
569
+ "name": "template_id",
570
+ "type": "text",
571
+ "notNull": false,
572
+ "autoincrement": false,
573
+ "default": null,
574
+ "generated": null,
575
+ "entityType": "columns"
576
+ },
577
+ {
578
+ "table": "automations",
579
+ "name": "trigger",
580
+ "type": "text",
581
+ "notNull": true,
582
+ "autoincrement": false,
583
+ "default": null,
584
+ "generated": null,
585
+ "entityType": "columns"
586
+ },
587
+ {
588
+ "table": "automations",
589
+ "name": "action",
590
+ "type": "text",
591
+ "notNull": true,
592
+ "autoincrement": false,
593
+ "default": null,
594
+ "generated": null,
595
+ "entityType": "columns"
596
+ },
597
+ {
598
+ "table": "automations",
599
+ "name": "target",
600
+ "type": "text",
601
+ "notNull": true,
602
+ "autoincrement": false,
603
+ "default": null,
604
+ "generated": null,
605
+ "entityType": "columns"
606
+ },
607
+ {
608
+ "table": "automations",
609
+ "name": "guards",
610
+ "type": "text",
611
+ "notNull": true,
612
+ "autoincrement": false,
613
+ "default": null,
614
+ "generated": null,
615
+ "entityType": "columns"
616
+ },
617
+ {
618
+ "table": "automations",
619
+ "name": "work_key",
620
+ "type": "text",
621
+ "notNull": false,
622
+ "autoincrement": false,
623
+ "default": null,
624
+ "generated": null,
625
+ "entityType": "columns"
626
+ },
627
+ {
628
+ "table": "automations",
629
+ "name": "created_by",
630
+ "type": "text",
631
+ "notNull": false,
632
+ "autoincrement": false,
633
+ "default": null,
634
+ "generated": null,
635
+ "entityType": "columns"
636
+ },
637
+ {
638
+ "table": "automations",
639
+ "name": "created_at",
640
+ "type": "text",
641
+ "notNull": true,
642
+ "autoincrement": false,
643
+ "default": null,
644
+ "generated": null,
645
+ "entityType": "columns"
646
+ },
647
+ {
648
+ "table": "automations",
649
+ "name": "updated_at",
650
+ "type": "text",
651
+ "notNull": true,
652
+ "autoincrement": false,
653
+ "default": null,
654
+ "generated": null,
655
+ "entityType": "columns"
656
+ },
657
+ {
658
+ "table": "checkpoints",
659
+ "name": "session_id",
660
+ "type": "text",
661
+ "notNull": true,
662
+ "autoincrement": false,
663
+ "default": null,
664
+ "generated": null,
665
+ "entityType": "columns"
666
+ },
667
+ {
668
+ "table": "checkpoints",
669
+ "name": "idx",
670
+ "type": "integer",
671
+ "notNull": true,
672
+ "autoincrement": false,
673
+ "default": null,
674
+ "generated": null,
675
+ "entityType": "columns"
676
+ },
677
+ {
678
+ "table": "checkpoints",
679
+ "name": "ref",
680
+ "type": "text",
681
+ "notNull": true,
682
+ "autoincrement": false,
683
+ "default": null,
684
+ "generated": null,
685
+ "entityType": "columns"
686
+ },
687
+ {
688
+ "table": "checkpoints",
689
+ "name": "commit_sha",
690
+ "type": "text",
691
+ "notNull": true,
692
+ "autoincrement": false,
693
+ "default": null,
694
+ "generated": null,
695
+ "entityType": "columns"
696
+ },
697
+ {
698
+ "table": "checkpoints",
699
+ "name": "turn_id",
700
+ "type": "text",
701
+ "notNull": false,
702
+ "autoincrement": false,
703
+ "default": null,
704
+ "generated": null,
705
+ "entityType": "columns"
706
+ },
707
+ {
708
+ "table": "checkpoints",
709
+ "name": "created_at",
710
+ "type": "text",
711
+ "notNull": true,
712
+ "autoincrement": false,
713
+ "default": null,
714
+ "generated": null,
715
+ "entityType": "columns"
716
+ },
717
+ {
718
+ "table": "events",
719
+ "name": "seq",
720
+ "type": "integer",
721
+ "notNull": false,
722
+ "autoincrement": true,
723
+ "default": null,
724
+ "generated": null,
725
+ "entityType": "columns"
726
+ },
727
+ {
728
+ "table": "events",
729
+ "name": "session_id",
730
+ "type": "text",
731
+ "notNull": false,
732
+ "autoincrement": false,
733
+ "default": null,
734
+ "generated": null,
735
+ "entityType": "columns"
736
+ },
737
+ {
738
+ "table": "events",
739
+ "name": "type",
740
+ "type": "text",
741
+ "notNull": true,
742
+ "autoincrement": false,
743
+ "default": null,
744
+ "generated": null,
745
+ "entityType": "columns"
746
+ },
747
+ {
748
+ "table": "events",
749
+ "name": "payload",
750
+ "type": "text",
751
+ "notNull": true,
752
+ "autoincrement": false,
753
+ "default": null,
754
+ "generated": null,
755
+ "entityType": "columns"
756
+ },
757
+ {
758
+ "table": "events",
759
+ "name": "ts",
760
+ "type": "text",
761
+ "notNull": true,
762
+ "autoincrement": false,
763
+ "default": null,
764
+ "generated": null,
765
+ "entityType": "columns"
766
+ },
767
+ {
768
+ "table": "inbox_items",
769
+ "name": "id",
770
+ "type": "text",
771
+ "notNull": false,
772
+ "autoincrement": false,
773
+ "default": null,
774
+ "generated": null,
775
+ "entityType": "columns"
776
+ },
777
+ {
778
+ "table": "inbox_items",
779
+ "name": "kind",
780
+ "type": "text",
781
+ "notNull": true,
782
+ "autoincrement": false,
783
+ "default": null,
784
+ "generated": null,
785
+ "entityType": "columns"
786
+ },
787
+ {
788
+ "table": "inbox_items",
789
+ "name": "status",
790
+ "type": "text",
791
+ "notNull": true,
792
+ "autoincrement": false,
793
+ "default": null,
794
+ "generated": null,
795
+ "entityType": "columns"
796
+ },
797
+ {
798
+ "table": "inbox_items",
799
+ "name": "priority",
800
+ "type": "text",
801
+ "notNull": true,
802
+ "autoincrement": false,
803
+ "default": "'normal'",
804
+ "generated": null,
805
+ "entityType": "columns"
806
+ },
807
+ {
808
+ "table": "inbox_items",
809
+ "name": "notify",
810
+ "type": "text",
811
+ "notNull": true,
812
+ "autoincrement": false,
813
+ "default": "'needs_you'",
814
+ "generated": null,
815
+ "entityType": "columns"
816
+ },
817
+ {
818
+ "table": "inbox_items",
819
+ "name": "title",
820
+ "type": "text",
821
+ "notNull": true,
822
+ "autoincrement": false,
823
+ "default": null,
824
+ "generated": null,
825
+ "entityType": "columns"
826
+ },
827
+ {
828
+ "table": "inbox_items",
829
+ "name": "body",
830
+ "type": "text",
831
+ "notNull": false,
832
+ "autoincrement": false,
833
+ "default": null,
834
+ "generated": null,
835
+ "entityType": "columns"
836
+ },
837
+ {
838
+ "table": "inbox_items",
839
+ "name": "project_id",
840
+ "type": "text",
841
+ "notNull": false,
842
+ "autoincrement": false,
843
+ "default": null,
844
+ "generated": null,
845
+ "entityType": "columns"
846
+ },
847
+ {
848
+ "table": "inbox_items",
849
+ "name": "session_id",
850
+ "type": "text",
851
+ "notNull": false,
852
+ "autoincrement": false,
853
+ "default": null,
854
+ "generated": null,
855
+ "entityType": "columns"
856
+ },
857
+ {
858
+ "table": "inbox_items",
859
+ "name": "thread_id",
860
+ "type": "text",
861
+ "notNull": false,
862
+ "autoincrement": false,
863
+ "default": null,
864
+ "generated": null,
865
+ "entityType": "columns"
866
+ },
867
+ {
868
+ "table": "inbox_items",
869
+ "name": "item_id",
870
+ "type": "text",
871
+ "notNull": false,
872
+ "autoincrement": false,
873
+ "default": null,
874
+ "generated": null,
875
+ "entityType": "columns"
876
+ },
877
+ {
878
+ "table": "inbox_items",
879
+ "name": "request_id",
880
+ "type": "text",
881
+ "notNull": false,
882
+ "autoincrement": false,
883
+ "default": null,
884
+ "generated": null,
885
+ "entityType": "columns"
886
+ },
887
+ {
888
+ "table": "inbox_items",
889
+ "name": "issue",
890
+ "type": "text",
891
+ "notNull": false,
892
+ "autoincrement": false,
893
+ "default": null,
894
+ "generated": null,
895
+ "entityType": "columns"
896
+ },
897
+ {
898
+ "table": "inbox_items",
899
+ "name": "pr",
900
+ "type": "text",
901
+ "notNull": false,
902
+ "autoincrement": false,
903
+ "default": null,
904
+ "generated": null,
905
+ "entityType": "columns"
906
+ },
907
+ {
908
+ "table": "inbox_items",
909
+ "name": "automation_run_id",
910
+ "type": "text",
911
+ "notNull": false,
912
+ "autoincrement": false,
913
+ "default": null,
914
+ "generated": null,
915
+ "entityType": "columns"
916
+ },
917
+ {
918
+ "table": "inbox_items",
919
+ "name": "created_at",
920
+ "type": "text",
921
+ "notNull": true,
922
+ "autoincrement": false,
923
+ "default": null,
924
+ "generated": null,
925
+ "entityType": "columns"
926
+ },
927
+ {
928
+ "table": "inbox_items",
929
+ "name": "updated_at",
930
+ "type": "text",
931
+ "notNull": true,
932
+ "autoincrement": false,
933
+ "default": null,
934
+ "generated": null,
935
+ "entityType": "columns"
936
+ },
937
+ {
938
+ "table": "inbox_items",
939
+ "name": "resolved_at",
940
+ "type": "text",
941
+ "notNull": false,
942
+ "autoincrement": false,
943
+ "default": null,
944
+ "generated": null,
945
+ "entityType": "columns"
946
+ },
947
+ {
948
+ "table": "inbox_items",
949
+ "name": "resolution",
950
+ "type": "text",
951
+ "notNull": false,
952
+ "autoincrement": false,
953
+ "default": null,
954
+ "generated": null,
955
+ "entityType": "columns"
956
+ },
957
+ {
958
+ "table": "items",
959
+ "name": "session_id",
960
+ "type": "text",
961
+ "notNull": true,
962
+ "autoincrement": false,
963
+ "default": null,
964
+ "generated": null,
965
+ "entityType": "columns"
966
+ },
967
+ {
968
+ "table": "items",
969
+ "name": "id",
970
+ "type": "text",
971
+ "notNull": true,
972
+ "autoincrement": false,
973
+ "default": null,
974
+ "generated": null,
975
+ "entityType": "columns"
976
+ },
977
+ {
978
+ "table": "items",
979
+ "name": "thread_id",
980
+ "type": "text",
981
+ "notNull": true,
982
+ "autoincrement": false,
983
+ "default": null,
984
+ "generated": null,
985
+ "entityType": "columns"
986
+ },
987
+ {
988
+ "table": "items",
989
+ "name": "turn_id",
990
+ "type": "text",
991
+ "notNull": true,
992
+ "autoincrement": false,
993
+ "default": null,
994
+ "generated": null,
995
+ "entityType": "columns"
996
+ },
997
+ {
998
+ "table": "items",
999
+ "name": "position",
1000
+ "type": "integer",
1001
+ "notNull": true,
1002
+ "autoincrement": false,
1003
+ "default": null,
1004
+ "generated": null,
1005
+ "entityType": "columns"
1006
+ },
1007
+ {
1008
+ "table": "items",
1009
+ "name": "kind",
1010
+ "type": "text",
1011
+ "notNull": true,
1012
+ "autoincrement": false,
1013
+ "default": null,
1014
+ "generated": null,
1015
+ "entityType": "columns"
1016
+ },
1017
+ {
1018
+ "table": "items",
1019
+ "name": "status",
1020
+ "type": "text",
1021
+ "notNull": true,
1022
+ "autoincrement": false,
1023
+ "default": null,
1024
+ "generated": null,
1025
+ "entityType": "columns"
1026
+ },
1027
+ {
1028
+ "table": "items",
1029
+ "name": "data",
1030
+ "type": "text",
1031
+ "notNull": true,
1032
+ "autoincrement": false,
1033
+ "default": null,
1034
+ "generated": null,
1035
+ "entityType": "columns"
1036
+ },
1037
+ {
1038
+ "table": "items",
1039
+ "name": "created_at",
1040
+ "type": "text",
1041
+ "notNull": true,
1042
+ "autoincrement": false,
1043
+ "default": null,
1044
+ "generated": null,
1045
+ "entityType": "columns"
1046
+ },
1047
+ {
1048
+ "table": "items",
1049
+ "name": "updated_at",
1050
+ "type": "text",
1051
+ "notNull": true,
1052
+ "autoincrement": false,
1053
+ "default": null,
1054
+ "generated": null,
1055
+ "entityType": "columns"
1056
+ },
1057
+ {
1058
+ "table": "mcp_tokens",
1059
+ "name": "id",
1060
+ "type": "text",
1061
+ "notNull": false,
1062
+ "autoincrement": false,
1063
+ "default": null,
1064
+ "generated": null,
1065
+ "entityType": "columns"
1066
+ },
1067
+ {
1068
+ "table": "mcp_tokens",
1069
+ "name": "token_hash",
1070
+ "type": "text",
1071
+ "notNull": true,
1072
+ "autoincrement": false,
1073
+ "default": null,
1074
+ "generated": null,
1075
+ "entityType": "columns"
1076
+ },
1077
+ {
1078
+ "table": "mcp_tokens",
1079
+ "name": "role",
1080
+ "type": "text",
1081
+ "notNull": true,
1082
+ "autoincrement": false,
1083
+ "default": null,
1084
+ "generated": null,
1085
+ "entityType": "columns"
1086
+ },
1087
+ {
1088
+ "table": "mcp_tokens",
1089
+ "name": "session_id",
1090
+ "type": "text",
1091
+ "notNull": true,
1092
+ "autoincrement": false,
1093
+ "default": null,
1094
+ "generated": null,
1095
+ "entityType": "columns"
1096
+ },
1097
+ {
1098
+ "table": "mcp_tokens",
1099
+ "name": "project_id",
1100
+ "type": "text",
1101
+ "notNull": false,
1102
+ "autoincrement": false,
1103
+ "default": null,
1104
+ "generated": null,
1105
+ "entityType": "columns"
1106
+ },
1107
+ {
1108
+ "table": "mcp_tokens",
1109
+ "name": "created_at",
1110
+ "type": "text",
1111
+ "notNull": true,
1112
+ "autoincrement": false,
1113
+ "default": null,
1114
+ "generated": null,
1115
+ "entityType": "columns"
1116
+ },
1117
+ {
1118
+ "table": "mcp_tokens",
1119
+ "name": "revoked_at",
1120
+ "type": "text",
1121
+ "notNull": false,
1122
+ "autoincrement": false,
1123
+ "default": null,
1124
+ "generated": null,
1125
+ "entityType": "columns"
1126
+ },
1127
+ {
1128
+ "table": "projects",
1129
+ "name": "id",
1130
+ "type": "text",
1131
+ "notNull": false,
1132
+ "autoincrement": false,
1133
+ "default": null,
1134
+ "generated": null,
1135
+ "entityType": "columns"
1136
+ },
1137
+ {
1138
+ "table": "projects",
1139
+ "name": "kind",
1140
+ "type": "text",
1141
+ "notNull": true,
1142
+ "autoincrement": false,
1143
+ "default": null,
1144
+ "generated": null,
1145
+ "entityType": "columns"
1146
+ },
1147
+ {
1148
+ "table": "projects",
1149
+ "name": "name",
1150
+ "type": "text",
1151
+ "notNull": true,
1152
+ "autoincrement": false,
1153
+ "default": null,
1154
+ "generated": null,
1155
+ "entityType": "columns"
1156
+ },
1157
+ {
1158
+ "table": "projects",
1159
+ "name": "slug",
1160
+ "type": "text",
1161
+ "notNull": true,
1162
+ "autoincrement": false,
1163
+ "default": null,
1164
+ "generated": null,
1165
+ "entityType": "columns"
1166
+ },
1167
+ {
1168
+ "table": "projects",
1169
+ "name": "path",
1170
+ "type": "text",
1171
+ "notNull": true,
1172
+ "autoincrement": false,
1173
+ "default": null,
1174
+ "generated": null,
1175
+ "entityType": "columns"
1176
+ },
1177
+ {
1178
+ "table": "projects",
1179
+ "name": "default_branch",
1180
+ "type": "text",
1181
+ "notNull": false,
1182
+ "autoincrement": false,
1183
+ "default": null,
1184
+ "generated": null,
1185
+ "entityType": "columns"
1186
+ },
1187
+ {
1188
+ "table": "projects",
1189
+ "name": "default_provider",
1190
+ "type": "text",
1191
+ "notNull": false,
1192
+ "autoincrement": false,
1193
+ "default": null,
1194
+ "generated": null,
1195
+ "entityType": "columns"
1196
+ },
1197
+ {
1198
+ "table": "projects",
1199
+ "name": "autonomy",
1200
+ "type": "text",
1201
+ "notNull": false,
1202
+ "autoincrement": false,
1203
+ "default": null,
1204
+ "generated": null,
1205
+ "entityType": "columns"
1206
+ },
1207
+ {
1208
+ "table": "projects",
1209
+ "name": "autonomy_mode",
1210
+ "type": "text",
1211
+ "notNull": true,
1212
+ "autoincrement": false,
1213
+ "default": "'assisted'",
1214
+ "generated": null,
1215
+ "entityType": "columns"
1216
+ },
1217
+ {
1218
+ "table": "projects",
1219
+ "name": "vision_path",
1220
+ "type": "text",
1221
+ "notNull": true,
1222
+ "autoincrement": false,
1223
+ "default": "'.codeden/VISION.md'",
1224
+ "generated": null,
1225
+ "entityType": "columns"
1226
+ },
1227
+ {
1228
+ "table": "projects",
1229
+ "name": "factory_limits",
1230
+ "type": "text",
1231
+ "notNull": false,
1232
+ "autoincrement": false,
1233
+ "default": null,
1234
+ "generated": null,
1235
+ "entityType": "columns"
1236
+ },
1237
+ {
1238
+ "table": "projects",
1239
+ "name": "kill_switch",
1240
+ "type": "integer",
1241
+ "notNull": true,
1242
+ "autoincrement": false,
1243
+ "default": "false",
1244
+ "generated": null,
1245
+ "entityType": "columns"
1246
+ },
1247
+ {
1248
+ "table": "projects",
1249
+ "name": "timezone",
1250
+ "type": "text",
1251
+ "notNull": false,
1252
+ "autoincrement": false,
1253
+ "default": null,
1254
+ "generated": null,
1255
+ "entityType": "columns"
1256
+ },
1257
+ {
1258
+ "table": "projects",
1259
+ "name": "pinned",
1260
+ "type": "integer",
1261
+ "notNull": true,
1262
+ "autoincrement": false,
1263
+ "default": "false",
1264
+ "generated": null,
1265
+ "entityType": "columns"
1266
+ },
1267
+ {
1268
+ "table": "projects",
1269
+ "name": "sort_order",
1270
+ "type": "integer",
1271
+ "notNull": true,
1272
+ "autoincrement": false,
1273
+ "default": "0",
1274
+ "generated": null,
1275
+ "entityType": "columns"
1276
+ },
1277
+ {
1278
+ "table": "projects",
1279
+ "name": "github",
1280
+ "type": "text",
1281
+ "notNull": false,
1282
+ "autoincrement": false,
1283
+ "default": null,
1284
+ "generated": null,
1285
+ "entityType": "columns"
1286
+ },
1287
+ {
1288
+ "table": "projects",
1289
+ "name": "remote_warning",
1290
+ "type": "text",
1291
+ "notNull": false,
1292
+ "autoincrement": false,
1293
+ "default": null,
1294
+ "generated": null,
1295
+ "entityType": "columns"
1296
+ },
1297
+ {
1298
+ "table": "projects",
1299
+ "name": "created_at",
1300
+ "type": "text",
1301
+ "notNull": true,
1302
+ "autoincrement": false,
1303
+ "default": null,
1304
+ "generated": null,
1305
+ "entityType": "columns"
1306
+ },
1307
+ {
1308
+ "table": "projects",
1309
+ "name": "updated_at",
1310
+ "type": "text",
1311
+ "notNull": true,
1312
+ "autoincrement": false,
1313
+ "default": null,
1314
+ "generated": null,
1315
+ "entityType": "columns"
1316
+ },
1317
+ {
1318
+ "table": "projects",
1319
+ "name": "archived_at",
1320
+ "type": "text",
1321
+ "notNull": false,
1322
+ "autoincrement": false,
1323
+ "default": null,
1324
+ "generated": null,
1325
+ "entityType": "columns"
1326
+ },
1327
+ {
1328
+ "table": "queued_messages",
1329
+ "name": "id",
1330
+ "type": "text",
1331
+ "notNull": false,
1332
+ "autoincrement": false,
1333
+ "default": null,
1334
+ "generated": null,
1335
+ "entityType": "columns"
1336
+ },
1337
+ {
1338
+ "table": "queued_messages",
1339
+ "name": "session_id",
1340
+ "type": "text",
1341
+ "notNull": true,
1342
+ "autoincrement": false,
1343
+ "default": null,
1344
+ "generated": null,
1345
+ "entityType": "columns"
1346
+ },
1347
+ {
1348
+ "table": "queued_messages",
1349
+ "name": "input",
1350
+ "type": "text",
1351
+ "notNull": true,
1352
+ "autoincrement": false,
1353
+ "default": null,
1354
+ "generated": null,
1355
+ "entityType": "columns"
1356
+ },
1357
+ {
1358
+ "table": "queued_messages",
1359
+ "name": "sender",
1360
+ "type": "text",
1361
+ "notNull": false,
1362
+ "autoincrement": false,
1363
+ "default": null,
1364
+ "generated": null,
1365
+ "entityType": "columns"
1366
+ },
1367
+ {
1368
+ "table": "queued_messages",
1369
+ "name": "created_at",
1370
+ "type": "text",
1371
+ "notNull": true,
1372
+ "autoincrement": false,
1373
+ "default": null,
1374
+ "generated": null,
1375
+ "entityType": "columns"
1376
+ },
1377
+ {
1378
+ "table": "runner_state",
1379
+ "name": "runner_id",
1380
+ "type": "text",
1381
+ "notNull": false,
1382
+ "autoincrement": false,
1383
+ "default": null,
1384
+ "generated": null,
1385
+ "entityType": "columns"
1386
+ },
1387
+ {
1388
+ "table": "runner_state",
1389
+ "name": "last_acked_seq",
1390
+ "type": "integer",
1391
+ "notNull": true,
1392
+ "autoincrement": false,
1393
+ "default": "0",
1394
+ "generated": null,
1395
+ "entityType": "columns"
1396
+ },
1397
+ {
1398
+ "table": "runner_state",
1399
+ "name": "updated_at",
1400
+ "type": "text",
1401
+ "notNull": true,
1402
+ "autoincrement": false,
1403
+ "default": null,
1404
+ "generated": null,
1405
+ "entityType": "columns"
1406
+ },
1407
+ {
1408
+ "table": "sessions",
1409
+ "name": "id",
1410
+ "type": "text",
1411
+ "notNull": false,
1412
+ "autoincrement": false,
1413
+ "default": null,
1414
+ "generated": null,
1415
+ "entityType": "columns"
1416
+ },
1417
+ {
1418
+ "table": "sessions",
1419
+ "name": "project_id",
1420
+ "type": "text",
1421
+ "notNull": false,
1422
+ "autoincrement": false,
1423
+ "default": null,
1424
+ "generated": null,
1425
+ "entityType": "columns"
1426
+ },
1427
+ {
1428
+ "table": "sessions",
1429
+ "name": "role",
1430
+ "type": "text",
1431
+ "notNull": true,
1432
+ "autoincrement": false,
1433
+ "default": null,
1434
+ "generated": null,
1435
+ "entityType": "columns"
1436
+ },
1437
+ {
1438
+ "table": "sessions",
1439
+ "name": "parent_session_id",
1440
+ "type": "text",
1441
+ "notNull": false,
1442
+ "autoincrement": false,
1443
+ "default": null,
1444
+ "generated": null,
1445
+ "entityType": "columns"
1446
+ },
1447
+ {
1448
+ "table": "sessions",
1449
+ "name": "started_by",
1450
+ "type": "text",
1451
+ "notNull": true,
1452
+ "autoincrement": false,
1453
+ "default": null,
1454
+ "generated": null,
1455
+ "entityType": "columns"
1456
+ },
1457
+ {
1458
+ "table": "sessions",
1459
+ "name": "purpose",
1460
+ "type": "text",
1461
+ "notNull": true,
1462
+ "autoincrement": false,
1463
+ "default": null,
1464
+ "generated": null,
1465
+ "entityType": "columns"
1466
+ },
1467
+ {
1468
+ "table": "sessions",
1469
+ "name": "work_key",
1470
+ "type": "text",
1471
+ "notNull": true,
1472
+ "autoincrement": false,
1473
+ "default": null,
1474
+ "generated": null,
1475
+ "entityType": "columns"
1476
+ },
1477
+ {
1478
+ "table": "sessions",
1479
+ "name": "scope",
1480
+ "type": "text",
1481
+ "notNull": true,
1482
+ "autoincrement": false,
1483
+ "default": null,
1484
+ "generated": null,
1485
+ "entityType": "columns"
1486
+ },
1487
+ {
1488
+ "table": "sessions",
1489
+ "name": "progress",
1490
+ "type": "text",
1491
+ "notNull": false,
1492
+ "autoincrement": false,
1493
+ "default": null,
1494
+ "generated": null,
1495
+ "entityType": "columns"
1496
+ },
1497
+ {
1498
+ "table": "sessions",
1499
+ "name": "title",
1500
+ "type": "text",
1501
+ "notNull": false,
1502
+ "autoincrement": false,
1503
+ "default": null,
1504
+ "generated": null,
1505
+ "entityType": "columns"
1506
+ },
1507
+ {
1508
+ "table": "sessions",
1509
+ "name": "provider",
1510
+ "type": "text",
1511
+ "notNull": true,
1512
+ "autoincrement": false,
1513
+ "default": null,
1514
+ "generated": null,
1515
+ "entityType": "columns"
1516
+ },
1517
+ {
1518
+ "table": "sessions",
1519
+ "name": "model",
1520
+ "type": "text",
1521
+ "notNull": false,
1522
+ "autoincrement": false,
1523
+ "default": null,
1524
+ "generated": null,
1525
+ "entityType": "columns"
1526
+ },
1527
+ {
1528
+ "table": "sessions",
1529
+ "name": "effort",
1530
+ "type": "text",
1531
+ "notNull": false,
1532
+ "autoincrement": false,
1533
+ "default": null,
1534
+ "generated": null,
1535
+ "entityType": "columns"
1536
+ },
1537
+ {
1538
+ "table": "sessions",
1539
+ "name": "autonomy",
1540
+ "type": "text",
1541
+ "notNull": true,
1542
+ "autoincrement": false,
1543
+ "default": null,
1544
+ "generated": null,
1545
+ "entityType": "columns"
1546
+ },
1547
+ {
1548
+ "table": "sessions",
1549
+ "name": "plan_mode",
1550
+ "type": "integer",
1551
+ "notNull": true,
1552
+ "autoincrement": false,
1553
+ "default": "false",
1554
+ "generated": null,
1555
+ "entityType": "columns"
1556
+ },
1557
+ {
1558
+ "table": "sessions",
1559
+ "name": "status",
1560
+ "type": "text",
1561
+ "notNull": true,
1562
+ "autoincrement": false,
1563
+ "default": null,
1564
+ "generated": null,
1565
+ "entityType": "columns"
1566
+ },
1567
+ {
1568
+ "table": "sessions",
1569
+ "name": "cwd",
1570
+ "type": "text",
1571
+ "notNull": true,
1572
+ "autoincrement": false,
1573
+ "default": null,
1574
+ "generated": null,
1575
+ "entityType": "columns"
1576
+ },
1577
+ {
1578
+ "table": "sessions",
1579
+ "name": "worktree_path",
1580
+ "type": "text",
1581
+ "notNull": false,
1582
+ "autoincrement": false,
1583
+ "default": null,
1584
+ "generated": null,
1585
+ "entityType": "columns"
1586
+ },
1587
+ {
1588
+ "table": "sessions",
1589
+ "name": "branch",
1590
+ "type": "text",
1591
+ "notNull": false,
1592
+ "autoincrement": false,
1593
+ "default": null,
1594
+ "generated": null,
1595
+ "entityType": "columns"
1596
+ },
1597
+ {
1598
+ "table": "sessions",
1599
+ "name": "base_branch",
1600
+ "type": "text",
1601
+ "notNull": false,
1602
+ "autoincrement": false,
1603
+ "default": null,
1604
+ "generated": null,
1605
+ "entityType": "columns"
1606
+ },
1607
+ {
1608
+ "table": "sessions",
1609
+ "name": "issue",
1610
+ "type": "text",
1611
+ "notNull": false,
1612
+ "autoincrement": false,
1613
+ "default": null,
1614
+ "generated": null,
1615
+ "entityType": "columns"
1616
+ },
1617
+ {
1618
+ "table": "sessions",
1619
+ "name": "pr",
1620
+ "type": "text",
1621
+ "notNull": false,
1622
+ "autoincrement": false,
1623
+ "default": null,
1624
+ "generated": null,
1625
+ "entityType": "columns"
1626
+ },
1627
+ {
1628
+ "table": "sessions",
1629
+ "name": "resume_token",
1630
+ "type": "text",
1631
+ "notNull": false,
1632
+ "autoincrement": false,
1633
+ "default": null,
1634
+ "generated": null,
1635
+ "entityType": "columns"
1636
+ },
1637
+ {
1638
+ "table": "sessions",
1639
+ "name": "runner_id",
1640
+ "type": "text",
1641
+ "notNull": false,
1642
+ "autoincrement": false,
1643
+ "default": null,
1644
+ "generated": null,
1645
+ "entityType": "columns"
1646
+ },
1647
+ {
1648
+ "table": "sessions",
1649
+ "name": "automation_run_id",
1650
+ "type": "text",
1651
+ "notNull": false,
1652
+ "autoincrement": false,
1653
+ "default": null,
1654
+ "generated": null,
1655
+ "entityType": "columns"
1656
+ },
1657
+ {
1658
+ "table": "sessions",
1659
+ "name": "root_thread_id",
1660
+ "type": "text",
1661
+ "notNull": false,
1662
+ "autoincrement": false,
1663
+ "default": null,
1664
+ "generated": null,
1665
+ "entityType": "columns"
1666
+ },
1667
+ {
1668
+ "table": "sessions",
1669
+ "name": "created_at",
1670
+ "type": "text",
1671
+ "notNull": true,
1672
+ "autoincrement": false,
1673
+ "default": null,
1674
+ "generated": null,
1675
+ "entityType": "columns"
1676
+ },
1677
+ {
1678
+ "table": "sessions",
1679
+ "name": "updated_at",
1680
+ "type": "text",
1681
+ "notNull": true,
1682
+ "autoincrement": false,
1683
+ "default": null,
1684
+ "generated": null,
1685
+ "entityType": "columns"
1686
+ },
1687
+ {
1688
+ "table": "sessions",
1689
+ "name": "ended_at",
1690
+ "type": "text",
1691
+ "notNull": false,
1692
+ "autoincrement": false,
1693
+ "default": null,
1694
+ "generated": null,
1695
+ "entityType": "columns"
1696
+ },
1697
+ {
1698
+ "table": "sessions",
1699
+ "name": "archived_at",
1700
+ "type": "text",
1701
+ "notNull": false,
1702
+ "autoincrement": false,
1703
+ "default": null,
1704
+ "generated": null,
1705
+ "entityType": "columns"
1706
+ },
1707
+ {
1708
+ "table": "sessions",
1709
+ "name": "worktree_removed_at",
1710
+ "type": "text",
1711
+ "notNull": false,
1712
+ "autoincrement": false,
1713
+ "default": null,
1714
+ "generated": null,
1715
+ "entityType": "columns"
1716
+ },
1717
+ {
1718
+ "table": "sessions",
1719
+ "name": "forked_from",
1720
+ "type": "text",
1721
+ "notNull": false,
1722
+ "autoincrement": false,
1723
+ "default": null,
1724
+ "generated": null,
1725
+ "entityType": "columns"
1726
+ },
1727
+ {
1728
+ "table": "sessions",
1729
+ "name": "usage",
1730
+ "type": "text",
1731
+ "notNull": false,
1732
+ "autoincrement": false,
1733
+ "default": null,
1734
+ "generated": null,
1735
+ "entityType": "columns"
1736
+ },
1737
+ {
1738
+ "table": "sessions",
1739
+ "name": "start_meta",
1740
+ "type": "text",
1741
+ "notNull": false,
1742
+ "autoincrement": false,
1743
+ "default": null,
1744
+ "generated": null,
1745
+ "entityType": "columns"
1746
+ },
1747
+ {
1748
+ "table": "sessions",
1749
+ "name": "result",
1750
+ "type": "text",
1751
+ "notNull": false,
1752
+ "autoincrement": false,
1753
+ "default": null,
1754
+ "generated": null,
1755
+ "entityType": "columns"
1756
+ },
1757
+ {
1758
+ "table": "threads",
1759
+ "name": "session_id",
1760
+ "type": "text",
1761
+ "notNull": true,
1762
+ "autoincrement": false,
1763
+ "default": null,
1764
+ "generated": null,
1765
+ "entityType": "columns"
1766
+ },
1767
+ {
1768
+ "table": "threads",
1769
+ "name": "id",
1770
+ "type": "text",
1771
+ "notNull": true,
1772
+ "autoincrement": false,
1773
+ "default": null,
1774
+ "generated": null,
1775
+ "entityType": "columns"
1776
+ },
1777
+ {
1778
+ "table": "threads",
1779
+ "name": "parent_thread_id",
1780
+ "type": "text",
1781
+ "notNull": false,
1782
+ "autoincrement": false,
1783
+ "default": null,
1784
+ "generated": null,
1785
+ "entityType": "columns"
1786
+ },
1787
+ {
1788
+ "table": "threads",
1789
+ "name": "parent_item_id",
1790
+ "type": "text",
1791
+ "notNull": false,
1792
+ "autoincrement": false,
1793
+ "default": null,
1794
+ "generated": null,
1795
+ "entityType": "columns"
1796
+ },
1797
+ {
1798
+ "table": "threads",
1799
+ "name": "title",
1800
+ "type": "text",
1801
+ "notNull": false,
1802
+ "autoincrement": false,
1803
+ "default": null,
1804
+ "generated": null,
1805
+ "entityType": "columns"
1806
+ },
1807
+ {
1808
+ "table": "threads",
1809
+ "name": "agent_type",
1810
+ "type": "text",
1811
+ "notNull": false,
1812
+ "autoincrement": false,
1813
+ "default": null,
1814
+ "generated": null,
1815
+ "entityType": "columns"
1816
+ },
1817
+ {
1818
+ "table": "threads",
1819
+ "name": "created_at",
1820
+ "type": "text",
1821
+ "notNull": true,
1822
+ "autoincrement": false,
1823
+ "default": null,
1824
+ "generated": null,
1825
+ "entityType": "columns"
1826
+ },
1827
+ {
1828
+ "table": "turns",
1829
+ "name": "session_id",
1830
+ "type": "text",
1831
+ "notNull": true,
1832
+ "autoincrement": false,
1833
+ "default": null,
1834
+ "generated": null,
1835
+ "entityType": "columns"
1836
+ },
1837
+ {
1838
+ "table": "turns",
1839
+ "name": "id",
1840
+ "type": "text",
1841
+ "notNull": true,
1842
+ "autoincrement": false,
1843
+ "default": null,
1844
+ "generated": null,
1845
+ "entityType": "columns"
1846
+ },
1847
+ {
1848
+ "table": "turns",
1849
+ "name": "thread_id",
1850
+ "type": "text",
1851
+ "notNull": true,
1852
+ "autoincrement": false,
1853
+ "default": null,
1854
+ "generated": null,
1855
+ "entityType": "columns"
1856
+ },
1857
+ {
1858
+ "table": "turns",
1859
+ "name": "status",
1860
+ "type": "text",
1861
+ "notNull": true,
1862
+ "autoincrement": false,
1863
+ "default": null,
1864
+ "generated": null,
1865
+ "entityType": "columns"
1866
+ },
1867
+ {
1868
+ "table": "turns",
1869
+ "name": "started_at",
1870
+ "type": "text",
1871
+ "notNull": true,
1872
+ "autoincrement": false,
1873
+ "default": null,
1874
+ "generated": null,
1875
+ "entityType": "columns"
1876
+ },
1877
+ {
1878
+ "table": "turns",
1879
+ "name": "completed_at",
1880
+ "type": "text",
1881
+ "notNull": false,
1882
+ "autoincrement": false,
1883
+ "default": null,
1884
+ "generated": null,
1885
+ "entityType": "columns"
1886
+ },
1887
+ {
1888
+ "table": "turns",
1889
+ "name": "error",
1890
+ "type": "text",
1891
+ "notNull": false,
1892
+ "autoincrement": false,
1893
+ "default": null,
1894
+ "generated": null,
1895
+ "entityType": "columns"
1896
+ },
1897
+ {
1898
+ "table": "turns",
1899
+ "name": "usage",
1900
+ "type": "text",
1901
+ "notNull": false,
1902
+ "autoincrement": false,
1903
+ "default": null,
1904
+ "generated": null,
1905
+ "entityType": "columns"
1906
+ },
1907
+ {
1908
+ "table": "turns",
1909
+ "name": "fork_point",
1910
+ "type": "text",
1911
+ "notNull": false,
1912
+ "autoincrement": false,
1913
+ "default": null,
1914
+ "generated": null,
1915
+ "entityType": "columns"
1916
+ },
1917
+ {
1918
+ "table": "factory_digests",
1919
+ "name": "id",
1920
+ "type": "text",
1921
+ "notNull": false,
1922
+ "autoincrement": false,
1923
+ "default": null,
1924
+ "generated": null,
1925
+ "entityType": "columns"
1926
+ },
1927
+ {
1928
+ "table": "factory_digests",
1929
+ "name": "project_id",
1930
+ "type": "text",
1931
+ "notNull": true,
1932
+ "autoincrement": false,
1933
+ "default": null,
1934
+ "generated": null,
1935
+ "entityType": "columns"
1936
+ },
1937
+ {
1938
+ "table": "factory_digests",
1939
+ "name": "day",
1940
+ "type": "text",
1941
+ "notNull": true,
1942
+ "autoincrement": false,
1943
+ "default": null,
1944
+ "generated": null,
1945
+ "entityType": "columns"
1946
+ },
1947
+ {
1948
+ "table": "factory_digests",
1949
+ "name": "digest",
1950
+ "type": "text",
1951
+ "notNull": true,
1952
+ "autoincrement": false,
1953
+ "default": null,
1954
+ "generated": null,
1955
+ "entityType": "columns"
1956
+ },
1957
+ {
1958
+ "table": "factory_digests",
1959
+ "name": "created_at",
1960
+ "type": "text",
1961
+ "notNull": true,
1962
+ "autoincrement": false,
1963
+ "default": null,
1964
+ "generated": null,
1965
+ "entityType": "columns"
1966
+ },
1967
+ {
1968
+ "table": "factory_items",
1969
+ "name": "id",
1970
+ "type": "text",
1971
+ "notNull": false,
1972
+ "autoincrement": false,
1973
+ "default": null,
1974
+ "generated": null,
1975
+ "entityType": "columns"
1976
+ },
1977
+ {
1978
+ "table": "factory_items",
1979
+ "name": "project_id",
1980
+ "type": "text",
1981
+ "notNull": true,
1982
+ "autoincrement": false,
1983
+ "default": null,
1984
+ "generated": null,
1985
+ "entityType": "columns"
1986
+ },
1987
+ {
1988
+ "table": "factory_items",
1989
+ "name": "stage",
1990
+ "type": "text",
1991
+ "notNull": true,
1992
+ "autoincrement": false,
1993
+ "default": null,
1994
+ "generated": null,
1995
+ "entityType": "columns"
1996
+ },
1997
+ {
1998
+ "table": "factory_items",
1999
+ "name": "work_key",
2000
+ "type": "text",
2001
+ "notNull": true,
2002
+ "autoincrement": false,
2003
+ "default": null,
2004
+ "generated": null,
2005
+ "entityType": "columns"
2006
+ },
2007
+ {
2008
+ "table": "factory_items",
2009
+ "name": "item",
2010
+ "type": "text",
2011
+ "notNull": true,
2012
+ "autoincrement": false,
2013
+ "default": null,
2014
+ "generated": null,
2015
+ "entityType": "columns"
2016
+ },
2017
+ {
2018
+ "table": "factory_items",
2019
+ "name": "created_at",
2020
+ "type": "text",
2021
+ "notNull": true,
2022
+ "autoincrement": false,
2023
+ "default": null,
2024
+ "generated": null,
2025
+ "entityType": "columns"
2026
+ },
2027
+ {
2028
+ "table": "factory_items",
2029
+ "name": "updated_at",
2030
+ "type": "text",
2031
+ "notNull": true,
2032
+ "autoincrement": false,
2033
+ "default": null,
2034
+ "generated": null,
2035
+ "entityType": "columns"
2036
+ },
2037
+ {
2038
+ "table": "factory_loops",
2039
+ "name": "project_id",
2040
+ "type": "text",
2041
+ "notNull": false,
2042
+ "autoincrement": false,
2043
+ "default": null,
2044
+ "generated": null,
2045
+ "entityType": "columns"
2046
+ },
2047
+ {
2048
+ "table": "factory_loops",
2049
+ "name": "state",
2050
+ "type": "text",
2051
+ "notNull": true,
2052
+ "autoincrement": false,
2053
+ "default": null,
2054
+ "generated": null,
2055
+ "entityType": "columns"
2056
+ },
2057
+ {
2058
+ "table": "factory_loops",
2059
+ "name": "loop",
2060
+ "type": "text",
2061
+ "notNull": true,
2062
+ "autoincrement": false,
2063
+ "default": null,
2064
+ "generated": null,
2065
+ "entityType": "columns"
2066
+ },
2067
+ {
2068
+ "table": "factory_loops",
2069
+ "name": "updated_at",
2070
+ "type": "text",
2071
+ "notNull": true,
2072
+ "autoincrement": false,
2073
+ "default": null,
2074
+ "generated": null,
2075
+ "entityType": "columns"
2076
+ },
2077
+ {
2078
+ "table": "github_issues",
2079
+ "name": "project_id",
2080
+ "type": "text",
2081
+ "notNull": true,
2082
+ "autoincrement": false,
2083
+ "default": null,
2084
+ "generated": null,
2085
+ "entityType": "columns"
2086
+ },
2087
+ {
2088
+ "table": "github_issues",
2089
+ "name": "number",
2090
+ "type": "integer",
2091
+ "notNull": true,
2092
+ "autoincrement": false,
2093
+ "default": null,
2094
+ "generated": null,
2095
+ "entityType": "columns"
2096
+ },
2097
+ {
2098
+ "table": "github_issues",
2099
+ "name": "title",
2100
+ "type": "text",
2101
+ "notNull": true,
2102
+ "autoincrement": false,
2103
+ "default": null,
2104
+ "generated": null,
2105
+ "entityType": "columns"
2106
+ },
2107
+ {
2108
+ "table": "github_issues",
2109
+ "name": "state",
2110
+ "type": "text",
2111
+ "notNull": true,
2112
+ "autoincrement": false,
2113
+ "default": null,
2114
+ "generated": null,
2115
+ "entityType": "columns"
2116
+ },
2117
+ {
2118
+ "table": "github_issues",
2119
+ "name": "url",
2120
+ "type": "text",
2121
+ "notNull": true,
2122
+ "autoincrement": false,
2123
+ "default": null,
2124
+ "generated": null,
2125
+ "entityType": "columns"
2126
+ },
2127
+ {
2128
+ "table": "github_issues",
2129
+ "name": "labels",
2130
+ "type": "text",
2131
+ "notNull": true,
2132
+ "autoincrement": false,
2133
+ "default": null,
2134
+ "generated": null,
2135
+ "entityType": "columns"
2136
+ },
2137
+ {
2138
+ "table": "github_issues",
2139
+ "name": "author",
2140
+ "type": "text",
2141
+ "notNull": false,
2142
+ "autoincrement": false,
2143
+ "default": null,
2144
+ "generated": null,
2145
+ "entityType": "columns"
2146
+ },
2147
+ {
2148
+ "table": "github_issues",
2149
+ "name": "etag",
2150
+ "type": "text",
2151
+ "notNull": false,
2152
+ "autoincrement": false,
2153
+ "default": null,
2154
+ "generated": null,
2155
+ "entityType": "columns"
2156
+ },
2157
+ {
2158
+ "table": "github_issues",
2159
+ "name": "body",
2160
+ "type": "text",
2161
+ "notNull": false,
2162
+ "autoincrement": false,
2163
+ "default": null,
2164
+ "generated": null,
2165
+ "entityType": "columns"
2166
+ },
2167
+ {
2168
+ "table": "github_issues",
2169
+ "name": "comments",
2170
+ "type": "integer",
2171
+ "notNull": true,
2172
+ "autoincrement": false,
2173
+ "default": "0",
2174
+ "generated": null,
2175
+ "entityType": "columns"
2176
+ },
2177
+ {
2178
+ "table": "github_issues",
2179
+ "name": "created_at",
2180
+ "type": "text",
2181
+ "notNull": false,
2182
+ "autoincrement": false,
2183
+ "default": null,
2184
+ "generated": null,
2185
+ "entityType": "columns"
2186
+ },
2187
+ {
2188
+ "table": "github_issues",
2189
+ "name": "updated_at",
2190
+ "type": "text",
2191
+ "notNull": true,
2192
+ "autoincrement": false,
2193
+ "default": null,
2194
+ "generated": null,
2195
+ "entityType": "columns"
2196
+ },
2197
+ {
2198
+ "table": "github_issues",
2199
+ "name": "closed_at",
2200
+ "type": "text",
2201
+ "notNull": false,
2202
+ "autoincrement": false,
2203
+ "default": null,
2204
+ "generated": null,
2205
+ "entityType": "columns"
2206
+ },
2207
+ {
2208
+ "table": "github_issues",
2209
+ "name": "synced_at",
2210
+ "type": "text",
2211
+ "notNull": true,
2212
+ "autoincrement": false,
2213
+ "default": null,
2214
+ "generated": null,
2215
+ "entityType": "columns"
2216
+ },
2217
+ {
2218
+ "table": "github_prs",
2219
+ "name": "project_id",
2220
+ "type": "text",
2221
+ "notNull": true,
2222
+ "autoincrement": false,
2223
+ "default": null,
2224
+ "generated": null,
2225
+ "entityType": "columns"
2226
+ },
2227
+ {
2228
+ "table": "github_prs",
2229
+ "name": "number",
2230
+ "type": "integer",
2231
+ "notNull": true,
2232
+ "autoincrement": false,
2233
+ "default": null,
2234
+ "generated": null,
2235
+ "entityType": "columns"
2236
+ },
2237
+ {
2238
+ "table": "github_prs",
2239
+ "name": "title",
2240
+ "type": "text",
2241
+ "notNull": true,
2242
+ "autoincrement": false,
2243
+ "default": null,
2244
+ "generated": null,
2245
+ "entityType": "columns"
2246
+ },
2247
+ {
2248
+ "table": "github_prs",
2249
+ "name": "state",
2250
+ "type": "text",
2251
+ "notNull": true,
2252
+ "autoincrement": false,
2253
+ "default": null,
2254
+ "generated": null,
2255
+ "entityType": "columns"
2256
+ },
2257
+ {
2258
+ "table": "github_prs",
2259
+ "name": "url",
2260
+ "type": "text",
2261
+ "notNull": true,
2262
+ "autoincrement": false,
2263
+ "default": null,
2264
+ "generated": null,
2265
+ "entityType": "columns"
2266
+ },
2267
+ {
2268
+ "table": "github_prs",
2269
+ "name": "head_branch",
2270
+ "type": "text",
2271
+ "notNull": true,
2272
+ "autoincrement": false,
2273
+ "default": null,
2274
+ "generated": null,
2275
+ "entityType": "columns"
2276
+ },
2277
+ {
2278
+ "table": "github_prs",
2279
+ "name": "base_branch",
2280
+ "type": "text",
2281
+ "notNull": true,
2282
+ "autoincrement": false,
2283
+ "default": null,
2284
+ "generated": null,
2285
+ "entityType": "columns"
2286
+ },
2287
+ {
2288
+ "table": "github_prs",
2289
+ "name": "checks",
2290
+ "type": "text",
2291
+ "notNull": false,
2292
+ "autoincrement": false,
2293
+ "default": null,
2294
+ "generated": null,
2295
+ "entityType": "columns"
2296
+ },
2297
+ {
2298
+ "table": "github_prs",
2299
+ "name": "session_id",
2300
+ "type": "text",
2301
+ "notNull": false,
2302
+ "autoincrement": false,
2303
+ "default": null,
2304
+ "generated": null,
2305
+ "entityType": "columns"
2306
+ },
2307
+ {
2308
+ "table": "github_prs",
2309
+ "name": "etag",
2310
+ "type": "text",
2311
+ "notNull": false,
2312
+ "autoincrement": false,
2313
+ "default": null,
2314
+ "generated": null,
2315
+ "entityType": "columns"
2316
+ },
2317
+ {
2318
+ "table": "github_prs",
2319
+ "name": "author",
2320
+ "type": "text",
2321
+ "notNull": false,
2322
+ "autoincrement": false,
2323
+ "default": null,
2324
+ "generated": null,
2325
+ "entityType": "columns"
2326
+ },
2327
+ {
2328
+ "table": "github_prs",
2329
+ "name": "head_sha",
2330
+ "type": "text",
2331
+ "notNull": false,
2332
+ "autoincrement": false,
2333
+ "default": null,
2334
+ "generated": null,
2335
+ "entityType": "columns"
2336
+ },
2337
+ {
2338
+ "table": "github_prs",
2339
+ "name": "review_decision",
2340
+ "type": "text",
2341
+ "notNull": true,
2342
+ "autoincrement": false,
2343
+ "default": "'none'",
2344
+ "generated": null,
2345
+ "entityType": "columns"
2346
+ },
2347
+ {
2348
+ "table": "github_prs",
2349
+ "name": "reviews",
2350
+ "type": "text",
2351
+ "notNull": true,
2352
+ "autoincrement": false,
2353
+ "default": "'[]'",
2354
+ "generated": null,
2355
+ "entityType": "columns"
2356
+ },
2357
+ {
2358
+ "table": "github_prs",
2359
+ "name": "mergeable",
2360
+ "type": "text",
2361
+ "notNull": true,
2362
+ "autoincrement": false,
2363
+ "default": "'unknown'",
2364
+ "generated": null,
2365
+ "entityType": "columns"
2366
+ },
2367
+ {
2368
+ "table": "github_prs",
2369
+ "name": "linked_issues",
2370
+ "type": "text",
2371
+ "notNull": true,
2372
+ "autoincrement": false,
2373
+ "default": "'[]'",
2374
+ "generated": null,
2375
+ "entityType": "columns"
2376
+ },
2377
+ {
2378
+ "table": "github_prs",
2379
+ "name": "requested_reviewers",
2380
+ "type": "text",
2381
+ "notNull": false,
2382
+ "autoincrement": false,
2383
+ "default": null,
2384
+ "generated": null,
2385
+ "entityType": "columns"
2386
+ },
2387
+ {
2388
+ "table": "github_prs",
2389
+ "name": "commits",
2390
+ "type": "text",
2391
+ "notNull": true,
2392
+ "autoincrement": false,
2393
+ "default": "'[]'",
2394
+ "generated": null,
2395
+ "entityType": "columns"
2396
+ },
2397
+ {
2398
+ "table": "github_prs",
2399
+ "name": "created_at",
2400
+ "type": "text",
2401
+ "notNull": false,
2402
+ "autoincrement": false,
2403
+ "default": null,
2404
+ "generated": null,
2405
+ "entityType": "columns"
2406
+ },
2407
+ {
2408
+ "table": "github_prs",
2409
+ "name": "updated_at",
2410
+ "type": "text",
2411
+ "notNull": true,
2412
+ "autoincrement": false,
2413
+ "default": null,
2414
+ "generated": null,
2415
+ "entityType": "columns"
2416
+ },
2417
+ {
2418
+ "table": "github_prs",
2419
+ "name": "merged_at",
2420
+ "type": "text",
2421
+ "notNull": false,
2422
+ "autoincrement": false,
2423
+ "default": null,
2424
+ "generated": null,
2425
+ "entityType": "columns"
2426
+ },
2427
+ {
2428
+ "table": "github_prs",
2429
+ "name": "closed_at",
2430
+ "type": "text",
2431
+ "notNull": false,
2432
+ "autoincrement": false,
2433
+ "default": null,
2434
+ "generated": null,
2435
+ "entityType": "columns"
2436
+ },
2437
+ {
2438
+ "table": "github_prs",
2439
+ "name": "synced_at",
2440
+ "type": "text",
2441
+ "notNull": true,
2442
+ "autoincrement": false,
2443
+ "default": null,
2444
+ "generated": null,
2445
+ "entityType": "columns"
2446
+ },
2447
+ {
2448
+ "table": "github_sync_state",
2449
+ "name": "project_id",
2450
+ "type": "text",
2451
+ "notNull": false,
2452
+ "autoincrement": false,
2453
+ "default": null,
2454
+ "generated": null,
2455
+ "entityType": "columns"
2456
+ },
2457
+ {
2458
+ "table": "github_sync_state",
2459
+ "name": "etags",
2460
+ "type": "text",
2461
+ "notNull": true,
2462
+ "autoincrement": false,
2463
+ "default": "'{}'",
2464
+ "generated": null,
2465
+ "entityType": "columns"
2466
+ },
2467
+ {
2468
+ "table": "github_sync_state",
2469
+ "name": "since",
2470
+ "type": "text",
2471
+ "notNull": false,
2472
+ "autoincrement": false,
2473
+ "default": null,
2474
+ "generated": null,
2475
+ "entityType": "columns"
2476
+ },
2477
+ {
2478
+ "table": "github_sync_state",
2479
+ "name": "baseline_at",
2480
+ "type": "text",
2481
+ "notNull": false,
2482
+ "autoincrement": false,
2483
+ "default": null,
2484
+ "generated": null,
2485
+ "entityType": "columns"
2486
+ },
2487
+ {
2488
+ "table": "github_sync_state",
2489
+ "name": "last_sync_at",
2490
+ "type": "text",
2491
+ "notNull": false,
2492
+ "autoincrement": false,
2493
+ "default": null,
2494
+ "generated": null,
2495
+ "entityType": "columns"
2496
+ },
2497
+ {
2498
+ "table": "github_sync_state",
2499
+ "name": "last_error",
2500
+ "type": "text",
2501
+ "notNull": false,
2502
+ "autoincrement": false,
2503
+ "default": null,
2504
+ "generated": null,
2505
+ "entityType": "columns"
2506
+ },
2507
+ {
2508
+ "table": "github_sync_state",
2509
+ "name": "updated_at",
2510
+ "type": "text",
2511
+ "notNull": true,
2512
+ "autoincrement": false,
2513
+ "default": null,
2514
+ "generated": null,
2515
+ "entityType": "columns"
2516
+ },
2517
+ {
2518
+ "table": "conflicts",
2519
+ "name": "id",
2520
+ "type": "text",
2521
+ "notNull": false,
2522
+ "autoincrement": false,
2523
+ "default": null,
2524
+ "generated": null,
2525
+ "entityType": "columns"
2526
+ },
2527
+ {
2528
+ "table": "conflicts",
2529
+ "name": "project_id",
2530
+ "type": "text",
2531
+ "notNull": false,
2532
+ "autoincrement": false,
2533
+ "default": null,
2534
+ "generated": null,
2535
+ "entityType": "columns"
2536
+ },
2537
+ {
2538
+ "table": "conflicts",
2539
+ "name": "record",
2540
+ "type": "text",
2541
+ "notNull": true,
2542
+ "autoincrement": false,
2543
+ "default": null,
2544
+ "generated": null,
2545
+ "entityType": "columns"
2546
+ },
2547
+ {
2548
+ "table": "conflicts",
2549
+ "name": "created_at",
2550
+ "type": "text",
2551
+ "notNull": true,
2552
+ "autoincrement": false,
2553
+ "default": null,
2554
+ "generated": null,
2555
+ "entityType": "columns"
2556
+ },
2557
+ {
2558
+ "table": "notices",
2559
+ "name": "id",
2560
+ "type": "text",
2561
+ "notNull": false,
2562
+ "autoincrement": false,
2563
+ "default": null,
2564
+ "generated": null,
2565
+ "entityType": "columns"
2566
+ },
2567
+ {
2568
+ "table": "notices",
2569
+ "name": "type",
2570
+ "type": "text",
2571
+ "notNull": true,
2572
+ "autoincrement": false,
2573
+ "default": null,
2574
+ "generated": null,
2575
+ "entityType": "columns"
2576
+ },
2577
+ {
2578
+ "table": "notices",
2579
+ "name": "target",
2580
+ "type": "text",
2581
+ "notNull": true,
2582
+ "autoincrement": false,
2583
+ "default": null,
2584
+ "generated": null,
2585
+ "entityType": "columns"
2586
+ },
2587
+ {
2588
+ "table": "notices",
2589
+ "name": "project_id",
2590
+ "type": "text",
2591
+ "notNull": false,
2592
+ "autoincrement": false,
2593
+ "default": null,
2594
+ "generated": null,
2595
+ "entityType": "columns"
2596
+ },
2597
+ {
2598
+ "table": "notices",
2599
+ "name": "session_id",
2600
+ "type": "text",
2601
+ "notNull": false,
2602
+ "autoincrement": false,
2603
+ "default": null,
2604
+ "generated": null,
2605
+ "entityType": "columns"
2606
+ },
2607
+ {
2608
+ "table": "notices",
2609
+ "name": "notice",
2610
+ "type": "text",
2611
+ "notNull": true,
2612
+ "autoincrement": false,
2613
+ "default": null,
2614
+ "generated": null,
2615
+ "entityType": "columns"
2616
+ },
2617
+ {
2618
+ "table": "notices",
2619
+ "name": "created_at",
2620
+ "type": "text",
2621
+ "notNull": true,
2622
+ "autoincrement": false,
2623
+ "default": null,
2624
+ "generated": null,
2625
+ "entityType": "columns"
2626
+ },
2627
+ {
2628
+ "table": "notices",
2629
+ "name": "delivered_at",
2630
+ "type": "text",
2631
+ "notNull": false,
2632
+ "autoincrement": false,
2633
+ "default": null,
2634
+ "generated": null,
2635
+ "entityType": "columns"
2636
+ },
2637
+ {
2638
+ "table": "notices",
2639
+ "name": "not_before",
2640
+ "type": "text",
2641
+ "notNull": false,
2642
+ "autoincrement": false,
2643
+ "default": null,
2644
+ "generated": null,
2645
+ "entityType": "columns"
2646
+ },
2647
+ {
2648
+ "table": "item_search",
2649
+ "name": "id",
2650
+ "type": "integer",
2651
+ "notNull": false,
2652
+ "autoincrement": true,
2653
+ "default": null,
2654
+ "generated": null,
2655
+ "entityType": "columns"
2656
+ },
2657
+ {
2658
+ "table": "item_search",
2659
+ "name": "session_id",
2660
+ "type": "text",
2661
+ "notNull": true,
2662
+ "autoincrement": false,
2663
+ "default": null,
2664
+ "generated": null,
2665
+ "entityType": "columns"
2666
+ },
2667
+ {
2668
+ "table": "item_search",
2669
+ "name": "item_id",
2670
+ "type": "text",
2671
+ "notNull": true,
2672
+ "autoincrement": false,
2673
+ "default": null,
2674
+ "generated": null,
2675
+ "entityType": "columns"
2676
+ },
2677
+ {
2678
+ "table": "item_search",
2679
+ "name": "thread_id",
2680
+ "type": "text",
2681
+ "notNull": true,
2682
+ "autoincrement": false,
2683
+ "default": null,
2684
+ "generated": null,
2685
+ "entityType": "columns"
2686
+ },
2687
+ {
2688
+ "table": "item_search",
2689
+ "name": "kind",
2690
+ "type": "text",
2691
+ "notNull": true,
2692
+ "autoincrement": false,
2693
+ "default": null,
2694
+ "generated": null,
2695
+ "entityType": "columns"
2696
+ },
2697
+ {
2698
+ "table": "item_search",
2699
+ "name": "tool_kind",
2700
+ "type": "text",
2701
+ "notNull": false,
2702
+ "autoincrement": false,
2703
+ "default": null,
2704
+ "generated": null,
2705
+ "entityType": "columns"
2706
+ },
2707
+ {
2708
+ "table": "item_search",
2709
+ "name": "text",
2710
+ "type": "text",
2711
+ "notNull": true,
2712
+ "autoincrement": false,
2713
+ "default": null,
2714
+ "generated": null,
2715
+ "entityType": "columns"
2716
+ },
2717
+ {
2718
+ "table": "item_search",
2719
+ "name": "created_at",
2720
+ "type": "text",
2721
+ "notNull": true,
2722
+ "autoincrement": false,
2723
+ "default": null,
2724
+ "generated": null,
2725
+ "entityType": "columns"
2726
+ },
2727
+ {
2728
+ "table": "rate_limit_windows",
2729
+ "name": "provider",
2730
+ "type": "text",
2731
+ "notNull": true,
2732
+ "autoincrement": false,
2733
+ "default": null,
2734
+ "generated": null,
2735
+ "entityType": "columns"
2736
+ },
2737
+ {
2738
+ "table": "rate_limit_windows",
2739
+ "name": "window_id",
2740
+ "type": "text",
2741
+ "notNull": true,
2742
+ "autoincrement": false,
2743
+ "default": null,
2744
+ "generated": null,
2745
+ "entityType": "columns"
2746
+ },
2747
+ {
2748
+ "table": "rate_limit_windows",
2749
+ "name": "status",
2750
+ "type": "text",
2751
+ "notNull": true,
2752
+ "autoincrement": false,
2753
+ "default": null,
2754
+ "generated": null,
2755
+ "entityType": "columns"
2756
+ },
2757
+ {
2758
+ "table": "rate_limit_windows",
2759
+ "name": "used_percent",
2760
+ "type": "real",
2761
+ "notNull": false,
2762
+ "autoincrement": false,
2763
+ "default": null,
2764
+ "generated": null,
2765
+ "entityType": "columns"
2766
+ },
2767
+ {
2768
+ "table": "rate_limit_windows",
2769
+ "name": "resets_at",
2770
+ "type": "text",
2771
+ "notNull": false,
2772
+ "autoincrement": false,
2773
+ "default": null,
2774
+ "generated": null,
2775
+ "entityType": "columns"
2776
+ },
2777
+ {
2778
+ "table": "rate_limit_windows",
2779
+ "name": "observed_at",
2780
+ "type": "text",
2781
+ "notNull": true,
2782
+ "autoincrement": false,
2783
+ "default": null,
2784
+ "generated": null,
2785
+ "entityType": "columns"
2786
+ },
2787
+ {
2788
+ "table": "rate_limit_windows",
2789
+ "name": "session_id",
2790
+ "type": "text",
2791
+ "notNull": false,
2792
+ "autoincrement": false,
2793
+ "default": null,
2794
+ "generated": null,
2795
+ "entityType": "columns"
2796
+ },
2797
+ {
2798
+ "table": "usage_ledger",
2799
+ "name": "session_id",
2800
+ "type": "text",
2801
+ "notNull": true,
2802
+ "autoincrement": false,
2803
+ "default": null,
2804
+ "generated": null,
2805
+ "entityType": "columns"
2806
+ },
2807
+ {
2808
+ "table": "usage_ledger",
2809
+ "name": "turn_id",
2810
+ "type": "text",
2811
+ "notNull": true,
2812
+ "autoincrement": false,
2813
+ "default": null,
2814
+ "generated": null,
2815
+ "entityType": "columns"
2816
+ },
2817
+ {
2818
+ "table": "usage_ledger",
2819
+ "name": "thread_id",
2820
+ "type": "text",
2821
+ "notNull": true,
2822
+ "autoincrement": false,
2823
+ "default": null,
2824
+ "generated": null,
2825
+ "entityType": "columns"
2826
+ },
2827
+ {
2828
+ "table": "usage_ledger",
2829
+ "name": "project_id",
2830
+ "type": "text",
2831
+ "notNull": false,
2832
+ "autoincrement": false,
2833
+ "default": null,
2834
+ "generated": null,
2835
+ "entityType": "columns"
2836
+ },
2837
+ {
2838
+ "table": "usage_ledger",
2839
+ "name": "provider",
2840
+ "type": "text",
2841
+ "notNull": true,
2842
+ "autoincrement": false,
2843
+ "default": null,
2844
+ "generated": null,
2845
+ "entityType": "columns"
2846
+ },
2847
+ {
2848
+ "table": "usage_ledger",
2849
+ "name": "model",
2850
+ "type": "text",
2851
+ "notNull": true,
2852
+ "autoincrement": false,
2853
+ "default": null,
2854
+ "generated": null,
2855
+ "entityType": "columns"
2856
+ },
2857
+ {
2858
+ "table": "usage_ledger",
2859
+ "name": "role",
2860
+ "type": "text",
2861
+ "notNull": true,
2862
+ "autoincrement": false,
2863
+ "default": null,
2864
+ "generated": null,
2865
+ "entityType": "columns"
2866
+ },
2867
+ {
2868
+ "table": "usage_ledger",
2869
+ "name": "source",
2870
+ "type": "text",
2871
+ "notNull": true,
2872
+ "autoincrement": false,
2873
+ "default": null,
2874
+ "generated": null,
2875
+ "entityType": "columns"
2876
+ },
2877
+ {
2878
+ "table": "usage_ledger",
2879
+ "name": "automation_id",
2880
+ "type": "text",
2881
+ "notNull": false,
2882
+ "autoincrement": false,
2883
+ "default": null,
2884
+ "generated": null,
2885
+ "entityType": "columns"
2886
+ },
2887
+ {
2888
+ "table": "usage_ledger",
2889
+ "name": "input_tokens",
2890
+ "type": "integer",
2891
+ "notNull": true,
2892
+ "autoincrement": false,
2893
+ "default": "0",
2894
+ "generated": null,
2895
+ "entityType": "columns"
2896
+ },
2897
+ {
2898
+ "table": "usage_ledger",
2899
+ "name": "output_tokens",
2900
+ "type": "integer",
2901
+ "notNull": true,
2902
+ "autoincrement": false,
2903
+ "default": "0",
2904
+ "generated": null,
2905
+ "entityType": "columns"
2906
+ },
2907
+ {
2908
+ "table": "usage_ledger",
2909
+ "name": "cache_read_tokens",
2910
+ "type": "integer",
2911
+ "notNull": true,
2912
+ "autoincrement": false,
2913
+ "default": "0",
2914
+ "generated": null,
2915
+ "entityType": "columns"
2916
+ },
2917
+ {
2918
+ "table": "usage_ledger",
2919
+ "name": "cache_write_tokens",
2920
+ "type": "integer",
2921
+ "notNull": true,
2922
+ "autoincrement": false,
2923
+ "default": "0",
2924
+ "generated": null,
2925
+ "entityType": "columns"
2926
+ },
2927
+ {
2928
+ "table": "usage_ledger",
2929
+ "name": "reasoning_tokens",
2930
+ "type": "integer",
2931
+ "notNull": true,
2932
+ "autoincrement": false,
2933
+ "default": "0",
2934
+ "generated": null,
2935
+ "entityType": "columns"
2936
+ },
2937
+ {
2938
+ "table": "usage_ledger",
2939
+ "name": "reported_cost_usd",
2940
+ "type": "real",
2941
+ "notNull": false,
2942
+ "autoincrement": false,
2943
+ "default": null,
2944
+ "generated": null,
2945
+ "entityType": "columns"
2946
+ },
2947
+ {
2948
+ "table": "usage_ledger",
2949
+ "name": "ts",
2950
+ "type": "text",
2951
+ "notNull": true,
2952
+ "autoincrement": false,
2953
+ "default": null,
2954
+ "generated": null,
2955
+ "entityType": "columns"
2956
+ },
2957
+ {
2958
+ "table": "usage_ledger",
2959
+ "name": "updated_at",
2960
+ "type": "text",
2961
+ "notNull": true,
2962
+ "autoincrement": false,
2963
+ "default": null,
2964
+ "generated": null,
2965
+ "entityType": "columns"
2966
+ },
2967
+ {
2968
+ "table": "automation_runs",
2969
+ "name": "automation_runs_automation",
2970
+ "columns": [
2971
+ {
2972
+ "value": "automation_id",
2973
+ "isExpression": false
2974
+ },
2975
+ {
2976
+ "value": "started_at",
2977
+ "isExpression": false
2978
+ }
2979
+ ],
2980
+ "isUnique": false,
2981
+ "where": null,
2982
+ "origin": "manual",
2983
+ "entityType": "indexes"
2984
+ },
2985
+ {
2986
+ "table": "automation_runs",
2987
+ "name": "automation_runs_work_key",
2988
+ "columns": [
2989
+ {
2990
+ "value": "project_id",
2991
+ "isExpression": false
2992
+ },
2993
+ {
2994
+ "value": "work_key",
2995
+ "isExpression": false
2996
+ }
2997
+ ],
2998
+ "isUnique": false,
2999
+ "where": null,
3000
+ "origin": "manual",
3001
+ "entityType": "indexes"
3002
+ },
3003
+ {
3004
+ "table": "checkpoints",
3005
+ "name": "checkpoints_turn",
3006
+ "columns": [
3007
+ {
3008
+ "value": "session_id",
3009
+ "isExpression": false
3010
+ },
3011
+ {
3012
+ "value": "turn_id",
3013
+ "isExpression": false
3014
+ }
3015
+ ],
3016
+ "isUnique": false,
3017
+ "where": null,
3018
+ "origin": "manual",
3019
+ "entityType": "indexes"
3020
+ },
3021
+ {
3022
+ "table": "events",
3023
+ "name": "events_session_seq",
3024
+ "columns": [
3025
+ {
3026
+ "value": "session_id",
3027
+ "isExpression": false
3028
+ },
3029
+ {
3030
+ "value": "seq",
3031
+ "isExpression": false
3032
+ }
3033
+ ],
3034
+ "isUnique": false,
3035
+ "where": null,
3036
+ "origin": "manual",
3037
+ "entityType": "indexes"
3038
+ },
3039
+ {
3040
+ "table": "events",
3041
+ "name": "events_type",
3042
+ "columns": [
3043
+ {
3044
+ "value": "type",
3045
+ "isExpression": false
3046
+ }
3047
+ ],
3048
+ "isUnique": false,
3049
+ "where": null,
3050
+ "origin": "manual",
3051
+ "entityType": "indexes"
3052
+ },
3053
+ {
3054
+ "table": "inbox_items",
3055
+ "name": "inbox_status",
3056
+ "columns": [
3057
+ {
3058
+ "value": "status",
3059
+ "isExpression": false
3060
+ }
3061
+ ],
3062
+ "isUnique": false,
3063
+ "where": null,
3064
+ "origin": "manual",
3065
+ "entityType": "indexes"
3066
+ },
3067
+ {
3068
+ "table": "items",
3069
+ "name": "items_thread",
3070
+ "columns": [
3071
+ {
3072
+ "value": "session_id",
3073
+ "isExpression": false
3074
+ },
3075
+ {
3076
+ "value": "thread_id",
3077
+ "isExpression": false
3078
+ },
3079
+ {
3080
+ "value": "position",
3081
+ "isExpression": false
3082
+ }
3083
+ ],
3084
+ "isUnique": false,
3085
+ "where": null,
3086
+ "origin": "manual",
3087
+ "entityType": "indexes"
3088
+ },
3089
+ {
3090
+ "table": "mcp_tokens",
3091
+ "name": "mcp_tokens_hash",
3092
+ "columns": [
3093
+ {
3094
+ "value": "token_hash",
3095
+ "isExpression": false
3096
+ }
3097
+ ],
3098
+ "isUnique": true,
3099
+ "where": null,
3100
+ "origin": "manual",
3101
+ "entityType": "indexes"
3102
+ },
3103
+ {
3104
+ "table": "mcp_tokens",
3105
+ "name": "mcp_tokens_session",
3106
+ "columns": [
3107
+ {
3108
+ "value": "session_id",
3109
+ "isExpression": false
3110
+ }
3111
+ ],
3112
+ "isUnique": false,
3113
+ "where": null,
3114
+ "origin": "manual",
3115
+ "entityType": "indexes"
3116
+ },
3117
+ {
3118
+ "table": "projects",
3119
+ "name": "projects_slug",
3120
+ "columns": [
3121
+ {
3122
+ "value": "slug",
3123
+ "isExpression": false
3124
+ }
3125
+ ],
3126
+ "isUnique": true,
3127
+ "where": null,
3128
+ "origin": "manual",
3129
+ "entityType": "indexes"
3130
+ },
3131
+ {
3132
+ "table": "queued_messages",
3133
+ "name": "queued_messages_session",
3134
+ "columns": [
3135
+ {
3136
+ "value": "session_id",
3137
+ "isExpression": false
3138
+ },
3139
+ {
3140
+ "value": "created_at",
3141
+ "isExpression": false
3142
+ }
3143
+ ],
3144
+ "isUnique": false,
3145
+ "where": null,
3146
+ "origin": "manual",
3147
+ "entityType": "indexes"
3148
+ },
3149
+ {
3150
+ "table": "sessions",
3151
+ "name": "sessions_project",
3152
+ "columns": [
3153
+ {
3154
+ "value": "project_id",
3155
+ "isExpression": false
3156
+ }
3157
+ ],
3158
+ "isUnique": false,
3159
+ "where": null,
3160
+ "origin": "manual",
3161
+ "entityType": "indexes"
3162
+ },
3163
+ {
3164
+ "table": "sessions",
3165
+ "name": "sessions_status",
3166
+ "columns": [
3167
+ {
3168
+ "value": "status",
3169
+ "isExpression": false
3170
+ }
3171
+ ],
3172
+ "isUnique": false,
3173
+ "where": null,
3174
+ "origin": "manual",
3175
+ "entityType": "indexes"
3176
+ },
3177
+ {
3178
+ "table": "sessions",
3179
+ "name": "sessions_work_key",
3180
+ "columns": [
3181
+ {
3182
+ "value": "project_id",
3183
+ "isExpression": false
3184
+ },
3185
+ {
3186
+ "value": "work_key",
3187
+ "isExpression": false
3188
+ }
3189
+ ],
3190
+ "isUnique": false,
3191
+ "where": null,
3192
+ "origin": "manual",
3193
+ "entityType": "indexes"
3194
+ },
3195
+ {
3196
+ "table": "factory_digests",
3197
+ "name": "factory_digests_project",
3198
+ "columns": [
3199
+ {
3200
+ "value": "project_id",
3201
+ "isExpression": false
3202
+ },
3203
+ {
3204
+ "value": "created_at",
3205
+ "isExpression": false
3206
+ }
3207
+ ],
3208
+ "isUnique": false,
3209
+ "where": null,
3210
+ "origin": "manual",
3211
+ "entityType": "indexes"
3212
+ },
3213
+ {
3214
+ "table": "factory_items",
3215
+ "name": "factory_items_project_stage",
3216
+ "columns": [
3217
+ {
3218
+ "value": "project_id",
3219
+ "isExpression": false
3220
+ },
3221
+ {
3222
+ "value": "stage",
3223
+ "isExpression": false
3224
+ }
3225
+ ],
3226
+ "isUnique": false,
3227
+ "where": null,
3228
+ "origin": "manual",
3229
+ "entityType": "indexes"
3230
+ },
3231
+ {
3232
+ "table": "factory_items",
3233
+ "name": "factory_items_updated",
3234
+ "columns": [
3235
+ {
3236
+ "value": "project_id",
3237
+ "isExpression": false
3238
+ },
3239
+ {
3240
+ "value": "updated_at",
3241
+ "isExpression": false
3242
+ }
3243
+ ],
3244
+ "isUnique": false,
3245
+ "where": null,
3246
+ "origin": "manual",
3247
+ "entityType": "indexes"
3248
+ },
3249
+ {
3250
+ "table": "github_prs",
3251
+ "name": "github_prs_session",
3252
+ "columns": [
3253
+ {
3254
+ "value": "session_id",
3255
+ "isExpression": false
3256
+ }
3257
+ ],
3258
+ "isUnique": false,
3259
+ "where": null,
3260
+ "origin": "manual",
3261
+ "entityType": "indexes"
3262
+ },
3263
+ {
3264
+ "table": "github_prs",
3265
+ "name": "github_prs_head",
3266
+ "columns": [
3267
+ {
3268
+ "value": "project_id",
3269
+ "isExpression": false
3270
+ },
3271
+ {
3272
+ "value": "head_branch",
3273
+ "isExpression": false
3274
+ }
3275
+ ],
3276
+ "isUnique": false,
3277
+ "where": null,
3278
+ "origin": "manual",
3279
+ "entityType": "indexes"
3280
+ },
3281
+ {
3282
+ "table": "conflicts",
3283
+ "name": "conflicts_project",
3284
+ "columns": [
3285
+ {
3286
+ "value": "project_id",
3287
+ "isExpression": false
3288
+ }
3289
+ ],
3290
+ "isUnique": false,
3291
+ "where": null,
3292
+ "origin": "manual",
3293
+ "entityType": "indexes"
3294
+ },
3295
+ {
3296
+ "table": "notices",
3297
+ "name": "notices_target",
3298
+ "columns": [
3299
+ {
3300
+ "value": "target",
3301
+ "isExpression": false
3302
+ },
3303
+ {
3304
+ "value": "project_id",
3305
+ "isExpression": false
3306
+ },
3307
+ {
3308
+ "value": "delivered_at",
3309
+ "isExpression": false
3310
+ }
3311
+ ],
3312
+ "isUnique": false,
3313
+ "where": null,
3314
+ "origin": "manual",
3315
+ "entityType": "indexes"
3316
+ },
3317
+ {
3318
+ "table": "notices",
3319
+ "name": "notices_created",
3320
+ "columns": [
3321
+ {
3322
+ "value": "created_at",
3323
+ "isExpression": false
3324
+ }
3325
+ ],
3326
+ "isUnique": false,
3327
+ "where": null,
3328
+ "origin": "manual",
3329
+ "entityType": "indexes"
3330
+ },
3331
+ {
3332
+ "table": "item_search",
3333
+ "name": "item_search_item",
3334
+ "columns": [
3335
+ {
3336
+ "value": "session_id",
3337
+ "isExpression": false
3338
+ },
3339
+ {
3340
+ "value": "item_id",
3341
+ "isExpression": false
3342
+ }
3343
+ ],
3344
+ "isUnique": true,
3345
+ "where": null,
3346
+ "origin": "manual",
3347
+ "entityType": "indexes"
3348
+ },
3349
+ {
3350
+ "table": "usage_ledger",
3351
+ "name": "usage_ledger_ts",
3352
+ "columns": [
3353
+ {
3354
+ "value": "ts",
3355
+ "isExpression": false
3356
+ }
3357
+ ],
3358
+ "isUnique": false,
3359
+ "where": null,
3360
+ "origin": "manual",
3361
+ "entityType": "indexes"
3362
+ },
3363
+ {
3364
+ "table": "usage_ledger",
3365
+ "name": "usage_ledger_project_ts",
3366
+ "columns": [
3367
+ {
3368
+ "value": "project_id",
3369
+ "isExpression": false
3370
+ },
3371
+ {
3372
+ "value": "ts",
3373
+ "isExpression": false
3374
+ }
3375
+ ],
3376
+ "isUnique": false,
3377
+ "where": null,
3378
+ "origin": "manual",
3379
+ "entityType": "indexes"
3380
+ },
3381
+ {
3382
+ "table": "automation_schedules",
3383
+ "name": "automation_schedules_pk",
3384
+ "columns": [
3385
+ "automation_id",
3386
+ "project_id"
3387
+ ],
3388
+ "nameExplicit": false,
3389
+ "entityType": "pks"
3390
+ },
3391
+ {
3392
+ "table": "checkpoints",
3393
+ "name": "checkpoints_pk",
3394
+ "columns": [
3395
+ "session_id",
3396
+ "idx"
3397
+ ],
3398
+ "nameExplicit": false,
3399
+ "entityType": "pks"
3400
+ },
3401
+ {
3402
+ "table": "items",
3403
+ "name": "items_pk",
3404
+ "columns": [
3405
+ "session_id",
3406
+ "id"
3407
+ ],
3408
+ "nameExplicit": false,
3409
+ "entityType": "pks"
3410
+ },
3411
+ {
3412
+ "table": "threads",
3413
+ "name": "threads_pk",
3414
+ "columns": [
3415
+ "session_id",
3416
+ "id"
3417
+ ],
3418
+ "nameExplicit": false,
3419
+ "entityType": "pks"
3420
+ },
3421
+ {
3422
+ "table": "turns",
3423
+ "name": "turns_pk",
3424
+ "columns": [
3425
+ "session_id",
3426
+ "id"
3427
+ ],
3428
+ "nameExplicit": false,
3429
+ "entityType": "pks"
3430
+ },
3431
+ {
3432
+ "table": "github_issues",
3433
+ "name": "github_issues_pk",
3434
+ "columns": [
3435
+ "project_id",
3436
+ "number"
3437
+ ],
3438
+ "nameExplicit": false,
3439
+ "entityType": "pks"
3440
+ },
3441
+ {
3442
+ "table": "github_prs",
3443
+ "name": "github_prs_pk",
3444
+ "columns": [
3445
+ "project_id",
3446
+ "number"
3447
+ ],
3448
+ "nameExplicit": false,
3449
+ "entityType": "pks"
3450
+ },
3451
+ {
3452
+ "table": "rate_limit_windows",
3453
+ "name": "rate_limit_windows_pk",
3454
+ "columns": [
3455
+ "provider",
3456
+ "window_id"
3457
+ ],
3458
+ "nameExplicit": false,
3459
+ "entityType": "pks"
3460
+ },
3461
+ {
3462
+ "table": "usage_ledger",
3463
+ "name": "usage_ledger_pk",
3464
+ "columns": [
3465
+ "session_id",
3466
+ "turn_id"
3467
+ ],
3468
+ "nameExplicit": false,
3469
+ "entityType": "pks"
3470
+ },
3471
+ {
3472
+ "table": "automation_projects",
3473
+ "name": "automation_projects_pk",
3474
+ "columns": [
3475
+ "project_id"
3476
+ ],
3477
+ "nameExplicit": false,
3478
+ "entityType": "pks"
3479
+ },
3480
+ {
3481
+ "table": "artifacts",
3482
+ "name": "artifacts_pk",
3483
+ "columns": [
3484
+ "id"
3485
+ ],
3486
+ "nameExplicit": false,
3487
+ "entityType": "pks"
3488
+ },
3489
+ {
3490
+ "table": "automation_runs",
3491
+ "name": "automation_runs_pk",
3492
+ "columns": [
3493
+ "id"
3494
+ ],
3495
+ "nameExplicit": false,
3496
+ "entityType": "pks"
3497
+ },
3498
+ {
3499
+ "table": "automations",
3500
+ "name": "automations_pk",
3501
+ "columns": [
3502
+ "id"
3503
+ ],
3504
+ "nameExplicit": false,
3505
+ "entityType": "pks"
3506
+ },
3507
+ {
3508
+ "table": "events",
3509
+ "name": "events_pk",
3510
+ "columns": [
3511
+ "seq"
3512
+ ],
3513
+ "nameExplicit": false,
3514
+ "entityType": "pks"
3515
+ },
3516
+ {
3517
+ "table": "inbox_items",
3518
+ "name": "inbox_items_pk",
3519
+ "columns": [
3520
+ "id"
3521
+ ],
3522
+ "nameExplicit": false,
3523
+ "entityType": "pks"
3524
+ },
3525
+ {
3526
+ "table": "mcp_tokens",
3527
+ "name": "mcp_tokens_pk",
3528
+ "columns": [
3529
+ "id"
3530
+ ],
3531
+ "nameExplicit": false,
3532
+ "entityType": "pks"
3533
+ },
3534
+ {
3535
+ "table": "projects",
3536
+ "name": "projects_pk",
3537
+ "columns": [
3538
+ "id"
3539
+ ],
3540
+ "nameExplicit": false,
3541
+ "entityType": "pks"
3542
+ },
3543
+ {
3544
+ "table": "queued_messages",
3545
+ "name": "queued_messages_pk",
3546
+ "columns": [
3547
+ "id"
3548
+ ],
3549
+ "nameExplicit": false,
3550
+ "entityType": "pks"
3551
+ },
3552
+ {
3553
+ "table": "runner_state",
3554
+ "name": "runner_state_pk",
3555
+ "columns": [
3556
+ "runner_id"
3557
+ ],
3558
+ "nameExplicit": false,
3559
+ "entityType": "pks"
3560
+ },
3561
+ {
3562
+ "table": "sessions",
3563
+ "name": "sessions_pk",
3564
+ "columns": [
3565
+ "id"
3566
+ ],
3567
+ "nameExplicit": false,
3568
+ "entityType": "pks"
3569
+ },
3570
+ {
3571
+ "table": "factory_digests",
3572
+ "name": "factory_digests_pk",
3573
+ "columns": [
3574
+ "id"
3575
+ ],
3576
+ "nameExplicit": false,
3577
+ "entityType": "pks"
3578
+ },
3579
+ {
3580
+ "table": "factory_items",
3581
+ "name": "factory_items_pk",
3582
+ "columns": [
3583
+ "id"
3584
+ ],
3585
+ "nameExplicit": false,
3586
+ "entityType": "pks"
3587
+ },
3588
+ {
3589
+ "table": "factory_loops",
3590
+ "name": "factory_loops_pk",
3591
+ "columns": [
3592
+ "project_id"
3593
+ ],
3594
+ "nameExplicit": false,
3595
+ "entityType": "pks"
3596
+ },
3597
+ {
3598
+ "table": "github_sync_state",
3599
+ "name": "github_sync_state_pk",
3600
+ "columns": [
3601
+ "project_id"
3602
+ ],
3603
+ "nameExplicit": false,
3604
+ "entityType": "pks"
3605
+ },
3606
+ {
3607
+ "table": "conflicts",
3608
+ "name": "conflicts_pk",
3609
+ "columns": [
3610
+ "id"
3611
+ ],
3612
+ "nameExplicit": false,
3613
+ "entityType": "pks"
3614
+ },
3615
+ {
3616
+ "table": "notices",
3617
+ "name": "notices_pk",
3618
+ "columns": [
3619
+ "id"
3620
+ ],
3621
+ "nameExplicit": false,
3622
+ "entityType": "pks"
3623
+ },
3624
+ {
3625
+ "table": "item_search",
3626
+ "name": "item_search_pk",
3627
+ "columns": [
3628
+ "id"
3629
+ ],
3630
+ "nameExplicit": false,
3631
+ "entityType": "pks"
3632
+ }
3633
+ ],
3634
+ "renames": []
3635
+ }