devchain-cli 0.9.0 → 0.9.2

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