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