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