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