devchain-cli 0.9.0 → 0.9.1

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 (52) hide show
  1. package/dist/drizzle/0041_community_skill_sources.sql +12 -0
  2. package/dist/drizzle/meta/0041_snapshot.json +4102 -0
  3. package/dist/drizzle/meta/_journal.json +8 -1
  4. package/dist/server/modules/seeders/seeders/0003_seed_preseed_jeffallan_claude_skills.d.ts +3 -0
  5. package/dist/server/modules/seeders/seeders/0003_seed_preseed_jeffallan_claude_skills.js +41 -0
  6. package/dist/server/modules/seeders/seeders/0003_seed_preseed_jeffallan_claude_skills.js.map +1 -0
  7. package/dist/server/modules/seeders/seeders/0004_seed_disable_microsoft_source_default.d.ts +3 -0
  8. package/dist/server/modules/seeders/seeders/0004_seed_disable_microsoft_source_default.js +48 -0
  9. package/dist/server/modules/seeders/seeders/0004_seed_disable_microsoft_source_default.js.map +1 -0
  10. package/dist/server/modules/seeders/services/data-seeder.service.js +4 -0
  11. package/dist/server/modules/seeders/services/data-seeder.service.js.map +1 -1
  12. package/dist/server/modules/skills/adapters/community-skill-source.adapter.d.ts +11 -0
  13. package/dist/server/modules/skills/adapters/community-skill-source.adapter.js +181 -0
  14. package/dist/server/modules/skills/adapters/community-skill-source.adapter.js.map +1 -0
  15. package/dist/server/modules/skills/controllers/community-sources.controller.d.ts +12 -0
  16. package/dist/server/modules/skills/controllers/community-sources.controller.js +71 -0
  17. package/dist/server/modules/skills/controllers/community-sources.controller.js.map +1 -0
  18. package/dist/server/modules/skills/dtos/community-sources.dto.d.ts +100 -0
  19. package/dist/server/modules/skills/dtos/community-sources.dto.js +138 -0
  20. package/dist/server/modules/skills/dtos/community-sources.dto.js.map +1 -0
  21. package/dist/server/modules/skills/services/community-sources.service.d.ts +11 -0
  22. package/dist/server/modules/skills/services/community-sources.service.js +99 -0
  23. package/dist/server/modules/skills/services/community-sources.service.js.map +1 -0
  24. package/dist/server/modules/skills/services/skill-source-registry.service.d.ts +9 -0
  25. package/dist/server/modules/skills/services/skill-source-registry.service.js +46 -0
  26. package/dist/server/modules/skills/services/skill-source-registry.service.js.map +1 -0
  27. package/dist/server/modules/skills/services/skill-sync.service.d.ts +3 -3
  28. package/dist/server/modules/skills/services/skill-sync.service.js +9 -11
  29. package/dist/server/modules/skills/services/skill-sync.service.js.map +1 -1
  30. package/dist/server/modules/skills/services/skills.service.d.ts +3 -3
  31. package/dist/server/modules/skills/services/skills.service.js +21 -18
  32. package/dist/server/modules/skills/services/skills.service.js.map +1 -1
  33. package/dist/server/modules/skills/skills.module.js +7 -1
  34. package/dist/server/modules/skills/skills.module.js.map +1 -1
  35. package/dist/server/modules/storage/db/schema.d.ts +140 -0
  36. package/dist/server/modules/storage/db/schema.js +12 -1
  37. package/dist/server/modules/storage/db/schema.js.map +1 -1
  38. package/dist/server/modules/storage/interfaces/storage.interface.d.ts +6 -1
  39. package/dist/server/modules/storage/interfaces/storage.interface.js.map +1 -1
  40. package/dist/server/modules/storage/local/local-storage.service.d.ts +11 -1
  41. package/dist/server/modules/storage/local/local-storage.service.js +159 -0
  42. package/dist/server/modules/storage/local/local-storage.service.js.map +1 -1
  43. package/dist/server/modules/storage/models/domain.models.d.ts +12 -0
  44. package/dist/server/tsconfig.tsbuildinfo +1 -1
  45. package/dist/server/ui/assets/{ReviewDetailPage-D_-bS1MK.js → ReviewDetailPage-D13dH7Wh.js} +1 -1
  46. package/dist/server/ui/assets/{ReviewsPage-BE1gxYlC.js → ReviewsPage-C98ST0lf.js} +1 -1
  47. package/dist/server/ui/assets/{index-C094CE5I.js → index-C8Dc1yQf.js} +175 -175
  48. package/dist/server/ui/assets/index-DZkJ40z9.css +32 -0
  49. package/dist/server/ui/assets/{useReviewSubscription-Bs-17h-m.js → useReviewSubscription-CmLuF45Z.js} +1 -1
  50. package/dist/server/ui/index.html +2 -2
  51. package/package.json +4 -1
  52. package/dist/server/ui/assets/index-CbtpBUHu.css +0 -32
@@ -0,0 +1,4102 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "b8c8ae35-800d-4111-a14a-601c8a3c2410",
5
+ "prevId": "1152fa6c-388e-4d0e-939f-940534a7139b",
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
+ "memberships": {
1997
+ "name": "memberships",
1998
+ "columns": {
1999
+ "id": {
2000
+ "name": "id",
2001
+ "type": "text",
2002
+ "primaryKey": true,
2003
+ "notNull": true,
2004
+ "autoincrement": false
2005
+ },
2006
+ "user_id": {
2007
+ "name": "user_id",
2008
+ "type": "text",
2009
+ "primaryKey": false,
2010
+ "notNull": true,
2011
+ "autoincrement": false
2012
+ },
2013
+ "company_id": {
2014
+ "name": "company_id",
2015
+ "type": "text",
2016
+ "primaryKey": false,
2017
+ "notNull": true,
2018
+ "autoincrement": false
2019
+ },
2020
+ "role": {
2021
+ "name": "role",
2022
+ "type": "text",
2023
+ "primaryKey": false,
2024
+ "notNull": true,
2025
+ "autoincrement": false
2026
+ },
2027
+ "created_at": {
2028
+ "name": "created_at",
2029
+ "type": "text",
2030
+ "primaryKey": false,
2031
+ "notNull": true,
2032
+ "autoincrement": false
2033
+ },
2034
+ "updated_at": {
2035
+ "name": "updated_at",
2036
+ "type": "text",
2037
+ "primaryKey": false,
2038
+ "notNull": true,
2039
+ "autoincrement": false
2040
+ }
2041
+ },
2042
+ "indexes": {},
2043
+ "foreignKeys": {
2044
+ "memberships_user_id_users_id_fk": {
2045
+ "name": "memberships_user_id_users_id_fk",
2046
+ "tableFrom": "memberships",
2047
+ "tableTo": "users",
2048
+ "columnsFrom": [
2049
+ "user_id"
2050
+ ],
2051
+ "columnsTo": [
2052
+ "id"
2053
+ ],
2054
+ "onDelete": "cascade",
2055
+ "onUpdate": "no action"
2056
+ },
2057
+ "memberships_company_id_companies_id_fk": {
2058
+ "name": "memberships_company_id_companies_id_fk",
2059
+ "tableFrom": "memberships",
2060
+ "tableTo": "companies",
2061
+ "columnsFrom": [
2062
+ "company_id"
2063
+ ],
2064
+ "columnsTo": [
2065
+ "id"
2066
+ ],
2067
+ "onDelete": "cascade",
2068
+ "onUpdate": "no action"
2069
+ }
2070
+ },
2071
+ "compositePrimaryKeys": {},
2072
+ "uniqueConstraints": {},
2073
+ "checkConstraints": {}
2074
+ },
2075
+ "profile_provider_configs": {
2076
+ "name": "profile_provider_configs",
2077
+ "columns": {
2078
+ "id": {
2079
+ "name": "id",
2080
+ "type": "text",
2081
+ "primaryKey": true,
2082
+ "notNull": true,
2083
+ "autoincrement": false
2084
+ },
2085
+ "profile_id": {
2086
+ "name": "profile_id",
2087
+ "type": "text",
2088
+ "primaryKey": false,
2089
+ "notNull": true,
2090
+ "autoincrement": false
2091
+ },
2092
+ "provider_id": {
2093
+ "name": "provider_id",
2094
+ "type": "text",
2095
+ "primaryKey": false,
2096
+ "notNull": true,
2097
+ "autoincrement": false
2098
+ },
2099
+ "name": {
2100
+ "name": "name",
2101
+ "type": "text",
2102
+ "primaryKey": false,
2103
+ "notNull": true,
2104
+ "autoincrement": false
2105
+ },
2106
+ "options": {
2107
+ "name": "options",
2108
+ "type": "text",
2109
+ "primaryKey": false,
2110
+ "notNull": false,
2111
+ "autoincrement": false
2112
+ },
2113
+ "env": {
2114
+ "name": "env",
2115
+ "type": "text",
2116
+ "primaryKey": false,
2117
+ "notNull": false,
2118
+ "autoincrement": false
2119
+ },
2120
+ "position": {
2121
+ "name": "position",
2122
+ "type": "integer",
2123
+ "primaryKey": false,
2124
+ "notNull": true,
2125
+ "autoincrement": false,
2126
+ "default": 0
2127
+ },
2128
+ "created_at": {
2129
+ "name": "created_at",
2130
+ "type": "text",
2131
+ "primaryKey": false,
2132
+ "notNull": true,
2133
+ "autoincrement": false
2134
+ },
2135
+ "updated_at": {
2136
+ "name": "updated_at",
2137
+ "type": "text",
2138
+ "primaryKey": false,
2139
+ "notNull": true,
2140
+ "autoincrement": false
2141
+ }
2142
+ },
2143
+ "indexes": {
2144
+ "profile_provider_configs_profile_id_idx": {
2145
+ "name": "profile_provider_configs_profile_id_idx",
2146
+ "columns": [
2147
+ "profile_id"
2148
+ ],
2149
+ "isUnique": false
2150
+ },
2151
+ "profile_provider_configs_provider_id_idx": {
2152
+ "name": "profile_provider_configs_provider_id_idx",
2153
+ "columns": [
2154
+ "provider_id"
2155
+ ],
2156
+ "isUnique": false
2157
+ },
2158
+ "profile_provider_configs_profile_name_idx": {
2159
+ "name": "profile_provider_configs_profile_name_idx",
2160
+ "columns": [
2161
+ "profile_id",
2162
+ "name"
2163
+ ],
2164
+ "isUnique": true
2165
+ },
2166
+ "profile_provider_configs_profile_position_idx": {
2167
+ "name": "profile_provider_configs_profile_position_idx",
2168
+ "columns": [
2169
+ "profile_id",
2170
+ "position"
2171
+ ],
2172
+ "isUnique": true
2173
+ }
2174
+ },
2175
+ "foreignKeys": {
2176
+ "profile_provider_configs_profile_id_agent_profiles_id_fk": {
2177
+ "name": "profile_provider_configs_profile_id_agent_profiles_id_fk",
2178
+ "tableFrom": "profile_provider_configs",
2179
+ "tableTo": "agent_profiles",
2180
+ "columnsFrom": [
2181
+ "profile_id"
2182
+ ],
2183
+ "columnsTo": [
2184
+ "id"
2185
+ ],
2186
+ "onDelete": "cascade",
2187
+ "onUpdate": "no action"
2188
+ },
2189
+ "profile_provider_configs_provider_id_providers_id_fk": {
2190
+ "name": "profile_provider_configs_provider_id_providers_id_fk",
2191
+ "tableFrom": "profile_provider_configs",
2192
+ "tableTo": "providers",
2193
+ "columnsFrom": [
2194
+ "provider_id"
2195
+ ],
2196
+ "columnsTo": [
2197
+ "id"
2198
+ ],
2199
+ "onDelete": "no action",
2200
+ "onUpdate": "no action"
2201
+ }
2202
+ },
2203
+ "compositePrimaryKeys": {},
2204
+ "uniqueConstraints": {},
2205
+ "checkConstraints": {}
2206
+ },
2207
+ "project_paths": {
2208
+ "name": "project_paths",
2209
+ "columns": {
2210
+ "id": {
2211
+ "name": "id",
2212
+ "type": "text",
2213
+ "primaryKey": true,
2214
+ "notNull": true,
2215
+ "autoincrement": false
2216
+ },
2217
+ "path": {
2218
+ "name": "path",
2219
+ "type": "text",
2220
+ "primaryKey": false,
2221
+ "notNull": true,
2222
+ "autoincrement": false
2223
+ },
2224
+ "last_accessed_at": {
2225
+ "name": "last_accessed_at",
2226
+ "type": "text",
2227
+ "primaryKey": false,
2228
+ "notNull": true,
2229
+ "autoincrement": false
2230
+ },
2231
+ "created_at": {
2232
+ "name": "created_at",
2233
+ "type": "text",
2234
+ "primaryKey": false,
2235
+ "notNull": true,
2236
+ "autoincrement": false
2237
+ }
2238
+ },
2239
+ "indexes": {
2240
+ "project_paths_path_unique": {
2241
+ "name": "project_paths_path_unique",
2242
+ "columns": [
2243
+ "path"
2244
+ ],
2245
+ "isUnique": true
2246
+ }
2247
+ },
2248
+ "foreignKeys": {},
2249
+ "compositePrimaryKeys": {},
2250
+ "uniqueConstraints": {},
2251
+ "checkConstraints": {}
2252
+ },
2253
+ "projects": {
2254
+ "name": "projects",
2255
+ "columns": {
2256
+ "id": {
2257
+ "name": "id",
2258
+ "type": "text",
2259
+ "primaryKey": true,
2260
+ "notNull": true,
2261
+ "autoincrement": false
2262
+ },
2263
+ "name": {
2264
+ "name": "name",
2265
+ "type": "text",
2266
+ "primaryKey": false,
2267
+ "notNull": true,
2268
+ "autoincrement": false
2269
+ },
2270
+ "description": {
2271
+ "name": "description",
2272
+ "type": "text",
2273
+ "primaryKey": false,
2274
+ "notNull": false,
2275
+ "autoincrement": false
2276
+ },
2277
+ "root_path": {
2278
+ "name": "root_path",
2279
+ "type": "text",
2280
+ "primaryKey": false,
2281
+ "notNull": true,
2282
+ "autoincrement": false
2283
+ },
2284
+ "is_template": {
2285
+ "name": "is_template",
2286
+ "type": "integer",
2287
+ "primaryKey": false,
2288
+ "notNull": true,
2289
+ "autoincrement": false,
2290
+ "default": false
2291
+ },
2292
+ "is_private": {
2293
+ "name": "is_private",
2294
+ "type": "integer",
2295
+ "primaryKey": false,
2296
+ "notNull": false,
2297
+ "autoincrement": false,
2298
+ "default": false
2299
+ },
2300
+ "owner_user_id": {
2301
+ "name": "owner_user_id",
2302
+ "type": "text",
2303
+ "primaryKey": false,
2304
+ "notNull": false,
2305
+ "autoincrement": false
2306
+ },
2307
+ "created_at": {
2308
+ "name": "created_at",
2309
+ "type": "text",
2310
+ "primaryKey": false,
2311
+ "notNull": true,
2312
+ "autoincrement": false
2313
+ },
2314
+ "updated_at": {
2315
+ "name": "updated_at",
2316
+ "type": "text",
2317
+ "primaryKey": false,
2318
+ "notNull": true,
2319
+ "autoincrement": false
2320
+ }
2321
+ },
2322
+ "indexes": {},
2323
+ "foreignKeys": {},
2324
+ "compositePrimaryKeys": {},
2325
+ "uniqueConstraints": {},
2326
+ "checkConstraints": {}
2327
+ },
2328
+ "prompt_tags": {
2329
+ "name": "prompt_tags",
2330
+ "columns": {
2331
+ "prompt_id": {
2332
+ "name": "prompt_id",
2333
+ "type": "text",
2334
+ "primaryKey": false,
2335
+ "notNull": true,
2336
+ "autoincrement": false
2337
+ },
2338
+ "tag_id": {
2339
+ "name": "tag_id",
2340
+ "type": "text",
2341
+ "primaryKey": false,
2342
+ "notNull": true,
2343
+ "autoincrement": false
2344
+ },
2345
+ "created_at": {
2346
+ "name": "created_at",
2347
+ "type": "text",
2348
+ "primaryKey": false,
2349
+ "notNull": true,
2350
+ "autoincrement": false
2351
+ }
2352
+ },
2353
+ "indexes": {},
2354
+ "foreignKeys": {
2355
+ "prompt_tags_prompt_id_prompts_id_fk": {
2356
+ "name": "prompt_tags_prompt_id_prompts_id_fk",
2357
+ "tableFrom": "prompt_tags",
2358
+ "tableTo": "prompts",
2359
+ "columnsFrom": [
2360
+ "prompt_id"
2361
+ ],
2362
+ "columnsTo": [
2363
+ "id"
2364
+ ],
2365
+ "onDelete": "cascade",
2366
+ "onUpdate": "no action"
2367
+ },
2368
+ "prompt_tags_tag_id_tags_id_fk": {
2369
+ "name": "prompt_tags_tag_id_tags_id_fk",
2370
+ "tableFrom": "prompt_tags",
2371
+ "tableTo": "tags",
2372
+ "columnsFrom": [
2373
+ "tag_id"
2374
+ ],
2375
+ "columnsTo": [
2376
+ "id"
2377
+ ],
2378
+ "onDelete": "cascade",
2379
+ "onUpdate": "no action"
2380
+ }
2381
+ },
2382
+ "compositePrimaryKeys": {},
2383
+ "uniqueConstraints": {},
2384
+ "checkConstraints": {}
2385
+ },
2386
+ "prompts": {
2387
+ "name": "prompts",
2388
+ "columns": {
2389
+ "id": {
2390
+ "name": "id",
2391
+ "type": "text",
2392
+ "primaryKey": true,
2393
+ "notNull": true,
2394
+ "autoincrement": false
2395
+ },
2396
+ "project_id": {
2397
+ "name": "project_id",
2398
+ "type": "text",
2399
+ "primaryKey": false,
2400
+ "notNull": false,
2401
+ "autoincrement": false
2402
+ },
2403
+ "title": {
2404
+ "name": "title",
2405
+ "type": "text",
2406
+ "primaryKey": false,
2407
+ "notNull": true,
2408
+ "autoincrement": false
2409
+ },
2410
+ "content": {
2411
+ "name": "content",
2412
+ "type": "text",
2413
+ "primaryKey": false,
2414
+ "notNull": true,
2415
+ "autoincrement": false
2416
+ },
2417
+ "version": {
2418
+ "name": "version",
2419
+ "type": "integer",
2420
+ "primaryKey": false,
2421
+ "notNull": true,
2422
+ "autoincrement": false,
2423
+ "default": 1
2424
+ },
2425
+ "created_at": {
2426
+ "name": "created_at",
2427
+ "type": "text",
2428
+ "primaryKey": false,
2429
+ "notNull": true,
2430
+ "autoincrement": false
2431
+ },
2432
+ "updated_at": {
2433
+ "name": "updated_at",
2434
+ "type": "text",
2435
+ "primaryKey": false,
2436
+ "notNull": true,
2437
+ "autoincrement": false
2438
+ }
2439
+ },
2440
+ "indexes": {},
2441
+ "foreignKeys": {
2442
+ "prompts_project_id_projects_id_fk": {
2443
+ "name": "prompts_project_id_projects_id_fk",
2444
+ "tableFrom": "prompts",
2445
+ "tableTo": "projects",
2446
+ "columnsFrom": [
2447
+ "project_id"
2448
+ ],
2449
+ "columnsTo": [
2450
+ "id"
2451
+ ],
2452
+ "onDelete": "cascade",
2453
+ "onUpdate": "no action"
2454
+ }
2455
+ },
2456
+ "compositePrimaryKeys": {},
2457
+ "uniqueConstraints": {},
2458
+ "checkConstraints": {}
2459
+ },
2460
+ "providers": {
2461
+ "name": "providers",
2462
+ "columns": {
2463
+ "id": {
2464
+ "name": "id",
2465
+ "type": "text",
2466
+ "primaryKey": true,
2467
+ "notNull": true,
2468
+ "autoincrement": false
2469
+ },
2470
+ "name": {
2471
+ "name": "name",
2472
+ "type": "text",
2473
+ "primaryKey": false,
2474
+ "notNull": true,
2475
+ "autoincrement": false
2476
+ },
2477
+ "bin_path": {
2478
+ "name": "bin_path",
2479
+ "type": "text",
2480
+ "primaryKey": false,
2481
+ "notNull": false,
2482
+ "autoincrement": false
2483
+ },
2484
+ "mcp_configured": {
2485
+ "name": "mcp_configured",
2486
+ "type": "integer",
2487
+ "primaryKey": false,
2488
+ "notNull": true,
2489
+ "autoincrement": false,
2490
+ "default": false
2491
+ },
2492
+ "mcp_endpoint": {
2493
+ "name": "mcp_endpoint",
2494
+ "type": "text",
2495
+ "primaryKey": false,
2496
+ "notNull": false,
2497
+ "autoincrement": false
2498
+ },
2499
+ "mcp_registered_at": {
2500
+ "name": "mcp_registered_at",
2501
+ "type": "text",
2502
+ "primaryKey": false,
2503
+ "notNull": false,
2504
+ "autoincrement": false
2505
+ },
2506
+ "created_at": {
2507
+ "name": "created_at",
2508
+ "type": "text",
2509
+ "primaryKey": false,
2510
+ "notNull": true,
2511
+ "autoincrement": false
2512
+ },
2513
+ "updated_at": {
2514
+ "name": "updated_at",
2515
+ "type": "text",
2516
+ "primaryKey": false,
2517
+ "notNull": true,
2518
+ "autoincrement": false
2519
+ }
2520
+ },
2521
+ "indexes": {
2522
+ "providers_name_unique": {
2523
+ "name": "providers_name_unique",
2524
+ "columns": [
2525
+ "name"
2526
+ ],
2527
+ "isUnique": true
2528
+ }
2529
+ },
2530
+ "foreignKeys": {},
2531
+ "compositePrimaryKeys": {},
2532
+ "uniqueConstraints": {},
2533
+ "checkConstraints": {}
2534
+ },
2535
+ "record_tags": {
2536
+ "name": "record_tags",
2537
+ "columns": {
2538
+ "record_id": {
2539
+ "name": "record_id",
2540
+ "type": "text",
2541
+ "primaryKey": false,
2542
+ "notNull": true,
2543
+ "autoincrement": false
2544
+ },
2545
+ "tag_id": {
2546
+ "name": "tag_id",
2547
+ "type": "text",
2548
+ "primaryKey": false,
2549
+ "notNull": true,
2550
+ "autoincrement": false
2551
+ },
2552
+ "created_at": {
2553
+ "name": "created_at",
2554
+ "type": "text",
2555
+ "primaryKey": false,
2556
+ "notNull": true,
2557
+ "autoincrement": false
2558
+ }
2559
+ },
2560
+ "indexes": {},
2561
+ "foreignKeys": {
2562
+ "record_tags_record_id_records_id_fk": {
2563
+ "name": "record_tags_record_id_records_id_fk",
2564
+ "tableFrom": "record_tags",
2565
+ "tableTo": "records",
2566
+ "columnsFrom": [
2567
+ "record_id"
2568
+ ],
2569
+ "columnsTo": [
2570
+ "id"
2571
+ ],
2572
+ "onDelete": "cascade",
2573
+ "onUpdate": "no action"
2574
+ },
2575
+ "record_tags_tag_id_tags_id_fk": {
2576
+ "name": "record_tags_tag_id_tags_id_fk",
2577
+ "tableFrom": "record_tags",
2578
+ "tableTo": "tags",
2579
+ "columnsFrom": [
2580
+ "tag_id"
2581
+ ],
2582
+ "columnsTo": [
2583
+ "id"
2584
+ ],
2585
+ "onDelete": "cascade",
2586
+ "onUpdate": "no action"
2587
+ }
2588
+ },
2589
+ "compositePrimaryKeys": {},
2590
+ "uniqueConstraints": {},
2591
+ "checkConstraints": {}
2592
+ },
2593
+ "records": {
2594
+ "name": "records",
2595
+ "columns": {
2596
+ "id": {
2597
+ "name": "id",
2598
+ "type": "text",
2599
+ "primaryKey": true,
2600
+ "notNull": true,
2601
+ "autoincrement": false
2602
+ },
2603
+ "epic_id": {
2604
+ "name": "epic_id",
2605
+ "type": "text",
2606
+ "primaryKey": false,
2607
+ "notNull": true,
2608
+ "autoincrement": false
2609
+ },
2610
+ "type": {
2611
+ "name": "type",
2612
+ "type": "text",
2613
+ "primaryKey": false,
2614
+ "notNull": true,
2615
+ "autoincrement": false
2616
+ },
2617
+ "data": {
2618
+ "name": "data",
2619
+ "type": "text",
2620
+ "primaryKey": false,
2621
+ "notNull": true,
2622
+ "autoincrement": false
2623
+ },
2624
+ "version": {
2625
+ "name": "version",
2626
+ "type": "integer",
2627
+ "primaryKey": false,
2628
+ "notNull": true,
2629
+ "autoincrement": false,
2630
+ "default": 1
2631
+ },
2632
+ "created_at": {
2633
+ "name": "created_at",
2634
+ "type": "text",
2635
+ "primaryKey": false,
2636
+ "notNull": true,
2637
+ "autoincrement": false
2638
+ },
2639
+ "updated_at": {
2640
+ "name": "updated_at",
2641
+ "type": "text",
2642
+ "primaryKey": false,
2643
+ "notNull": true,
2644
+ "autoincrement": false
2645
+ }
2646
+ },
2647
+ "indexes": {},
2648
+ "foreignKeys": {
2649
+ "records_epic_id_epics_id_fk": {
2650
+ "name": "records_epic_id_epics_id_fk",
2651
+ "tableFrom": "records",
2652
+ "tableTo": "epics",
2653
+ "columnsFrom": [
2654
+ "epic_id"
2655
+ ],
2656
+ "columnsTo": [
2657
+ "id"
2658
+ ],
2659
+ "onDelete": "cascade",
2660
+ "onUpdate": "no action"
2661
+ }
2662
+ },
2663
+ "compositePrimaryKeys": {},
2664
+ "uniqueConstraints": {},
2665
+ "checkConstraints": {}
2666
+ },
2667
+ "review_comment_targets": {
2668
+ "name": "review_comment_targets",
2669
+ "columns": {
2670
+ "id": {
2671
+ "name": "id",
2672
+ "type": "text",
2673
+ "primaryKey": true,
2674
+ "notNull": true,
2675
+ "autoincrement": false
2676
+ },
2677
+ "comment_id": {
2678
+ "name": "comment_id",
2679
+ "type": "text",
2680
+ "primaryKey": false,
2681
+ "notNull": true,
2682
+ "autoincrement": false
2683
+ },
2684
+ "agent_id": {
2685
+ "name": "agent_id",
2686
+ "type": "text",
2687
+ "primaryKey": false,
2688
+ "notNull": true,
2689
+ "autoincrement": false
2690
+ },
2691
+ "created_at": {
2692
+ "name": "created_at",
2693
+ "type": "text",
2694
+ "primaryKey": false,
2695
+ "notNull": true,
2696
+ "autoincrement": false
2697
+ }
2698
+ },
2699
+ "indexes": {
2700
+ "review_comment_targets_comment_id_idx": {
2701
+ "name": "review_comment_targets_comment_id_idx",
2702
+ "columns": [
2703
+ "comment_id"
2704
+ ],
2705
+ "isUnique": false
2706
+ },
2707
+ "review_comment_targets_agent_id_idx": {
2708
+ "name": "review_comment_targets_agent_id_idx",
2709
+ "columns": [
2710
+ "agent_id"
2711
+ ],
2712
+ "isUnique": false
2713
+ }
2714
+ },
2715
+ "foreignKeys": {
2716
+ "review_comment_targets_comment_id_review_comments_id_fk": {
2717
+ "name": "review_comment_targets_comment_id_review_comments_id_fk",
2718
+ "tableFrom": "review_comment_targets",
2719
+ "tableTo": "review_comments",
2720
+ "columnsFrom": [
2721
+ "comment_id"
2722
+ ],
2723
+ "columnsTo": [
2724
+ "id"
2725
+ ],
2726
+ "onDelete": "cascade",
2727
+ "onUpdate": "no action"
2728
+ },
2729
+ "review_comment_targets_agent_id_agents_id_fk": {
2730
+ "name": "review_comment_targets_agent_id_agents_id_fk",
2731
+ "tableFrom": "review_comment_targets",
2732
+ "tableTo": "agents",
2733
+ "columnsFrom": [
2734
+ "agent_id"
2735
+ ],
2736
+ "columnsTo": [
2737
+ "id"
2738
+ ],
2739
+ "onDelete": "cascade",
2740
+ "onUpdate": "no action"
2741
+ }
2742
+ },
2743
+ "compositePrimaryKeys": {},
2744
+ "uniqueConstraints": {},
2745
+ "checkConstraints": {}
2746
+ },
2747
+ "review_comments": {
2748
+ "name": "review_comments",
2749
+ "columns": {
2750
+ "id": {
2751
+ "name": "id",
2752
+ "type": "text",
2753
+ "primaryKey": true,
2754
+ "notNull": true,
2755
+ "autoincrement": false
2756
+ },
2757
+ "review_id": {
2758
+ "name": "review_id",
2759
+ "type": "text",
2760
+ "primaryKey": false,
2761
+ "notNull": true,
2762
+ "autoincrement": false
2763
+ },
2764
+ "file_path": {
2765
+ "name": "file_path",
2766
+ "type": "text",
2767
+ "primaryKey": false,
2768
+ "notNull": false,
2769
+ "autoincrement": false
2770
+ },
2771
+ "parent_id": {
2772
+ "name": "parent_id",
2773
+ "type": "text",
2774
+ "primaryKey": false,
2775
+ "notNull": false,
2776
+ "autoincrement": false
2777
+ },
2778
+ "line_start": {
2779
+ "name": "line_start",
2780
+ "type": "integer",
2781
+ "primaryKey": false,
2782
+ "notNull": false,
2783
+ "autoincrement": false
2784
+ },
2785
+ "line_end": {
2786
+ "name": "line_end",
2787
+ "type": "integer",
2788
+ "primaryKey": false,
2789
+ "notNull": false,
2790
+ "autoincrement": false
2791
+ },
2792
+ "side": {
2793
+ "name": "side",
2794
+ "type": "text",
2795
+ "primaryKey": false,
2796
+ "notNull": false,
2797
+ "autoincrement": false
2798
+ },
2799
+ "content": {
2800
+ "name": "content",
2801
+ "type": "text",
2802
+ "primaryKey": false,
2803
+ "notNull": true,
2804
+ "autoincrement": false
2805
+ },
2806
+ "comment_type": {
2807
+ "name": "comment_type",
2808
+ "type": "text",
2809
+ "primaryKey": false,
2810
+ "notNull": true,
2811
+ "autoincrement": false
2812
+ },
2813
+ "status": {
2814
+ "name": "status",
2815
+ "type": "text",
2816
+ "primaryKey": false,
2817
+ "notNull": true,
2818
+ "autoincrement": false
2819
+ },
2820
+ "author_type": {
2821
+ "name": "author_type",
2822
+ "type": "text",
2823
+ "primaryKey": false,
2824
+ "notNull": true,
2825
+ "autoincrement": false
2826
+ },
2827
+ "author_agent_id": {
2828
+ "name": "author_agent_id",
2829
+ "type": "text",
2830
+ "primaryKey": false,
2831
+ "notNull": false,
2832
+ "autoincrement": false
2833
+ },
2834
+ "version": {
2835
+ "name": "version",
2836
+ "type": "integer",
2837
+ "primaryKey": false,
2838
+ "notNull": true,
2839
+ "autoincrement": false,
2840
+ "default": 1
2841
+ },
2842
+ "edited_at": {
2843
+ "name": "edited_at",
2844
+ "type": "text",
2845
+ "primaryKey": false,
2846
+ "notNull": false,
2847
+ "autoincrement": false
2848
+ },
2849
+ "created_at": {
2850
+ "name": "created_at",
2851
+ "type": "text",
2852
+ "primaryKey": false,
2853
+ "notNull": true,
2854
+ "autoincrement": false
2855
+ },
2856
+ "updated_at": {
2857
+ "name": "updated_at",
2858
+ "type": "text",
2859
+ "primaryKey": false,
2860
+ "notNull": true,
2861
+ "autoincrement": false
2862
+ }
2863
+ },
2864
+ "indexes": {
2865
+ "review_comments_review_id_idx": {
2866
+ "name": "review_comments_review_id_idx",
2867
+ "columns": [
2868
+ "review_id"
2869
+ ],
2870
+ "isUnique": false
2871
+ },
2872
+ "review_comments_parent_id_idx": {
2873
+ "name": "review_comments_parent_id_idx",
2874
+ "columns": [
2875
+ "parent_id"
2876
+ ],
2877
+ "isUnique": false
2878
+ },
2879
+ "review_comments_file_path_idx": {
2880
+ "name": "review_comments_file_path_idx",
2881
+ "columns": [
2882
+ "file_path"
2883
+ ],
2884
+ "isUnique": false
2885
+ },
2886
+ "review_comments_status_idx": {
2887
+ "name": "review_comments_status_idx",
2888
+ "columns": [
2889
+ "status"
2890
+ ],
2891
+ "isUnique": false
2892
+ }
2893
+ },
2894
+ "foreignKeys": {
2895
+ "review_comments_review_id_reviews_id_fk": {
2896
+ "name": "review_comments_review_id_reviews_id_fk",
2897
+ "tableFrom": "review_comments",
2898
+ "tableTo": "reviews",
2899
+ "columnsFrom": [
2900
+ "review_id"
2901
+ ],
2902
+ "columnsTo": [
2903
+ "id"
2904
+ ],
2905
+ "onDelete": "cascade",
2906
+ "onUpdate": "no action"
2907
+ },
2908
+ "review_comments_author_agent_id_agents_id_fk": {
2909
+ "name": "review_comments_author_agent_id_agents_id_fk",
2910
+ "tableFrom": "review_comments",
2911
+ "tableTo": "agents",
2912
+ "columnsFrom": [
2913
+ "author_agent_id"
2914
+ ],
2915
+ "columnsTo": [
2916
+ "id"
2917
+ ],
2918
+ "onDelete": "set null",
2919
+ "onUpdate": "no action"
2920
+ },
2921
+ "review_comments_parent_id_fk": {
2922
+ "name": "review_comments_parent_id_fk",
2923
+ "tableFrom": "review_comments",
2924
+ "tableTo": "review_comments",
2925
+ "columnsFrom": [
2926
+ "parent_id"
2927
+ ],
2928
+ "columnsTo": [
2929
+ "id"
2930
+ ],
2931
+ "onDelete": "no action",
2932
+ "onUpdate": "no action"
2933
+ }
2934
+ },
2935
+ "compositePrimaryKeys": {},
2936
+ "uniqueConstraints": {},
2937
+ "checkConstraints": {}
2938
+ },
2939
+ "reviews": {
2940
+ "name": "reviews",
2941
+ "columns": {
2942
+ "id": {
2943
+ "name": "id",
2944
+ "type": "text",
2945
+ "primaryKey": true,
2946
+ "notNull": true,
2947
+ "autoincrement": false
2948
+ },
2949
+ "project_id": {
2950
+ "name": "project_id",
2951
+ "type": "text",
2952
+ "primaryKey": false,
2953
+ "notNull": true,
2954
+ "autoincrement": false
2955
+ },
2956
+ "epic_id": {
2957
+ "name": "epic_id",
2958
+ "type": "text",
2959
+ "primaryKey": false,
2960
+ "notNull": false,
2961
+ "autoincrement": false
2962
+ },
2963
+ "title": {
2964
+ "name": "title",
2965
+ "type": "text",
2966
+ "primaryKey": false,
2967
+ "notNull": true,
2968
+ "autoincrement": false
2969
+ },
2970
+ "description": {
2971
+ "name": "description",
2972
+ "type": "text",
2973
+ "primaryKey": false,
2974
+ "notNull": false,
2975
+ "autoincrement": false
2976
+ },
2977
+ "status": {
2978
+ "name": "status",
2979
+ "type": "text",
2980
+ "primaryKey": false,
2981
+ "notNull": true,
2982
+ "autoincrement": false
2983
+ },
2984
+ "mode": {
2985
+ "name": "mode",
2986
+ "type": "text",
2987
+ "primaryKey": false,
2988
+ "notNull": true,
2989
+ "autoincrement": false,
2990
+ "default": "'commit'"
2991
+ },
2992
+ "base_ref": {
2993
+ "name": "base_ref",
2994
+ "type": "text",
2995
+ "primaryKey": false,
2996
+ "notNull": true,
2997
+ "autoincrement": false
2998
+ },
2999
+ "head_ref": {
3000
+ "name": "head_ref",
3001
+ "type": "text",
3002
+ "primaryKey": false,
3003
+ "notNull": true,
3004
+ "autoincrement": false
3005
+ },
3006
+ "base_sha": {
3007
+ "name": "base_sha",
3008
+ "type": "text",
3009
+ "primaryKey": false,
3010
+ "notNull": false,
3011
+ "autoincrement": false
3012
+ },
3013
+ "head_sha": {
3014
+ "name": "head_sha",
3015
+ "type": "text",
3016
+ "primaryKey": false,
3017
+ "notNull": false,
3018
+ "autoincrement": false
3019
+ },
3020
+ "created_by": {
3021
+ "name": "created_by",
3022
+ "type": "text",
3023
+ "primaryKey": false,
3024
+ "notNull": true,
3025
+ "autoincrement": false
3026
+ },
3027
+ "created_by_agent_id": {
3028
+ "name": "created_by_agent_id",
3029
+ "type": "text",
3030
+ "primaryKey": false,
3031
+ "notNull": false,
3032
+ "autoincrement": false
3033
+ },
3034
+ "version": {
3035
+ "name": "version",
3036
+ "type": "integer",
3037
+ "primaryKey": false,
3038
+ "notNull": true,
3039
+ "autoincrement": false,
3040
+ "default": 1
3041
+ },
3042
+ "created_at": {
3043
+ "name": "created_at",
3044
+ "type": "text",
3045
+ "primaryKey": false,
3046
+ "notNull": true,
3047
+ "autoincrement": false
3048
+ },
3049
+ "updated_at": {
3050
+ "name": "updated_at",
3051
+ "type": "text",
3052
+ "primaryKey": false,
3053
+ "notNull": true,
3054
+ "autoincrement": false
3055
+ }
3056
+ },
3057
+ "indexes": {
3058
+ "reviews_project_id_idx": {
3059
+ "name": "reviews_project_id_idx",
3060
+ "columns": [
3061
+ "project_id"
3062
+ ],
3063
+ "isUnique": false
3064
+ },
3065
+ "reviews_epic_id_idx": {
3066
+ "name": "reviews_epic_id_idx",
3067
+ "columns": [
3068
+ "epic_id"
3069
+ ],
3070
+ "isUnique": false
3071
+ },
3072
+ "reviews_status_idx": {
3073
+ "name": "reviews_status_idx",
3074
+ "columns": [
3075
+ "status"
3076
+ ],
3077
+ "isUnique": false
3078
+ }
3079
+ },
3080
+ "foreignKeys": {
3081
+ "reviews_project_id_projects_id_fk": {
3082
+ "name": "reviews_project_id_projects_id_fk",
3083
+ "tableFrom": "reviews",
3084
+ "tableTo": "projects",
3085
+ "columnsFrom": [
3086
+ "project_id"
3087
+ ],
3088
+ "columnsTo": [
3089
+ "id"
3090
+ ],
3091
+ "onDelete": "cascade",
3092
+ "onUpdate": "no action"
3093
+ },
3094
+ "reviews_epic_id_epics_id_fk": {
3095
+ "name": "reviews_epic_id_epics_id_fk",
3096
+ "tableFrom": "reviews",
3097
+ "tableTo": "epics",
3098
+ "columnsFrom": [
3099
+ "epic_id"
3100
+ ],
3101
+ "columnsTo": [
3102
+ "id"
3103
+ ],
3104
+ "onDelete": "set null",
3105
+ "onUpdate": "no action"
3106
+ },
3107
+ "reviews_created_by_agent_id_agents_id_fk": {
3108
+ "name": "reviews_created_by_agent_id_agents_id_fk",
3109
+ "tableFrom": "reviews",
3110
+ "tableTo": "agents",
3111
+ "columnsFrom": [
3112
+ "created_by_agent_id"
3113
+ ],
3114
+ "columnsTo": [
3115
+ "id"
3116
+ ],
3117
+ "onDelete": "set null",
3118
+ "onUpdate": "no action"
3119
+ }
3120
+ },
3121
+ "compositePrimaryKeys": {},
3122
+ "uniqueConstraints": {},
3123
+ "checkConstraints": {}
3124
+ },
3125
+ "sessions": {
3126
+ "name": "sessions",
3127
+ "columns": {
3128
+ "id": {
3129
+ "name": "id",
3130
+ "type": "text",
3131
+ "primaryKey": true,
3132
+ "notNull": true,
3133
+ "autoincrement": false
3134
+ },
3135
+ "epic_id": {
3136
+ "name": "epic_id",
3137
+ "type": "text",
3138
+ "primaryKey": false,
3139
+ "notNull": false,
3140
+ "autoincrement": false
3141
+ },
3142
+ "agent_id": {
3143
+ "name": "agent_id",
3144
+ "type": "text",
3145
+ "primaryKey": false,
3146
+ "notNull": false,
3147
+ "autoincrement": false
3148
+ },
3149
+ "tmux_session_id": {
3150
+ "name": "tmux_session_id",
3151
+ "type": "text",
3152
+ "primaryKey": false,
3153
+ "notNull": false,
3154
+ "autoincrement": false
3155
+ },
3156
+ "status": {
3157
+ "name": "status",
3158
+ "type": "text",
3159
+ "primaryKey": false,
3160
+ "notNull": true,
3161
+ "autoincrement": false
3162
+ },
3163
+ "started_at": {
3164
+ "name": "started_at",
3165
+ "type": "text",
3166
+ "primaryKey": false,
3167
+ "notNull": true,
3168
+ "autoincrement": false
3169
+ },
3170
+ "ended_at": {
3171
+ "name": "ended_at",
3172
+ "type": "text",
3173
+ "primaryKey": false,
3174
+ "notNull": false,
3175
+ "autoincrement": false
3176
+ },
3177
+ "last_activity_at": {
3178
+ "name": "last_activity_at",
3179
+ "type": "text",
3180
+ "primaryKey": false,
3181
+ "notNull": false,
3182
+ "autoincrement": false
3183
+ },
3184
+ "activity_state": {
3185
+ "name": "activity_state",
3186
+ "type": "text",
3187
+ "primaryKey": false,
3188
+ "notNull": false,
3189
+ "autoincrement": false
3190
+ },
3191
+ "busy_since": {
3192
+ "name": "busy_since",
3193
+ "type": "text",
3194
+ "primaryKey": false,
3195
+ "notNull": false,
3196
+ "autoincrement": false
3197
+ },
3198
+ "created_at": {
3199
+ "name": "created_at",
3200
+ "type": "text",
3201
+ "primaryKey": false,
3202
+ "notNull": true,
3203
+ "autoincrement": false
3204
+ },
3205
+ "updated_at": {
3206
+ "name": "updated_at",
3207
+ "type": "text",
3208
+ "primaryKey": false,
3209
+ "notNull": true,
3210
+ "autoincrement": false
3211
+ }
3212
+ },
3213
+ "indexes": {
3214
+ "idx_sessions_agent_running": {
3215
+ "name": "idx_sessions_agent_running",
3216
+ "columns": [
3217
+ "agent_id"
3218
+ ],
3219
+ "isUnique": true,
3220
+ "where": "status = 'running' AND agent_id IS NOT NULL"
3221
+ }
3222
+ },
3223
+ "foreignKeys": {
3224
+ "sessions_epic_id_epics_id_fk": {
3225
+ "name": "sessions_epic_id_epics_id_fk",
3226
+ "tableFrom": "sessions",
3227
+ "tableTo": "epics",
3228
+ "columnsFrom": [
3229
+ "epic_id"
3230
+ ],
3231
+ "columnsTo": [
3232
+ "id"
3233
+ ],
3234
+ "onDelete": "set null",
3235
+ "onUpdate": "no action"
3236
+ },
3237
+ "sessions_agent_id_agents_id_fk": {
3238
+ "name": "sessions_agent_id_agents_id_fk",
3239
+ "tableFrom": "sessions",
3240
+ "tableTo": "agents",
3241
+ "columnsFrom": [
3242
+ "agent_id"
3243
+ ],
3244
+ "columnsTo": [
3245
+ "id"
3246
+ ],
3247
+ "onDelete": "restrict",
3248
+ "onUpdate": "no action"
3249
+ }
3250
+ },
3251
+ "compositePrimaryKeys": {},
3252
+ "uniqueConstraints": {},
3253
+ "checkConstraints": {}
3254
+ },
3255
+ "settings": {
3256
+ "name": "settings",
3257
+ "columns": {
3258
+ "id": {
3259
+ "name": "id",
3260
+ "type": "text",
3261
+ "primaryKey": true,
3262
+ "notNull": true,
3263
+ "autoincrement": false
3264
+ },
3265
+ "key": {
3266
+ "name": "key",
3267
+ "type": "text",
3268
+ "primaryKey": false,
3269
+ "notNull": true,
3270
+ "autoincrement": false
3271
+ },
3272
+ "value": {
3273
+ "name": "value",
3274
+ "type": "text",
3275
+ "primaryKey": false,
3276
+ "notNull": true,
3277
+ "autoincrement": false
3278
+ },
3279
+ "created_at": {
3280
+ "name": "created_at",
3281
+ "type": "text",
3282
+ "primaryKey": false,
3283
+ "notNull": true,
3284
+ "autoincrement": false
3285
+ },
3286
+ "updated_at": {
3287
+ "name": "updated_at",
3288
+ "type": "text",
3289
+ "primaryKey": false,
3290
+ "notNull": true,
3291
+ "autoincrement": false
3292
+ }
3293
+ },
3294
+ "indexes": {
3295
+ "settings_key_unique": {
3296
+ "name": "settings_key_unique",
3297
+ "columns": [
3298
+ "key"
3299
+ ],
3300
+ "isUnique": true
3301
+ }
3302
+ },
3303
+ "foreignKeys": {},
3304
+ "compositePrimaryKeys": {},
3305
+ "uniqueConstraints": {},
3306
+ "checkConstraints": {}
3307
+ },
3308
+ "skill_project_disabled": {
3309
+ "name": "skill_project_disabled",
3310
+ "columns": {
3311
+ "id": {
3312
+ "name": "id",
3313
+ "type": "text",
3314
+ "primaryKey": true,
3315
+ "notNull": true,
3316
+ "autoincrement": false
3317
+ },
3318
+ "project_id": {
3319
+ "name": "project_id",
3320
+ "type": "text",
3321
+ "primaryKey": false,
3322
+ "notNull": true,
3323
+ "autoincrement": false
3324
+ },
3325
+ "skill_id": {
3326
+ "name": "skill_id",
3327
+ "type": "text",
3328
+ "primaryKey": false,
3329
+ "notNull": true,
3330
+ "autoincrement": false
3331
+ },
3332
+ "created_at": {
3333
+ "name": "created_at",
3334
+ "type": "text",
3335
+ "primaryKey": false,
3336
+ "notNull": true,
3337
+ "autoincrement": false
3338
+ }
3339
+ },
3340
+ "indexes": {
3341
+ "skill_project_disabled_project_skill_unique": {
3342
+ "name": "skill_project_disabled_project_skill_unique",
3343
+ "columns": [
3344
+ "project_id",
3345
+ "skill_id"
3346
+ ],
3347
+ "isUnique": true
3348
+ }
3349
+ },
3350
+ "foreignKeys": {
3351
+ "skill_project_disabled_project_id_projects_id_fk": {
3352
+ "name": "skill_project_disabled_project_id_projects_id_fk",
3353
+ "tableFrom": "skill_project_disabled",
3354
+ "tableTo": "projects",
3355
+ "columnsFrom": [
3356
+ "project_id"
3357
+ ],
3358
+ "columnsTo": [
3359
+ "id"
3360
+ ],
3361
+ "onDelete": "cascade",
3362
+ "onUpdate": "no action"
3363
+ },
3364
+ "skill_project_disabled_skill_id_skills_id_fk": {
3365
+ "name": "skill_project_disabled_skill_id_skills_id_fk",
3366
+ "tableFrom": "skill_project_disabled",
3367
+ "tableTo": "skills",
3368
+ "columnsFrom": [
3369
+ "skill_id"
3370
+ ],
3371
+ "columnsTo": [
3372
+ "id"
3373
+ ],
3374
+ "onDelete": "cascade",
3375
+ "onUpdate": "no action"
3376
+ }
3377
+ },
3378
+ "compositePrimaryKeys": {},
3379
+ "uniqueConstraints": {},
3380
+ "checkConstraints": {}
3381
+ },
3382
+ "skill_usage_log": {
3383
+ "name": "skill_usage_log",
3384
+ "columns": {
3385
+ "id": {
3386
+ "name": "id",
3387
+ "type": "text",
3388
+ "primaryKey": true,
3389
+ "notNull": true,
3390
+ "autoincrement": false
3391
+ },
3392
+ "skill_id": {
3393
+ "name": "skill_id",
3394
+ "type": "text",
3395
+ "primaryKey": false,
3396
+ "notNull": true,
3397
+ "autoincrement": false
3398
+ },
3399
+ "skill_slug": {
3400
+ "name": "skill_slug",
3401
+ "type": "text",
3402
+ "primaryKey": false,
3403
+ "notNull": true,
3404
+ "autoincrement": false
3405
+ },
3406
+ "project_id": {
3407
+ "name": "project_id",
3408
+ "type": "text",
3409
+ "primaryKey": false,
3410
+ "notNull": false,
3411
+ "autoincrement": false
3412
+ },
3413
+ "agent_id": {
3414
+ "name": "agent_id",
3415
+ "type": "text",
3416
+ "primaryKey": false,
3417
+ "notNull": false,
3418
+ "autoincrement": false
3419
+ },
3420
+ "agent_name_snapshot": {
3421
+ "name": "agent_name_snapshot",
3422
+ "type": "text",
3423
+ "primaryKey": false,
3424
+ "notNull": false,
3425
+ "autoincrement": false
3426
+ },
3427
+ "accessed_at": {
3428
+ "name": "accessed_at",
3429
+ "type": "text",
3430
+ "primaryKey": false,
3431
+ "notNull": true,
3432
+ "autoincrement": false
3433
+ }
3434
+ },
3435
+ "indexes": {
3436
+ "skill_usage_log_skill_id_idx": {
3437
+ "name": "skill_usage_log_skill_id_idx",
3438
+ "columns": [
3439
+ "skill_id"
3440
+ ],
3441
+ "isUnique": false
3442
+ },
3443
+ "skill_usage_log_project_id_idx": {
3444
+ "name": "skill_usage_log_project_id_idx",
3445
+ "columns": [
3446
+ "project_id"
3447
+ ],
3448
+ "isUnique": false
3449
+ },
3450
+ "skill_usage_log_accessed_at_idx": {
3451
+ "name": "skill_usage_log_accessed_at_idx",
3452
+ "columns": [
3453
+ "accessed_at"
3454
+ ],
3455
+ "isUnique": false
3456
+ }
3457
+ },
3458
+ "foreignKeys": {
3459
+ "skill_usage_log_skill_id_skills_id_fk": {
3460
+ "name": "skill_usage_log_skill_id_skills_id_fk",
3461
+ "tableFrom": "skill_usage_log",
3462
+ "tableTo": "skills",
3463
+ "columnsFrom": [
3464
+ "skill_id"
3465
+ ],
3466
+ "columnsTo": [
3467
+ "id"
3468
+ ],
3469
+ "onDelete": "cascade",
3470
+ "onUpdate": "no action"
3471
+ }
3472
+ },
3473
+ "compositePrimaryKeys": {},
3474
+ "uniqueConstraints": {},
3475
+ "checkConstraints": {}
3476
+ },
3477
+ "skills": {
3478
+ "name": "skills",
3479
+ "columns": {
3480
+ "id": {
3481
+ "name": "id",
3482
+ "type": "text",
3483
+ "primaryKey": true,
3484
+ "notNull": true,
3485
+ "autoincrement": false
3486
+ },
3487
+ "slug": {
3488
+ "name": "slug",
3489
+ "type": "text",
3490
+ "primaryKey": false,
3491
+ "notNull": true,
3492
+ "autoincrement": false
3493
+ },
3494
+ "name": {
3495
+ "name": "name",
3496
+ "type": "text",
3497
+ "primaryKey": false,
3498
+ "notNull": true,
3499
+ "autoincrement": false
3500
+ },
3501
+ "display_name": {
3502
+ "name": "display_name",
3503
+ "type": "text",
3504
+ "primaryKey": false,
3505
+ "notNull": true,
3506
+ "autoincrement": false
3507
+ },
3508
+ "description": {
3509
+ "name": "description",
3510
+ "type": "text",
3511
+ "primaryKey": false,
3512
+ "notNull": false,
3513
+ "autoincrement": false
3514
+ },
3515
+ "short_description": {
3516
+ "name": "short_description",
3517
+ "type": "text",
3518
+ "primaryKey": false,
3519
+ "notNull": false,
3520
+ "autoincrement": false
3521
+ },
3522
+ "source": {
3523
+ "name": "source",
3524
+ "type": "text",
3525
+ "primaryKey": false,
3526
+ "notNull": true,
3527
+ "autoincrement": false
3528
+ },
3529
+ "source_url": {
3530
+ "name": "source_url",
3531
+ "type": "text",
3532
+ "primaryKey": false,
3533
+ "notNull": false,
3534
+ "autoincrement": false
3535
+ },
3536
+ "source_commit": {
3537
+ "name": "source_commit",
3538
+ "type": "text",
3539
+ "primaryKey": false,
3540
+ "notNull": false,
3541
+ "autoincrement": false
3542
+ },
3543
+ "category": {
3544
+ "name": "category",
3545
+ "type": "text",
3546
+ "primaryKey": false,
3547
+ "notNull": false,
3548
+ "autoincrement": false
3549
+ },
3550
+ "license": {
3551
+ "name": "license",
3552
+ "type": "text",
3553
+ "primaryKey": false,
3554
+ "notNull": false,
3555
+ "autoincrement": false
3556
+ },
3557
+ "compatibility": {
3558
+ "name": "compatibility",
3559
+ "type": "text",
3560
+ "primaryKey": false,
3561
+ "notNull": false,
3562
+ "autoincrement": false
3563
+ },
3564
+ "frontmatter": {
3565
+ "name": "frontmatter",
3566
+ "type": "text",
3567
+ "primaryKey": false,
3568
+ "notNull": false,
3569
+ "autoincrement": false
3570
+ },
3571
+ "instruction_content": {
3572
+ "name": "instruction_content",
3573
+ "type": "text",
3574
+ "primaryKey": false,
3575
+ "notNull": false,
3576
+ "autoincrement": false
3577
+ },
3578
+ "content_path": {
3579
+ "name": "content_path",
3580
+ "type": "text",
3581
+ "primaryKey": false,
3582
+ "notNull": false,
3583
+ "autoincrement": false
3584
+ },
3585
+ "resources": {
3586
+ "name": "resources",
3587
+ "type": "text",
3588
+ "primaryKey": false,
3589
+ "notNull": false,
3590
+ "autoincrement": false
3591
+ },
3592
+ "status": {
3593
+ "name": "status",
3594
+ "type": "text",
3595
+ "primaryKey": false,
3596
+ "notNull": true,
3597
+ "autoincrement": false,
3598
+ "default": "'available'"
3599
+ },
3600
+ "last_synced_at": {
3601
+ "name": "last_synced_at",
3602
+ "type": "text",
3603
+ "primaryKey": false,
3604
+ "notNull": false,
3605
+ "autoincrement": false
3606
+ },
3607
+ "created_at": {
3608
+ "name": "created_at",
3609
+ "type": "text",
3610
+ "primaryKey": false,
3611
+ "notNull": true,
3612
+ "autoincrement": false
3613
+ },
3614
+ "updated_at": {
3615
+ "name": "updated_at",
3616
+ "type": "text",
3617
+ "primaryKey": false,
3618
+ "notNull": true,
3619
+ "autoincrement": false
3620
+ }
3621
+ },
3622
+ "indexes": {
3623
+ "skills_slug_unique": {
3624
+ "name": "skills_slug_unique",
3625
+ "columns": [
3626
+ "slug"
3627
+ ],
3628
+ "isUnique": true
3629
+ },
3630
+ "skills_source_idx": {
3631
+ "name": "skills_source_idx",
3632
+ "columns": [
3633
+ "source"
3634
+ ],
3635
+ "isUnique": false
3636
+ },
3637
+ "skills_category_idx": {
3638
+ "name": "skills_category_idx",
3639
+ "columns": [
3640
+ "category"
3641
+ ],
3642
+ "isUnique": false
3643
+ },
3644
+ "skills_status_idx": {
3645
+ "name": "skills_status_idx",
3646
+ "columns": [
3647
+ "status"
3648
+ ],
3649
+ "isUnique": false
3650
+ }
3651
+ },
3652
+ "foreignKeys": {},
3653
+ "compositePrimaryKeys": {},
3654
+ "uniqueConstraints": {},
3655
+ "checkConstraints": {}
3656
+ },
3657
+ "statuses": {
3658
+ "name": "statuses",
3659
+ "columns": {
3660
+ "id": {
3661
+ "name": "id",
3662
+ "type": "text",
3663
+ "primaryKey": true,
3664
+ "notNull": true,
3665
+ "autoincrement": false
3666
+ },
3667
+ "project_id": {
3668
+ "name": "project_id",
3669
+ "type": "text",
3670
+ "primaryKey": false,
3671
+ "notNull": true,
3672
+ "autoincrement": false
3673
+ },
3674
+ "label": {
3675
+ "name": "label",
3676
+ "type": "text",
3677
+ "primaryKey": false,
3678
+ "notNull": true,
3679
+ "autoincrement": false
3680
+ },
3681
+ "color": {
3682
+ "name": "color",
3683
+ "type": "text",
3684
+ "primaryKey": false,
3685
+ "notNull": true,
3686
+ "autoincrement": false
3687
+ },
3688
+ "position": {
3689
+ "name": "position",
3690
+ "type": "integer",
3691
+ "primaryKey": false,
3692
+ "notNull": true,
3693
+ "autoincrement": false
3694
+ },
3695
+ "mcp_hidden": {
3696
+ "name": "mcp_hidden",
3697
+ "type": "integer",
3698
+ "primaryKey": false,
3699
+ "notNull": true,
3700
+ "autoincrement": false,
3701
+ "default": false
3702
+ },
3703
+ "created_at": {
3704
+ "name": "created_at",
3705
+ "type": "text",
3706
+ "primaryKey": false,
3707
+ "notNull": true,
3708
+ "autoincrement": false
3709
+ },
3710
+ "updated_at": {
3711
+ "name": "updated_at",
3712
+ "type": "text",
3713
+ "primaryKey": false,
3714
+ "notNull": true,
3715
+ "autoincrement": false
3716
+ }
3717
+ },
3718
+ "indexes": {
3719
+ "statuses_project_position_idx": {
3720
+ "name": "statuses_project_position_idx",
3721
+ "columns": [
3722
+ "project_id",
3723
+ "position"
3724
+ ],
3725
+ "isUnique": true
3726
+ }
3727
+ },
3728
+ "foreignKeys": {
3729
+ "statuses_project_id_projects_id_fk": {
3730
+ "name": "statuses_project_id_projects_id_fk",
3731
+ "tableFrom": "statuses",
3732
+ "tableTo": "projects",
3733
+ "columnsFrom": [
3734
+ "project_id"
3735
+ ],
3736
+ "columnsTo": [
3737
+ "id"
3738
+ ],
3739
+ "onDelete": "cascade",
3740
+ "onUpdate": "no action"
3741
+ }
3742
+ },
3743
+ "compositePrimaryKeys": {},
3744
+ "uniqueConstraints": {},
3745
+ "checkConstraints": {}
3746
+ },
3747
+ "tags": {
3748
+ "name": "tags",
3749
+ "columns": {
3750
+ "id": {
3751
+ "name": "id",
3752
+ "type": "text",
3753
+ "primaryKey": true,
3754
+ "notNull": true,
3755
+ "autoincrement": false
3756
+ },
3757
+ "project_id": {
3758
+ "name": "project_id",
3759
+ "type": "text",
3760
+ "primaryKey": false,
3761
+ "notNull": false,
3762
+ "autoincrement": false
3763
+ },
3764
+ "name": {
3765
+ "name": "name",
3766
+ "type": "text",
3767
+ "primaryKey": false,
3768
+ "notNull": true,
3769
+ "autoincrement": false
3770
+ },
3771
+ "created_at": {
3772
+ "name": "created_at",
3773
+ "type": "text",
3774
+ "primaryKey": false,
3775
+ "notNull": true,
3776
+ "autoincrement": false
3777
+ },
3778
+ "updated_at": {
3779
+ "name": "updated_at",
3780
+ "type": "text",
3781
+ "primaryKey": false,
3782
+ "notNull": true,
3783
+ "autoincrement": false
3784
+ }
3785
+ },
3786
+ "indexes": {},
3787
+ "foreignKeys": {
3788
+ "tags_project_id_projects_id_fk": {
3789
+ "name": "tags_project_id_projects_id_fk",
3790
+ "tableFrom": "tags",
3791
+ "tableTo": "projects",
3792
+ "columnsFrom": [
3793
+ "project_id"
3794
+ ],
3795
+ "columnsTo": [
3796
+ "id"
3797
+ ],
3798
+ "onDelete": "cascade",
3799
+ "onUpdate": "no action"
3800
+ }
3801
+ },
3802
+ "compositePrimaryKeys": {},
3803
+ "uniqueConstraints": {},
3804
+ "checkConstraints": {}
3805
+ },
3806
+ "terminal_watchers": {
3807
+ "name": "terminal_watchers",
3808
+ "columns": {
3809
+ "id": {
3810
+ "name": "id",
3811
+ "type": "text",
3812
+ "primaryKey": true,
3813
+ "notNull": true,
3814
+ "autoincrement": false
3815
+ },
3816
+ "project_id": {
3817
+ "name": "project_id",
3818
+ "type": "text",
3819
+ "primaryKey": false,
3820
+ "notNull": true,
3821
+ "autoincrement": false
3822
+ },
3823
+ "name": {
3824
+ "name": "name",
3825
+ "type": "text",
3826
+ "primaryKey": false,
3827
+ "notNull": true,
3828
+ "autoincrement": false
3829
+ },
3830
+ "description": {
3831
+ "name": "description",
3832
+ "type": "text",
3833
+ "primaryKey": false,
3834
+ "notNull": false,
3835
+ "autoincrement": false
3836
+ },
3837
+ "enabled": {
3838
+ "name": "enabled",
3839
+ "type": "integer",
3840
+ "primaryKey": false,
3841
+ "notNull": true,
3842
+ "autoincrement": false,
3843
+ "default": true
3844
+ },
3845
+ "scope": {
3846
+ "name": "scope",
3847
+ "type": "text",
3848
+ "primaryKey": false,
3849
+ "notNull": true,
3850
+ "autoincrement": false,
3851
+ "default": "'all'"
3852
+ },
3853
+ "scope_filter_id": {
3854
+ "name": "scope_filter_id",
3855
+ "type": "text",
3856
+ "primaryKey": false,
3857
+ "notNull": false,
3858
+ "autoincrement": false
3859
+ },
3860
+ "poll_interval_ms": {
3861
+ "name": "poll_interval_ms",
3862
+ "type": "integer",
3863
+ "primaryKey": false,
3864
+ "notNull": true,
3865
+ "autoincrement": false,
3866
+ "default": 5000
3867
+ },
3868
+ "viewport_lines": {
3869
+ "name": "viewport_lines",
3870
+ "type": "integer",
3871
+ "primaryKey": false,
3872
+ "notNull": true,
3873
+ "autoincrement": false,
3874
+ "default": 50
3875
+ },
3876
+ "condition": {
3877
+ "name": "condition",
3878
+ "type": "text",
3879
+ "primaryKey": false,
3880
+ "notNull": true,
3881
+ "autoincrement": false
3882
+ },
3883
+ "idle_after_seconds": {
3884
+ "name": "idle_after_seconds",
3885
+ "type": "integer",
3886
+ "primaryKey": false,
3887
+ "notNull": true,
3888
+ "autoincrement": false,
3889
+ "default": 0
3890
+ },
3891
+ "cooldown_ms": {
3892
+ "name": "cooldown_ms",
3893
+ "type": "integer",
3894
+ "primaryKey": false,
3895
+ "notNull": true,
3896
+ "autoincrement": false,
3897
+ "default": 60000
3898
+ },
3899
+ "cooldown_mode": {
3900
+ "name": "cooldown_mode",
3901
+ "type": "text",
3902
+ "primaryKey": false,
3903
+ "notNull": true,
3904
+ "autoincrement": false,
3905
+ "default": "'time'"
3906
+ },
3907
+ "event_name": {
3908
+ "name": "event_name",
3909
+ "type": "text",
3910
+ "primaryKey": false,
3911
+ "notNull": true,
3912
+ "autoincrement": false
3913
+ },
3914
+ "created_at": {
3915
+ "name": "created_at",
3916
+ "type": "text",
3917
+ "primaryKey": false,
3918
+ "notNull": true,
3919
+ "autoincrement": false
3920
+ },
3921
+ "updated_at": {
3922
+ "name": "updated_at",
3923
+ "type": "text",
3924
+ "primaryKey": false,
3925
+ "notNull": true,
3926
+ "autoincrement": false
3927
+ }
3928
+ },
3929
+ "indexes": {
3930
+ "terminal_watchers_project_id_idx": {
3931
+ "name": "terminal_watchers_project_id_idx",
3932
+ "columns": [
3933
+ "project_id"
3934
+ ],
3935
+ "isUnique": false
3936
+ },
3937
+ "terminal_watchers_enabled_idx": {
3938
+ "name": "terminal_watchers_enabled_idx",
3939
+ "columns": [
3940
+ "enabled"
3941
+ ],
3942
+ "isUnique": false
3943
+ }
3944
+ },
3945
+ "foreignKeys": {
3946
+ "terminal_watchers_project_id_projects_id_fk": {
3947
+ "name": "terminal_watchers_project_id_projects_id_fk",
3948
+ "tableFrom": "terminal_watchers",
3949
+ "tableTo": "projects",
3950
+ "columnsFrom": [
3951
+ "project_id"
3952
+ ],
3953
+ "columnsTo": [
3954
+ "id"
3955
+ ],
3956
+ "onDelete": "cascade",
3957
+ "onUpdate": "no action"
3958
+ }
3959
+ },
3960
+ "compositePrimaryKeys": {},
3961
+ "uniqueConstraints": {},
3962
+ "checkConstraints": {}
3963
+ },
3964
+ "transcripts": {
3965
+ "name": "transcripts",
3966
+ "columns": {
3967
+ "id": {
3968
+ "name": "id",
3969
+ "type": "text",
3970
+ "primaryKey": true,
3971
+ "notNull": true,
3972
+ "autoincrement": false
3973
+ },
3974
+ "session_id": {
3975
+ "name": "session_id",
3976
+ "type": "text",
3977
+ "primaryKey": false,
3978
+ "notNull": true,
3979
+ "autoincrement": false
3980
+ },
3981
+ "content": {
3982
+ "name": "content",
3983
+ "type": "text",
3984
+ "primaryKey": false,
3985
+ "notNull": true,
3986
+ "autoincrement": false
3987
+ },
3988
+ "archived_at": {
3989
+ "name": "archived_at",
3990
+ "type": "text",
3991
+ "primaryKey": false,
3992
+ "notNull": false,
3993
+ "autoincrement": false
3994
+ },
3995
+ "created_at": {
3996
+ "name": "created_at",
3997
+ "type": "text",
3998
+ "primaryKey": false,
3999
+ "notNull": true,
4000
+ "autoincrement": false
4001
+ },
4002
+ "updated_at": {
4003
+ "name": "updated_at",
4004
+ "type": "text",
4005
+ "primaryKey": false,
4006
+ "notNull": true,
4007
+ "autoincrement": false
4008
+ }
4009
+ },
4010
+ "indexes": {},
4011
+ "foreignKeys": {
4012
+ "transcripts_session_id_sessions_id_fk": {
4013
+ "name": "transcripts_session_id_sessions_id_fk",
4014
+ "tableFrom": "transcripts",
4015
+ "tableTo": "sessions",
4016
+ "columnsFrom": [
4017
+ "session_id"
4018
+ ],
4019
+ "columnsTo": [
4020
+ "id"
4021
+ ],
4022
+ "onDelete": "cascade",
4023
+ "onUpdate": "no action"
4024
+ }
4025
+ },
4026
+ "compositePrimaryKeys": {},
4027
+ "uniqueConstraints": {},
4028
+ "checkConstraints": {}
4029
+ },
4030
+ "users": {
4031
+ "name": "users",
4032
+ "columns": {
4033
+ "id": {
4034
+ "name": "id",
4035
+ "type": "text",
4036
+ "primaryKey": true,
4037
+ "notNull": true,
4038
+ "autoincrement": false
4039
+ },
4040
+ "email": {
4041
+ "name": "email",
4042
+ "type": "text",
4043
+ "primaryKey": false,
4044
+ "notNull": true,
4045
+ "autoincrement": false
4046
+ },
4047
+ "name": {
4048
+ "name": "name",
4049
+ "type": "text",
4050
+ "primaryKey": false,
4051
+ "notNull": false,
4052
+ "autoincrement": false
4053
+ },
4054
+ "created_at": {
4055
+ "name": "created_at",
4056
+ "type": "text",
4057
+ "primaryKey": false,
4058
+ "notNull": true,
4059
+ "autoincrement": false
4060
+ },
4061
+ "updated_at": {
4062
+ "name": "updated_at",
4063
+ "type": "text",
4064
+ "primaryKey": false,
4065
+ "notNull": true,
4066
+ "autoincrement": false
4067
+ }
4068
+ },
4069
+ "indexes": {
4070
+ "users_email_unique": {
4071
+ "name": "users_email_unique",
4072
+ "columns": [
4073
+ "email"
4074
+ ],
4075
+ "isUnique": true
4076
+ }
4077
+ },
4078
+ "foreignKeys": {},
4079
+ "compositePrimaryKeys": {},
4080
+ "uniqueConstraints": {},
4081
+ "checkConstraints": {}
4082
+ }
4083
+ },
4084
+ "views": {},
4085
+ "enums": {},
4086
+ "_meta": {
4087
+ "schemas": {},
4088
+ "tables": {},
4089
+ "columns": {}
4090
+ },
4091
+ "internal": {
4092
+ "indexes": {
4093
+ "guests_project_name_unique": {
4094
+ "columns": {
4095
+ "\"name\" COLLATE NOCASE": {
4096
+ "isExpression": true
4097
+ }
4098
+ }
4099
+ }
4100
+ }
4101
+ }
4102
+ }