@band-app/server 0.48.1 → 0.50.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 (80) hide show
  1. package/dist/client/_shell.html +0 -0
  2. package/dist/client/assets/{TerminalPanel-CfWUo3Nd.js → TerminalPanel-TaTddakG.js} +1 -1
  3. package/dist/client/assets/{_basePickBy-De_YMUJc.js → _basePickBy-CyEmpkN6.js} +1 -1
  4. package/dist/client/assets/{_baseUniq-CF2c9fMp.js → _baseUniq-DZK79CFb.js} +1 -1
  5. package/dist/client/assets/{arc-D-KYih_I.js → arc-BHHXQhkP.js} +1 -1
  6. package/dist/client/assets/{architectureDiagram-VXUJARFQ-i0rZW9Y9.js → architectureDiagram-VXUJARFQ-YeX3OIz6.js} +1 -1
  7. package/dist/client/assets/{blockDiagram-VD42YOAC-CI-wLyQa.js → blockDiagram-VD42YOAC-BWBeTAtn.js} +1 -1
  8. package/dist/client/assets/{c4Diagram-YG6GDRKO-C1kVgBMI.js → c4Diagram-YG6GDRKO-BSeCOUa4.js} +1 -1
  9. package/dist/client/assets/channel-CrPkzAwN.js +1 -0
  10. package/dist/client/assets/{chunk-4BX2VUAB-BZ1Kpo6f.js → chunk-4BX2VUAB-DcJtODkg.js} +1 -1
  11. package/dist/client/assets/{chunk-55IACEB6-CiRlX7k-.js → chunk-55IACEB6-pByuRA6R.js} +1 -1
  12. package/dist/client/assets/{chunk-B4BG7PRW-BcgDiAdd.js → chunk-B4BG7PRW-BynZwnDU.js} +1 -1
  13. package/dist/client/assets/{chunk-DI55MBZ5-RWxMQGLt.js → chunk-DI55MBZ5-8SdWl6Bg.js} +1 -1
  14. package/dist/client/assets/{chunk-FMBD7UC4-BwIR0iJB.js → chunk-FMBD7UC4-B0vVa00l.js} +1 -1
  15. package/dist/client/assets/{chunk-QN33PNHL-_ihIB9E1.js → chunk-QN33PNHL-BHbm2uD2.js} +1 -1
  16. package/dist/client/assets/{chunk-QZHKN3VN-CktWNnxj.js → chunk-QZHKN3VN-DS9PmlIu.js} +1 -1
  17. package/dist/client/assets/{chunk-TZMSLE5B-Br831bNt.js → chunk-TZMSLE5B-CFm_nF8Y.js} +1 -1
  18. package/dist/client/assets/classDiagram-2ON5EDUG-B2ixqHpV.js +1 -0
  19. package/dist/client/assets/classDiagram-v2-WZHVMYZB-B2ixqHpV.js +1 -0
  20. package/dist/client/assets/clone-DOnsyYsS.js +1 -0
  21. package/dist/client/assets/{cose-bilkent-S5V4N54A-Ca6F1OCk.js → cose-bilkent-S5V4N54A-B4TR3AIx.js} +1 -1
  22. package/dist/client/assets/{dagre-6UL2VRFP-B0-4g4us.js → dagre-6UL2VRFP-B8CXMn3F.js} +1 -1
  23. package/dist/client/assets/{diagram-PSM6KHXK-Bio1qnrB.js → diagram-PSM6KHXK-r9IBt9Op.js} +1 -1
  24. package/dist/client/assets/{diagram-QEK2KX5R-COoEbw7t.js → diagram-QEK2KX5R-DikzF6vc.js} +1 -1
  25. package/dist/client/assets/{diagram-S2PKOQOG-D8lVMqVK.js → diagram-S2PKOQOG-DsL3qPbL.js} +1 -1
  26. package/dist/client/assets/{erDiagram-Q2GNP2WA-t9P0TS6q.js → erDiagram-Q2GNP2WA-BQPuGdgl.js} +1 -1
  27. package/dist/client/assets/{flowDiagram-NV44I4VS-qikZ7jp7.js → flowDiagram-NV44I4VS-CVlJ575S.js} +1 -1
  28. package/dist/client/assets/{ganttDiagram-JELNMOA3--M9lMYuY.js → ganttDiagram-JELNMOA3-BbaAQRHR.js} +1 -1
  29. package/dist/client/assets/{gitGraphDiagram-V2S2FVAM-B0JlDkQD.js → gitGraphDiagram-V2S2FVAM-BqeiagoL.js} +1 -1
  30. package/dist/client/assets/{graph-DSNlIXAB.js → graph-DgChbLvr.js} +1 -1
  31. package/dist/client/assets/{highlighted-body-B3W2YXNL-kAw1lMr_.js → highlighted-body-B3W2YXNL-dH2hWW9A.js} +1 -1
  32. package/dist/client/assets/{index-VnrkP6Up.js → index-BOnMESHF.js} +1 -1
  33. package/dist/client/assets/{index-BlF06PC1.js → index-BRJVxRn5.js} +1 -1
  34. package/dist/client/assets/{index-Dga5q50h.js → index-BWh9nr9H.js} +1 -1
  35. package/dist/client/assets/{index-DFPad7x_.js → index-Bwlc-Jxf.js} +1 -1
  36. package/dist/client/assets/{index-k-FABVhS.js → index-CH0OlPqf.js} +1 -1
  37. package/dist/client/assets/{index-DrK2f7Cq.js → index-DKr9wV9s.js} +1 -1
  38. package/dist/client/assets/{index-5WQX4UIw.js → index-DUzDXjQf.js} +1 -1
  39. package/dist/client/assets/{index-bX18a8nz.js → index-DZF2HHPf.js} +1 -1
  40. package/dist/client/assets/{index--3ZFGGnZ.js → index-KPo26FUH.js} +1 -1
  41. package/dist/client/assets/{index-DMYwO0S-.js → index-SP6MW72V.js} +1 -1
  42. package/dist/client/assets/{index-CmkiQRLV.js → index-_cX_3yTA.js} +1 -1
  43. package/dist/client/assets/{index-DYX4kWNp.js → index-cu84zbIT.js} +1 -1
  44. package/dist/client/assets/{index-CySzBB0C.js → index-fCxHtwN0.js} +1 -1
  45. package/dist/client/assets/{infoDiagram-HS3SLOUP-CaK1_LNY.js → infoDiagram-HS3SLOUP-C2fqqWBl.js} +1 -1
  46. package/dist/client/assets/{journeyDiagram-XKPGCS4Q-ahkgpOr3.js → journeyDiagram-XKPGCS4Q-CtYhL-Fa.js} +1 -1
  47. package/dist/client/assets/{kanban-definition-3W4ZIXB7-DrsLcNHB.js → kanban-definition-3W4ZIXB7-sHFLpW74.js} +1 -1
  48. package/dist/client/assets/{layout-kBr-ByLR.js → layout-MdARyhdo.js} +1 -1
  49. package/dist/client/assets/main-8hVMNHLv.js +1029 -0
  50. package/dist/client/assets/main-NI1yF8XA.css +1 -0
  51. package/dist/client/assets/{mindmap-definition-VGOIOE7T-CHMj9x7w.js → mindmap-definition-VGOIOE7T-Bup15yfO.js} +1 -1
  52. package/dist/client/assets/{pieDiagram-ADFJNKIX-JtGh9CwE.js → pieDiagram-ADFJNKIX-BfWZvGaL.js} +1 -1
  53. package/dist/client/assets/{quadrantDiagram-AYHSOK5B-BtkeplJz.js → quadrantDiagram-AYHSOK5B-CbCc7ggo.js} +1 -1
  54. package/dist/client/assets/{requirementDiagram-UZGBJVZJ-DSIYZLch.js → requirementDiagram-UZGBJVZJ-Dlt5sQz-.js} +1 -1
  55. package/dist/client/assets/{sankeyDiagram-TZEHDZUN-DQGg1SzY.js → sankeyDiagram-TZEHDZUN-08KQ5MNJ.js} +1 -1
  56. package/dist/client/assets/{sequenceDiagram-WL72ISMW-BLkWIPyC.js → sequenceDiagram-WL72ISMW-DM9CSx6T.js} +1 -1
  57. package/dist/client/assets/{stateDiagram-FKZM4ZOC-BuPqxfpf.js → stateDiagram-FKZM4ZOC-BtFPHXN-.js} +1 -1
  58. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-JAywGea8.js +1 -0
  59. package/dist/client/assets/{timeline-definition-IT6M3QCI-vh4dIOet.js → timeline-definition-IT6M3QCI-slFvRc46.js} +1 -1
  60. package/dist/client/assets/{treemap-GDKQZRPO-C9Mr454A.js → treemap-GDKQZRPO-B6NUX9Ke.js} +1 -1
  61. package/dist/client/assets/{worktree._worktreeId-DYrSBo4e.js → worktree._worktreeId-BRHnl5t2.js} +1 -1
  62. package/dist/client/assets/{worktree._worktreeId-COUtiXXq.js → worktree._worktreeId-DIyXyY26.js} +1 -1
  63. package/dist/client/assets/{xychartDiagram-PRI3JC2R-DTTZebCh.js → xychartDiagram-PRI3JC2R-mi-qUKi6.js} +1 -1
  64. package/dist/migrations/20261013221026_chat_ownership/migration.sql +22 -0
  65. package/dist/migrations/20261013221026_chat_ownership/snapshot.json +4602 -0
  66. package/dist/migrations/20261015083401_worktree_sort_index/migration.sql +2 -0
  67. package/dist/migrations/20261015083401_worktree_sort_index/snapshot.json +4429 -0
  68. package/dist/migrations/20261015143017_device_pairing/migration.sql +3 -0
  69. package/dist/migrations/20261015143017_device_pairing/snapshot.json +4443 -0
  70. package/dist/openapi.json +1524 -209
  71. package/dist/start-server.mjs +51545 -32879
  72. package/dist/terminal-daemon.mjs +8 -1
  73. package/package.json +7 -6
  74. package/dist/client/assets/channel-Hy94D-AA.js +0 -1
  75. package/dist/client/assets/classDiagram-2ON5EDUG-Cwx4pAtm.js +0 -1
  76. package/dist/client/assets/classDiagram-v2-WZHVMYZB-Cwx4pAtm.js +0 -1
  77. package/dist/client/assets/clone-BKfvT5A4.js +0 -1
  78. package/dist/client/assets/main-BubyOwBK.css +0 -1
  79. package/dist/client/assets/main-Tc53m1i8.js +0 -1026
  80. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-DSMlIvqa.js +0 -1
@@ -0,0 +1,4602 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "id": "33a91bc2-238e-41a2-8352-d33ca9c1e282",
5
+ "prevIds": [
6
+ "c3f2ab12-0c7f-410f-b812-5d2d8872376e"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "name": "agent_sessions",
11
+ "entityType": "tables"
12
+ },
13
+ {
14
+ "name": "branch_statuses",
15
+ "entityType": "tables"
16
+ },
17
+ {
18
+ "name": "browser_history",
19
+ "entityType": "tables"
20
+ },
21
+ {
22
+ "name": "browser_profiles",
23
+ "entityType": "tables"
24
+ },
25
+ {
26
+ "name": "chat_event_holds",
27
+ "entityType": "tables"
28
+ },
29
+ {
30
+ "name": "chat_events",
31
+ "entityType": "tables"
32
+ },
33
+ {
34
+ "name": "chat_forwards",
35
+ "entityType": "tables"
36
+ },
37
+ {
38
+ "name": "client_state",
39
+ "entityType": "tables"
40
+ },
41
+ {
42
+ "name": "cronjobs",
43
+ "entityType": "tables"
44
+ },
45
+ {
46
+ "name": "environment_builds",
47
+ "entityType": "tables"
48
+ },
49
+ {
50
+ "name": "host_requests",
51
+ "entityType": "tables"
52
+ },
53
+ {
54
+ "name": "hosts",
55
+ "entityType": "tables"
56
+ },
57
+ {
58
+ "name": "mcp_proxy_audit",
59
+ "entityType": "tables"
60
+ },
61
+ {
62
+ "name": "mcp_proxy_tokens",
63
+ "entityType": "tables"
64
+ },
65
+ {
66
+ "name": "mcp_servers",
67
+ "entityType": "tables"
68
+ },
69
+ {
70
+ "name": "panel_states",
71
+ "entityType": "tables"
72
+ },
73
+ {
74
+ "name": "pending_removals",
75
+ "entityType": "tables"
76
+ },
77
+ {
78
+ "name": "pushed_shas",
79
+ "entityType": "tables"
80
+ },
81
+ {
82
+ "name": "repo_browser_profiles",
83
+ "entityType": "tables"
84
+ },
85
+ {
86
+ "name": "repo_hosts",
87
+ "entityType": "tables"
88
+ },
89
+ {
90
+ "name": "repos",
91
+ "entityType": "tables"
92
+ },
93
+ {
94
+ "name": "runner_machines",
95
+ "entityType": "tables"
96
+ },
97
+ {
98
+ "name": "runner_snapshots",
99
+ "entityType": "tables"
100
+ },
101
+ {
102
+ "name": "subscription_cursors",
103
+ "entityType": "tables"
104
+ },
105
+ {
106
+ "name": "subscription_events",
107
+ "entityType": "tables"
108
+ },
109
+ {
110
+ "name": "subscriptions",
111
+ "entityType": "tables"
112
+ },
113
+ {
114
+ "name": "tasks",
115
+ "entityType": "tables"
116
+ },
117
+ {
118
+ "name": "tokens",
119
+ "entityType": "tables"
120
+ },
121
+ {
122
+ "name": "usage_events",
123
+ "entityType": "tables"
124
+ },
125
+ {
126
+ "name": "usage_scan_state",
127
+ "entityType": "tables"
128
+ },
129
+ {
130
+ "name": "vault_items",
131
+ "entityType": "tables"
132
+ },
133
+ {
134
+ "name": "worktree_checkpoints",
135
+ "entityType": "tables"
136
+ },
137
+ {
138
+ "name": "worktree_sleep",
139
+ "entityType": "tables"
140
+ },
141
+ {
142
+ "name": "worktree_status_sources",
143
+ "entityType": "tables"
144
+ },
145
+ {
146
+ "name": "worktree_statuses",
147
+ "entityType": "tables"
148
+ },
149
+ {
150
+ "name": "worktrees",
151
+ "entityType": "tables"
152
+ },
153
+ {
154
+ "type": "text",
155
+ "notNull": false,
156
+ "autoincrement": false,
157
+ "default": null,
158
+ "generated": null,
159
+ "name": "id",
160
+ "entityType": "columns",
161
+ "table": "agent_sessions"
162
+ },
163
+ {
164
+ "type": "text",
165
+ "notNull": true,
166
+ "autoincrement": false,
167
+ "default": null,
168
+ "generated": null,
169
+ "name": "worktree_id",
170
+ "entityType": "columns",
171
+ "table": "agent_sessions"
172
+ },
173
+ {
174
+ "type": "text",
175
+ "notNull": true,
176
+ "autoincrement": false,
177
+ "default": null,
178
+ "generated": null,
179
+ "name": "agent_definition_id",
180
+ "entityType": "columns",
181
+ "table": "agent_sessions"
182
+ },
183
+ {
184
+ "type": "text",
185
+ "notNull": false,
186
+ "autoincrement": false,
187
+ "default": null,
188
+ "generated": null,
189
+ "name": "provider_session_id",
190
+ "entityType": "columns",
191
+ "table": "agent_sessions"
192
+ },
193
+ {
194
+ "type": "text",
195
+ "notNull": true,
196
+ "autoincrement": false,
197
+ "default": null,
198
+ "generated": null,
199
+ "name": "mode",
200
+ "entityType": "columns",
201
+ "table": "agent_sessions"
202
+ },
203
+ {
204
+ "type": "text",
205
+ "notNull": false,
206
+ "autoincrement": false,
207
+ "default": null,
208
+ "generated": null,
209
+ "name": "chat_id",
210
+ "entityType": "columns",
211
+ "table": "agent_sessions"
212
+ },
213
+ {
214
+ "type": "text",
215
+ "notNull": false,
216
+ "autoincrement": false,
217
+ "default": null,
218
+ "generated": null,
219
+ "name": "terminal_id",
220
+ "entityType": "columns",
221
+ "table": "agent_sessions"
222
+ },
223
+ {
224
+ "type": "text",
225
+ "notNull": true,
226
+ "autoincrement": false,
227
+ "default": null,
228
+ "generated": null,
229
+ "name": "state",
230
+ "entityType": "columns",
231
+ "table": "agent_sessions"
232
+ },
233
+ {
234
+ "type": "integer",
235
+ "notNull": true,
236
+ "autoincrement": false,
237
+ "default": null,
238
+ "generated": null,
239
+ "name": "created_at",
240
+ "entityType": "columns",
241
+ "table": "agent_sessions"
242
+ },
243
+ {
244
+ "type": "integer",
245
+ "notNull": true,
246
+ "autoincrement": false,
247
+ "default": null,
248
+ "generated": null,
249
+ "name": "updated_at",
250
+ "entityType": "columns",
251
+ "table": "agent_sessions"
252
+ },
253
+ {
254
+ "type": "text",
255
+ "notNull": false,
256
+ "autoincrement": false,
257
+ "default": null,
258
+ "generated": null,
259
+ "name": "worktree_id",
260
+ "entityType": "columns",
261
+ "table": "branch_statuses"
262
+ },
263
+ {
264
+ "type": "integer",
265
+ "notNull": true,
266
+ "autoincrement": false,
267
+ "default": null,
268
+ "generated": null,
269
+ "name": "git_dirty",
270
+ "entityType": "columns",
271
+ "table": "branch_statuses"
272
+ },
273
+ {
274
+ "type": "integer",
275
+ "notNull": true,
276
+ "autoincrement": false,
277
+ "default": null,
278
+ "generated": null,
279
+ "name": "git_conflict",
280
+ "entityType": "columns",
281
+ "table": "branch_statuses"
282
+ },
283
+ {
284
+ "type": "integer",
285
+ "notNull": true,
286
+ "autoincrement": false,
287
+ "default": null,
288
+ "generated": null,
289
+ "name": "git_ahead",
290
+ "entityType": "columns",
291
+ "table": "branch_statuses"
292
+ },
293
+ {
294
+ "type": "integer",
295
+ "notNull": true,
296
+ "autoincrement": false,
297
+ "default": null,
298
+ "generated": null,
299
+ "name": "git_behind",
300
+ "entityType": "columns",
301
+ "table": "branch_statuses"
302
+ },
303
+ {
304
+ "type": "text",
305
+ "notNull": true,
306
+ "autoincrement": false,
307
+ "default": null,
308
+ "generated": null,
309
+ "name": "git_sync_state",
310
+ "entityType": "columns",
311
+ "table": "branch_statuses"
312
+ },
313
+ {
314
+ "type": "text",
315
+ "notNull": true,
316
+ "autoincrement": false,
317
+ "default": null,
318
+ "generated": null,
319
+ "name": "ci_state",
320
+ "entityType": "columns",
321
+ "table": "branch_statuses"
322
+ },
323
+ {
324
+ "type": "text",
325
+ "notNull": false,
326
+ "autoincrement": false,
327
+ "default": null,
328
+ "generated": null,
329
+ "name": "ci_url",
330
+ "entityType": "columns",
331
+ "table": "branch_statuses"
332
+ },
333
+ {
334
+ "type": "text",
335
+ "notNull": false,
336
+ "autoincrement": false,
337
+ "default": null,
338
+ "generated": null,
339
+ "name": "ci_pr",
340
+ "entityType": "columns",
341
+ "table": "branch_statuses"
342
+ },
343
+ {
344
+ "type": "integer",
345
+ "notNull": true,
346
+ "autoincrement": false,
347
+ "default": null,
348
+ "generated": null,
349
+ "name": "updated_at",
350
+ "entityType": "columns",
351
+ "table": "branch_statuses"
352
+ },
353
+ {
354
+ "type": "integer",
355
+ "notNull": false,
356
+ "autoincrement": true,
357
+ "default": null,
358
+ "generated": null,
359
+ "name": "id",
360
+ "entityType": "columns",
361
+ "table": "browser_history"
362
+ },
363
+ {
364
+ "type": "text",
365
+ "notNull": true,
366
+ "autoincrement": false,
367
+ "default": null,
368
+ "generated": null,
369
+ "name": "worktree_id",
370
+ "entityType": "columns",
371
+ "table": "browser_history"
372
+ },
373
+ {
374
+ "type": "text",
375
+ "notNull": true,
376
+ "autoincrement": false,
377
+ "default": null,
378
+ "generated": null,
379
+ "name": "url",
380
+ "entityType": "columns",
381
+ "table": "browser_history"
382
+ },
383
+ {
384
+ "type": "text",
385
+ "notNull": false,
386
+ "autoincrement": false,
387
+ "default": null,
388
+ "generated": null,
389
+ "name": "title",
390
+ "entityType": "columns",
391
+ "table": "browser_history"
392
+ },
393
+ {
394
+ "type": "text",
395
+ "notNull": false,
396
+ "autoincrement": false,
397
+ "default": null,
398
+ "generated": null,
399
+ "name": "favicon_url",
400
+ "entityType": "columns",
401
+ "table": "browser_history"
402
+ },
403
+ {
404
+ "type": "integer",
405
+ "notNull": true,
406
+ "autoincrement": false,
407
+ "default": null,
408
+ "generated": null,
409
+ "name": "last_visited_at",
410
+ "entityType": "columns",
411
+ "table": "browser_history"
412
+ },
413
+ {
414
+ "type": "integer",
415
+ "notNull": true,
416
+ "autoincrement": false,
417
+ "default": "1",
418
+ "generated": null,
419
+ "name": "visit_count",
420
+ "entityType": "columns",
421
+ "table": "browser_history"
422
+ },
423
+ {
424
+ "type": "text",
425
+ "notNull": false,
426
+ "autoincrement": false,
427
+ "default": null,
428
+ "generated": null,
429
+ "name": "id",
430
+ "entityType": "columns",
431
+ "table": "browser_profiles"
432
+ },
433
+ {
434
+ "type": "text",
435
+ "notNull": true,
436
+ "autoincrement": false,
437
+ "default": null,
438
+ "generated": null,
439
+ "name": "name",
440
+ "entityType": "columns",
441
+ "table": "browser_profiles"
442
+ },
443
+ {
444
+ "type": "text",
445
+ "notNull": false,
446
+ "autoincrement": false,
447
+ "default": null,
448
+ "generated": null,
449
+ "name": "source",
450
+ "entityType": "columns",
451
+ "table": "browser_profiles"
452
+ },
453
+ {
454
+ "type": "integer",
455
+ "notNull": true,
456
+ "autoincrement": false,
457
+ "default": null,
458
+ "generated": null,
459
+ "name": "created_at",
460
+ "entityType": "columns",
461
+ "table": "browser_profiles"
462
+ },
463
+ {
464
+ "type": "integer",
465
+ "notNull": true,
466
+ "autoincrement": false,
467
+ "default": null,
468
+ "generated": null,
469
+ "name": "id",
470
+ "entityType": "columns",
471
+ "table": "chat_event_holds"
472
+ },
473
+ {
474
+ "type": "text",
475
+ "notNull": true,
476
+ "autoincrement": false,
477
+ "default": null,
478
+ "generated": null,
479
+ "name": "host_id",
480
+ "entityType": "columns",
481
+ "table": "chat_event_holds"
482
+ },
483
+ {
484
+ "type": "text",
485
+ "notNull": true,
486
+ "autoincrement": false,
487
+ "default": null,
488
+ "generated": null,
489
+ "name": "chat_id",
490
+ "entityType": "columns",
491
+ "table": "chat_event_holds"
492
+ },
493
+ {
494
+ "type": "text",
495
+ "notNull": true,
496
+ "autoincrement": false,
497
+ "default": null,
498
+ "generated": null,
499
+ "name": "row",
500
+ "entityType": "columns",
501
+ "table": "chat_event_holds"
502
+ },
503
+ {
504
+ "type": "integer",
505
+ "notNull": true,
506
+ "autoincrement": false,
507
+ "default": null,
508
+ "generated": null,
509
+ "name": "received_at",
510
+ "entityType": "columns",
511
+ "table": "chat_event_holds"
512
+ },
513
+ {
514
+ "type": "integer",
515
+ "notNull": false,
516
+ "autoincrement": true,
517
+ "default": null,
518
+ "generated": null,
519
+ "name": "id",
520
+ "entityType": "columns",
521
+ "table": "chat_events"
522
+ },
523
+ {
524
+ "type": "text",
525
+ "notNull": true,
526
+ "autoincrement": false,
527
+ "default": null,
528
+ "generated": null,
529
+ "name": "chat_id",
530
+ "entityType": "columns",
531
+ "table": "chat_events"
532
+ },
533
+ {
534
+ "type": "text",
535
+ "notNull": true,
536
+ "autoincrement": false,
537
+ "default": null,
538
+ "generated": null,
539
+ "name": "session_id",
540
+ "entityType": "columns",
541
+ "table": "chat_events"
542
+ },
543
+ {
544
+ "type": "integer",
545
+ "notNull": true,
546
+ "autoincrement": false,
547
+ "default": null,
548
+ "generated": null,
549
+ "name": "revision",
550
+ "entityType": "columns",
551
+ "table": "chat_events"
552
+ },
553
+ {
554
+ "type": "text",
555
+ "notNull": true,
556
+ "autoincrement": false,
557
+ "default": null,
558
+ "generated": null,
559
+ "name": "kind",
560
+ "entityType": "columns",
561
+ "table": "chat_events"
562
+ },
563
+ {
564
+ "type": "text",
565
+ "notNull": false,
566
+ "autoincrement": false,
567
+ "default": null,
568
+ "generated": null,
569
+ "name": "update_kind",
570
+ "entityType": "columns",
571
+ "table": "chat_events"
572
+ },
573
+ {
574
+ "type": "text",
575
+ "notNull": false,
576
+ "autoincrement": false,
577
+ "default": null,
578
+ "generated": null,
579
+ "name": "message_id",
580
+ "entityType": "columns",
581
+ "table": "chat_events"
582
+ },
583
+ {
584
+ "type": "text",
585
+ "notNull": false,
586
+ "autoincrement": false,
587
+ "default": null,
588
+ "generated": null,
589
+ "name": "tool_call_id",
590
+ "entityType": "columns",
591
+ "table": "chat_events"
592
+ },
593
+ {
594
+ "type": "integer",
595
+ "notNull": true,
596
+ "autoincrement": false,
597
+ "default": "false",
598
+ "generated": null,
599
+ "name": "turn_start",
600
+ "entityType": "columns",
601
+ "table": "chat_events"
602
+ },
603
+ {
604
+ "type": "text",
605
+ "notNull": true,
606
+ "autoincrement": false,
607
+ "default": null,
608
+ "generated": null,
609
+ "name": "payload",
610
+ "entityType": "columns",
611
+ "table": "chat_events"
612
+ },
613
+ {
614
+ "type": "integer",
615
+ "notNull": true,
616
+ "autoincrement": false,
617
+ "default": null,
618
+ "generated": null,
619
+ "name": "created_at",
620
+ "entityType": "columns",
621
+ "table": "chat_events"
622
+ },
623
+ {
624
+ "type": "text",
625
+ "notNull": false,
626
+ "autoincrement": false,
627
+ "default": null,
628
+ "generated": null,
629
+ "name": "id",
630
+ "entityType": "columns",
631
+ "table": "chat_forwards"
632
+ },
633
+ {
634
+ "type": "text",
635
+ "notNull": true,
636
+ "autoincrement": false,
637
+ "default": null,
638
+ "generated": null,
639
+ "name": "chat_id",
640
+ "entityType": "columns",
641
+ "table": "chat_forwards"
642
+ },
643
+ {
644
+ "type": "text",
645
+ "notNull": true,
646
+ "autoincrement": false,
647
+ "default": null,
648
+ "generated": null,
649
+ "name": "host_id",
650
+ "entityType": "columns",
651
+ "table": "chat_forwards"
652
+ },
653
+ {
654
+ "type": "text",
655
+ "notNull": true,
656
+ "autoincrement": false,
657
+ "default": null,
658
+ "generated": null,
659
+ "name": "method",
660
+ "entityType": "columns",
661
+ "table": "chat_forwards"
662
+ },
663
+ {
664
+ "type": "text",
665
+ "notNull": true,
666
+ "autoincrement": false,
667
+ "default": null,
668
+ "generated": null,
669
+ "name": "params",
670
+ "entityType": "columns",
671
+ "table": "chat_forwards"
672
+ },
673
+ {
674
+ "type": "integer",
675
+ "notNull": true,
676
+ "autoincrement": false,
677
+ "default": null,
678
+ "generated": null,
679
+ "name": "created_at",
680
+ "entityType": "columns",
681
+ "table": "chat_forwards"
682
+ },
683
+ {
684
+ "type": "integer",
685
+ "notNull": false,
686
+ "autoincrement": false,
687
+ "default": null,
688
+ "generated": null,
689
+ "name": "delivered_at",
690
+ "entityType": "columns",
691
+ "table": "chat_forwards"
692
+ },
693
+ {
694
+ "type": "text",
695
+ "notNull": false,
696
+ "autoincrement": false,
697
+ "default": null,
698
+ "generated": null,
699
+ "name": "reply",
700
+ "entityType": "columns",
701
+ "table": "chat_forwards"
702
+ },
703
+ {
704
+ "type": "text",
705
+ "notNull": true,
706
+ "autoincrement": false,
707
+ "default": null,
708
+ "generated": null,
709
+ "name": "key",
710
+ "entityType": "columns",
711
+ "table": "client_state"
712
+ },
713
+ {
714
+ "type": "text",
715
+ "notNull": true,
716
+ "autoincrement": false,
717
+ "default": null,
718
+ "generated": null,
719
+ "name": "scope",
720
+ "entityType": "columns",
721
+ "table": "client_state"
722
+ },
723
+ {
724
+ "type": "text",
725
+ "notNull": false,
726
+ "autoincrement": false,
727
+ "default": null,
728
+ "generated": null,
729
+ "name": "worktree_id",
730
+ "entityType": "columns",
731
+ "table": "client_state"
732
+ },
733
+ {
734
+ "type": "text",
735
+ "notNull": false,
736
+ "autoincrement": false,
737
+ "default": null,
738
+ "generated": null,
739
+ "name": "value",
740
+ "entityType": "columns",
741
+ "table": "client_state"
742
+ },
743
+ {
744
+ "type": "integer",
745
+ "notNull": true,
746
+ "autoincrement": false,
747
+ "default": null,
748
+ "generated": null,
749
+ "name": "version",
750
+ "entityType": "columns",
751
+ "table": "client_state"
752
+ },
753
+ {
754
+ "type": "integer",
755
+ "notNull": true,
756
+ "autoincrement": false,
757
+ "default": null,
758
+ "generated": null,
759
+ "name": "updated_at",
760
+ "entityType": "columns",
761
+ "table": "client_state"
762
+ },
763
+ {
764
+ "type": "text",
765
+ "notNull": false,
766
+ "autoincrement": false,
767
+ "default": null,
768
+ "generated": null,
769
+ "name": "id",
770
+ "entityType": "columns",
771
+ "table": "cronjobs"
772
+ },
773
+ {
774
+ "type": "text",
775
+ "notNull": true,
776
+ "autoincrement": false,
777
+ "default": null,
778
+ "generated": null,
779
+ "name": "file_key",
780
+ "entityType": "columns",
781
+ "table": "cronjobs"
782
+ },
783
+ {
784
+ "type": "text",
785
+ "notNull": true,
786
+ "autoincrement": false,
787
+ "default": null,
788
+ "generated": null,
789
+ "name": "name",
790
+ "entityType": "columns",
791
+ "table": "cronjobs"
792
+ },
793
+ {
794
+ "type": "text",
795
+ "notNull": true,
796
+ "autoincrement": false,
797
+ "default": null,
798
+ "generated": null,
799
+ "name": "prompt",
800
+ "entityType": "columns",
801
+ "table": "cronjobs"
802
+ },
803
+ {
804
+ "type": "text",
805
+ "notNull": true,
806
+ "autoincrement": false,
807
+ "default": null,
808
+ "generated": null,
809
+ "name": "cron_expression",
810
+ "entityType": "columns",
811
+ "table": "cronjobs"
812
+ },
813
+ {
814
+ "type": "text",
815
+ "notNull": true,
816
+ "autoincrement": false,
817
+ "default": null,
818
+ "generated": null,
819
+ "name": "scope",
820
+ "entityType": "columns",
821
+ "table": "cronjobs"
822
+ },
823
+ {
824
+ "type": "text",
825
+ "notNull": false,
826
+ "autoincrement": false,
827
+ "default": null,
828
+ "generated": null,
829
+ "name": "worktree_id",
830
+ "entityType": "columns",
831
+ "table": "cronjobs"
832
+ },
833
+ {
834
+ "type": "text",
835
+ "notNull": true,
836
+ "autoincrement": false,
837
+ "default": "'chat'",
838
+ "generated": null,
839
+ "name": "via",
840
+ "entityType": "columns",
841
+ "table": "cronjobs"
842
+ },
843
+ {
844
+ "type": "integer",
845
+ "notNull": true,
846
+ "autoincrement": false,
847
+ "default": "true",
848
+ "generated": null,
849
+ "name": "enabled",
850
+ "entityType": "columns",
851
+ "table": "cronjobs"
852
+ },
853
+ {
854
+ "type": "text",
855
+ "notNull": true,
856
+ "autoincrement": false,
857
+ "default": null,
858
+ "generated": null,
859
+ "name": "created_at",
860
+ "entityType": "columns",
861
+ "table": "cronjobs"
862
+ },
863
+ {
864
+ "type": "text",
865
+ "notNull": false,
866
+ "autoincrement": false,
867
+ "default": null,
868
+ "generated": null,
869
+ "name": "last_run_at",
870
+ "entityType": "columns",
871
+ "table": "cronjobs"
872
+ },
873
+ {
874
+ "type": "text",
875
+ "notNull": false,
876
+ "autoincrement": false,
877
+ "default": null,
878
+ "generated": null,
879
+ "name": "last_run_status",
880
+ "entityType": "columns",
881
+ "table": "cronjobs"
882
+ },
883
+ {
884
+ "type": "text",
885
+ "notNull": false,
886
+ "autoincrement": false,
887
+ "default": null,
888
+ "generated": null,
889
+ "name": "last_terminal_id",
890
+ "entityType": "columns",
891
+ "table": "cronjobs"
892
+ },
893
+ {
894
+ "type": "text",
895
+ "notNull": true,
896
+ "autoincrement": false,
897
+ "default": "'local'",
898
+ "generated": null,
899
+ "name": "host_id",
900
+ "entityType": "columns",
901
+ "table": "cronjobs"
902
+ },
903
+ {
904
+ "type": "text",
905
+ "notNull": false,
906
+ "autoincrement": false,
907
+ "default": null,
908
+ "generated": null,
909
+ "name": "id",
910
+ "entityType": "columns",
911
+ "table": "environment_builds"
912
+ },
913
+ {
914
+ "type": "text",
915
+ "notNull": true,
916
+ "autoincrement": false,
917
+ "default": null,
918
+ "generated": null,
919
+ "name": "repo",
920
+ "entityType": "columns",
921
+ "table": "environment_builds"
922
+ },
923
+ {
924
+ "type": "text",
925
+ "notNull": true,
926
+ "autoincrement": false,
927
+ "default": null,
928
+ "generated": null,
929
+ "name": "key",
930
+ "entityType": "columns",
931
+ "table": "environment_builds"
932
+ },
933
+ {
934
+ "type": "text",
935
+ "notNull": true,
936
+ "autoincrement": false,
937
+ "default": null,
938
+ "generated": null,
939
+ "name": "status",
940
+ "entityType": "columns",
941
+ "table": "environment_builds"
942
+ },
943
+ {
944
+ "type": "text",
945
+ "notNull": false,
946
+ "autoincrement": false,
947
+ "default": null,
948
+ "generated": null,
949
+ "name": "image",
950
+ "entityType": "columns",
951
+ "table": "environment_builds"
952
+ },
953
+ {
954
+ "type": "text",
955
+ "notNull": true,
956
+ "autoincrement": false,
957
+ "default": null,
958
+ "generated": null,
959
+ "name": "host_id",
960
+ "entityType": "columns",
961
+ "table": "environment_builds"
962
+ },
963
+ {
964
+ "type": "text",
965
+ "notNull": false,
966
+ "autoincrement": false,
967
+ "default": null,
968
+ "generated": null,
969
+ "name": "commit_sha",
970
+ "entityType": "columns",
971
+ "table": "environment_builds"
972
+ },
973
+ {
974
+ "type": "text",
975
+ "notNull": true,
976
+ "autoincrement": false,
977
+ "default": null,
978
+ "generated": null,
979
+ "name": "trigger",
980
+ "entityType": "columns",
981
+ "table": "environment_builds"
982
+ },
983
+ {
984
+ "type": "text",
985
+ "notNull": true,
986
+ "autoincrement": false,
987
+ "default": "''",
988
+ "generated": null,
989
+ "name": "log",
990
+ "entityType": "columns",
991
+ "table": "environment_builds"
992
+ },
993
+ {
994
+ "type": "text",
995
+ "notNull": false,
996
+ "autoincrement": false,
997
+ "default": null,
998
+ "generated": null,
999
+ "name": "error",
1000
+ "entityType": "columns",
1001
+ "table": "environment_builds"
1002
+ },
1003
+ {
1004
+ "type": "integer",
1005
+ "notNull": true,
1006
+ "autoincrement": false,
1007
+ "default": null,
1008
+ "generated": null,
1009
+ "name": "started_at",
1010
+ "entityType": "columns",
1011
+ "table": "environment_builds"
1012
+ },
1013
+ {
1014
+ "type": "integer",
1015
+ "notNull": false,
1016
+ "autoincrement": false,
1017
+ "default": null,
1018
+ "generated": null,
1019
+ "name": "ended_at",
1020
+ "entityType": "columns",
1021
+ "table": "environment_builds"
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "notNull": false,
1026
+ "autoincrement": false,
1027
+ "default": null,
1028
+ "generated": null,
1029
+ "name": "id",
1030
+ "entityType": "columns",
1031
+ "table": "host_requests"
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "notNull": true,
1036
+ "autoincrement": false,
1037
+ "default": null,
1038
+ "generated": null,
1039
+ "name": "worktree_id",
1040
+ "entityType": "columns",
1041
+ "table": "host_requests"
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "notNull": true,
1046
+ "autoincrement": false,
1047
+ "default": null,
1048
+ "generated": null,
1049
+ "name": "repo",
1050
+ "entityType": "columns",
1051
+ "table": "host_requests"
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "notNull": true,
1056
+ "autoincrement": false,
1057
+ "default": null,
1058
+ "generated": null,
1059
+ "name": "branch",
1060
+ "entityType": "columns",
1061
+ "table": "host_requests"
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "notNull": true,
1066
+ "autoincrement": false,
1067
+ "default": "'{}'",
1068
+ "generated": null,
1069
+ "name": "labels",
1070
+ "entityType": "columns",
1071
+ "table": "host_requests"
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "notNull": true,
1076
+ "autoincrement": false,
1077
+ "default": "'{}'",
1078
+ "generated": null,
1079
+ "name": "requires",
1080
+ "entityType": "columns",
1081
+ "table": "host_requests"
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "notNull": false,
1086
+ "autoincrement": false,
1087
+ "default": null,
1088
+ "generated": null,
1089
+ "name": "environment",
1090
+ "entityType": "columns",
1091
+ "table": "host_requests"
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "notNull": true,
1096
+ "autoincrement": false,
1097
+ "default": null,
1098
+ "generated": null,
1099
+ "name": "input",
1100
+ "entityType": "columns",
1101
+ "table": "host_requests"
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "notNull": true,
1106
+ "autoincrement": false,
1107
+ "default": "'pending'",
1108
+ "generated": null,
1109
+ "name": "status",
1110
+ "entityType": "columns",
1111
+ "table": "host_requests"
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "notNull": false,
1116
+ "autoincrement": false,
1117
+ "default": null,
1118
+ "generated": null,
1119
+ "name": "leased_by",
1120
+ "entityType": "columns",
1121
+ "table": "host_requests"
1122
+ },
1123
+ {
1124
+ "type": "integer",
1125
+ "notNull": false,
1126
+ "autoincrement": false,
1127
+ "default": null,
1128
+ "generated": null,
1129
+ "name": "lease_expires_at",
1130
+ "entityType": "columns",
1131
+ "table": "host_requests"
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "notNull": false,
1136
+ "autoincrement": false,
1137
+ "default": null,
1138
+ "generated": null,
1139
+ "name": "host_id",
1140
+ "entityType": "columns",
1141
+ "table": "host_requests"
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "notNull": false,
1146
+ "autoincrement": false,
1147
+ "default": null,
1148
+ "generated": null,
1149
+ "name": "error",
1150
+ "entityType": "columns",
1151
+ "table": "host_requests"
1152
+ },
1153
+ {
1154
+ "type": "integer",
1155
+ "notNull": false,
1156
+ "autoincrement": false,
1157
+ "default": null,
1158
+ "generated": null,
1159
+ "name": "completed_at",
1160
+ "entityType": "columns",
1161
+ "table": "host_requests"
1162
+ },
1163
+ {
1164
+ "type": "integer",
1165
+ "notNull": true,
1166
+ "autoincrement": false,
1167
+ "default": null,
1168
+ "generated": null,
1169
+ "name": "created_at",
1170
+ "entityType": "columns",
1171
+ "table": "host_requests"
1172
+ },
1173
+ {
1174
+ "type": "integer",
1175
+ "notNull": true,
1176
+ "autoincrement": false,
1177
+ "default": null,
1178
+ "generated": null,
1179
+ "name": "updated_at",
1180
+ "entityType": "columns",
1181
+ "table": "host_requests"
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "notNull": false,
1186
+ "autoincrement": false,
1187
+ "default": null,
1188
+ "generated": null,
1189
+ "name": "id",
1190
+ "entityType": "columns",
1191
+ "table": "hosts"
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "notNull": true,
1196
+ "autoincrement": false,
1197
+ "default": null,
1198
+ "generated": null,
1199
+ "name": "name",
1200
+ "entityType": "columns",
1201
+ "table": "hosts"
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "notNull": true,
1206
+ "autoincrement": false,
1207
+ "default": "'attached'",
1208
+ "generated": null,
1209
+ "name": "mode",
1210
+ "entityType": "columns",
1211
+ "table": "hosts"
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "notNull": false,
1216
+ "autoincrement": false,
1217
+ "default": null,
1218
+ "generated": null,
1219
+ "name": "runner",
1220
+ "entityType": "columns",
1221
+ "table": "hosts"
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "notNull": true,
1226
+ "autoincrement": false,
1227
+ "default": "'[]'",
1228
+ "generated": null,
1229
+ "name": "labels",
1230
+ "entityType": "columns",
1231
+ "table": "hosts"
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "notNull": true,
1236
+ "autoincrement": false,
1237
+ "default": "'online'",
1238
+ "generated": null,
1239
+ "name": "status",
1240
+ "entityType": "columns",
1241
+ "table": "hosts"
1242
+ },
1243
+ {
1244
+ "type": "integer",
1245
+ "notNull": false,
1246
+ "autoincrement": false,
1247
+ "default": null,
1248
+ "generated": null,
1249
+ "name": "last_seen_at",
1250
+ "entityType": "columns",
1251
+ "table": "hosts"
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "notNull": false,
1256
+ "autoincrement": false,
1257
+ "default": null,
1258
+ "generated": null,
1259
+ "name": "info",
1260
+ "entityType": "columns",
1261
+ "table": "hosts"
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "notNull": false,
1266
+ "autoincrement": false,
1267
+ "default": null,
1268
+ "generated": null,
1269
+ "name": "version",
1270
+ "entityType": "columns",
1271
+ "table": "hosts"
1272
+ },
1273
+ {
1274
+ "type": "integer",
1275
+ "notNull": true,
1276
+ "autoincrement": false,
1277
+ "default": null,
1278
+ "generated": null,
1279
+ "name": "created_at",
1280
+ "entityType": "columns",
1281
+ "table": "hosts"
1282
+ },
1283
+ {
1284
+ "type": "integer",
1285
+ "notNull": false,
1286
+ "autoincrement": true,
1287
+ "default": null,
1288
+ "generated": null,
1289
+ "name": "id",
1290
+ "entityType": "columns",
1291
+ "table": "mcp_proxy_audit"
1292
+ },
1293
+ {
1294
+ "type": "integer",
1295
+ "notNull": true,
1296
+ "autoincrement": false,
1297
+ "default": null,
1298
+ "generated": null,
1299
+ "name": "at",
1300
+ "entityType": "columns",
1301
+ "table": "mcp_proxy_audit"
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "notNull": true,
1306
+ "autoincrement": false,
1307
+ "default": null,
1308
+ "generated": null,
1309
+ "name": "server",
1310
+ "entityType": "columns",
1311
+ "table": "mcp_proxy_audit"
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "notNull": true,
1316
+ "autoincrement": false,
1317
+ "default": null,
1318
+ "generated": null,
1319
+ "name": "tool",
1320
+ "entityType": "columns",
1321
+ "table": "mcp_proxy_audit"
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "notNull": true,
1326
+ "autoincrement": false,
1327
+ "default": null,
1328
+ "generated": null,
1329
+ "name": "session_id",
1330
+ "entityType": "columns",
1331
+ "table": "mcp_proxy_audit"
1332
+ },
1333
+ {
1334
+ "type": "integer",
1335
+ "notNull": true,
1336
+ "autoincrement": false,
1337
+ "default": null,
1338
+ "generated": null,
1339
+ "name": "ok",
1340
+ "entityType": "columns",
1341
+ "table": "mcp_proxy_audit"
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "notNull": false,
1346
+ "autoincrement": false,
1347
+ "default": null,
1348
+ "generated": null,
1349
+ "name": "error",
1350
+ "entityType": "columns",
1351
+ "table": "mcp_proxy_audit"
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "notNull": false,
1356
+ "autoincrement": false,
1357
+ "default": null,
1358
+ "generated": null,
1359
+ "name": "id",
1360
+ "entityType": "columns",
1361
+ "table": "mcp_proxy_tokens"
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "notNull": true,
1366
+ "autoincrement": false,
1367
+ "default": null,
1368
+ "generated": null,
1369
+ "name": "hash",
1370
+ "entityType": "columns",
1371
+ "table": "mcp_proxy_tokens"
1372
+ },
1373
+ {
1374
+ "type": "text",
1375
+ "notNull": true,
1376
+ "autoincrement": false,
1377
+ "default": null,
1378
+ "generated": null,
1379
+ "name": "session_id",
1380
+ "entityType": "columns",
1381
+ "table": "mcp_proxy_tokens"
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "notNull": true,
1386
+ "autoincrement": false,
1387
+ "default": null,
1388
+ "generated": null,
1389
+ "name": "servers",
1390
+ "entityType": "columns",
1391
+ "table": "mcp_proxy_tokens"
1392
+ },
1393
+ {
1394
+ "type": "integer",
1395
+ "notNull": true,
1396
+ "autoincrement": false,
1397
+ "default": null,
1398
+ "generated": null,
1399
+ "name": "created_at",
1400
+ "entityType": "columns",
1401
+ "table": "mcp_proxy_tokens"
1402
+ },
1403
+ {
1404
+ "type": "integer",
1405
+ "notNull": true,
1406
+ "autoincrement": false,
1407
+ "default": null,
1408
+ "generated": null,
1409
+ "name": "expires_at",
1410
+ "entityType": "columns",
1411
+ "table": "mcp_proxy_tokens"
1412
+ },
1413
+ {
1414
+ "type": "integer",
1415
+ "notNull": false,
1416
+ "autoincrement": false,
1417
+ "default": null,
1418
+ "generated": null,
1419
+ "name": "last_used_at",
1420
+ "entityType": "columns",
1421
+ "table": "mcp_proxy_tokens"
1422
+ },
1423
+ {
1424
+ "type": "integer",
1425
+ "notNull": false,
1426
+ "autoincrement": false,
1427
+ "default": null,
1428
+ "generated": null,
1429
+ "name": "revoked_at",
1430
+ "entityType": "columns",
1431
+ "table": "mcp_proxy_tokens"
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "notNull": false,
1436
+ "autoincrement": false,
1437
+ "default": null,
1438
+ "generated": null,
1439
+ "name": "id",
1440
+ "entityType": "columns",
1441
+ "table": "mcp_servers"
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "notNull": true,
1446
+ "autoincrement": false,
1447
+ "default": null,
1448
+ "generated": null,
1449
+ "name": "name",
1450
+ "entityType": "columns",
1451
+ "table": "mcp_servers"
1452
+ },
1453
+ {
1454
+ "type": "text",
1455
+ "notNull": true,
1456
+ "autoincrement": false,
1457
+ "default": null,
1458
+ "generated": null,
1459
+ "name": "url",
1460
+ "entityType": "columns",
1461
+ "table": "mcp_servers"
1462
+ },
1463
+ {
1464
+ "type": "text",
1465
+ "notNull": true,
1466
+ "autoincrement": false,
1467
+ "default": "'http'",
1468
+ "generated": null,
1469
+ "name": "transport",
1470
+ "entityType": "columns",
1471
+ "table": "mcp_servers"
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "notNull": false,
1476
+ "autoincrement": false,
1477
+ "default": null,
1478
+ "generated": null,
1479
+ "name": "host_id",
1480
+ "entityType": "columns",
1481
+ "table": "mcp_servers"
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "notNull": false,
1486
+ "autoincrement": false,
1487
+ "default": null,
1488
+ "generated": null,
1489
+ "name": "command",
1490
+ "entityType": "columns",
1491
+ "table": "mcp_servers"
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "notNull": true,
1496
+ "autoincrement": false,
1497
+ "default": "'[]'",
1498
+ "generated": null,
1499
+ "name": "args",
1500
+ "entityType": "columns",
1501
+ "table": "mcp_servers"
1502
+ },
1503
+ {
1504
+ "type": "text",
1505
+ "notNull": true,
1506
+ "autoincrement": false,
1507
+ "default": "'[]'",
1508
+ "generated": null,
1509
+ "name": "env",
1510
+ "entityType": "columns",
1511
+ "table": "mcp_servers"
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "notNull": false,
1516
+ "autoincrement": false,
1517
+ "default": null,
1518
+ "generated": null,
1519
+ "name": "cwd",
1520
+ "entityType": "columns",
1521
+ "table": "mcp_servers"
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "notNull": false,
1526
+ "autoincrement": false,
1527
+ "default": null,
1528
+ "generated": null,
1529
+ "name": "vault_item_id",
1530
+ "entityType": "columns",
1531
+ "table": "mcp_servers"
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "notNull": true,
1536
+ "autoincrement": false,
1537
+ "default": "'Authorization'",
1538
+ "generated": null,
1539
+ "name": "header_name",
1540
+ "entityType": "columns",
1541
+ "table": "mcp_servers"
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "notNull": true,
1546
+ "autoincrement": false,
1547
+ "default": "'Bearer '",
1548
+ "generated": null,
1549
+ "name": "header_prefix",
1550
+ "entityType": "columns",
1551
+ "table": "mcp_servers"
1552
+ },
1553
+ {
1554
+ "type": "text",
1555
+ "notNull": false,
1556
+ "autoincrement": false,
1557
+ "default": null,
1558
+ "generated": null,
1559
+ "name": "allow_tools",
1560
+ "entityType": "columns",
1561
+ "table": "mcp_servers"
1562
+ },
1563
+ {
1564
+ "type": "integer",
1565
+ "notNull": true,
1566
+ "autoincrement": false,
1567
+ "default": "false",
1568
+ "generated": null,
1569
+ "name": "read_only",
1570
+ "entityType": "columns",
1571
+ "table": "mcp_servers"
1572
+ },
1573
+ {
1574
+ "type": "text",
1575
+ "notNull": true,
1576
+ "autoincrement": false,
1577
+ "default": "'[]'",
1578
+ "generated": null,
1579
+ "name": "read_only_tools",
1580
+ "entityType": "columns",
1581
+ "table": "mcp_servers"
1582
+ },
1583
+ {
1584
+ "type": "integer",
1585
+ "notNull": true,
1586
+ "autoincrement": false,
1587
+ "default": "true",
1588
+ "generated": null,
1589
+ "name": "enabled",
1590
+ "entityType": "columns",
1591
+ "table": "mcp_servers"
1592
+ },
1593
+ {
1594
+ "type": "text",
1595
+ "notNull": false,
1596
+ "autoincrement": false,
1597
+ "default": null,
1598
+ "generated": null,
1599
+ "name": "scope_repos",
1600
+ "entityType": "columns",
1601
+ "table": "mcp_servers"
1602
+ },
1603
+ {
1604
+ "type": "text",
1605
+ "notNull": false,
1606
+ "autoincrement": false,
1607
+ "default": null,
1608
+ "generated": null,
1609
+ "name": "scope_hosts",
1610
+ "entityType": "columns",
1611
+ "table": "mcp_servers"
1612
+ },
1613
+ {
1614
+ "type": "integer",
1615
+ "notNull": true,
1616
+ "autoincrement": false,
1617
+ "default": null,
1618
+ "generated": null,
1619
+ "name": "created_at",
1620
+ "entityType": "columns",
1621
+ "table": "mcp_servers"
1622
+ },
1623
+ {
1624
+ "type": "integer",
1625
+ "notNull": true,
1626
+ "autoincrement": false,
1627
+ "default": null,
1628
+ "generated": null,
1629
+ "name": "updated_at",
1630
+ "entityType": "columns",
1631
+ "table": "mcp_servers"
1632
+ },
1633
+ {
1634
+ "type": "text",
1635
+ "notNull": false,
1636
+ "autoincrement": false,
1637
+ "default": null,
1638
+ "generated": null,
1639
+ "name": "id",
1640
+ "entityType": "columns",
1641
+ "table": "panel_states"
1642
+ },
1643
+ {
1644
+ "type": "text",
1645
+ "notNull": false,
1646
+ "autoincrement": false,
1647
+ "default": null,
1648
+ "generated": null,
1649
+ "name": "worktree_id",
1650
+ "entityType": "columns",
1651
+ "table": "panel_states"
1652
+ },
1653
+ {
1654
+ "type": "text",
1655
+ "notNull": true,
1656
+ "autoincrement": false,
1657
+ "default": null,
1658
+ "generated": null,
1659
+ "name": "panel_type",
1660
+ "entityType": "columns",
1661
+ "table": "panel_states"
1662
+ },
1663
+ {
1664
+ "type": "text",
1665
+ "notNull": true,
1666
+ "autoincrement": false,
1667
+ "default": null,
1668
+ "generated": null,
1669
+ "name": "state",
1670
+ "entityType": "columns",
1671
+ "table": "panel_states"
1672
+ },
1673
+ {
1674
+ "type": "text",
1675
+ "notNull": false,
1676
+ "autoincrement": false,
1677
+ "default": null,
1678
+ "generated": null,
1679
+ "name": "labels",
1680
+ "entityType": "columns",
1681
+ "table": "panel_states"
1682
+ },
1683
+ {
1684
+ "type": "integer",
1685
+ "notNull": true,
1686
+ "autoincrement": false,
1687
+ "default": null,
1688
+ "generated": null,
1689
+ "name": "created_at",
1690
+ "entityType": "columns",
1691
+ "table": "panel_states"
1692
+ },
1693
+ {
1694
+ "type": "integer",
1695
+ "notNull": true,
1696
+ "autoincrement": false,
1697
+ "default": null,
1698
+ "generated": null,
1699
+ "name": "updated_at",
1700
+ "entityType": "columns",
1701
+ "table": "panel_states"
1702
+ },
1703
+ {
1704
+ "type": "text",
1705
+ "notNull": true,
1706
+ "autoincrement": false,
1707
+ "default": null,
1708
+ "generated": null,
1709
+ "name": "host_id",
1710
+ "entityType": "columns",
1711
+ "table": "pending_removals"
1712
+ },
1713
+ {
1714
+ "type": "text",
1715
+ "notNull": true,
1716
+ "autoincrement": false,
1717
+ "default": null,
1718
+ "generated": null,
1719
+ "name": "worktree_path",
1720
+ "entityType": "columns",
1721
+ "table": "pending_removals"
1722
+ },
1723
+ {
1724
+ "type": "text",
1725
+ "notNull": true,
1726
+ "autoincrement": false,
1727
+ "default": null,
1728
+ "generated": null,
1729
+ "name": "repo_path",
1730
+ "entityType": "columns",
1731
+ "table": "pending_removals"
1732
+ },
1733
+ {
1734
+ "type": "text",
1735
+ "notNull": false,
1736
+ "autoincrement": false,
1737
+ "default": null,
1738
+ "generated": null,
1739
+ "name": "branch",
1740
+ "entityType": "columns",
1741
+ "table": "pending_removals"
1742
+ },
1743
+ {
1744
+ "type": "integer",
1745
+ "notNull": true,
1746
+ "autoincrement": false,
1747
+ "default": null,
1748
+ "generated": null,
1749
+ "name": "created_at",
1750
+ "entityType": "columns",
1751
+ "table": "pending_removals"
1752
+ },
1753
+ {
1754
+ "type": "text",
1755
+ "notNull": false,
1756
+ "autoincrement": false,
1757
+ "default": null,
1758
+ "generated": null,
1759
+ "name": "sha",
1760
+ "entityType": "columns",
1761
+ "table": "pushed_shas"
1762
+ },
1763
+ {
1764
+ "type": "text",
1765
+ "notNull": true,
1766
+ "autoincrement": false,
1767
+ "default": null,
1768
+ "generated": null,
1769
+ "name": "worktree_id",
1770
+ "entityType": "columns",
1771
+ "table": "pushed_shas"
1772
+ },
1773
+ {
1774
+ "type": "integer",
1775
+ "notNull": true,
1776
+ "autoincrement": false,
1777
+ "default": null,
1778
+ "generated": null,
1779
+ "name": "pushed_at",
1780
+ "entityType": "columns",
1781
+ "table": "pushed_shas"
1782
+ },
1783
+ {
1784
+ "type": "text",
1785
+ "notNull": false,
1786
+ "autoincrement": false,
1787
+ "default": null,
1788
+ "generated": null,
1789
+ "name": "repo_name",
1790
+ "entityType": "columns",
1791
+ "table": "repo_browser_profiles"
1792
+ },
1793
+ {
1794
+ "type": "text",
1795
+ "notNull": true,
1796
+ "autoincrement": false,
1797
+ "default": null,
1798
+ "generated": null,
1799
+ "name": "profile_id",
1800
+ "entityType": "columns",
1801
+ "table": "repo_browser_profiles"
1802
+ },
1803
+ {
1804
+ "type": "integer",
1805
+ "notNull": true,
1806
+ "autoincrement": false,
1807
+ "default": null,
1808
+ "generated": null,
1809
+ "name": "updated_at",
1810
+ "entityType": "columns",
1811
+ "table": "repo_browser_profiles"
1812
+ },
1813
+ {
1814
+ "type": "text",
1815
+ "notNull": true,
1816
+ "autoincrement": false,
1817
+ "default": null,
1818
+ "generated": null,
1819
+ "name": "repo_name",
1820
+ "entityType": "columns",
1821
+ "table": "repo_hosts"
1822
+ },
1823
+ {
1824
+ "type": "text",
1825
+ "notNull": true,
1826
+ "autoincrement": false,
1827
+ "default": null,
1828
+ "generated": null,
1829
+ "name": "host_id",
1830
+ "entityType": "columns",
1831
+ "table": "repo_hosts"
1832
+ },
1833
+ {
1834
+ "type": "text",
1835
+ "notNull": true,
1836
+ "autoincrement": false,
1837
+ "default": null,
1838
+ "generated": null,
1839
+ "name": "path",
1840
+ "entityType": "columns",
1841
+ "table": "repo_hosts"
1842
+ },
1843
+ {
1844
+ "type": "text",
1845
+ "notNull": false,
1846
+ "autoincrement": false,
1847
+ "default": null,
1848
+ "generated": null,
1849
+ "name": "name",
1850
+ "entityType": "columns",
1851
+ "table": "repos"
1852
+ },
1853
+ {
1854
+ "type": "text",
1855
+ "notNull": true,
1856
+ "autoincrement": false,
1857
+ "default": null,
1858
+ "generated": null,
1859
+ "name": "path",
1860
+ "entityType": "columns",
1861
+ "table": "repos"
1862
+ },
1863
+ {
1864
+ "type": "text",
1865
+ "notNull": false,
1866
+ "autoincrement": false,
1867
+ "default": null,
1868
+ "generated": null,
1869
+ "name": "remote_url",
1870
+ "entityType": "columns",
1871
+ "table": "repos"
1872
+ },
1873
+ {
1874
+ "type": "text",
1875
+ "notNull": false,
1876
+ "autoincrement": false,
1877
+ "default": null,
1878
+ "generated": null,
1879
+ "name": "remote_key",
1880
+ "entityType": "columns",
1881
+ "table": "repos"
1882
+ },
1883
+ {
1884
+ "type": "text",
1885
+ "notNull": true,
1886
+ "autoincrement": false,
1887
+ "default": null,
1888
+ "generated": null,
1889
+ "name": "default_branch",
1890
+ "entityType": "columns",
1891
+ "table": "repos"
1892
+ },
1893
+ {
1894
+ "type": "text",
1895
+ "notNull": false,
1896
+ "autoincrement": false,
1897
+ "default": null,
1898
+ "generated": null,
1899
+ "name": "label",
1900
+ "entityType": "columns",
1901
+ "table": "repos"
1902
+ },
1903
+ {
1904
+ "type": "integer",
1905
+ "notNull": true,
1906
+ "autoincrement": false,
1907
+ "default": null,
1908
+ "generated": null,
1909
+ "name": "sort_order",
1910
+ "entityType": "columns",
1911
+ "table": "repos"
1912
+ },
1913
+ {
1914
+ "type": "text",
1915
+ "notNull": true,
1916
+ "autoincrement": false,
1917
+ "default": "'git'",
1918
+ "generated": null,
1919
+ "name": "kind",
1920
+ "entityType": "columns",
1921
+ "table": "repos"
1922
+ },
1923
+ {
1924
+ "type": "integer",
1925
+ "notNull": true,
1926
+ "autoincrement": false,
1927
+ "default": "true",
1928
+ "generated": null,
1929
+ "name": "has_origin",
1930
+ "entityType": "columns",
1931
+ "table": "repos"
1932
+ },
1933
+ {
1934
+ "type": "integer",
1935
+ "notNull": true,
1936
+ "autoincrement": false,
1937
+ "default": "false",
1938
+ "generated": null,
1939
+ "name": "meta",
1940
+ "entityType": "columns",
1941
+ "table": "repos"
1942
+ },
1943
+ {
1944
+ "type": "text",
1945
+ "notNull": false,
1946
+ "autoincrement": false,
1947
+ "default": null,
1948
+ "generated": null,
1949
+ "name": "allowed_host_ids",
1950
+ "entityType": "columns",
1951
+ "table": "repos"
1952
+ },
1953
+ {
1954
+ "type": "text",
1955
+ "notNull": false,
1956
+ "autoincrement": false,
1957
+ "default": null,
1958
+ "generated": null,
1959
+ "name": "primary_host_id",
1960
+ "entityType": "columns",
1961
+ "table": "repos"
1962
+ },
1963
+ {
1964
+ "type": "integer",
1965
+ "notNull": false,
1966
+ "autoincrement": false,
1967
+ "default": null,
1968
+ "generated": null,
1969
+ "name": "checkpoints_enabled",
1970
+ "entityType": "columns",
1971
+ "table": "repos"
1972
+ },
1973
+ {
1974
+ "type": "integer",
1975
+ "notNull": false,
1976
+ "autoincrement": false,
1977
+ "default": null,
1978
+ "generated": null,
1979
+ "name": "auto_continue",
1980
+ "entityType": "columns",
1981
+ "table": "repos"
1982
+ },
1983
+ {
1984
+ "type": "text",
1985
+ "notNull": false,
1986
+ "autoincrement": false,
1987
+ "default": null,
1988
+ "generated": null,
1989
+ "name": "id",
1990
+ "entityType": "columns",
1991
+ "table": "runner_machines"
1992
+ },
1993
+ {
1994
+ "type": "text",
1995
+ "notNull": true,
1996
+ "autoincrement": false,
1997
+ "default": null,
1998
+ "generated": null,
1999
+ "name": "runner_id",
2000
+ "entityType": "columns",
2001
+ "table": "runner_machines"
2002
+ },
2003
+ {
2004
+ "type": "text",
2005
+ "notNull": false,
2006
+ "autoincrement": false,
2007
+ "default": null,
2008
+ "generated": null,
2009
+ "name": "request_id",
2010
+ "entityType": "columns",
2011
+ "table": "runner_machines"
2012
+ },
2013
+ {
2014
+ "type": "text",
2015
+ "notNull": true,
2016
+ "autoincrement": false,
2017
+ "default": null,
2018
+ "generated": null,
2019
+ "name": "worker_id",
2020
+ "entityType": "columns",
2021
+ "table": "runner_machines"
2022
+ },
2023
+ {
2024
+ "type": "text",
2025
+ "notNull": false,
2026
+ "autoincrement": false,
2027
+ "default": null,
2028
+ "generated": null,
2029
+ "name": "handle",
2030
+ "entityType": "columns",
2031
+ "table": "runner_machines"
2032
+ },
2033
+ {
2034
+ "type": "text",
2035
+ "notNull": true,
2036
+ "autoincrement": false,
2037
+ "default": "'spawning'",
2038
+ "generated": null,
2039
+ "name": "state",
2040
+ "entityType": "columns",
2041
+ "table": "runner_machines"
2042
+ },
2043
+ {
2044
+ "type": "integer",
2045
+ "notNull": true,
2046
+ "autoincrement": false,
2047
+ "default": null,
2048
+ "generated": null,
2049
+ "name": "spawned_at",
2050
+ "entityType": "columns",
2051
+ "table": "runner_machines"
2052
+ },
2053
+ {
2054
+ "type": "integer",
2055
+ "notNull": false,
2056
+ "autoincrement": false,
2057
+ "default": null,
2058
+ "generated": null,
2059
+ "name": "last_seen_at",
2060
+ "entityType": "columns",
2061
+ "table": "runner_machines"
2062
+ },
2063
+ {
2064
+ "type": "integer",
2065
+ "notNull": false,
2066
+ "autoincrement": false,
2067
+ "default": null,
2068
+ "generated": null,
2069
+ "name": "stopping_since",
2070
+ "entityType": "columns",
2071
+ "table": "runner_machines"
2072
+ },
2073
+ {
2074
+ "type": "integer",
2075
+ "notNull": false,
2076
+ "autoincrement": false,
2077
+ "default": null,
2078
+ "generated": null,
2079
+ "name": "destroyed_at",
2080
+ "entityType": "columns",
2081
+ "table": "runner_machines"
2082
+ },
2083
+ {
2084
+ "type": "integer",
2085
+ "notNull": true,
2086
+ "autoincrement": false,
2087
+ "default": "0",
2088
+ "generated": null,
2089
+ "name": "destroy_attempts",
2090
+ "entityType": "columns",
2091
+ "table": "runner_machines"
2092
+ },
2093
+ {
2094
+ "type": "text",
2095
+ "notNull": false,
2096
+ "autoincrement": false,
2097
+ "default": null,
2098
+ "generated": null,
2099
+ "name": "error",
2100
+ "entityType": "columns",
2101
+ "table": "runner_machines"
2102
+ },
2103
+ {
2104
+ "type": "text",
2105
+ "notNull": false,
2106
+ "autoincrement": false,
2107
+ "default": null,
2108
+ "generated": null,
2109
+ "name": "id",
2110
+ "entityType": "columns",
2111
+ "table": "runner_snapshots"
2112
+ },
2113
+ {
2114
+ "type": "text",
2115
+ "notNull": true,
2116
+ "autoincrement": false,
2117
+ "default": null,
2118
+ "generated": null,
2119
+ "name": "runner_id",
2120
+ "entityType": "columns",
2121
+ "table": "runner_snapshots"
2122
+ },
2123
+ {
2124
+ "type": "text",
2125
+ "notNull": true,
2126
+ "autoincrement": false,
2127
+ "default": null,
2128
+ "generated": null,
2129
+ "name": "host_id",
2130
+ "entityType": "columns",
2131
+ "table": "runner_snapshots"
2132
+ },
2133
+ {
2134
+ "type": "text",
2135
+ "notNull": false,
2136
+ "autoincrement": false,
2137
+ "default": null,
2138
+ "generated": null,
2139
+ "name": "machine_id",
2140
+ "entityType": "columns",
2141
+ "table": "runner_snapshots"
2142
+ },
2143
+ {
2144
+ "type": "text",
2145
+ "notNull": true,
2146
+ "autoincrement": false,
2147
+ "default": "'[]'",
2148
+ "generated": null,
2149
+ "name": "worktree_ids",
2150
+ "entityType": "columns",
2151
+ "table": "runner_snapshots"
2152
+ },
2153
+ {
2154
+ "type": "text",
2155
+ "notNull": true,
2156
+ "autoincrement": false,
2157
+ "default": null,
2158
+ "generated": null,
2159
+ "name": "snapshot_id",
2160
+ "entityType": "columns",
2161
+ "table": "runner_snapshots"
2162
+ },
2163
+ {
2164
+ "type": "integer",
2165
+ "notNull": false,
2166
+ "autoincrement": false,
2167
+ "default": null,
2168
+ "generated": null,
2169
+ "name": "size_bytes",
2170
+ "entityType": "columns",
2171
+ "table": "runner_snapshots"
2172
+ },
2173
+ {
2174
+ "type": "integer",
2175
+ "notNull": false,
2176
+ "autoincrement": false,
2177
+ "default": null,
2178
+ "generated": null,
2179
+ "name": "restored_at",
2180
+ "entityType": "columns",
2181
+ "table": "runner_snapshots"
2182
+ },
2183
+ {
2184
+ "type": "integer",
2185
+ "notNull": true,
2186
+ "autoincrement": false,
2187
+ "default": null,
2188
+ "generated": null,
2189
+ "name": "created_at",
2190
+ "entityType": "columns",
2191
+ "table": "runner_snapshots"
2192
+ },
2193
+ {
2194
+ "type": "integer",
2195
+ "notNull": true,
2196
+ "autoincrement": false,
2197
+ "default": null,
2198
+ "generated": null,
2199
+ "name": "expires_at",
2200
+ "entityType": "columns",
2201
+ "table": "runner_snapshots"
2202
+ },
2203
+ {
2204
+ "type": "text",
2205
+ "notNull": false,
2206
+ "autoincrement": false,
2207
+ "default": null,
2208
+ "generated": null,
2209
+ "name": "subscription_id",
2210
+ "entityType": "columns",
2211
+ "table": "subscription_cursors"
2212
+ },
2213
+ {
2214
+ "type": "text",
2215
+ "notNull": true,
2216
+ "autoincrement": false,
2217
+ "default": null,
2218
+ "generated": null,
2219
+ "name": "cursor",
2220
+ "entityType": "columns",
2221
+ "table": "subscription_cursors"
2222
+ },
2223
+ {
2224
+ "type": "integer",
2225
+ "notNull": true,
2226
+ "autoincrement": false,
2227
+ "default": null,
2228
+ "generated": null,
2229
+ "name": "updated_at",
2230
+ "entityType": "columns",
2231
+ "table": "subscription_cursors"
2232
+ },
2233
+ {
2234
+ "type": "text",
2235
+ "notNull": false,
2236
+ "autoincrement": false,
2237
+ "default": null,
2238
+ "generated": null,
2239
+ "name": "event_id",
2240
+ "entityType": "columns",
2241
+ "table": "subscription_events"
2242
+ },
2243
+ {
2244
+ "type": "text",
2245
+ "notNull": true,
2246
+ "autoincrement": false,
2247
+ "default": null,
2248
+ "generated": null,
2249
+ "name": "subscription_id",
2250
+ "entityType": "columns",
2251
+ "table": "subscription_events"
2252
+ },
2253
+ {
2254
+ "type": "integer",
2255
+ "notNull": true,
2256
+ "autoincrement": false,
2257
+ "default": null,
2258
+ "generated": null,
2259
+ "name": "received_at",
2260
+ "entityType": "columns",
2261
+ "table": "subscription_events"
2262
+ },
2263
+ {
2264
+ "type": "integer",
2265
+ "notNull": false,
2266
+ "autoincrement": false,
2267
+ "default": null,
2268
+ "generated": null,
2269
+ "name": "delivered_at",
2270
+ "entityType": "columns",
2271
+ "table": "subscription_events"
2272
+ },
2273
+ {
2274
+ "type": "text",
2275
+ "notNull": true,
2276
+ "autoincrement": false,
2277
+ "default": null,
2278
+ "generated": null,
2279
+ "name": "summary",
2280
+ "entityType": "columns",
2281
+ "table": "subscription_events"
2282
+ },
2283
+ {
2284
+ "type": "text",
2285
+ "notNull": false,
2286
+ "autoincrement": false,
2287
+ "default": null,
2288
+ "generated": null,
2289
+ "name": "dropped_reason",
2290
+ "entityType": "columns",
2291
+ "table": "subscription_events"
2292
+ },
2293
+ {
2294
+ "type": "text",
2295
+ "notNull": false,
2296
+ "autoincrement": false,
2297
+ "default": null,
2298
+ "generated": null,
2299
+ "name": "id",
2300
+ "entityType": "columns",
2301
+ "table": "subscriptions"
2302
+ },
2303
+ {
2304
+ "type": "text",
2305
+ "notNull": true,
2306
+ "autoincrement": false,
2307
+ "default": null,
2308
+ "generated": null,
2309
+ "name": "chat_id",
2310
+ "entityType": "columns",
2311
+ "table": "subscriptions"
2312
+ },
2313
+ {
2314
+ "type": "text",
2315
+ "notNull": true,
2316
+ "autoincrement": false,
2317
+ "default": null,
2318
+ "generated": null,
2319
+ "name": "worktree_id",
2320
+ "entityType": "columns",
2321
+ "table": "subscriptions"
2322
+ },
2323
+ {
2324
+ "type": "text",
2325
+ "notNull": true,
2326
+ "autoincrement": false,
2327
+ "default": null,
2328
+ "generated": null,
2329
+ "name": "source",
2330
+ "entityType": "columns",
2331
+ "table": "subscriptions"
2332
+ },
2333
+ {
2334
+ "type": "text",
2335
+ "notNull": true,
2336
+ "autoincrement": false,
2337
+ "default": null,
2338
+ "generated": null,
2339
+ "name": "kinds",
2340
+ "entityType": "columns",
2341
+ "table": "subscriptions"
2342
+ },
2343
+ {
2344
+ "type": "text",
2345
+ "notNull": true,
2346
+ "autoincrement": false,
2347
+ "default": null,
2348
+ "generated": null,
2349
+ "name": "filter_key",
2350
+ "entityType": "columns",
2351
+ "table": "subscriptions"
2352
+ },
2353
+ {
2354
+ "type": "integer",
2355
+ "notNull": true,
2356
+ "autoincrement": false,
2357
+ "default": null,
2358
+ "generated": null,
2359
+ "name": "coalesce_seconds",
2360
+ "entityType": "columns",
2361
+ "table": "subscriptions"
2362
+ },
2363
+ {
2364
+ "type": "integer",
2365
+ "notNull": true,
2366
+ "autoincrement": false,
2367
+ "default": null,
2368
+ "generated": null,
2369
+ "name": "max_wakeups",
2370
+ "entityType": "columns",
2371
+ "table": "subscriptions"
2372
+ },
2373
+ {
2374
+ "type": "integer",
2375
+ "notNull": true,
2376
+ "autoincrement": false,
2377
+ "default": null,
2378
+ "generated": null,
2379
+ "name": "wakeups",
2380
+ "entityType": "columns",
2381
+ "table": "subscriptions"
2382
+ },
2383
+ {
2384
+ "type": "integer",
2385
+ "notNull": true,
2386
+ "autoincrement": false,
2387
+ "default": null,
2388
+ "generated": null,
2389
+ "name": "expires_at",
2390
+ "entityType": "columns",
2391
+ "table": "subscriptions"
2392
+ },
2393
+ {
2394
+ "type": "text",
2395
+ "notNull": true,
2396
+ "autoincrement": false,
2397
+ "default": null,
2398
+ "generated": null,
2399
+ "name": "created_by",
2400
+ "entityType": "columns",
2401
+ "table": "subscriptions"
2402
+ },
2403
+ {
2404
+ "type": "integer",
2405
+ "notNull": true,
2406
+ "autoincrement": false,
2407
+ "default": null,
2408
+ "generated": null,
2409
+ "name": "created_at",
2410
+ "entityType": "columns",
2411
+ "table": "subscriptions"
2412
+ },
2413
+ {
2414
+ "type": "text",
2415
+ "notNull": true,
2416
+ "autoincrement": false,
2417
+ "default": "'{}'",
2418
+ "generated": null,
2419
+ "name": "config",
2420
+ "entityType": "columns",
2421
+ "table": "subscriptions"
2422
+ },
2423
+ {
2424
+ "type": "text",
2425
+ "notNull": false,
2426
+ "autoincrement": false,
2427
+ "default": null,
2428
+ "generated": null,
2429
+ "name": "id",
2430
+ "entityType": "columns",
2431
+ "table": "tasks"
2432
+ },
2433
+ {
2434
+ "type": "text",
2435
+ "notNull": true,
2436
+ "autoincrement": false,
2437
+ "default": null,
2438
+ "generated": null,
2439
+ "name": "worktree_id",
2440
+ "entityType": "columns",
2441
+ "table": "tasks"
2442
+ },
2443
+ {
2444
+ "type": "text",
2445
+ "notNull": true,
2446
+ "autoincrement": false,
2447
+ "default": null,
2448
+ "generated": null,
2449
+ "name": "repo",
2450
+ "entityType": "columns",
2451
+ "table": "tasks"
2452
+ },
2453
+ {
2454
+ "type": "text",
2455
+ "notNull": true,
2456
+ "autoincrement": false,
2457
+ "default": null,
2458
+ "generated": null,
2459
+ "name": "branch",
2460
+ "entityType": "columns",
2461
+ "table": "tasks"
2462
+ },
2463
+ {
2464
+ "type": "text",
2465
+ "notNull": true,
2466
+ "autoincrement": false,
2467
+ "default": null,
2468
+ "generated": null,
2469
+ "name": "prompt",
2470
+ "entityType": "columns",
2471
+ "table": "tasks"
2472
+ },
2473
+ {
2474
+ "type": "text",
2475
+ "notNull": true,
2476
+ "autoincrement": false,
2477
+ "default": null,
2478
+ "generated": null,
2479
+ "name": "status",
2480
+ "entityType": "columns",
2481
+ "table": "tasks"
2482
+ },
2483
+ {
2484
+ "type": "text",
2485
+ "notNull": false,
2486
+ "autoincrement": false,
2487
+ "default": null,
2488
+ "generated": null,
2489
+ "name": "session_id",
2490
+ "entityType": "columns",
2491
+ "table": "tasks"
2492
+ },
2493
+ {
2494
+ "type": "integer",
2495
+ "notNull": true,
2496
+ "autoincrement": false,
2497
+ "default": null,
2498
+ "generated": null,
2499
+ "name": "started_at",
2500
+ "entityType": "columns",
2501
+ "table": "tasks"
2502
+ },
2503
+ {
2504
+ "type": "integer",
2505
+ "notNull": false,
2506
+ "autoincrement": false,
2507
+ "default": null,
2508
+ "generated": null,
2509
+ "name": "completed_at",
2510
+ "entityType": "columns",
2511
+ "table": "tasks"
2512
+ },
2513
+ {
2514
+ "type": "text",
2515
+ "notNull": false,
2516
+ "autoincrement": false,
2517
+ "default": null,
2518
+ "generated": null,
2519
+ "name": "mode",
2520
+ "entityType": "columns",
2521
+ "table": "tasks"
2522
+ },
2523
+ {
2524
+ "type": "text",
2525
+ "notNull": false,
2526
+ "autoincrement": false,
2527
+ "default": null,
2528
+ "generated": null,
2529
+ "name": "model",
2530
+ "entityType": "columns",
2531
+ "table": "tasks"
2532
+ },
2533
+ {
2534
+ "type": "text",
2535
+ "notNull": false,
2536
+ "autoincrement": false,
2537
+ "default": null,
2538
+ "generated": null,
2539
+ "name": "coding_agent_id",
2540
+ "entityType": "columns",
2541
+ "table": "tasks"
2542
+ },
2543
+ {
2544
+ "type": "text",
2545
+ "notNull": false,
2546
+ "autoincrement": false,
2547
+ "default": null,
2548
+ "generated": null,
2549
+ "name": "chat_id",
2550
+ "entityType": "columns",
2551
+ "table": "tasks"
2552
+ },
2553
+ {
2554
+ "type": "text",
2555
+ "notNull": false,
2556
+ "autoincrement": false,
2557
+ "default": null,
2558
+ "generated": null,
2559
+ "name": "id",
2560
+ "entityType": "columns",
2561
+ "table": "tokens"
2562
+ },
2563
+ {
2564
+ "type": "text",
2565
+ "notNull": true,
2566
+ "autoincrement": false,
2567
+ "default": null,
2568
+ "generated": null,
2569
+ "name": "kind",
2570
+ "entityType": "columns",
2571
+ "table": "tokens"
2572
+ },
2573
+ {
2574
+ "type": "text",
2575
+ "notNull": true,
2576
+ "autoincrement": false,
2577
+ "default": null,
2578
+ "generated": null,
2579
+ "name": "hash",
2580
+ "entityType": "columns",
2581
+ "table": "tokens"
2582
+ },
2583
+ {
2584
+ "type": "text",
2585
+ "notNull": false,
2586
+ "autoincrement": false,
2587
+ "default": null,
2588
+ "generated": null,
2589
+ "name": "host_id",
2590
+ "entityType": "columns",
2591
+ "table": "tokens"
2592
+ },
2593
+ {
2594
+ "type": "text",
2595
+ "notNull": true,
2596
+ "autoincrement": false,
2597
+ "default": "''",
2598
+ "generated": null,
2599
+ "name": "label",
2600
+ "entityType": "columns",
2601
+ "table": "tokens"
2602
+ },
2603
+ {
2604
+ "type": "integer",
2605
+ "notNull": true,
2606
+ "autoincrement": false,
2607
+ "default": "false",
2608
+ "generated": null,
2609
+ "name": "admin",
2610
+ "entityType": "columns",
2611
+ "table": "tokens"
2612
+ },
2613
+ {
2614
+ "type": "integer",
2615
+ "notNull": true,
2616
+ "autoincrement": false,
2617
+ "default": null,
2618
+ "generated": null,
2619
+ "name": "created_at",
2620
+ "entityType": "columns",
2621
+ "table": "tokens"
2622
+ },
2623
+ {
2624
+ "type": "integer",
2625
+ "notNull": false,
2626
+ "autoincrement": false,
2627
+ "default": null,
2628
+ "generated": null,
2629
+ "name": "expires_at",
2630
+ "entityType": "columns",
2631
+ "table": "tokens"
2632
+ },
2633
+ {
2634
+ "type": "integer",
2635
+ "notNull": false,
2636
+ "autoincrement": false,
2637
+ "default": null,
2638
+ "generated": null,
2639
+ "name": "last_used_at",
2640
+ "entityType": "columns",
2641
+ "table": "tokens"
2642
+ },
2643
+ {
2644
+ "type": "integer",
2645
+ "notNull": false,
2646
+ "autoincrement": false,
2647
+ "default": null,
2648
+ "generated": null,
2649
+ "name": "revoked_at",
2650
+ "entityType": "columns",
2651
+ "table": "tokens"
2652
+ },
2653
+ {
2654
+ "type": "integer",
2655
+ "notNull": false,
2656
+ "autoincrement": true,
2657
+ "default": null,
2658
+ "generated": null,
2659
+ "name": "id",
2660
+ "entityType": "columns",
2661
+ "table": "usage_events"
2662
+ },
2663
+ {
2664
+ "type": "text",
2665
+ "notNull": true,
2666
+ "autoincrement": false,
2667
+ "default": null,
2668
+ "generated": null,
2669
+ "name": "task_id",
2670
+ "entityType": "columns",
2671
+ "table": "usage_events"
2672
+ },
2673
+ {
2674
+ "type": "text",
2675
+ "notNull": false,
2676
+ "autoincrement": false,
2677
+ "default": null,
2678
+ "generated": null,
2679
+ "name": "chat_id",
2680
+ "entityType": "columns",
2681
+ "table": "usage_events"
2682
+ },
2683
+ {
2684
+ "type": "text",
2685
+ "notNull": true,
2686
+ "autoincrement": false,
2687
+ "default": null,
2688
+ "generated": null,
2689
+ "name": "worktree_id",
2690
+ "entityType": "columns",
2691
+ "table": "usage_events"
2692
+ },
2693
+ {
2694
+ "type": "text",
2695
+ "notNull": true,
2696
+ "autoincrement": false,
2697
+ "default": null,
2698
+ "generated": null,
2699
+ "name": "repo",
2700
+ "entityType": "columns",
2701
+ "table": "usage_events"
2702
+ },
2703
+ {
2704
+ "type": "text",
2705
+ "notNull": false,
2706
+ "autoincrement": false,
2707
+ "default": null,
2708
+ "generated": null,
2709
+ "name": "session_id",
2710
+ "entityType": "columns",
2711
+ "table": "usage_events"
2712
+ },
2713
+ {
2714
+ "type": "text",
2715
+ "notNull": false,
2716
+ "autoincrement": false,
2717
+ "default": null,
2718
+ "generated": null,
2719
+ "name": "coding_agent_id",
2720
+ "entityType": "columns",
2721
+ "table": "usage_events"
2722
+ },
2723
+ {
2724
+ "type": "text",
2725
+ "notNull": false,
2726
+ "autoincrement": false,
2727
+ "default": null,
2728
+ "generated": null,
2729
+ "name": "provider",
2730
+ "entityType": "columns",
2731
+ "table": "usage_events"
2732
+ },
2733
+ {
2734
+ "type": "text",
2735
+ "notNull": false,
2736
+ "autoincrement": false,
2737
+ "default": null,
2738
+ "generated": null,
2739
+ "name": "model",
2740
+ "entityType": "columns",
2741
+ "table": "usage_events"
2742
+ },
2743
+ {
2744
+ "type": "integer",
2745
+ "notNull": true,
2746
+ "autoincrement": false,
2747
+ "default": "0",
2748
+ "generated": null,
2749
+ "name": "input_tokens",
2750
+ "entityType": "columns",
2751
+ "table": "usage_events"
2752
+ },
2753
+ {
2754
+ "type": "integer",
2755
+ "notNull": true,
2756
+ "autoincrement": false,
2757
+ "default": "0",
2758
+ "generated": null,
2759
+ "name": "output_tokens",
2760
+ "entityType": "columns",
2761
+ "table": "usage_events"
2762
+ },
2763
+ {
2764
+ "type": "integer",
2765
+ "notNull": true,
2766
+ "autoincrement": false,
2767
+ "default": "0",
2768
+ "generated": null,
2769
+ "name": "cache_read_tokens",
2770
+ "entityType": "columns",
2771
+ "table": "usage_events"
2772
+ },
2773
+ {
2774
+ "type": "integer",
2775
+ "notNull": true,
2776
+ "autoincrement": false,
2777
+ "default": "0",
2778
+ "generated": null,
2779
+ "name": "cache_creation_tokens",
2780
+ "entityType": "columns",
2781
+ "table": "usage_events"
2782
+ },
2783
+ {
2784
+ "type": "integer",
2785
+ "notNull": true,
2786
+ "autoincrement": false,
2787
+ "default": "0",
2788
+ "generated": null,
2789
+ "name": "reasoning_output_tokens",
2790
+ "entityType": "columns",
2791
+ "table": "usage_events"
2792
+ },
2793
+ {
2794
+ "type": "real",
2795
+ "notNull": true,
2796
+ "autoincrement": false,
2797
+ "default": "0",
2798
+ "generated": null,
2799
+ "name": "cost_usd",
2800
+ "entityType": "columns",
2801
+ "table": "usage_events"
2802
+ },
2803
+ {
2804
+ "type": "integer",
2805
+ "notNull": true,
2806
+ "autoincrement": false,
2807
+ "default": null,
2808
+ "generated": null,
2809
+ "name": "captured_at",
2810
+ "entityType": "columns",
2811
+ "table": "usage_events"
2812
+ },
2813
+ {
2814
+ "type": "text",
2815
+ "notNull": false,
2816
+ "autoincrement": false,
2817
+ "default": null,
2818
+ "generated": null,
2819
+ "name": "external_key",
2820
+ "entityType": "columns",
2821
+ "table": "usage_events"
2822
+ },
2823
+ {
2824
+ "type": "text",
2825
+ "notNull": true,
2826
+ "autoincrement": false,
2827
+ "default": "'local'",
2828
+ "generated": null,
2829
+ "name": "host_id",
2830
+ "entityType": "columns",
2831
+ "table": "usage_events"
2832
+ },
2833
+ {
2834
+ "type": "text",
2835
+ "notNull": true,
2836
+ "autoincrement": false,
2837
+ "default": null,
2838
+ "generated": null,
2839
+ "name": "worktree_id",
2840
+ "entityType": "columns",
2841
+ "table": "usage_scan_state"
2842
+ },
2843
+ {
2844
+ "type": "text",
2845
+ "notNull": true,
2846
+ "autoincrement": false,
2847
+ "default": null,
2848
+ "generated": null,
2849
+ "name": "agent_type",
2850
+ "entityType": "columns",
2851
+ "table": "usage_scan_state"
2852
+ },
2853
+ {
2854
+ "type": "integer",
2855
+ "notNull": true,
2856
+ "autoincrement": false,
2857
+ "default": null,
2858
+ "generated": null,
2859
+ "name": "last_scanned_updated_at",
2860
+ "entityType": "columns",
2861
+ "table": "usage_scan_state"
2862
+ },
2863
+ {
2864
+ "type": "text",
2865
+ "notNull": true,
2866
+ "autoincrement": false,
2867
+ "default": "'local'",
2868
+ "generated": null,
2869
+ "name": "host_id",
2870
+ "entityType": "columns",
2871
+ "table": "usage_scan_state"
2872
+ },
2873
+ {
2874
+ "type": "text",
2875
+ "notNull": false,
2876
+ "autoincrement": false,
2877
+ "default": null,
2878
+ "generated": null,
2879
+ "name": "id",
2880
+ "entityType": "columns",
2881
+ "table": "vault_items"
2882
+ },
2883
+ {
2884
+ "type": "text",
2885
+ "notNull": true,
2886
+ "autoincrement": false,
2887
+ "default": null,
2888
+ "generated": null,
2889
+ "name": "name",
2890
+ "entityType": "columns",
2891
+ "table": "vault_items"
2892
+ },
2893
+ {
2894
+ "type": "text",
2895
+ "notNull": true,
2896
+ "autoincrement": false,
2897
+ "default": null,
2898
+ "generated": null,
2899
+ "name": "kind",
2900
+ "entityType": "columns",
2901
+ "table": "vault_items"
2902
+ },
2903
+ {
2904
+ "type": "text",
2905
+ "notNull": true,
2906
+ "autoincrement": false,
2907
+ "default": "'global'",
2908
+ "generated": null,
2909
+ "name": "scope",
2910
+ "entityType": "columns",
2911
+ "table": "vault_items"
2912
+ },
2913
+ {
2914
+ "type": "text",
2915
+ "notNull": true,
2916
+ "autoincrement": false,
2917
+ "default": null,
2918
+ "generated": null,
2919
+ "name": "encrypted",
2920
+ "entityType": "columns",
2921
+ "table": "vault_items"
2922
+ },
2923
+ {
2924
+ "type": "text",
2925
+ "notNull": true,
2926
+ "autoincrement": false,
2927
+ "default": "'{}'",
2928
+ "generated": null,
2929
+ "name": "metadata",
2930
+ "entityType": "columns",
2931
+ "table": "vault_items"
2932
+ },
2933
+ {
2934
+ "type": "integer",
2935
+ "notNull": true,
2936
+ "autoincrement": false,
2937
+ "default": null,
2938
+ "generated": null,
2939
+ "name": "created_at",
2940
+ "entityType": "columns",
2941
+ "table": "vault_items"
2942
+ },
2943
+ {
2944
+ "type": "integer",
2945
+ "notNull": true,
2946
+ "autoincrement": false,
2947
+ "default": null,
2948
+ "generated": null,
2949
+ "name": "updated_at",
2950
+ "entityType": "columns",
2951
+ "table": "vault_items"
2952
+ },
2953
+ {
2954
+ "type": "integer",
2955
+ "notNull": false,
2956
+ "autoincrement": false,
2957
+ "default": null,
2958
+ "generated": null,
2959
+ "name": "last_used_at",
2960
+ "entityType": "columns",
2961
+ "table": "vault_items"
2962
+ },
2963
+ {
2964
+ "type": "text",
2965
+ "notNull": false,
2966
+ "autoincrement": false,
2967
+ "default": null,
2968
+ "generated": null,
2969
+ "name": "id",
2970
+ "entityType": "columns",
2971
+ "table": "worktree_checkpoints"
2972
+ },
2973
+ {
2974
+ "type": "text",
2975
+ "notNull": true,
2976
+ "autoincrement": false,
2977
+ "default": null,
2978
+ "generated": null,
2979
+ "name": "worktree_id",
2980
+ "entityType": "columns",
2981
+ "table": "worktree_checkpoints"
2982
+ },
2983
+ {
2984
+ "type": "text",
2985
+ "notNull": true,
2986
+ "autoincrement": false,
2987
+ "default": null,
2988
+ "generated": null,
2989
+ "name": "host_id",
2990
+ "entityType": "columns",
2991
+ "table": "worktree_checkpoints"
2992
+ },
2993
+ {
2994
+ "type": "text",
2995
+ "notNull": true,
2996
+ "autoincrement": false,
2997
+ "default": null,
2998
+ "generated": null,
2999
+ "name": "repo",
3000
+ "entityType": "columns",
3001
+ "table": "worktree_checkpoints"
3002
+ },
3003
+ {
3004
+ "type": "text",
3005
+ "notNull": true,
3006
+ "autoincrement": false,
3007
+ "default": null,
3008
+ "generated": null,
3009
+ "name": "name",
3010
+ "entityType": "columns",
3011
+ "table": "worktree_checkpoints"
3012
+ },
3013
+ {
3014
+ "type": "text",
3015
+ "notNull": true,
3016
+ "autoincrement": false,
3017
+ "default": null,
3018
+ "generated": null,
3019
+ "name": "branch",
3020
+ "entityType": "columns",
3021
+ "table": "worktree_checkpoints"
3022
+ },
3023
+ {
3024
+ "type": "text",
3025
+ "notNull": true,
3026
+ "autoincrement": false,
3027
+ "default": null,
3028
+ "generated": null,
3029
+ "name": "base_sha",
3030
+ "entityType": "columns",
3031
+ "table": "worktree_checkpoints"
3032
+ },
3033
+ {
3034
+ "type": "text",
3035
+ "notNull": true,
3036
+ "autoincrement": false,
3037
+ "default": null,
3038
+ "generated": null,
3039
+ "name": "snapshot_sha",
3040
+ "entityType": "columns",
3041
+ "table": "worktree_checkpoints"
3042
+ },
3043
+ {
3044
+ "type": "text",
3045
+ "notNull": true,
3046
+ "autoincrement": false,
3047
+ "default": null,
3048
+ "generated": null,
3049
+ "name": "tree_sha",
3050
+ "entityType": "columns",
3051
+ "table": "worktree_checkpoints"
3052
+ },
3053
+ {
3054
+ "type": "integer",
3055
+ "notNull": true,
3056
+ "autoincrement": false,
3057
+ "default": null,
3058
+ "generated": null,
3059
+ "name": "has_bundle",
3060
+ "entityType": "columns",
3061
+ "table": "worktree_checkpoints"
3062
+ },
3063
+ {
3064
+ "type": "text",
3065
+ "notNull": true,
3066
+ "autoincrement": false,
3067
+ "default": "'[]'",
3068
+ "generated": null,
3069
+ "name": "session_ids",
3070
+ "entityType": "columns",
3071
+ "table": "worktree_checkpoints"
3072
+ },
3073
+ {
3074
+ "type": "text",
3075
+ "notNull": true,
3076
+ "autoincrement": false,
3077
+ "default": "''",
3078
+ "generated": null,
3079
+ "name": "sessions_hash",
3080
+ "entityType": "columns",
3081
+ "table": "worktree_checkpoints"
3082
+ },
3083
+ {
3084
+ "type": "integer",
3085
+ "notNull": true,
3086
+ "autoincrement": false,
3087
+ "default": null,
3088
+ "generated": null,
3089
+ "name": "size_bytes",
3090
+ "entityType": "columns",
3091
+ "table": "worktree_checkpoints"
3092
+ },
3093
+ {
3094
+ "type": "text",
3095
+ "notNull": true,
3096
+ "autoincrement": false,
3097
+ "default": null,
3098
+ "generated": null,
3099
+ "name": "trigger",
3100
+ "entityType": "columns",
3101
+ "table": "worktree_checkpoints"
3102
+ },
3103
+ {
3104
+ "type": "integer",
3105
+ "notNull": true,
3106
+ "autoincrement": false,
3107
+ "default": null,
3108
+ "generated": null,
3109
+ "name": "created_at",
3110
+ "entityType": "columns",
3111
+ "table": "worktree_checkpoints"
3112
+ },
3113
+ {
3114
+ "type": "text",
3115
+ "notNull": false,
3116
+ "autoincrement": false,
3117
+ "default": null,
3118
+ "generated": null,
3119
+ "name": "worktree_id",
3120
+ "entityType": "columns",
3121
+ "table": "worktree_sleep"
3122
+ },
3123
+ {
3124
+ "type": "text",
3125
+ "notNull": true,
3126
+ "autoincrement": false,
3127
+ "default": null,
3128
+ "generated": null,
3129
+ "name": "host_id",
3130
+ "entityType": "columns",
3131
+ "table": "worktree_sleep"
3132
+ },
3133
+ {
3134
+ "type": "text",
3135
+ "notNull": true,
3136
+ "autoincrement": false,
3137
+ "default": null,
3138
+ "generated": null,
3139
+ "name": "repo",
3140
+ "entityType": "columns",
3141
+ "table": "worktree_sleep"
3142
+ },
3143
+ {
3144
+ "type": "text",
3145
+ "notNull": true,
3146
+ "autoincrement": false,
3147
+ "default": null,
3148
+ "generated": null,
3149
+ "name": "name",
3150
+ "entityType": "columns",
3151
+ "table": "worktree_sleep"
3152
+ },
3153
+ {
3154
+ "type": "text",
3155
+ "notNull": true,
3156
+ "autoincrement": false,
3157
+ "default": null,
3158
+ "generated": null,
3159
+ "name": "branch",
3160
+ "entityType": "columns",
3161
+ "table": "worktree_sleep"
3162
+ },
3163
+ {
3164
+ "type": "text",
3165
+ "notNull": true,
3166
+ "autoincrement": false,
3167
+ "default": null,
3168
+ "generated": null,
3169
+ "name": "worktree_path",
3170
+ "entityType": "columns",
3171
+ "table": "worktree_sleep"
3172
+ },
3173
+ {
3174
+ "type": "text",
3175
+ "notNull": true,
3176
+ "autoincrement": false,
3177
+ "default": null,
3178
+ "generated": null,
3179
+ "name": "base_sha",
3180
+ "entityType": "columns",
3181
+ "table": "worktree_sleep"
3182
+ },
3183
+ {
3184
+ "type": "text",
3185
+ "notNull": true,
3186
+ "autoincrement": false,
3187
+ "default": null,
3188
+ "generated": null,
3189
+ "name": "snapshot_sha",
3190
+ "entityType": "columns",
3191
+ "table": "worktree_sleep"
3192
+ },
3193
+ {
3194
+ "type": "text",
3195
+ "notNull": true,
3196
+ "autoincrement": false,
3197
+ "default": null,
3198
+ "generated": null,
3199
+ "name": "ref",
3200
+ "entityType": "columns",
3201
+ "table": "worktree_sleep"
3202
+ },
3203
+ {
3204
+ "type": "text",
3205
+ "notNull": true,
3206
+ "autoincrement": false,
3207
+ "default": null,
3208
+ "generated": null,
3209
+ "name": "store",
3210
+ "entityType": "columns",
3211
+ "table": "worktree_sleep"
3212
+ },
3213
+ {
3214
+ "type": "text",
3215
+ "notNull": true,
3216
+ "autoincrement": false,
3217
+ "default": "'[]'",
3218
+ "generated": null,
3219
+ "name": "session_ids",
3220
+ "entityType": "columns",
3221
+ "table": "worktree_sleep"
3222
+ },
3223
+ {
3224
+ "type": "integer",
3225
+ "notNull": false,
3226
+ "autoincrement": false,
3227
+ "default": null,
3228
+ "generated": null,
3229
+ "name": "waking_since",
3230
+ "entityType": "columns",
3231
+ "table": "worktree_sleep"
3232
+ },
3233
+ {
3234
+ "type": "integer",
3235
+ "notNull": true,
3236
+ "autoincrement": false,
3237
+ "default": null,
3238
+ "generated": null,
3239
+ "name": "created_at",
3240
+ "entityType": "columns",
3241
+ "table": "worktree_sleep"
3242
+ },
3243
+ {
3244
+ "type": "text",
3245
+ "notNull": true,
3246
+ "autoincrement": false,
3247
+ "default": null,
3248
+ "generated": null,
3249
+ "name": "worktree_id",
3250
+ "entityType": "columns",
3251
+ "table": "worktree_status_sources"
3252
+ },
3253
+ {
3254
+ "type": "text",
3255
+ "notNull": true,
3256
+ "autoincrement": false,
3257
+ "default": null,
3258
+ "generated": null,
3259
+ "name": "source_id",
3260
+ "entityType": "columns",
3261
+ "table": "worktree_status_sources"
3262
+ },
3263
+ {
3264
+ "type": "text",
3265
+ "notNull": true,
3266
+ "autoincrement": false,
3267
+ "default": null,
3268
+ "generated": null,
3269
+ "name": "status",
3270
+ "entityType": "columns",
3271
+ "table": "worktree_status_sources"
3272
+ },
3273
+ {
3274
+ "type": "text",
3275
+ "notNull": false,
3276
+ "autoincrement": false,
3277
+ "default": null,
3278
+ "generated": null,
3279
+ "name": "terminal_id",
3280
+ "entityType": "columns",
3281
+ "table": "worktree_status_sources"
3282
+ },
3283
+ {
3284
+ "type": "integer",
3285
+ "notNull": true,
3286
+ "autoincrement": false,
3287
+ "default": null,
3288
+ "generated": null,
3289
+ "name": "updated_at",
3290
+ "entityType": "columns",
3291
+ "table": "worktree_status_sources"
3292
+ },
3293
+ {
3294
+ "type": "text",
3295
+ "notNull": false,
3296
+ "autoincrement": false,
3297
+ "default": null,
3298
+ "generated": null,
3299
+ "name": "worktree_id",
3300
+ "entityType": "columns",
3301
+ "table": "worktree_statuses"
3302
+ },
3303
+ {
3304
+ "type": "text",
3305
+ "notNull": true,
3306
+ "autoincrement": false,
3307
+ "default": null,
3308
+ "generated": null,
3309
+ "name": "repo",
3310
+ "entityType": "columns",
3311
+ "table": "worktree_statuses"
3312
+ },
3313
+ {
3314
+ "type": "text",
3315
+ "notNull": true,
3316
+ "autoincrement": false,
3317
+ "default": null,
3318
+ "generated": null,
3319
+ "name": "branch",
3320
+ "entityType": "columns",
3321
+ "table": "worktree_statuses"
3322
+ },
3323
+ {
3324
+ "type": "text",
3325
+ "notNull": true,
3326
+ "autoincrement": false,
3327
+ "default": null,
3328
+ "generated": null,
3329
+ "name": "worktree_path",
3330
+ "entityType": "columns",
3331
+ "table": "worktree_statuses"
3332
+ },
3333
+ {
3334
+ "type": "text",
3335
+ "notNull": false,
3336
+ "autoincrement": false,
3337
+ "default": null,
3338
+ "generated": null,
3339
+ "name": "agent_name",
3340
+ "entityType": "columns",
3341
+ "table": "worktree_statuses"
3342
+ },
3343
+ {
3344
+ "type": "text",
3345
+ "notNull": false,
3346
+ "autoincrement": false,
3347
+ "default": null,
3348
+ "generated": null,
3349
+ "name": "agent_status",
3350
+ "entityType": "columns",
3351
+ "table": "worktree_statuses"
3352
+ },
3353
+ {
3354
+ "type": "text",
3355
+ "notNull": false,
3356
+ "autoincrement": false,
3357
+ "default": null,
3358
+ "generated": null,
3359
+ "name": "agent_last_activity",
3360
+ "entityType": "columns",
3361
+ "table": "worktree_statuses"
3362
+ },
3363
+ {
3364
+ "type": "text",
3365
+ "notNull": false,
3366
+ "autoincrement": false,
3367
+ "default": null,
3368
+ "generated": null,
3369
+ "name": "agent_summary",
3370
+ "entityType": "columns",
3371
+ "table": "worktree_statuses"
3372
+ },
3373
+ {
3374
+ "type": "text",
3375
+ "notNull": false,
3376
+ "autoincrement": false,
3377
+ "default": null,
3378
+ "generated": null,
3379
+ "name": "coding_agent_id",
3380
+ "entityType": "columns",
3381
+ "table": "worktree_statuses"
3382
+ },
3383
+ {
3384
+ "type": "text",
3385
+ "notNull": true,
3386
+ "autoincrement": false,
3387
+ "default": "'local'",
3388
+ "generated": null,
3389
+ "name": "host_id",
3390
+ "entityType": "columns",
3391
+ "table": "worktree_statuses"
3392
+ },
3393
+ {
3394
+ "type": "integer",
3395
+ "notNull": true,
3396
+ "autoincrement": false,
3397
+ "default": null,
3398
+ "generated": null,
3399
+ "name": "updated_at",
3400
+ "entityType": "columns",
3401
+ "table": "worktree_statuses"
3402
+ },
3403
+ {
3404
+ "type": "integer",
3405
+ "notNull": false,
3406
+ "autoincrement": true,
3407
+ "default": null,
3408
+ "generated": null,
3409
+ "name": "id",
3410
+ "entityType": "columns",
3411
+ "table": "worktrees"
3412
+ },
3413
+ {
3414
+ "type": "text",
3415
+ "notNull": true,
3416
+ "autoincrement": false,
3417
+ "default": null,
3418
+ "generated": null,
3419
+ "name": "repo_name",
3420
+ "entityType": "columns",
3421
+ "table": "worktrees"
3422
+ },
3423
+ {
3424
+ "type": "text",
3425
+ "notNull": true,
3426
+ "autoincrement": false,
3427
+ "default": null,
3428
+ "generated": null,
3429
+ "name": "name",
3430
+ "entityType": "columns",
3431
+ "table": "worktrees"
3432
+ },
3433
+ {
3434
+ "type": "text",
3435
+ "notNull": true,
3436
+ "autoincrement": false,
3437
+ "default": null,
3438
+ "generated": null,
3439
+ "name": "branch",
3440
+ "entityType": "columns",
3441
+ "table": "worktrees"
3442
+ },
3443
+ {
3444
+ "type": "text",
3445
+ "notNull": true,
3446
+ "autoincrement": false,
3447
+ "default": null,
3448
+ "generated": null,
3449
+ "name": "path",
3450
+ "entityType": "columns",
3451
+ "table": "worktrees"
3452
+ },
3453
+ {
3454
+ "type": "text",
3455
+ "notNull": false,
3456
+ "autoincrement": false,
3457
+ "default": null,
3458
+ "generated": null,
3459
+ "name": "head",
3460
+ "entityType": "columns",
3461
+ "table": "worktrees"
3462
+ },
3463
+ {
3464
+ "type": "integer",
3465
+ "notNull": true,
3466
+ "autoincrement": false,
3467
+ "default": "false",
3468
+ "generated": null,
3469
+ "name": "pinned",
3470
+ "entityType": "columns",
3471
+ "table": "worktrees"
3472
+ },
3473
+ {
3474
+ "type": "text",
3475
+ "notNull": true,
3476
+ "autoincrement": false,
3477
+ "default": "'local'",
3478
+ "generated": null,
3479
+ "name": "host_id",
3480
+ "entityType": "columns",
3481
+ "table": "worktrees"
3482
+ },
3483
+ {
3484
+ "type": "text",
3485
+ "notNull": false,
3486
+ "autoincrement": false,
3487
+ "default": null,
3488
+ "generated": null,
3489
+ "name": "origin_worktree_id",
3490
+ "entityType": "columns",
3491
+ "table": "worktrees"
3492
+ },
3493
+ {
3494
+ "type": "text",
3495
+ "notNull": false,
3496
+ "autoincrement": false,
3497
+ "default": null,
3498
+ "generated": null,
3499
+ "name": "origin_chat_id",
3500
+ "entityType": "columns",
3501
+ "table": "worktrees"
3502
+ },
3503
+ {
3504
+ "type": "text",
3505
+ "notNull": false,
3506
+ "autoincrement": false,
3507
+ "default": null,
3508
+ "generated": null,
3509
+ "name": "origin_terminal_id",
3510
+ "entityType": "columns",
3511
+ "table": "worktrees"
3512
+ },
3513
+ {
3514
+ "type": "text",
3515
+ "notNull": false,
3516
+ "autoincrement": false,
3517
+ "default": null,
3518
+ "generated": null,
3519
+ "name": "superseded_by",
3520
+ "entityType": "columns",
3521
+ "table": "worktrees"
3522
+ },
3523
+ {
3524
+ "type": "text",
3525
+ "notNull": false,
3526
+ "autoincrement": false,
3527
+ "default": null,
3528
+ "generated": null,
3529
+ "name": "continued_from",
3530
+ "entityType": "columns",
3531
+ "table": "worktrees"
3532
+ },
3533
+ {
3534
+ "type": "text",
3535
+ "notNull": false,
3536
+ "autoincrement": false,
3537
+ "default": null,
3538
+ "generated": null,
3539
+ "name": "divergence",
3540
+ "entityType": "columns",
3541
+ "table": "worktrees"
3542
+ },
3543
+ {
3544
+ "columns": [
3545
+ "host_id"
3546
+ ],
3547
+ "tableTo": "hosts",
3548
+ "columnsTo": [
3549
+ "id"
3550
+ ],
3551
+ "onUpdate": "NO ACTION",
3552
+ "onDelete": "CASCADE",
3553
+ "nameExplicit": false,
3554
+ "name": "fk_pending_removals_host_id_hosts_id_fk",
3555
+ "entityType": "fks",
3556
+ "table": "pending_removals"
3557
+ },
3558
+ {
3559
+ "columns": [
3560
+ "repo_name"
3561
+ ],
3562
+ "tableTo": "repos",
3563
+ "columnsTo": [
3564
+ "name"
3565
+ ],
3566
+ "onUpdate": "NO ACTION",
3567
+ "onDelete": "CASCADE",
3568
+ "nameExplicit": false,
3569
+ "name": "fk_repo_hosts_repo_name_repos_name_fk",
3570
+ "entityType": "fks",
3571
+ "table": "repo_hosts"
3572
+ },
3573
+ {
3574
+ "columns": [
3575
+ "host_id"
3576
+ ],
3577
+ "tableTo": "hosts",
3578
+ "columnsTo": [
3579
+ "id"
3580
+ ],
3581
+ "onUpdate": "NO ACTION",
3582
+ "onDelete": "CASCADE",
3583
+ "nameExplicit": false,
3584
+ "name": "fk_repo_hosts_host_id_hosts_id_fk",
3585
+ "entityType": "fks",
3586
+ "table": "repo_hosts"
3587
+ },
3588
+ {
3589
+ "columns": [
3590
+ "host_id"
3591
+ ],
3592
+ "tableTo": "hosts",
3593
+ "columnsTo": [
3594
+ "id"
3595
+ ],
3596
+ "onUpdate": "NO ACTION",
3597
+ "onDelete": "CASCADE",
3598
+ "nameExplicit": false,
3599
+ "name": "fk_tokens_host_id_hosts_id_fk",
3600
+ "entityType": "fks",
3601
+ "table": "tokens"
3602
+ },
3603
+ {
3604
+ "columns": [
3605
+ "repo_name"
3606
+ ],
3607
+ "tableTo": "repos",
3608
+ "columnsTo": [
3609
+ "name"
3610
+ ],
3611
+ "onUpdate": "NO ACTION",
3612
+ "onDelete": "CASCADE",
3613
+ "nameExplicit": false,
3614
+ "name": "fk_worktrees_repo_name_repos_name_fk",
3615
+ "entityType": "fks",
3616
+ "table": "worktrees"
3617
+ },
3618
+ {
3619
+ "columns": [
3620
+ "host_id",
3621
+ "id"
3622
+ ],
3623
+ "nameExplicit": false,
3624
+ "name": "chat_event_holds_pk",
3625
+ "entityType": "pks",
3626
+ "table": "chat_event_holds"
3627
+ },
3628
+ {
3629
+ "columns": [
3630
+ "key",
3631
+ "scope"
3632
+ ],
3633
+ "nameExplicit": false,
3634
+ "name": "client_state_pk",
3635
+ "entityType": "pks",
3636
+ "table": "client_state"
3637
+ },
3638
+ {
3639
+ "columns": [
3640
+ "host_id",
3641
+ "worktree_path"
3642
+ ],
3643
+ "nameExplicit": false,
3644
+ "name": "pending_removals_pk",
3645
+ "entityType": "pks",
3646
+ "table": "pending_removals"
3647
+ },
3648
+ {
3649
+ "columns": [
3650
+ "repo_name",
3651
+ "host_id"
3652
+ ],
3653
+ "nameExplicit": false,
3654
+ "name": "repo_hosts_pk",
3655
+ "entityType": "pks",
3656
+ "table": "repo_hosts"
3657
+ },
3658
+ {
3659
+ "columns": [
3660
+ "worktree_id",
3661
+ "source_id"
3662
+ ],
3663
+ "nameExplicit": false,
3664
+ "name": "worktree_status_sources_pk",
3665
+ "entityType": "pks",
3666
+ "table": "worktree_status_sources"
3667
+ },
3668
+ {
3669
+ "columns": [
3670
+ "id"
3671
+ ],
3672
+ "nameExplicit": false,
3673
+ "name": "agent_sessions_pk",
3674
+ "table": "agent_sessions",
3675
+ "entityType": "pks"
3676
+ },
3677
+ {
3678
+ "columns": [
3679
+ "worktree_id"
3680
+ ],
3681
+ "nameExplicit": false,
3682
+ "name": "branch_statuses_pk",
3683
+ "table": "branch_statuses",
3684
+ "entityType": "pks"
3685
+ },
3686
+ {
3687
+ "columns": [
3688
+ "id"
3689
+ ],
3690
+ "nameExplicit": false,
3691
+ "name": "browser_history_pk",
3692
+ "table": "browser_history",
3693
+ "entityType": "pks"
3694
+ },
3695
+ {
3696
+ "columns": [
3697
+ "id"
3698
+ ],
3699
+ "nameExplicit": false,
3700
+ "name": "browser_profiles_pk",
3701
+ "table": "browser_profiles",
3702
+ "entityType": "pks"
3703
+ },
3704
+ {
3705
+ "columns": [
3706
+ "id"
3707
+ ],
3708
+ "nameExplicit": false,
3709
+ "name": "chat_events_pk",
3710
+ "table": "chat_events",
3711
+ "entityType": "pks"
3712
+ },
3713
+ {
3714
+ "columns": [
3715
+ "id"
3716
+ ],
3717
+ "nameExplicit": false,
3718
+ "name": "chat_forwards_pk",
3719
+ "table": "chat_forwards",
3720
+ "entityType": "pks"
3721
+ },
3722
+ {
3723
+ "columns": [
3724
+ "id"
3725
+ ],
3726
+ "nameExplicit": false,
3727
+ "name": "cronjobs_pk",
3728
+ "table": "cronjobs",
3729
+ "entityType": "pks"
3730
+ },
3731
+ {
3732
+ "columns": [
3733
+ "id"
3734
+ ],
3735
+ "nameExplicit": false,
3736
+ "name": "environment_builds_pk",
3737
+ "table": "environment_builds",
3738
+ "entityType": "pks"
3739
+ },
3740
+ {
3741
+ "columns": [
3742
+ "id"
3743
+ ],
3744
+ "nameExplicit": false,
3745
+ "name": "host_requests_pk",
3746
+ "table": "host_requests",
3747
+ "entityType": "pks"
3748
+ },
3749
+ {
3750
+ "columns": [
3751
+ "id"
3752
+ ],
3753
+ "nameExplicit": false,
3754
+ "name": "hosts_pk",
3755
+ "table": "hosts",
3756
+ "entityType": "pks"
3757
+ },
3758
+ {
3759
+ "columns": [
3760
+ "id"
3761
+ ],
3762
+ "nameExplicit": false,
3763
+ "name": "mcp_proxy_audit_pk",
3764
+ "table": "mcp_proxy_audit",
3765
+ "entityType": "pks"
3766
+ },
3767
+ {
3768
+ "columns": [
3769
+ "id"
3770
+ ],
3771
+ "nameExplicit": false,
3772
+ "name": "mcp_proxy_tokens_pk",
3773
+ "table": "mcp_proxy_tokens",
3774
+ "entityType": "pks"
3775
+ },
3776
+ {
3777
+ "columns": [
3778
+ "id"
3779
+ ],
3780
+ "nameExplicit": false,
3781
+ "name": "mcp_servers_pk",
3782
+ "table": "mcp_servers",
3783
+ "entityType": "pks"
3784
+ },
3785
+ {
3786
+ "columns": [
3787
+ "id"
3788
+ ],
3789
+ "nameExplicit": false,
3790
+ "name": "panel_states_pk",
3791
+ "table": "panel_states",
3792
+ "entityType": "pks"
3793
+ },
3794
+ {
3795
+ "columns": [
3796
+ "sha"
3797
+ ],
3798
+ "nameExplicit": false,
3799
+ "name": "pushed_shas_pk",
3800
+ "table": "pushed_shas",
3801
+ "entityType": "pks"
3802
+ },
3803
+ {
3804
+ "columns": [
3805
+ "repo_name"
3806
+ ],
3807
+ "nameExplicit": false,
3808
+ "name": "repo_browser_profiles_pk",
3809
+ "table": "repo_browser_profiles",
3810
+ "entityType": "pks"
3811
+ },
3812
+ {
3813
+ "columns": [
3814
+ "name"
3815
+ ],
3816
+ "nameExplicit": false,
3817
+ "name": "repos_pk",
3818
+ "table": "repos",
3819
+ "entityType": "pks"
3820
+ },
3821
+ {
3822
+ "columns": [
3823
+ "id"
3824
+ ],
3825
+ "nameExplicit": false,
3826
+ "name": "runner_machines_pk",
3827
+ "table": "runner_machines",
3828
+ "entityType": "pks"
3829
+ },
3830
+ {
3831
+ "columns": [
3832
+ "id"
3833
+ ],
3834
+ "nameExplicit": false,
3835
+ "name": "runner_snapshots_pk",
3836
+ "table": "runner_snapshots",
3837
+ "entityType": "pks"
3838
+ },
3839
+ {
3840
+ "columns": [
3841
+ "subscription_id"
3842
+ ],
3843
+ "nameExplicit": false,
3844
+ "name": "subscription_cursors_pk",
3845
+ "table": "subscription_cursors",
3846
+ "entityType": "pks"
3847
+ },
3848
+ {
3849
+ "columns": [
3850
+ "event_id"
3851
+ ],
3852
+ "nameExplicit": false,
3853
+ "name": "subscription_events_pk",
3854
+ "table": "subscription_events",
3855
+ "entityType": "pks"
3856
+ },
3857
+ {
3858
+ "columns": [
3859
+ "id"
3860
+ ],
3861
+ "nameExplicit": false,
3862
+ "name": "subscriptions_pk",
3863
+ "table": "subscriptions",
3864
+ "entityType": "pks"
3865
+ },
3866
+ {
3867
+ "columns": [
3868
+ "id"
3869
+ ],
3870
+ "nameExplicit": false,
3871
+ "name": "tasks_pk",
3872
+ "table": "tasks",
3873
+ "entityType": "pks"
3874
+ },
3875
+ {
3876
+ "columns": [
3877
+ "id"
3878
+ ],
3879
+ "nameExplicit": false,
3880
+ "name": "tokens_pk",
3881
+ "table": "tokens",
3882
+ "entityType": "pks"
3883
+ },
3884
+ {
3885
+ "columns": [
3886
+ "id"
3887
+ ],
3888
+ "nameExplicit": false,
3889
+ "name": "usage_events_pk",
3890
+ "table": "usage_events",
3891
+ "entityType": "pks"
3892
+ },
3893
+ {
3894
+ "columns": [
3895
+ "id"
3896
+ ],
3897
+ "nameExplicit": false,
3898
+ "name": "vault_items_pk",
3899
+ "table": "vault_items",
3900
+ "entityType": "pks"
3901
+ },
3902
+ {
3903
+ "columns": [
3904
+ "id"
3905
+ ],
3906
+ "nameExplicit": false,
3907
+ "name": "worktree_checkpoints_pk",
3908
+ "table": "worktree_checkpoints",
3909
+ "entityType": "pks"
3910
+ },
3911
+ {
3912
+ "columns": [
3913
+ "worktree_id"
3914
+ ],
3915
+ "nameExplicit": false,
3916
+ "name": "worktree_sleep_pk",
3917
+ "table": "worktree_sleep",
3918
+ "entityType": "pks"
3919
+ },
3920
+ {
3921
+ "columns": [
3922
+ "worktree_id"
3923
+ ],
3924
+ "nameExplicit": false,
3925
+ "name": "worktree_statuses_pk",
3926
+ "table": "worktree_statuses",
3927
+ "entityType": "pks"
3928
+ },
3929
+ {
3930
+ "columns": [
3931
+ "id"
3932
+ ],
3933
+ "nameExplicit": false,
3934
+ "name": "worktrees_pk",
3935
+ "table": "worktrees",
3936
+ "entityType": "pks"
3937
+ },
3938
+ {
3939
+ "columns": [
3940
+ {
3941
+ "value": "worktree_id",
3942
+ "isExpression": false
3943
+ }
3944
+ ],
3945
+ "isUnique": false,
3946
+ "where": null,
3947
+ "origin": "manual",
3948
+ "name": "agent_sessions_worktree_idx",
3949
+ "entityType": "indexes",
3950
+ "table": "agent_sessions"
3951
+ },
3952
+ {
3953
+ "columns": [
3954
+ {
3955
+ "value": "chat_id",
3956
+ "isExpression": false
3957
+ }
3958
+ ],
3959
+ "isUnique": false,
3960
+ "where": null,
3961
+ "origin": "manual",
3962
+ "name": "agent_sessions_chat_idx",
3963
+ "entityType": "indexes",
3964
+ "table": "agent_sessions"
3965
+ },
3966
+ {
3967
+ "columns": [
3968
+ {
3969
+ "value": "terminal_id",
3970
+ "isExpression": false
3971
+ }
3972
+ ],
3973
+ "isUnique": false,
3974
+ "where": null,
3975
+ "origin": "manual",
3976
+ "name": "agent_sessions_terminal_idx",
3977
+ "entityType": "indexes",
3978
+ "table": "agent_sessions"
3979
+ },
3980
+ {
3981
+ "columns": [
3982
+ {
3983
+ "value": "worktree_id",
3984
+ "isExpression": false
3985
+ },
3986
+ {
3987
+ "value": "url",
3988
+ "isExpression": false
3989
+ }
3990
+ ],
3991
+ "isUnique": true,
3992
+ "where": null,
3993
+ "origin": "manual",
3994
+ "name": "browser_history_worktree_url_uq",
3995
+ "entityType": "indexes",
3996
+ "table": "browser_history"
3997
+ },
3998
+ {
3999
+ "columns": [
4000
+ {
4001
+ "value": "worktree_id",
4002
+ "isExpression": false
4003
+ },
4004
+ {
4005
+ "value": "last_visited_at",
4006
+ "isExpression": false
4007
+ }
4008
+ ],
4009
+ "isUnique": false,
4010
+ "where": null,
4011
+ "origin": "manual",
4012
+ "name": "browser_history_worktree_visited_idx",
4013
+ "entityType": "indexes",
4014
+ "table": "browser_history"
4015
+ },
4016
+ {
4017
+ "columns": [
4018
+ {
4019
+ "value": "chat_id",
4020
+ "isExpression": false
4021
+ }
4022
+ ],
4023
+ "isUnique": false,
4024
+ "where": null,
4025
+ "origin": "manual",
4026
+ "name": "chat_event_holds_chat_idx",
4027
+ "entityType": "indexes",
4028
+ "table": "chat_event_holds"
4029
+ },
4030
+ {
4031
+ "columns": [
4032
+ {
4033
+ "value": "session_id",
4034
+ "isExpression": false
4035
+ },
4036
+ {
4037
+ "value": "revision",
4038
+ "isExpression": false
4039
+ },
4040
+ {
4041
+ "value": "id",
4042
+ "isExpression": false
4043
+ }
4044
+ ],
4045
+ "isUnique": false,
4046
+ "where": null,
4047
+ "origin": "manual",
4048
+ "name": "chat_events_session_idx",
4049
+ "entityType": "indexes",
4050
+ "table": "chat_events"
4051
+ },
4052
+ {
4053
+ "columns": [
4054
+ {
4055
+ "value": "session_id",
4056
+ "isExpression": false
4057
+ },
4058
+ {
4059
+ "value": "revision",
4060
+ "isExpression": false
4061
+ },
4062
+ {
4063
+ "value": "kind",
4064
+ "isExpression": false
4065
+ },
4066
+ {
4067
+ "value": "id",
4068
+ "isExpression": false
4069
+ }
4070
+ ],
4071
+ "isUnique": false,
4072
+ "where": null,
4073
+ "origin": "manual",
4074
+ "name": "chat_events_kind_idx",
4075
+ "entityType": "indexes",
4076
+ "table": "chat_events"
4077
+ },
4078
+ {
4079
+ "columns": [
4080
+ {
4081
+ "value": "session_id",
4082
+ "isExpression": false
4083
+ },
4084
+ {
4085
+ "value": "revision",
4086
+ "isExpression": false
4087
+ },
4088
+ {
4089
+ "value": "update_kind",
4090
+ "isExpression": false
4091
+ },
4092
+ {
4093
+ "value": "id",
4094
+ "isExpression": false
4095
+ }
4096
+ ],
4097
+ "isUnique": false,
4098
+ "where": null,
4099
+ "origin": "manual",
4100
+ "name": "chat_events_update_kind_idx",
4101
+ "entityType": "indexes",
4102
+ "table": "chat_events"
4103
+ },
4104
+ {
4105
+ "columns": [
4106
+ {
4107
+ "value": "session_id",
4108
+ "isExpression": false
4109
+ },
4110
+ {
4111
+ "value": "revision",
4112
+ "isExpression": false
4113
+ },
4114
+ {
4115
+ "value": "turn_start",
4116
+ "isExpression": false
4117
+ },
4118
+ {
4119
+ "value": "id",
4120
+ "isExpression": false
4121
+ }
4122
+ ],
4123
+ "isUnique": false,
4124
+ "where": null,
4125
+ "origin": "manual",
4126
+ "name": "chat_events_turn_start_idx",
4127
+ "entityType": "indexes",
4128
+ "table": "chat_events"
4129
+ },
4130
+ {
4131
+ "columns": [
4132
+ {
4133
+ "value": "chat_id",
4134
+ "isExpression": false
4135
+ }
4136
+ ],
4137
+ "isUnique": false,
4138
+ "where": null,
4139
+ "origin": "manual",
4140
+ "name": "chat_events_chat_idx",
4141
+ "entityType": "indexes",
4142
+ "table": "chat_events"
4143
+ },
4144
+ {
4145
+ "columns": [
4146
+ {
4147
+ "value": "host_id",
4148
+ "isExpression": false
4149
+ },
4150
+ {
4151
+ "value": "delivered_at",
4152
+ "isExpression": false
4153
+ },
4154
+ {
4155
+ "value": "created_at",
4156
+ "isExpression": false
4157
+ }
4158
+ ],
4159
+ "isUnique": false,
4160
+ "where": null,
4161
+ "origin": "manual",
4162
+ "name": "chat_forwards_pending_idx",
4163
+ "entityType": "indexes",
4164
+ "table": "chat_forwards"
4165
+ },
4166
+ {
4167
+ "columns": [
4168
+ {
4169
+ "value": "worktree_id",
4170
+ "isExpression": false
4171
+ }
4172
+ ],
4173
+ "isUnique": false,
4174
+ "where": null,
4175
+ "origin": "manual",
4176
+ "name": "client_state_worktree_idx",
4177
+ "entityType": "indexes",
4178
+ "table": "client_state"
4179
+ },
4180
+ {
4181
+ "columns": [
4182
+ {
4183
+ "value": "repo",
4184
+ "isExpression": false
4185
+ },
4186
+ {
4187
+ "value": "started_at",
4188
+ "isExpression": false
4189
+ }
4190
+ ],
4191
+ "isUnique": false,
4192
+ "where": null,
4193
+ "origin": "manual",
4194
+ "name": "environment_builds_repo_idx",
4195
+ "entityType": "indexes",
4196
+ "table": "environment_builds"
4197
+ },
4198
+ {
4199
+ "columns": [
4200
+ {
4201
+ "value": "repo",
4202
+ "isExpression": false
4203
+ },
4204
+ {
4205
+ "value": "key",
4206
+ "isExpression": false
4207
+ }
4208
+ ],
4209
+ "isUnique": false,
4210
+ "where": null,
4211
+ "origin": "manual",
4212
+ "name": "environment_builds_key_idx",
4213
+ "entityType": "indexes",
4214
+ "table": "environment_builds"
4215
+ },
4216
+ {
4217
+ "columns": [
4218
+ {
4219
+ "value": "status",
4220
+ "isExpression": false
4221
+ },
4222
+ {
4223
+ "value": "created_at",
4224
+ "isExpression": false
4225
+ }
4226
+ ],
4227
+ "isUnique": false,
4228
+ "where": null,
4229
+ "origin": "manual",
4230
+ "name": "host_requests_status_idx",
4231
+ "entityType": "indexes",
4232
+ "table": "host_requests"
4233
+ },
4234
+ {
4235
+ "columns": [
4236
+ {
4237
+ "value": "worktree_id",
4238
+ "isExpression": false
4239
+ }
4240
+ ],
4241
+ "isUnique": false,
4242
+ "where": null,
4243
+ "origin": "manual",
4244
+ "name": "host_requests_worktree_idx",
4245
+ "entityType": "indexes",
4246
+ "table": "host_requests"
4247
+ },
4248
+ {
4249
+ "columns": [
4250
+ {
4251
+ "value": "created_at",
4252
+ "isExpression": false
4253
+ }
4254
+ ],
4255
+ "isUnique": false,
4256
+ "where": null,
4257
+ "origin": "manual",
4258
+ "name": "hosts_created_at_idx",
4259
+ "entityType": "indexes",
4260
+ "table": "hosts"
4261
+ },
4262
+ {
4263
+ "columns": [
4264
+ {
4265
+ "value": "at",
4266
+ "isExpression": false
4267
+ }
4268
+ ],
4269
+ "isUnique": false,
4270
+ "where": null,
4271
+ "origin": "manual",
4272
+ "name": "mcp_proxy_audit_at_idx",
4273
+ "entityType": "indexes",
4274
+ "table": "mcp_proxy_audit"
4275
+ },
4276
+ {
4277
+ "columns": [
4278
+ {
4279
+ "value": "hash",
4280
+ "isExpression": false
4281
+ }
4282
+ ],
4283
+ "isUnique": true,
4284
+ "where": null,
4285
+ "origin": "manual",
4286
+ "name": "mcp_proxy_tokens_hash_idx",
4287
+ "entityType": "indexes",
4288
+ "table": "mcp_proxy_tokens"
4289
+ },
4290
+ {
4291
+ "columns": [
4292
+ {
4293
+ "value": "session_id",
4294
+ "isExpression": false
4295
+ }
4296
+ ],
4297
+ "isUnique": false,
4298
+ "where": null,
4299
+ "origin": "manual",
4300
+ "name": "mcp_proxy_tokens_session_idx",
4301
+ "entityType": "indexes",
4302
+ "table": "mcp_proxy_tokens"
4303
+ },
4304
+ {
4305
+ "columns": [
4306
+ {
4307
+ "value": "name",
4308
+ "isExpression": false
4309
+ }
4310
+ ],
4311
+ "isUnique": true,
4312
+ "where": null,
4313
+ "origin": "manual",
4314
+ "name": "mcp_servers_name_idx",
4315
+ "entityType": "indexes",
4316
+ "table": "mcp_servers"
4317
+ },
4318
+ {
4319
+ "columns": [
4320
+ {
4321
+ "value": "state",
4322
+ "isExpression": false
4323
+ }
4324
+ ],
4325
+ "isUnique": false,
4326
+ "where": null,
4327
+ "origin": "manual",
4328
+ "name": "runner_machines_state_idx",
4329
+ "entityType": "indexes",
4330
+ "table": "runner_machines"
4331
+ },
4332
+ {
4333
+ "columns": [
4334
+ {
4335
+ "value": "worker_id",
4336
+ "isExpression": false
4337
+ }
4338
+ ],
4339
+ "isUnique": false,
4340
+ "where": null,
4341
+ "origin": "manual",
4342
+ "name": "runner_machines_worker_idx",
4343
+ "entityType": "indexes",
4344
+ "table": "runner_machines"
4345
+ },
4346
+ {
4347
+ "columns": [
4348
+ {
4349
+ "value": "host_id",
4350
+ "isExpression": false
4351
+ }
4352
+ ],
4353
+ "isUnique": false,
4354
+ "where": null,
4355
+ "origin": "manual",
4356
+ "name": "runner_snapshots_host_idx",
4357
+ "entityType": "indexes",
4358
+ "table": "runner_snapshots"
4359
+ },
4360
+ {
4361
+ "columns": [
4362
+ {
4363
+ "value": "runner_id",
4364
+ "isExpression": false
4365
+ },
4366
+ {
4367
+ "value": "created_at",
4368
+ "isExpression": false
4369
+ }
4370
+ ],
4371
+ "isUnique": false,
4372
+ "where": null,
4373
+ "origin": "manual",
4374
+ "name": "runner_snapshots_runner_idx",
4375
+ "entityType": "indexes",
4376
+ "table": "runner_snapshots"
4377
+ },
4378
+ {
4379
+ "columns": [
4380
+ {
4381
+ "value": "subscription_id",
4382
+ "isExpression": false
4383
+ }
4384
+ ],
4385
+ "isUnique": false,
4386
+ "where": null,
4387
+ "origin": "manual",
4388
+ "name": "subscription_events_subscription_idx",
4389
+ "entityType": "indexes",
4390
+ "table": "subscription_events"
4391
+ },
4392
+ {
4393
+ "columns": [
4394
+ {
4395
+ "value": "chat_id",
4396
+ "isExpression": false
4397
+ }
4398
+ ],
4399
+ "isUnique": false,
4400
+ "where": null,
4401
+ "origin": "manual",
4402
+ "name": "subscriptions_chat_idx",
4403
+ "entityType": "indexes",
4404
+ "table": "subscriptions"
4405
+ },
4406
+ {
4407
+ "columns": [
4408
+ {
4409
+ "value": "worktree_id",
4410
+ "isExpression": false
4411
+ }
4412
+ ],
4413
+ "isUnique": false,
4414
+ "where": null,
4415
+ "origin": "manual",
4416
+ "name": "subscriptions_worktree_idx",
4417
+ "entityType": "indexes",
4418
+ "table": "subscriptions"
4419
+ },
4420
+ {
4421
+ "columns": [
4422
+ {
4423
+ "value": "hash",
4424
+ "isExpression": false
4425
+ }
4426
+ ],
4427
+ "isUnique": true,
4428
+ "where": null,
4429
+ "origin": "manual",
4430
+ "name": "tokens_hash_idx",
4431
+ "entityType": "indexes",
4432
+ "table": "tokens"
4433
+ },
4434
+ {
4435
+ "columns": [
4436
+ {
4437
+ "value": "host_id",
4438
+ "isExpression": false
4439
+ }
4440
+ ],
4441
+ "isUnique": false,
4442
+ "where": null,
4443
+ "origin": "manual",
4444
+ "name": "tokens_host_idx",
4445
+ "entityType": "indexes",
4446
+ "table": "tokens"
4447
+ },
4448
+ {
4449
+ "columns": [
4450
+ {
4451
+ "value": "created_at",
4452
+ "isExpression": false
4453
+ }
4454
+ ],
4455
+ "isUnique": false,
4456
+ "where": null,
4457
+ "origin": "manual",
4458
+ "name": "tokens_created_at_idx",
4459
+ "entityType": "indexes",
4460
+ "table": "tokens"
4461
+ },
4462
+ {
4463
+ "columns": [
4464
+ {
4465
+ "value": "captured_at",
4466
+ "isExpression": false
4467
+ }
4468
+ ],
4469
+ "isUnique": false,
4470
+ "where": null,
4471
+ "origin": "manual",
4472
+ "name": "usage_events_captured_at_idx",
4473
+ "entityType": "indexes",
4474
+ "table": "usage_events"
4475
+ },
4476
+ {
4477
+ "columns": [
4478
+ {
4479
+ "value": "task_id",
4480
+ "isExpression": false
4481
+ }
4482
+ ],
4483
+ "isUnique": false,
4484
+ "where": null,
4485
+ "origin": "manual",
4486
+ "name": "usage_events_task_idx",
4487
+ "entityType": "indexes",
4488
+ "table": "usage_events"
4489
+ },
4490
+ {
4491
+ "columns": [
4492
+ {
4493
+ "value": "worktree_id",
4494
+ "isExpression": false
4495
+ }
4496
+ ],
4497
+ "isUnique": false,
4498
+ "where": null,
4499
+ "origin": "manual",
4500
+ "name": "usage_events_worktree_idx",
4501
+ "entityType": "indexes",
4502
+ "table": "usage_events"
4503
+ },
4504
+ {
4505
+ "columns": [
4506
+ {
4507
+ "value": "external_key",
4508
+ "isExpression": false
4509
+ }
4510
+ ],
4511
+ "isUnique": true,
4512
+ "where": null,
4513
+ "origin": "manual",
4514
+ "name": "usage_events_external_key_uq",
4515
+ "entityType": "indexes",
4516
+ "table": "usage_events"
4517
+ },
4518
+ {
4519
+ "columns": [
4520
+ {
4521
+ "value": "worktree_id",
4522
+ "isExpression": false
4523
+ },
4524
+ {
4525
+ "value": "agent_type",
4526
+ "isExpression": false
4527
+ }
4528
+ ],
4529
+ "isUnique": true,
4530
+ "where": null,
4531
+ "origin": "manual",
4532
+ "name": "usage_scan_state_pk",
4533
+ "entityType": "indexes",
4534
+ "table": "usage_scan_state"
4535
+ },
4536
+ {
4537
+ "columns": [
4538
+ {
4539
+ "value": "scope",
4540
+ "isExpression": false
4541
+ },
4542
+ {
4543
+ "value": "name",
4544
+ "isExpression": false
4545
+ }
4546
+ ],
4547
+ "isUnique": true,
4548
+ "where": null,
4549
+ "origin": "manual",
4550
+ "name": "vault_items_scope_name_idx",
4551
+ "entityType": "indexes",
4552
+ "table": "vault_items"
4553
+ },
4554
+ {
4555
+ "columns": [
4556
+ {
4557
+ "value": "worktree_id",
4558
+ "isExpression": false
4559
+ },
4560
+ {
4561
+ "value": "created_at",
4562
+ "isExpression": false
4563
+ }
4564
+ ],
4565
+ "isUnique": false,
4566
+ "where": null,
4567
+ "origin": "manual",
4568
+ "name": "worktree_checkpoints_worktree_idx",
4569
+ "entityType": "indexes",
4570
+ "table": "worktree_checkpoints"
4571
+ },
4572
+ {
4573
+ "columns": [
4574
+ {
4575
+ "value": "host_id",
4576
+ "isExpression": false
4577
+ }
4578
+ ],
4579
+ "isUnique": false,
4580
+ "where": null,
4581
+ "origin": "manual",
4582
+ "name": "worktree_sleep_host_idx",
4583
+ "entityType": "indexes",
4584
+ "table": "worktree_sleep"
4585
+ },
4586
+ {
4587
+ "columns": [
4588
+ {
4589
+ "value": "terminal_id",
4590
+ "isExpression": false
4591
+ }
4592
+ ],
4593
+ "isUnique": false,
4594
+ "where": null,
4595
+ "origin": "manual",
4596
+ "name": "worktree_status_sources_terminal_idx",
4597
+ "entityType": "indexes",
4598
+ "table": "worktree_status_sources"
4599
+ }
4600
+ ],
4601
+ "renames": []
4602
+ }