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