devchain-cli 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/drizzle/0022_guests.sql +16 -0
  2. package/dist/drizzle/0023_add_guest_description.sql +1 -0
  3. package/dist/drizzle/meta/0022_snapshot.json +3064 -0
  4. package/dist/drizzle/meta/0023_snapshot.json +3069 -0
  5. package/dist/drizzle/meta/_journal.json +15 -1
  6. package/dist/node_modules/@devchain/shared/tsconfig.tsbuildinfo +1 -1
  7. package/dist/server/app.module.js +2 -0
  8. package/dist/server/app.module.js.map +1 -1
  9. package/dist/server/modules/agents/controllers/agents.controller.d.ts +14 -1
  10. package/dist/server/modules/agents/controllers/agents.controller.js +30 -4
  11. package/dist/server/modules/agents/controllers/agents.controller.js.map +1 -1
  12. package/dist/server/modules/events/catalog/guest.registered.d.ts +24 -0
  13. package/dist/server/modules/events/catalog/guest.registered.js +15 -0
  14. package/dist/server/modules/events/catalog/guest.registered.js.map +1 -0
  15. package/dist/server/modules/events/catalog/guest.unregistered.d.ts +24 -0
  16. package/dist/server/modules/events/catalog/guest.unregistered.js +15 -0
  17. package/dist/server/modules/events/catalog/guest.unregistered.js.map +1 -0
  18. package/dist/server/modules/events/catalog/index.d.ts +38 -0
  19. package/dist/server/modules/events/catalog/index.js +4 -0
  20. package/dist/server/modules/events/catalog/index.js.map +1 -1
  21. package/dist/server/modules/guests/constants.d.ts +3 -0
  22. package/dist/server/modules/guests/constants.js +7 -0
  23. package/dist/server/modules/guests/constants.js.map +1 -0
  24. package/dist/server/modules/guests/dtos/guest.dto.d.ts +21 -0
  25. package/dist/server/modules/guests/dtos/guest.dto.js +3 -0
  26. package/dist/server/modules/guests/dtos/guest.dto.js.map +1 -0
  27. package/dist/server/modules/guests/guests.module.d.ts +2 -0
  28. package/dist/server/modules/guests/guests.module.js +26 -0
  29. package/dist/server/modules/guests/guests.module.js.map +1 -0
  30. package/dist/server/modules/guests/services/guest-health.service.d.ts +21 -0
  31. package/dist/server/modules/guests/services/guest-health.service.js +125 -0
  32. package/dist/server/modules/guests/services/guest-health.service.js.map +1 -0
  33. package/dist/server/modules/guests/services/guests.service.d.ts +30 -0
  34. package/dist/server/modules/guests/services/guests.service.js +178 -0
  35. package/dist/server/modules/guests/services/guests.service.js.map +1 -0
  36. package/dist/server/modules/mcp/controllers/mcp-http.controller.js +22 -0
  37. package/dist/server/modules/mcp/controllers/mcp-http.controller.js.map +1 -1
  38. package/dist/server/modules/mcp/controllers/mcp-sdk.controller.js +22 -0
  39. package/dist/server/modules/mcp/controllers/mcp-sdk.controller.js.map +1 -1
  40. package/dist/server/modules/mcp/dtos/mcp.dto.d.ts +67 -5
  41. package/dist/server/modules/mcp/dtos/mcp.dto.js +13 -1
  42. package/dist/server/modules/mcp/dtos/mcp.dto.js.map +1 -1
  43. package/dist/server/modules/mcp/mcp.module.js +2 -0
  44. package/dist/server/modules/mcp/mcp.module.js.map +1 -1
  45. package/dist/server/modules/mcp/services/mcp.service.d.ts +9 -1
  46. package/dist/server/modules/mcp/services/mcp.service.js +357 -71
  47. package/dist/server/modules/mcp/services/mcp.service.js.map +1 -1
  48. package/dist/server/modules/storage/db/schema.d.ts +159 -0
  49. package/dist/server/modules/storage/db/schema.js +18 -1
  50. package/dist/server/modules/storage/db/schema.js.map +1 -1
  51. package/dist/server/modules/storage/interfaces/storage.interface.d.ts +12 -1
  52. package/dist/server/modules/storage/interfaces/storage.interface.js.map +1 -1
  53. package/dist/server/modules/storage/local/local-storage.service.d.ts +12 -1
  54. package/dist/server/modules/storage/local/local-storage.service.js +194 -1
  55. package/dist/server/modules/storage/local/local-storage.service.js.map +1 -1
  56. package/dist/server/modules/storage/models/domain.models.d.ts +12 -0
  57. package/dist/server/modules/terminal/services/tmux.service.d.ts +2 -0
  58. package/dist/server/modules/terminal/services/tmux.service.js +74 -13
  59. package/dist/server/modules/terminal/services/tmux.service.js.map +1 -1
  60. package/dist/server/tsconfig.tsbuildinfo +1 -1
  61. package/dist/server/ui/assets/{index-Bgulh8ua.js → index-hB0e02VB.js} +165 -165
  62. package/dist/server/ui/index.html +1 -1
  63. package/package.json +5 -1
@@ -0,0 +1,3064 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "c2a3b4d5-e6f7-4890-ab12-cd34ef567890",
5
+ "prevId": "bf1f0f7f-6f75-428c-82fa-77812273f323",
6
+ "tables": {
7
+ "guests": {
8
+ "name": "guests",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "project_id": {
18
+ "name": "project_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "name": {
25
+ "name": "name",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "tmux_session_id": {
32
+ "name": "tmux_session_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "last_seen_at": {
39
+ "name": "last_seen_at",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "created_at": {
46
+ "name": "created_at",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "updated_at": {
53
+ "name": "updated_at",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ }
59
+ },
60
+ "indexes": {
61
+ "guests_project_name_unique": {
62
+ "name": "guests_project_name_unique",
63
+ "columns": [
64
+ "project_id",
65
+ "name"
66
+ ],
67
+ "isUnique": true
68
+ },
69
+ "guests_tmux_session_id_unique": {
70
+ "name": "guests_tmux_session_id_unique",
71
+ "columns": [
72
+ "tmux_session_id"
73
+ ],
74
+ "isUnique": true
75
+ },
76
+ "guests_project_id_idx": {
77
+ "name": "guests_project_id_idx",
78
+ "columns": [
79
+ "project_id"
80
+ ],
81
+ "isUnique": false
82
+ }
83
+ },
84
+ "foreignKeys": {
85
+ "guests_project_id_projects_id_fk": {
86
+ "name": "guests_project_id_projects_id_fk",
87
+ "tableFrom": "guests",
88
+ "tableTo": "projects",
89
+ "columnsFrom": [
90
+ "project_id"
91
+ ],
92
+ "columnsTo": [
93
+ "id"
94
+ ],
95
+ "onDelete": "cascade",
96
+ "onUpdate": "no action"
97
+ }
98
+ },
99
+ "compositePrimaryKeys": {},
100
+ "uniqueConstraints": {},
101
+ "checkConstraints": {}
102
+ },
103
+ "agent_profile_prompts": {
104
+ "name": "agent_profile_prompts",
105
+ "columns": {
106
+ "profile_id": {
107
+ "name": "profile_id",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "prompt_id": {
114
+ "name": "prompt_id",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "created_at": {
121
+ "name": "created_at",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": true,
125
+ "autoincrement": false
126
+ }
127
+ },
128
+ "indexes": {},
129
+ "foreignKeys": {
130
+ "agent_profile_prompts_profile_id_agent_profiles_id_fk": {
131
+ "name": "agent_profile_prompts_profile_id_agent_profiles_id_fk",
132
+ "tableFrom": "agent_profile_prompts",
133
+ "tableTo": "agent_profiles",
134
+ "columnsFrom": [
135
+ "profile_id"
136
+ ],
137
+ "columnsTo": [
138
+ "id"
139
+ ],
140
+ "onDelete": "cascade",
141
+ "onUpdate": "no action"
142
+ },
143
+ "agent_profile_prompts_prompt_id_prompts_id_fk": {
144
+ "name": "agent_profile_prompts_prompt_id_prompts_id_fk",
145
+ "tableFrom": "agent_profile_prompts",
146
+ "tableTo": "prompts",
147
+ "columnsFrom": [
148
+ "prompt_id"
149
+ ],
150
+ "columnsTo": [
151
+ "id"
152
+ ],
153
+ "onDelete": "cascade",
154
+ "onUpdate": "no action"
155
+ }
156
+ },
157
+ "compositePrimaryKeys": {},
158
+ "uniqueConstraints": {},
159
+ "checkConstraints": {}
160
+ },
161
+ "agent_profiles": {
162
+ "name": "agent_profiles",
163
+ "columns": {
164
+ "id": {
165
+ "name": "id",
166
+ "type": "text",
167
+ "primaryKey": true,
168
+ "notNull": true,
169
+ "autoincrement": false
170
+ },
171
+ "project_id": {
172
+ "name": "project_id",
173
+ "type": "text",
174
+ "primaryKey": false,
175
+ "notNull": false,
176
+ "autoincrement": false
177
+ },
178
+ "name": {
179
+ "name": "name",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "autoincrement": false
184
+ },
185
+ "provider_id": {
186
+ "name": "provider_id",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "options": {
193
+ "name": "options",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": false,
197
+ "autoincrement": false
198
+ },
199
+ "system_prompt": {
200
+ "name": "system_prompt",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": false,
204
+ "autoincrement": false
205
+ },
206
+ "instructions": {
207
+ "name": "instructions",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": false,
211
+ "autoincrement": false
212
+ },
213
+ "temperature": {
214
+ "name": "temperature",
215
+ "type": "integer",
216
+ "primaryKey": false,
217
+ "notNull": false,
218
+ "autoincrement": false
219
+ },
220
+ "max_tokens": {
221
+ "name": "max_tokens",
222
+ "type": "integer",
223
+ "primaryKey": false,
224
+ "notNull": false,
225
+ "autoincrement": false
226
+ },
227
+ "created_at": {
228
+ "name": "created_at",
229
+ "type": "text",
230
+ "primaryKey": false,
231
+ "notNull": true,
232
+ "autoincrement": false
233
+ },
234
+ "updated_at": {
235
+ "name": "updated_at",
236
+ "type": "text",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false
240
+ },
241
+ "family_slug": {
242
+ "name": "family_slug",
243
+ "type": "text",
244
+ "primaryKey": false,
245
+ "notNull": false,
246
+ "autoincrement": false
247
+ }
248
+ },
249
+ "indexes": {
250
+ "agent_profiles_project_name_unique": {
251
+ "name": "agent_profiles_project_name_unique",
252
+ "columns": [
253
+ "project_id",
254
+ "name"
255
+ ],
256
+ "isUnique": true
257
+ },
258
+ "agent_profiles_family_provider_unique": {
259
+ "name": "agent_profiles_family_provider_unique",
260
+ "columns": [
261
+ "project_id",
262
+ "family_slug",
263
+ "provider_id"
264
+ ],
265
+ "isUnique": true,
266
+ "where": "family_slug IS NOT NULL"
267
+ }
268
+ },
269
+ "foreignKeys": {
270
+ "agent_profiles_project_id_projects_id_fk": {
271
+ "name": "agent_profiles_project_id_projects_id_fk",
272
+ "tableFrom": "agent_profiles",
273
+ "tableTo": "projects",
274
+ "columnsFrom": [
275
+ "project_id"
276
+ ],
277
+ "columnsTo": [
278
+ "id"
279
+ ],
280
+ "onDelete": "cascade",
281
+ "onUpdate": "no action"
282
+ },
283
+ "agent_profiles_provider_id_providers_id_fk": {
284
+ "name": "agent_profiles_provider_id_providers_id_fk",
285
+ "tableFrom": "agent_profiles",
286
+ "tableTo": "providers",
287
+ "columnsFrom": [
288
+ "provider_id"
289
+ ],
290
+ "columnsTo": [
291
+ "id"
292
+ ],
293
+ "onDelete": "no action",
294
+ "onUpdate": "no action"
295
+ }
296
+ },
297
+ "compositePrimaryKeys": {},
298
+ "uniqueConstraints": {},
299
+ "checkConstraints": {}
300
+ },
301
+ "agents": {
302
+ "name": "agents",
303
+ "columns": {
304
+ "id": {
305
+ "name": "id",
306
+ "type": "text",
307
+ "primaryKey": true,
308
+ "notNull": true,
309
+ "autoincrement": false
310
+ },
311
+ "project_id": {
312
+ "name": "project_id",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "autoincrement": false
317
+ },
318
+ "profile_id": {
319
+ "name": "profile_id",
320
+ "type": "text",
321
+ "primaryKey": false,
322
+ "notNull": true,
323
+ "autoincrement": false
324
+ },
325
+ "name": {
326
+ "name": "name",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": true,
330
+ "autoincrement": false
331
+ },
332
+ "description": {
333
+ "name": "description",
334
+ "type": "text",
335
+ "primaryKey": false,
336
+ "notNull": false,
337
+ "autoincrement": false
338
+ },
339
+ "created_at": {
340
+ "name": "created_at",
341
+ "type": "text",
342
+ "primaryKey": false,
343
+ "notNull": true,
344
+ "autoincrement": false
345
+ },
346
+ "updated_at": {
347
+ "name": "updated_at",
348
+ "type": "text",
349
+ "primaryKey": false,
350
+ "notNull": true,
351
+ "autoincrement": false
352
+ }
353
+ },
354
+ "indexes": {},
355
+ "foreignKeys": {
356
+ "agents_project_id_projects_id_fk": {
357
+ "name": "agents_project_id_projects_id_fk",
358
+ "tableFrom": "agents",
359
+ "tableTo": "projects",
360
+ "columnsFrom": [
361
+ "project_id"
362
+ ],
363
+ "columnsTo": [
364
+ "id"
365
+ ],
366
+ "onDelete": "cascade",
367
+ "onUpdate": "no action"
368
+ },
369
+ "agents_profile_id_agent_profiles_id_fk": {
370
+ "name": "agents_profile_id_agent_profiles_id_fk",
371
+ "tableFrom": "agents",
372
+ "tableTo": "agent_profiles",
373
+ "columnsFrom": [
374
+ "profile_id"
375
+ ],
376
+ "columnsTo": [
377
+ "id"
378
+ ],
379
+ "onDelete": "no action",
380
+ "onUpdate": "no action"
381
+ }
382
+ },
383
+ "compositePrimaryKeys": {},
384
+ "uniqueConstraints": {},
385
+ "checkConstraints": {}
386
+ },
387
+ "api_keys": {
388
+ "name": "api_keys",
389
+ "columns": {
390
+ "id": {
391
+ "name": "id",
392
+ "type": "text",
393
+ "primaryKey": true,
394
+ "notNull": true,
395
+ "autoincrement": false
396
+ },
397
+ "user_id": {
398
+ "name": "user_id",
399
+ "type": "text",
400
+ "primaryKey": false,
401
+ "notNull": true,
402
+ "autoincrement": false
403
+ },
404
+ "key_hash": {
405
+ "name": "key_hash",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "name": {
412
+ "name": "name",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "last_used_at": {
419
+ "name": "last_used_at",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": false,
423
+ "autoincrement": false
424
+ },
425
+ "created_at": {
426
+ "name": "created_at",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "updated_at": {
433
+ "name": "updated_at",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ }
439
+ },
440
+ "indexes": {},
441
+ "foreignKeys": {
442
+ "api_keys_user_id_users_id_fk": {
443
+ "name": "api_keys_user_id_users_id_fk",
444
+ "tableFrom": "api_keys",
445
+ "tableTo": "users",
446
+ "columnsFrom": [
447
+ "user_id"
448
+ ],
449
+ "columnsTo": [
450
+ "id"
451
+ ],
452
+ "onDelete": "cascade",
453
+ "onUpdate": "no action"
454
+ }
455
+ },
456
+ "compositePrimaryKeys": {},
457
+ "uniqueConstraints": {},
458
+ "checkConstraints": {}
459
+ },
460
+ "automation_subscribers": {
461
+ "name": "automation_subscribers",
462
+ "columns": {
463
+ "id": {
464
+ "name": "id",
465
+ "type": "text",
466
+ "primaryKey": true,
467
+ "notNull": true,
468
+ "autoincrement": false
469
+ },
470
+ "project_id": {
471
+ "name": "project_id",
472
+ "type": "text",
473
+ "primaryKey": false,
474
+ "notNull": true,
475
+ "autoincrement": false
476
+ },
477
+ "name": {
478
+ "name": "name",
479
+ "type": "text",
480
+ "primaryKey": false,
481
+ "notNull": true,
482
+ "autoincrement": false
483
+ },
484
+ "description": {
485
+ "name": "description",
486
+ "type": "text",
487
+ "primaryKey": false,
488
+ "notNull": false,
489
+ "autoincrement": false
490
+ },
491
+ "enabled": {
492
+ "name": "enabled",
493
+ "type": "integer",
494
+ "primaryKey": false,
495
+ "notNull": true,
496
+ "autoincrement": false,
497
+ "default": true
498
+ },
499
+ "event_name": {
500
+ "name": "event_name",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "autoincrement": false
505
+ },
506
+ "event_filter": {
507
+ "name": "event_filter",
508
+ "type": "text",
509
+ "primaryKey": false,
510
+ "notNull": false,
511
+ "autoincrement": false
512
+ },
513
+ "action_type": {
514
+ "name": "action_type",
515
+ "type": "text",
516
+ "primaryKey": false,
517
+ "notNull": true,
518
+ "autoincrement": false
519
+ },
520
+ "action_inputs": {
521
+ "name": "action_inputs",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "autoincrement": false
526
+ },
527
+ "delay_ms": {
528
+ "name": "delay_ms",
529
+ "type": "integer",
530
+ "primaryKey": false,
531
+ "notNull": true,
532
+ "autoincrement": false,
533
+ "default": 0
534
+ },
535
+ "cooldown_ms": {
536
+ "name": "cooldown_ms",
537
+ "type": "integer",
538
+ "primaryKey": false,
539
+ "notNull": true,
540
+ "autoincrement": false,
541
+ "default": 5000
542
+ },
543
+ "retry_on_error": {
544
+ "name": "retry_on_error",
545
+ "type": "integer",
546
+ "primaryKey": false,
547
+ "notNull": true,
548
+ "autoincrement": false,
549
+ "default": false
550
+ },
551
+ "group_name": {
552
+ "name": "group_name",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": false,
556
+ "autoincrement": false
557
+ },
558
+ "position": {
559
+ "name": "position",
560
+ "type": "integer",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false,
564
+ "default": 0
565
+ },
566
+ "priority": {
567
+ "name": "priority",
568
+ "type": "integer",
569
+ "primaryKey": false,
570
+ "notNull": true,
571
+ "autoincrement": false,
572
+ "default": 0
573
+ },
574
+ "created_at": {
575
+ "name": "created_at",
576
+ "type": "text",
577
+ "primaryKey": false,
578
+ "notNull": true,
579
+ "autoincrement": false
580
+ },
581
+ "updated_at": {
582
+ "name": "updated_at",
583
+ "type": "text",
584
+ "primaryKey": false,
585
+ "notNull": true,
586
+ "autoincrement": false
587
+ }
588
+ },
589
+ "indexes": {
590
+ "automation_subscribers_project_id_idx": {
591
+ "name": "automation_subscribers_project_id_idx",
592
+ "columns": [
593
+ "project_id"
594
+ ],
595
+ "isUnique": false
596
+ },
597
+ "automation_subscribers_event_name_idx": {
598
+ "name": "automation_subscribers_event_name_idx",
599
+ "columns": [
600
+ "event_name"
601
+ ],
602
+ "isUnique": false
603
+ },
604
+ "automation_subscribers_enabled_idx": {
605
+ "name": "automation_subscribers_enabled_idx",
606
+ "columns": [
607
+ "enabled"
608
+ ],
609
+ "isUnique": false
610
+ }
611
+ },
612
+ "foreignKeys": {
613
+ "automation_subscribers_project_id_projects_id_fk": {
614
+ "name": "automation_subscribers_project_id_projects_id_fk",
615
+ "tableFrom": "automation_subscribers",
616
+ "tableTo": "projects",
617
+ "columnsFrom": [
618
+ "project_id"
619
+ ],
620
+ "columnsTo": [
621
+ "id"
622
+ ],
623
+ "onDelete": "cascade",
624
+ "onUpdate": "no action"
625
+ }
626
+ },
627
+ "compositePrimaryKeys": {},
628
+ "uniqueConstraints": {},
629
+ "checkConstraints": {}
630
+ },
631
+ "chat_activities": {
632
+ "name": "chat_activities",
633
+ "columns": {
634
+ "id": {
635
+ "name": "id",
636
+ "type": "text",
637
+ "primaryKey": true,
638
+ "notNull": true,
639
+ "autoincrement": false
640
+ },
641
+ "thread_id": {
642
+ "name": "thread_id",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true,
646
+ "autoincrement": false
647
+ },
648
+ "agent_id": {
649
+ "name": "agent_id",
650
+ "type": "text",
651
+ "primaryKey": false,
652
+ "notNull": true,
653
+ "autoincrement": false
654
+ },
655
+ "title": {
656
+ "name": "title",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": true,
660
+ "autoincrement": false
661
+ },
662
+ "status": {
663
+ "name": "status",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": true,
667
+ "autoincrement": false
668
+ },
669
+ "started_at": {
670
+ "name": "started_at",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": true,
674
+ "autoincrement": false
675
+ },
676
+ "finished_at": {
677
+ "name": "finished_at",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": false,
681
+ "autoincrement": false
682
+ },
683
+ "start_message_id": {
684
+ "name": "start_message_id",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": false,
688
+ "autoincrement": false
689
+ },
690
+ "finish_message_id": {
691
+ "name": "finish_message_id",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": false,
695
+ "autoincrement": false
696
+ }
697
+ },
698
+ "indexes": {
699
+ "chat_activities_thread_agent_idx": {
700
+ "name": "chat_activities_thread_agent_idx",
701
+ "columns": [
702
+ "thread_id",
703
+ "agent_id"
704
+ ],
705
+ "isUnique": false
706
+ },
707
+ "chat_activities_started_at_idx": {
708
+ "name": "chat_activities_started_at_idx",
709
+ "columns": [
710
+ "started_at"
711
+ ],
712
+ "isUnique": false
713
+ }
714
+ },
715
+ "foreignKeys": {
716
+ "chat_activities_thread_id_chat_threads_id_fk": {
717
+ "name": "chat_activities_thread_id_chat_threads_id_fk",
718
+ "tableFrom": "chat_activities",
719
+ "tableTo": "chat_threads",
720
+ "columnsFrom": [
721
+ "thread_id"
722
+ ],
723
+ "columnsTo": [
724
+ "id"
725
+ ],
726
+ "onDelete": "cascade",
727
+ "onUpdate": "no action"
728
+ },
729
+ "chat_activities_agent_id_agents_id_fk": {
730
+ "name": "chat_activities_agent_id_agents_id_fk",
731
+ "tableFrom": "chat_activities",
732
+ "tableTo": "agents",
733
+ "columnsFrom": [
734
+ "agent_id"
735
+ ],
736
+ "columnsTo": [
737
+ "id"
738
+ ],
739
+ "onDelete": "cascade",
740
+ "onUpdate": "no action"
741
+ },
742
+ "chat_activities_start_message_id_chat_messages_id_fk": {
743
+ "name": "chat_activities_start_message_id_chat_messages_id_fk",
744
+ "tableFrom": "chat_activities",
745
+ "tableTo": "chat_messages",
746
+ "columnsFrom": [
747
+ "start_message_id"
748
+ ],
749
+ "columnsTo": [
750
+ "id"
751
+ ],
752
+ "onDelete": "set null",
753
+ "onUpdate": "no action"
754
+ },
755
+ "chat_activities_finish_message_id_chat_messages_id_fk": {
756
+ "name": "chat_activities_finish_message_id_chat_messages_id_fk",
757
+ "tableFrom": "chat_activities",
758
+ "tableTo": "chat_messages",
759
+ "columnsFrom": [
760
+ "finish_message_id"
761
+ ],
762
+ "columnsTo": [
763
+ "id"
764
+ ],
765
+ "onDelete": "set null",
766
+ "onUpdate": "no action"
767
+ }
768
+ },
769
+ "compositePrimaryKeys": {},
770
+ "uniqueConstraints": {},
771
+ "checkConstraints": {}
772
+ },
773
+ "chat_members": {
774
+ "name": "chat_members",
775
+ "columns": {
776
+ "thread_id": {
777
+ "name": "thread_id",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": true,
781
+ "autoincrement": false
782
+ },
783
+ "agent_id": {
784
+ "name": "agent_id",
785
+ "type": "text",
786
+ "primaryKey": false,
787
+ "notNull": true,
788
+ "autoincrement": false
789
+ },
790
+ "created_at": {
791
+ "name": "created_at",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": true,
795
+ "autoincrement": false
796
+ }
797
+ },
798
+ "indexes": {},
799
+ "foreignKeys": {
800
+ "chat_members_thread_id_chat_threads_id_fk": {
801
+ "name": "chat_members_thread_id_chat_threads_id_fk",
802
+ "tableFrom": "chat_members",
803
+ "tableTo": "chat_threads",
804
+ "columnsFrom": [
805
+ "thread_id"
806
+ ],
807
+ "columnsTo": [
808
+ "id"
809
+ ],
810
+ "onDelete": "cascade",
811
+ "onUpdate": "no action"
812
+ },
813
+ "chat_members_agent_id_agents_id_fk": {
814
+ "name": "chat_members_agent_id_agents_id_fk",
815
+ "tableFrom": "chat_members",
816
+ "tableTo": "agents",
817
+ "columnsFrom": [
818
+ "agent_id"
819
+ ],
820
+ "columnsTo": [
821
+ "id"
822
+ ],
823
+ "onDelete": "cascade",
824
+ "onUpdate": "no action"
825
+ }
826
+ },
827
+ "compositePrimaryKeys": {},
828
+ "uniqueConstraints": {},
829
+ "checkConstraints": {}
830
+ },
831
+ "chat_message_reads": {
832
+ "name": "chat_message_reads",
833
+ "columns": {
834
+ "message_id": {
835
+ "name": "message_id",
836
+ "type": "text",
837
+ "primaryKey": false,
838
+ "notNull": true,
839
+ "autoincrement": false
840
+ },
841
+ "agent_id": {
842
+ "name": "agent_id",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": true,
846
+ "autoincrement": false
847
+ },
848
+ "read_at": {
849
+ "name": "read_at",
850
+ "type": "text",
851
+ "primaryKey": false,
852
+ "notNull": true,
853
+ "autoincrement": false
854
+ }
855
+ },
856
+ "indexes": {
857
+ "chat_message_reads_pk": {
858
+ "name": "chat_message_reads_pk",
859
+ "columns": [
860
+ "message_id",
861
+ "agent_id"
862
+ ],
863
+ "isUnique": true
864
+ },
865
+ "chat_message_reads_message_id_idx": {
866
+ "name": "chat_message_reads_message_id_idx",
867
+ "columns": [
868
+ "message_id"
869
+ ],
870
+ "isUnique": false
871
+ },
872
+ "chat_message_reads_agent_id_idx": {
873
+ "name": "chat_message_reads_agent_id_idx",
874
+ "columns": [
875
+ "agent_id"
876
+ ],
877
+ "isUnique": false
878
+ }
879
+ },
880
+ "foreignKeys": {
881
+ "chat_message_reads_message_id_chat_messages_id_fk": {
882
+ "name": "chat_message_reads_message_id_chat_messages_id_fk",
883
+ "tableFrom": "chat_message_reads",
884
+ "tableTo": "chat_messages",
885
+ "columnsFrom": [
886
+ "message_id"
887
+ ],
888
+ "columnsTo": [
889
+ "id"
890
+ ],
891
+ "onDelete": "cascade",
892
+ "onUpdate": "no action"
893
+ },
894
+ "chat_message_reads_agent_id_agents_id_fk": {
895
+ "name": "chat_message_reads_agent_id_agents_id_fk",
896
+ "tableFrom": "chat_message_reads",
897
+ "tableTo": "agents",
898
+ "columnsFrom": [
899
+ "agent_id"
900
+ ],
901
+ "columnsTo": [
902
+ "id"
903
+ ],
904
+ "onDelete": "cascade",
905
+ "onUpdate": "no action"
906
+ }
907
+ },
908
+ "compositePrimaryKeys": {},
909
+ "uniqueConstraints": {},
910
+ "checkConstraints": {}
911
+ },
912
+ "chat_message_targets": {
913
+ "name": "chat_message_targets",
914
+ "columns": {
915
+ "id": {
916
+ "name": "id",
917
+ "type": "text",
918
+ "primaryKey": true,
919
+ "notNull": true,
920
+ "autoincrement": false
921
+ },
922
+ "message_id": {
923
+ "name": "message_id",
924
+ "type": "text",
925
+ "primaryKey": false,
926
+ "notNull": true,
927
+ "autoincrement": false
928
+ },
929
+ "agent_id": {
930
+ "name": "agent_id",
931
+ "type": "text",
932
+ "primaryKey": false,
933
+ "notNull": true,
934
+ "autoincrement": false
935
+ },
936
+ "created_at": {
937
+ "name": "created_at",
938
+ "type": "text",
939
+ "primaryKey": false,
940
+ "notNull": true,
941
+ "autoincrement": false
942
+ }
943
+ },
944
+ "indexes": {},
945
+ "foreignKeys": {
946
+ "chat_message_targets_message_id_chat_messages_id_fk": {
947
+ "name": "chat_message_targets_message_id_chat_messages_id_fk",
948
+ "tableFrom": "chat_message_targets",
949
+ "tableTo": "chat_messages",
950
+ "columnsFrom": [
951
+ "message_id"
952
+ ],
953
+ "columnsTo": [
954
+ "id"
955
+ ],
956
+ "onDelete": "cascade",
957
+ "onUpdate": "no action"
958
+ },
959
+ "chat_message_targets_agent_id_agents_id_fk": {
960
+ "name": "chat_message_targets_agent_id_agents_id_fk",
961
+ "tableFrom": "chat_message_targets",
962
+ "tableTo": "agents",
963
+ "columnsFrom": [
964
+ "agent_id"
965
+ ],
966
+ "columnsTo": [
967
+ "id"
968
+ ],
969
+ "onDelete": "cascade",
970
+ "onUpdate": "no action"
971
+ }
972
+ },
973
+ "compositePrimaryKeys": {},
974
+ "uniqueConstraints": {},
975
+ "checkConstraints": {}
976
+ },
977
+ "chat_messages": {
978
+ "name": "chat_messages",
979
+ "columns": {
980
+ "id": {
981
+ "name": "id",
982
+ "type": "text",
983
+ "primaryKey": true,
984
+ "notNull": true,
985
+ "autoincrement": false
986
+ },
987
+ "thread_id": {
988
+ "name": "thread_id",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": true,
992
+ "autoincrement": false
993
+ },
994
+ "author_type": {
995
+ "name": "author_type",
996
+ "type": "text",
997
+ "primaryKey": false,
998
+ "notNull": true,
999
+ "autoincrement": false
1000
+ },
1001
+ "author_agent_id": {
1002
+ "name": "author_agent_id",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": false,
1006
+ "autoincrement": false
1007
+ },
1008
+ "content": {
1009
+ "name": "content",
1010
+ "type": "text",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "autoincrement": false
1014
+ },
1015
+ "created_at": {
1016
+ "name": "created_at",
1017
+ "type": "text",
1018
+ "primaryKey": false,
1019
+ "notNull": true,
1020
+ "autoincrement": false
1021
+ }
1022
+ },
1023
+ "indexes": {
1024
+ "chat_messages_thread_id_idx": {
1025
+ "name": "chat_messages_thread_id_idx",
1026
+ "columns": [
1027
+ "thread_id"
1028
+ ],
1029
+ "isUnique": false
1030
+ },
1031
+ "chat_messages_created_at_idx": {
1032
+ "name": "chat_messages_created_at_idx",
1033
+ "columns": [
1034
+ "created_at"
1035
+ ],
1036
+ "isUnique": false
1037
+ }
1038
+ },
1039
+ "foreignKeys": {
1040
+ "chat_messages_thread_id_chat_threads_id_fk": {
1041
+ "name": "chat_messages_thread_id_chat_threads_id_fk",
1042
+ "tableFrom": "chat_messages",
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_messages_author_agent_id_agents_id_fk": {
1054
+ "name": "chat_messages_author_agent_id_agents_id_fk",
1055
+ "tableFrom": "chat_messages",
1056
+ "tableTo": "agents",
1057
+ "columnsFrom": [
1058
+ "author_agent_id"
1059
+ ],
1060
+ "columnsTo": [
1061
+ "id"
1062
+ ],
1063
+ "onDelete": "set null",
1064
+ "onUpdate": "no action"
1065
+ }
1066
+ },
1067
+ "compositePrimaryKeys": {},
1068
+ "uniqueConstraints": {},
1069
+ "checkConstraints": {}
1070
+ },
1071
+ "chat_thread_session_invites": {
1072
+ "name": "chat_thread_session_invites",
1073
+ "columns": {
1074
+ "id": {
1075
+ "name": "id",
1076
+ "type": "text",
1077
+ "primaryKey": true,
1078
+ "notNull": true,
1079
+ "autoincrement": false
1080
+ },
1081
+ "thread_id": {
1082
+ "name": "thread_id",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": true,
1086
+ "autoincrement": false
1087
+ },
1088
+ "agent_id": {
1089
+ "name": "agent_id",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true,
1093
+ "autoincrement": false
1094
+ },
1095
+ "session_id": {
1096
+ "name": "session_id",
1097
+ "type": "text",
1098
+ "primaryKey": false,
1099
+ "notNull": true,
1100
+ "autoincrement": false
1101
+ },
1102
+ "invite_message_id": {
1103
+ "name": "invite_message_id",
1104
+ "type": "text",
1105
+ "primaryKey": false,
1106
+ "notNull": true,
1107
+ "autoincrement": false
1108
+ },
1109
+ "sent_at": {
1110
+ "name": "sent_at",
1111
+ "type": "text",
1112
+ "primaryKey": false,
1113
+ "notNull": true,
1114
+ "autoincrement": false
1115
+ },
1116
+ "acknowledged_at": {
1117
+ "name": "acknowledged_at",
1118
+ "type": "text",
1119
+ "primaryKey": false,
1120
+ "notNull": false,
1121
+ "autoincrement": false
1122
+ }
1123
+ },
1124
+ "indexes": {
1125
+ "chat_thread_session_invites_unique": {
1126
+ "name": "chat_thread_session_invites_unique",
1127
+ "columns": [
1128
+ "thread_id",
1129
+ "agent_id",
1130
+ "session_id"
1131
+ ],
1132
+ "isUnique": true
1133
+ },
1134
+ "chat_thread_session_invites_thread_agent_idx": {
1135
+ "name": "chat_thread_session_invites_thread_agent_idx",
1136
+ "columns": [
1137
+ "thread_id",
1138
+ "agent_id"
1139
+ ],
1140
+ "isUnique": false
1141
+ }
1142
+ },
1143
+ "foreignKeys": {
1144
+ "chat_thread_session_invites_thread_id_chat_threads_id_fk": {
1145
+ "name": "chat_thread_session_invites_thread_id_chat_threads_id_fk",
1146
+ "tableFrom": "chat_thread_session_invites",
1147
+ "tableTo": "chat_threads",
1148
+ "columnsFrom": [
1149
+ "thread_id"
1150
+ ],
1151
+ "columnsTo": [
1152
+ "id"
1153
+ ],
1154
+ "onDelete": "cascade",
1155
+ "onUpdate": "no action"
1156
+ },
1157
+ "chat_thread_session_invites_agent_id_agents_id_fk": {
1158
+ "name": "chat_thread_session_invites_agent_id_agents_id_fk",
1159
+ "tableFrom": "chat_thread_session_invites",
1160
+ "tableTo": "agents",
1161
+ "columnsFrom": [
1162
+ "agent_id"
1163
+ ],
1164
+ "columnsTo": [
1165
+ "id"
1166
+ ],
1167
+ "onDelete": "cascade",
1168
+ "onUpdate": "no action"
1169
+ },
1170
+ "chat_thread_session_invites_invite_message_id_chat_messages_id_fk": {
1171
+ "name": "chat_thread_session_invites_invite_message_id_chat_messages_id_fk",
1172
+ "tableFrom": "chat_thread_session_invites",
1173
+ "tableTo": "chat_messages",
1174
+ "columnsFrom": [
1175
+ "invite_message_id"
1176
+ ],
1177
+ "columnsTo": [
1178
+ "id"
1179
+ ],
1180
+ "onDelete": "cascade",
1181
+ "onUpdate": "no action"
1182
+ }
1183
+ },
1184
+ "compositePrimaryKeys": {},
1185
+ "uniqueConstraints": {},
1186
+ "checkConstraints": {}
1187
+ },
1188
+ "chat_threads": {
1189
+ "name": "chat_threads",
1190
+ "columns": {
1191
+ "id": {
1192
+ "name": "id",
1193
+ "type": "text",
1194
+ "primaryKey": true,
1195
+ "notNull": true,
1196
+ "autoincrement": false
1197
+ },
1198
+ "project_id": {
1199
+ "name": "project_id",
1200
+ "type": "text",
1201
+ "primaryKey": false,
1202
+ "notNull": true,
1203
+ "autoincrement": false
1204
+ },
1205
+ "title": {
1206
+ "name": "title",
1207
+ "type": "text",
1208
+ "primaryKey": false,
1209
+ "notNull": false,
1210
+ "autoincrement": false
1211
+ },
1212
+ "is_group": {
1213
+ "name": "is_group",
1214
+ "type": "integer",
1215
+ "primaryKey": false,
1216
+ "notNull": true,
1217
+ "autoincrement": false,
1218
+ "default": false
1219
+ },
1220
+ "created_by_type": {
1221
+ "name": "created_by_type",
1222
+ "type": "text",
1223
+ "primaryKey": false,
1224
+ "notNull": true,
1225
+ "autoincrement": false
1226
+ },
1227
+ "created_by_user_id": {
1228
+ "name": "created_by_user_id",
1229
+ "type": "text",
1230
+ "primaryKey": false,
1231
+ "notNull": false,
1232
+ "autoincrement": false
1233
+ },
1234
+ "created_by_agent_id": {
1235
+ "name": "created_by_agent_id",
1236
+ "type": "text",
1237
+ "primaryKey": false,
1238
+ "notNull": false,
1239
+ "autoincrement": false
1240
+ },
1241
+ "last_user_cleared_at": {
1242
+ "name": "last_user_cleared_at",
1243
+ "type": "text",
1244
+ "primaryKey": false,
1245
+ "notNull": false,
1246
+ "autoincrement": false
1247
+ },
1248
+ "created_at": {
1249
+ "name": "created_at",
1250
+ "type": "text",
1251
+ "primaryKey": false,
1252
+ "notNull": true,
1253
+ "autoincrement": false
1254
+ },
1255
+ "updated_at": {
1256
+ "name": "updated_at",
1257
+ "type": "text",
1258
+ "primaryKey": false,
1259
+ "notNull": true,
1260
+ "autoincrement": false
1261
+ }
1262
+ },
1263
+ "indexes": {},
1264
+ "foreignKeys": {
1265
+ "chat_threads_project_id_projects_id_fk": {
1266
+ "name": "chat_threads_project_id_projects_id_fk",
1267
+ "tableFrom": "chat_threads",
1268
+ "tableTo": "projects",
1269
+ "columnsFrom": [
1270
+ "project_id"
1271
+ ],
1272
+ "columnsTo": [
1273
+ "id"
1274
+ ],
1275
+ "onDelete": "cascade",
1276
+ "onUpdate": "no action"
1277
+ }
1278
+ },
1279
+ "compositePrimaryKeys": {},
1280
+ "uniqueConstraints": {},
1281
+ "checkConstraints": {}
1282
+ },
1283
+ "companies": {
1284
+ "name": "companies",
1285
+ "columns": {
1286
+ "id": {
1287
+ "name": "id",
1288
+ "type": "text",
1289
+ "primaryKey": true,
1290
+ "notNull": true,
1291
+ "autoincrement": false
1292
+ },
1293
+ "name": {
1294
+ "name": "name",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": true,
1298
+ "autoincrement": false
1299
+ },
1300
+ "created_at": {
1301
+ "name": "created_at",
1302
+ "type": "text",
1303
+ "primaryKey": false,
1304
+ "notNull": true,
1305
+ "autoincrement": false
1306
+ },
1307
+ "updated_at": {
1308
+ "name": "updated_at",
1309
+ "type": "text",
1310
+ "primaryKey": false,
1311
+ "notNull": true,
1312
+ "autoincrement": false
1313
+ }
1314
+ },
1315
+ "indexes": {},
1316
+ "foreignKeys": {},
1317
+ "compositePrimaryKeys": {},
1318
+ "uniqueConstraints": {},
1319
+ "checkConstraints": {}
1320
+ },
1321
+ "document_tags": {
1322
+ "name": "document_tags",
1323
+ "columns": {
1324
+ "document_id": {
1325
+ "name": "document_id",
1326
+ "type": "text",
1327
+ "primaryKey": false,
1328
+ "notNull": true,
1329
+ "autoincrement": false
1330
+ },
1331
+ "tag_id": {
1332
+ "name": "tag_id",
1333
+ "type": "text",
1334
+ "primaryKey": false,
1335
+ "notNull": true,
1336
+ "autoincrement": false
1337
+ }
1338
+ },
1339
+ "indexes": {},
1340
+ "foreignKeys": {
1341
+ "document_tags_document_id_documents_id_fk": {
1342
+ "name": "document_tags_document_id_documents_id_fk",
1343
+ "tableFrom": "document_tags",
1344
+ "tableTo": "documents",
1345
+ "columnsFrom": [
1346
+ "document_id"
1347
+ ],
1348
+ "columnsTo": [
1349
+ "id"
1350
+ ],
1351
+ "onDelete": "cascade",
1352
+ "onUpdate": "no action"
1353
+ },
1354
+ "document_tags_tag_id_tags_id_fk": {
1355
+ "name": "document_tags_tag_id_tags_id_fk",
1356
+ "tableFrom": "document_tags",
1357
+ "tableTo": "tags",
1358
+ "columnsFrom": [
1359
+ "tag_id"
1360
+ ],
1361
+ "columnsTo": [
1362
+ "id"
1363
+ ],
1364
+ "onDelete": "cascade",
1365
+ "onUpdate": "no action"
1366
+ }
1367
+ },
1368
+ "compositePrimaryKeys": {},
1369
+ "uniqueConstraints": {},
1370
+ "checkConstraints": {}
1371
+ },
1372
+ "documents": {
1373
+ "name": "documents",
1374
+ "columns": {
1375
+ "id": {
1376
+ "name": "id",
1377
+ "type": "text",
1378
+ "primaryKey": true,
1379
+ "notNull": true,
1380
+ "autoincrement": false
1381
+ },
1382
+ "project_id": {
1383
+ "name": "project_id",
1384
+ "type": "text",
1385
+ "primaryKey": false,
1386
+ "notNull": false,
1387
+ "autoincrement": false
1388
+ },
1389
+ "title": {
1390
+ "name": "title",
1391
+ "type": "text",
1392
+ "primaryKey": false,
1393
+ "notNull": true,
1394
+ "autoincrement": false
1395
+ },
1396
+ "slug": {
1397
+ "name": "slug",
1398
+ "type": "text",
1399
+ "primaryKey": false,
1400
+ "notNull": true,
1401
+ "autoincrement": false
1402
+ },
1403
+ "content_md": {
1404
+ "name": "content_md",
1405
+ "type": "text",
1406
+ "primaryKey": false,
1407
+ "notNull": true,
1408
+ "autoincrement": false
1409
+ },
1410
+ "version": {
1411
+ "name": "version",
1412
+ "type": "integer",
1413
+ "primaryKey": false,
1414
+ "notNull": true,
1415
+ "autoincrement": false,
1416
+ "default": 1
1417
+ },
1418
+ "archived": {
1419
+ "name": "archived",
1420
+ "type": "integer",
1421
+ "primaryKey": false,
1422
+ "notNull": true,
1423
+ "autoincrement": false,
1424
+ "default": false
1425
+ },
1426
+ "created_at": {
1427
+ "name": "created_at",
1428
+ "type": "text",
1429
+ "primaryKey": false,
1430
+ "notNull": true,
1431
+ "autoincrement": false
1432
+ },
1433
+ "updated_at": {
1434
+ "name": "updated_at",
1435
+ "type": "text",
1436
+ "primaryKey": false,
1437
+ "notNull": true,
1438
+ "autoincrement": false
1439
+ }
1440
+ },
1441
+ "indexes": {
1442
+ "documents_project_slug_unique": {
1443
+ "name": "documents_project_slug_unique",
1444
+ "columns": [
1445
+ "project_id",
1446
+ "slug"
1447
+ ],
1448
+ "isUnique": true
1449
+ }
1450
+ },
1451
+ "foreignKeys": {
1452
+ "documents_project_id_projects_id_fk": {
1453
+ "name": "documents_project_id_projects_id_fk",
1454
+ "tableFrom": "documents",
1455
+ "tableTo": "projects",
1456
+ "columnsFrom": [
1457
+ "project_id"
1458
+ ],
1459
+ "columnsTo": [
1460
+ "id"
1461
+ ],
1462
+ "onDelete": "cascade",
1463
+ "onUpdate": "no action"
1464
+ }
1465
+ },
1466
+ "compositePrimaryKeys": {},
1467
+ "uniqueConstraints": {},
1468
+ "checkConstraints": {}
1469
+ },
1470
+ "epic_comments": {
1471
+ "name": "epic_comments",
1472
+ "columns": {
1473
+ "id": {
1474
+ "name": "id",
1475
+ "type": "text",
1476
+ "primaryKey": true,
1477
+ "notNull": true,
1478
+ "autoincrement": false
1479
+ },
1480
+ "epic_id": {
1481
+ "name": "epic_id",
1482
+ "type": "text",
1483
+ "primaryKey": false,
1484
+ "notNull": true,
1485
+ "autoincrement": false
1486
+ },
1487
+ "author_name": {
1488
+ "name": "author_name",
1489
+ "type": "text",
1490
+ "primaryKey": false,
1491
+ "notNull": true,
1492
+ "autoincrement": false
1493
+ },
1494
+ "content": {
1495
+ "name": "content",
1496
+ "type": "text",
1497
+ "primaryKey": false,
1498
+ "notNull": true,
1499
+ "autoincrement": false
1500
+ },
1501
+ "created_at": {
1502
+ "name": "created_at",
1503
+ "type": "text",
1504
+ "primaryKey": false,
1505
+ "notNull": true,
1506
+ "autoincrement": false
1507
+ },
1508
+ "updated_at": {
1509
+ "name": "updated_at",
1510
+ "type": "text",
1511
+ "primaryKey": false,
1512
+ "notNull": true,
1513
+ "autoincrement": false
1514
+ }
1515
+ },
1516
+ "indexes": {
1517
+ "epic_comments_epic_id_created_at_idx": {
1518
+ "name": "epic_comments_epic_id_created_at_idx",
1519
+ "columns": [
1520
+ "epic_id",
1521
+ "created_at"
1522
+ ],
1523
+ "isUnique": false
1524
+ }
1525
+ },
1526
+ "foreignKeys": {
1527
+ "epic_comments_epic_id_epics_id_fk": {
1528
+ "name": "epic_comments_epic_id_epics_id_fk",
1529
+ "tableFrom": "epic_comments",
1530
+ "tableTo": "epics",
1531
+ "columnsFrom": [
1532
+ "epic_id"
1533
+ ],
1534
+ "columnsTo": [
1535
+ "id"
1536
+ ],
1537
+ "onDelete": "cascade",
1538
+ "onUpdate": "no action"
1539
+ }
1540
+ },
1541
+ "compositePrimaryKeys": {},
1542
+ "uniqueConstraints": {},
1543
+ "checkConstraints": {}
1544
+ },
1545
+ "epic_tags": {
1546
+ "name": "epic_tags",
1547
+ "columns": {
1548
+ "epic_id": {
1549
+ "name": "epic_id",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": true,
1553
+ "autoincrement": false
1554
+ },
1555
+ "tag_id": {
1556
+ "name": "tag_id",
1557
+ "type": "text",
1558
+ "primaryKey": false,
1559
+ "notNull": true,
1560
+ "autoincrement": false
1561
+ },
1562
+ "created_at": {
1563
+ "name": "created_at",
1564
+ "type": "text",
1565
+ "primaryKey": false,
1566
+ "notNull": true,
1567
+ "autoincrement": false
1568
+ }
1569
+ },
1570
+ "indexes": {},
1571
+ "foreignKeys": {
1572
+ "epic_tags_epic_id_epics_id_fk": {
1573
+ "name": "epic_tags_epic_id_epics_id_fk",
1574
+ "tableFrom": "epic_tags",
1575
+ "tableTo": "epics",
1576
+ "columnsFrom": [
1577
+ "epic_id"
1578
+ ],
1579
+ "columnsTo": [
1580
+ "id"
1581
+ ],
1582
+ "onDelete": "cascade",
1583
+ "onUpdate": "no action"
1584
+ },
1585
+ "epic_tags_tag_id_tags_id_fk": {
1586
+ "name": "epic_tags_tag_id_tags_id_fk",
1587
+ "tableFrom": "epic_tags",
1588
+ "tableTo": "tags",
1589
+ "columnsFrom": [
1590
+ "tag_id"
1591
+ ],
1592
+ "columnsTo": [
1593
+ "id"
1594
+ ],
1595
+ "onDelete": "cascade",
1596
+ "onUpdate": "no action"
1597
+ }
1598
+ },
1599
+ "compositePrimaryKeys": {},
1600
+ "uniqueConstraints": {},
1601
+ "checkConstraints": {}
1602
+ },
1603
+ "epics": {
1604
+ "name": "epics",
1605
+ "columns": {
1606
+ "id": {
1607
+ "name": "id",
1608
+ "type": "text",
1609
+ "primaryKey": true,
1610
+ "notNull": true,
1611
+ "autoincrement": false
1612
+ },
1613
+ "project_id": {
1614
+ "name": "project_id",
1615
+ "type": "text",
1616
+ "primaryKey": false,
1617
+ "notNull": true,
1618
+ "autoincrement": false
1619
+ },
1620
+ "title": {
1621
+ "name": "title",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": true,
1625
+ "autoincrement": false
1626
+ },
1627
+ "description": {
1628
+ "name": "description",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": false,
1632
+ "autoincrement": false
1633
+ },
1634
+ "status_id": {
1635
+ "name": "status_id",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "autoincrement": false
1640
+ },
1641
+ "parent_id": {
1642
+ "name": "parent_id",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": false,
1646
+ "autoincrement": false
1647
+ },
1648
+ "agent_id": {
1649
+ "name": "agent_id",
1650
+ "type": "text",
1651
+ "primaryKey": false,
1652
+ "notNull": false,
1653
+ "autoincrement": false
1654
+ },
1655
+ "version": {
1656
+ "name": "version",
1657
+ "type": "integer",
1658
+ "primaryKey": false,
1659
+ "notNull": true,
1660
+ "autoincrement": false,
1661
+ "default": 1
1662
+ },
1663
+ "data": {
1664
+ "name": "data",
1665
+ "type": "text",
1666
+ "primaryKey": false,
1667
+ "notNull": false,
1668
+ "autoincrement": false
1669
+ },
1670
+ "created_at": {
1671
+ "name": "created_at",
1672
+ "type": "text",
1673
+ "primaryKey": false,
1674
+ "notNull": true,
1675
+ "autoincrement": false
1676
+ },
1677
+ "updated_at": {
1678
+ "name": "updated_at",
1679
+ "type": "text",
1680
+ "primaryKey": false,
1681
+ "notNull": true,
1682
+ "autoincrement": false
1683
+ }
1684
+ },
1685
+ "indexes": {
1686
+ "epics_parent_id_idx": {
1687
+ "name": "epics_parent_id_idx",
1688
+ "columns": [
1689
+ "parent_id"
1690
+ ],
1691
+ "isUnique": false
1692
+ },
1693
+ "epics_agent_id_idx": {
1694
+ "name": "epics_agent_id_idx",
1695
+ "columns": [
1696
+ "agent_id"
1697
+ ],
1698
+ "isUnique": false
1699
+ }
1700
+ },
1701
+ "foreignKeys": {
1702
+ "epics_project_id_projects_id_fk": {
1703
+ "name": "epics_project_id_projects_id_fk",
1704
+ "tableFrom": "epics",
1705
+ "tableTo": "projects",
1706
+ "columnsFrom": [
1707
+ "project_id"
1708
+ ],
1709
+ "columnsTo": [
1710
+ "id"
1711
+ ],
1712
+ "onDelete": "cascade",
1713
+ "onUpdate": "no action"
1714
+ },
1715
+ "epics_status_id_statuses_id_fk": {
1716
+ "name": "epics_status_id_statuses_id_fk",
1717
+ "tableFrom": "epics",
1718
+ "tableTo": "statuses",
1719
+ "columnsFrom": [
1720
+ "status_id"
1721
+ ],
1722
+ "columnsTo": [
1723
+ "id"
1724
+ ],
1725
+ "onDelete": "no action",
1726
+ "onUpdate": "no action"
1727
+ },
1728
+ "epics_parent_id_fk": {
1729
+ "name": "epics_parent_id_fk",
1730
+ "tableFrom": "epics",
1731
+ "tableTo": "epics",
1732
+ "columnsFrom": [
1733
+ "parent_id"
1734
+ ],
1735
+ "columnsTo": [
1736
+ "id"
1737
+ ],
1738
+ "onDelete": "no action",
1739
+ "onUpdate": "no action"
1740
+ },
1741
+ "epics_agent_id_fk": {
1742
+ "name": "epics_agent_id_fk",
1743
+ "tableFrom": "epics",
1744
+ "tableTo": "agents",
1745
+ "columnsFrom": [
1746
+ "agent_id"
1747
+ ],
1748
+ "columnsTo": [
1749
+ "id"
1750
+ ],
1751
+ "onDelete": "no action",
1752
+ "onUpdate": "no action"
1753
+ }
1754
+ },
1755
+ "compositePrimaryKeys": {},
1756
+ "uniqueConstraints": {},
1757
+ "checkConstraints": {}
1758
+ },
1759
+ "event_handlers": {
1760
+ "name": "event_handlers",
1761
+ "columns": {
1762
+ "id": {
1763
+ "name": "id",
1764
+ "type": "text",
1765
+ "primaryKey": true,
1766
+ "notNull": true,
1767
+ "autoincrement": false
1768
+ },
1769
+ "event_id": {
1770
+ "name": "event_id",
1771
+ "type": "text",
1772
+ "primaryKey": false,
1773
+ "notNull": true,
1774
+ "autoincrement": false
1775
+ },
1776
+ "handler": {
1777
+ "name": "handler",
1778
+ "type": "text",
1779
+ "primaryKey": false,
1780
+ "notNull": true,
1781
+ "autoincrement": false
1782
+ },
1783
+ "status": {
1784
+ "name": "status",
1785
+ "type": "text",
1786
+ "primaryKey": false,
1787
+ "notNull": true,
1788
+ "autoincrement": false
1789
+ },
1790
+ "detail": {
1791
+ "name": "detail",
1792
+ "type": "text",
1793
+ "primaryKey": false,
1794
+ "notNull": false,
1795
+ "autoincrement": false
1796
+ },
1797
+ "started_at": {
1798
+ "name": "started_at",
1799
+ "type": "text",
1800
+ "primaryKey": false,
1801
+ "notNull": true,
1802
+ "autoincrement": false
1803
+ },
1804
+ "ended_at": {
1805
+ "name": "ended_at",
1806
+ "type": "text",
1807
+ "primaryKey": false,
1808
+ "notNull": false,
1809
+ "autoincrement": false
1810
+ }
1811
+ },
1812
+ "indexes": {
1813
+ "event_handlers_event_id_idx": {
1814
+ "name": "event_handlers_event_id_idx",
1815
+ "columns": [
1816
+ "event_id"
1817
+ ],
1818
+ "isUnique": false
1819
+ },
1820
+ "event_handlers_handler_idx": {
1821
+ "name": "event_handlers_handler_idx",
1822
+ "columns": [
1823
+ "handler"
1824
+ ],
1825
+ "isUnique": false
1826
+ },
1827
+ "event_handlers_status_idx": {
1828
+ "name": "event_handlers_status_idx",
1829
+ "columns": [
1830
+ "status"
1831
+ ],
1832
+ "isUnique": false
1833
+ }
1834
+ },
1835
+ "foreignKeys": {
1836
+ "event_handlers_event_id_events_id_fk": {
1837
+ "name": "event_handlers_event_id_events_id_fk",
1838
+ "tableFrom": "event_handlers",
1839
+ "tableTo": "events",
1840
+ "columnsFrom": [
1841
+ "event_id"
1842
+ ],
1843
+ "columnsTo": [
1844
+ "id"
1845
+ ],
1846
+ "onDelete": "cascade",
1847
+ "onUpdate": "no action"
1848
+ }
1849
+ },
1850
+ "compositePrimaryKeys": {},
1851
+ "uniqueConstraints": {},
1852
+ "checkConstraints": {}
1853
+ },
1854
+ "events": {
1855
+ "name": "events",
1856
+ "columns": {
1857
+ "id": {
1858
+ "name": "id",
1859
+ "type": "text",
1860
+ "primaryKey": true,
1861
+ "notNull": true,
1862
+ "autoincrement": false
1863
+ },
1864
+ "name": {
1865
+ "name": "name",
1866
+ "type": "text",
1867
+ "primaryKey": false,
1868
+ "notNull": true,
1869
+ "autoincrement": false
1870
+ },
1871
+ "payload_json": {
1872
+ "name": "payload_json",
1873
+ "type": "text",
1874
+ "primaryKey": false,
1875
+ "notNull": true,
1876
+ "autoincrement": false
1877
+ },
1878
+ "request_id": {
1879
+ "name": "request_id",
1880
+ "type": "text",
1881
+ "primaryKey": false,
1882
+ "notNull": false,
1883
+ "autoincrement": false
1884
+ },
1885
+ "published_at": {
1886
+ "name": "published_at",
1887
+ "type": "text",
1888
+ "primaryKey": false,
1889
+ "notNull": true,
1890
+ "autoincrement": false
1891
+ }
1892
+ },
1893
+ "indexes": {
1894
+ "events_name_idx": {
1895
+ "name": "events_name_idx",
1896
+ "columns": [
1897
+ "name"
1898
+ ],
1899
+ "isUnique": false
1900
+ },
1901
+ "events_published_at_idx": {
1902
+ "name": "events_published_at_idx",
1903
+ "columns": [
1904
+ "published_at"
1905
+ ],
1906
+ "isUnique": false
1907
+ }
1908
+ },
1909
+ "foreignKeys": {},
1910
+ "compositePrimaryKeys": {},
1911
+ "uniqueConstraints": {},
1912
+ "checkConstraints": {}
1913
+ },
1914
+ "memberships": {
1915
+ "name": "memberships",
1916
+ "columns": {
1917
+ "id": {
1918
+ "name": "id",
1919
+ "type": "text",
1920
+ "primaryKey": true,
1921
+ "notNull": true,
1922
+ "autoincrement": false
1923
+ },
1924
+ "user_id": {
1925
+ "name": "user_id",
1926
+ "type": "text",
1927
+ "primaryKey": false,
1928
+ "notNull": true,
1929
+ "autoincrement": false
1930
+ },
1931
+ "company_id": {
1932
+ "name": "company_id",
1933
+ "type": "text",
1934
+ "primaryKey": false,
1935
+ "notNull": true,
1936
+ "autoincrement": false
1937
+ },
1938
+ "role": {
1939
+ "name": "role",
1940
+ "type": "text",
1941
+ "primaryKey": false,
1942
+ "notNull": true,
1943
+ "autoincrement": false
1944
+ },
1945
+ "created_at": {
1946
+ "name": "created_at",
1947
+ "type": "text",
1948
+ "primaryKey": false,
1949
+ "notNull": true,
1950
+ "autoincrement": false
1951
+ },
1952
+ "updated_at": {
1953
+ "name": "updated_at",
1954
+ "type": "text",
1955
+ "primaryKey": false,
1956
+ "notNull": true,
1957
+ "autoincrement": false
1958
+ }
1959
+ },
1960
+ "indexes": {},
1961
+ "foreignKeys": {
1962
+ "memberships_user_id_users_id_fk": {
1963
+ "name": "memberships_user_id_users_id_fk",
1964
+ "tableFrom": "memberships",
1965
+ "tableTo": "users",
1966
+ "columnsFrom": [
1967
+ "user_id"
1968
+ ],
1969
+ "columnsTo": [
1970
+ "id"
1971
+ ],
1972
+ "onDelete": "cascade",
1973
+ "onUpdate": "no action"
1974
+ },
1975
+ "memberships_company_id_companies_id_fk": {
1976
+ "name": "memberships_company_id_companies_id_fk",
1977
+ "tableFrom": "memberships",
1978
+ "tableTo": "companies",
1979
+ "columnsFrom": [
1980
+ "company_id"
1981
+ ],
1982
+ "columnsTo": [
1983
+ "id"
1984
+ ],
1985
+ "onDelete": "cascade",
1986
+ "onUpdate": "no action"
1987
+ }
1988
+ },
1989
+ "compositePrimaryKeys": {},
1990
+ "uniqueConstraints": {},
1991
+ "checkConstraints": {}
1992
+ },
1993
+ "project_paths": {
1994
+ "name": "project_paths",
1995
+ "columns": {
1996
+ "id": {
1997
+ "name": "id",
1998
+ "type": "text",
1999
+ "primaryKey": true,
2000
+ "notNull": true,
2001
+ "autoincrement": false
2002
+ },
2003
+ "path": {
2004
+ "name": "path",
2005
+ "type": "text",
2006
+ "primaryKey": false,
2007
+ "notNull": true,
2008
+ "autoincrement": false
2009
+ },
2010
+ "last_accessed_at": {
2011
+ "name": "last_accessed_at",
2012
+ "type": "text",
2013
+ "primaryKey": false,
2014
+ "notNull": true,
2015
+ "autoincrement": false
2016
+ },
2017
+ "created_at": {
2018
+ "name": "created_at",
2019
+ "type": "text",
2020
+ "primaryKey": false,
2021
+ "notNull": true,
2022
+ "autoincrement": false
2023
+ }
2024
+ },
2025
+ "indexes": {
2026
+ "project_paths_path_unique": {
2027
+ "name": "project_paths_path_unique",
2028
+ "columns": [
2029
+ "path"
2030
+ ],
2031
+ "isUnique": true
2032
+ }
2033
+ },
2034
+ "foreignKeys": {},
2035
+ "compositePrimaryKeys": {},
2036
+ "uniqueConstraints": {},
2037
+ "checkConstraints": {}
2038
+ },
2039
+ "projects": {
2040
+ "name": "projects",
2041
+ "columns": {
2042
+ "id": {
2043
+ "name": "id",
2044
+ "type": "text",
2045
+ "primaryKey": true,
2046
+ "notNull": true,
2047
+ "autoincrement": false
2048
+ },
2049
+ "name": {
2050
+ "name": "name",
2051
+ "type": "text",
2052
+ "primaryKey": false,
2053
+ "notNull": true,
2054
+ "autoincrement": false
2055
+ },
2056
+ "description": {
2057
+ "name": "description",
2058
+ "type": "text",
2059
+ "primaryKey": false,
2060
+ "notNull": false,
2061
+ "autoincrement": false
2062
+ },
2063
+ "root_path": {
2064
+ "name": "root_path",
2065
+ "type": "text",
2066
+ "primaryKey": false,
2067
+ "notNull": true,
2068
+ "autoincrement": false
2069
+ },
2070
+ "is_template": {
2071
+ "name": "is_template",
2072
+ "type": "integer",
2073
+ "primaryKey": false,
2074
+ "notNull": true,
2075
+ "autoincrement": false,
2076
+ "default": false
2077
+ },
2078
+ "is_private": {
2079
+ "name": "is_private",
2080
+ "type": "integer",
2081
+ "primaryKey": false,
2082
+ "notNull": false,
2083
+ "autoincrement": false,
2084
+ "default": false
2085
+ },
2086
+ "owner_user_id": {
2087
+ "name": "owner_user_id",
2088
+ "type": "text",
2089
+ "primaryKey": false,
2090
+ "notNull": false,
2091
+ "autoincrement": false
2092
+ },
2093
+ "created_at": {
2094
+ "name": "created_at",
2095
+ "type": "text",
2096
+ "primaryKey": false,
2097
+ "notNull": true,
2098
+ "autoincrement": false
2099
+ },
2100
+ "updated_at": {
2101
+ "name": "updated_at",
2102
+ "type": "text",
2103
+ "primaryKey": false,
2104
+ "notNull": true,
2105
+ "autoincrement": false
2106
+ }
2107
+ },
2108
+ "indexes": {},
2109
+ "foreignKeys": {},
2110
+ "compositePrimaryKeys": {},
2111
+ "uniqueConstraints": {},
2112
+ "checkConstraints": {}
2113
+ },
2114
+ "prompt_tags": {
2115
+ "name": "prompt_tags",
2116
+ "columns": {
2117
+ "prompt_id": {
2118
+ "name": "prompt_id",
2119
+ "type": "text",
2120
+ "primaryKey": false,
2121
+ "notNull": true,
2122
+ "autoincrement": false
2123
+ },
2124
+ "tag_id": {
2125
+ "name": "tag_id",
2126
+ "type": "text",
2127
+ "primaryKey": false,
2128
+ "notNull": true,
2129
+ "autoincrement": false
2130
+ },
2131
+ "created_at": {
2132
+ "name": "created_at",
2133
+ "type": "text",
2134
+ "primaryKey": false,
2135
+ "notNull": true,
2136
+ "autoincrement": false
2137
+ }
2138
+ },
2139
+ "indexes": {},
2140
+ "foreignKeys": {
2141
+ "prompt_tags_prompt_id_prompts_id_fk": {
2142
+ "name": "prompt_tags_prompt_id_prompts_id_fk",
2143
+ "tableFrom": "prompt_tags",
2144
+ "tableTo": "prompts",
2145
+ "columnsFrom": [
2146
+ "prompt_id"
2147
+ ],
2148
+ "columnsTo": [
2149
+ "id"
2150
+ ],
2151
+ "onDelete": "cascade",
2152
+ "onUpdate": "no action"
2153
+ },
2154
+ "prompt_tags_tag_id_tags_id_fk": {
2155
+ "name": "prompt_tags_tag_id_tags_id_fk",
2156
+ "tableFrom": "prompt_tags",
2157
+ "tableTo": "tags",
2158
+ "columnsFrom": [
2159
+ "tag_id"
2160
+ ],
2161
+ "columnsTo": [
2162
+ "id"
2163
+ ],
2164
+ "onDelete": "cascade",
2165
+ "onUpdate": "no action"
2166
+ }
2167
+ },
2168
+ "compositePrimaryKeys": {},
2169
+ "uniqueConstraints": {},
2170
+ "checkConstraints": {}
2171
+ },
2172
+ "prompts": {
2173
+ "name": "prompts",
2174
+ "columns": {
2175
+ "id": {
2176
+ "name": "id",
2177
+ "type": "text",
2178
+ "primaryKey": true,
2179
+ "notNull": true,
2180
+ "autoincrement": false
2181
+ },
2182
+ "project_id": {
2183
+ "name": "project_id",
2184
+ "type": "text",
2185
+ "primaryKey": false,
2186
+ "notNull": false,
2187
+ "autoincrement": false
2188
+ },
2189
+ "title": {
2190
+ "name": "title",
2191
+ "type": "text",
2192
+ "primaryKey": false,
2193
+ "notNull": true,
2194
+ "autoincrement": false
2195
+ },
2196
+ "content": {
2197
+ "name": "content",
2198
+ "type": "text",
2199
+ "primaryKey": false,
2200
+ "notNull": true,
2201
+ "autoincrement": false
2202
+ },
2203
+ "version": {
2204
+ "name": "version",
2205
+ "type": "integer",
2206
+ "primaryKey": false,
2207
+ "notNull": true,
2208
+ "autoincrement": false,
2209
+ "default": 1
2210
+ },
2211
+ "created_at": {
2212
+ "name": "created_at",
2213
+ "type": "text",
2214
+ "primaryKey": false,
2215
+ "notNull": true,
2216
+ "autoincrement": false
2217
+ },
2218
+ "updated_at": {
2219
+ "name": "updated_at",
2220
+ "type": "text",
2221
+ "primaryKey": false,
2222
+ "notNull": true,
2223
+ "autoincrement": false
2224
+ }
2225
+ },
2226
+ "indexes": {},
2227
+ "foreignKeys": {
2228
+ "prompts_project_id_projects_id_fk": {
2229
+ "name": "prompts_project_id_projects_id_fk",
2230
+ "tableFrom": "prompts",
2231
+ "tableTo": "projects",
2232
+ "columnsFrom": [
2233
+ "project_id"
2234
+ ],
2235
+ "columnsTo": [
2236
+ "id"
2237
+ ],
2238
+ "onDelete": "cascade",
2239
+ "onUpdate": "no action"
2240
+ }
2241
+ },
2242
+ "compositePrimaryKeys": {},
2243
+ "uniqueConstraints": {},
2244
+ "checkConstraints": {}
2245
+ },
2246
+ "providers": {
2247
+ "name": "providers",
2248
+ "columns": {
2249
+ "id": {
2250
+ "name": "id",
2251
+ "type": "text",
2252
+ "primaryKey": true,
2253
+ "notNull": true,
2254
+ "autoincrement": false
2255
+ },
2256
+ "name": {
2257
+ "name": "name",
2258
+ "type": "text",
2259
+ "primaryKey": false,
2260
+ "notNull": true,
2261
+ "autoincrement": false
2262
+ },
2263
+ "bin_path": {
2264
+ "name": "bin_path",
2265
+ "type": "text",
2266
+ "primaryKey": false,
2267
+ "notNull": false,
2268
+ "autoincrement": false
2269
+ },
2270
+ "mcp_configured": {
2271
+ "name": "mcp_configured",
2272
+ "type": "integer",
2273
+ "primaryKey": false,
2274
+ "notNull": true,
2275
+ "autoincrement": false,
2276
+ "default": false
2277
+ },
2278
+ "mcp_endpoint": {
2279
+ "name": "mcp_endpoint",
2280
+ "type": "text",
2281
+ "primaryKey": false,
2282
+ "notNull": false,
2283
+ "autoincrement": false
2284
+ },
2285
+ "mcp_registered_at": {
2286
+ "name": "mcp_registered_at",
2287
+ "type": "text",
2288
+ "primaryKey": false,
2289
+ "notNull": false,
2290
+ "autoincrement": false
2291
+ },
2292
+ "created_at": {
2293
+ "name": "created_at",
2294
+ "type": "text",
2295
+ "primaryKey": false,
2296
+ "notNull": true,
2297
+ "autoincrement": false
2298
+ },
2299
+ "updated_at": {
2300
+ "name": "updated_at",
2301
+ "type": "text",
2302
+ "primaryKey": false,
2303
+ "notNull": true,
2304
+ "autoincrement": false
2305
+ }
2306
+ },
2307
+ "indexes": {
2308
+ "providers_name_unique": {
2309
+ "name": "providers_name_unique",
2310
+ "columns": [
2311
+ "name"
2312
+ ],
2313
+ "isUnique": true
2314
+ }
2315
+ },
2316
+ "foreignKeys": {},
2317
+ "compositePrimaryKeys": {},
2318
+ "uniqueConstraints": {},
2319
+ "checkConstraints": {}
2320
+ },
2321
+ "record_tags": {
2322
+ "name": "record_tags",
2323
+ "columns": {
2324
+ "record_id": {
2325
+ "name": "record_id",
2326
+ "type": "text",
2327
+ "primaryKey": false,
2328
+ "notNull": true,
2329
+ "autoincrement": false
2330
+ },
2331
+ "tag_id": {
2332
+ "name": "tag_id",
2333
+ "type": "text",
2334
+ "primaryKey": false,
2335
+ "notNull": true,
2336
+ "autoincrement": false
2337
+ },
2338
+ "created_at": {
2339
+ "name": "created_at",
2340
+ "type": "text",
2341
+ "primaryKey": false,
2342
+ "notNull": true,
2343
+ "autoincrement": false
2344
+ }
2345
+ },
2346
+ "indexes": {},
2347
+ "foreignKeys": {
2348
+ "record_tags_record_id_records_id_fk": {
2349
+ "name": "record_tags_record_id_records_id_fk",
2350
+ "tableFrom": "record_tags",
2351
+ "tableTo": "records",
2352
+ "columnsFrom": [
2353
+ "record_id"
2354
+ ],
2355
+ "columnsTo": [
2356
+ "id"
2357
+ ],
2358
+ "onDelete": "cascade",
2359
+ "onUpdate": "no action"
2360
+ },
2361
+ "record_tags_tag_id_tags_id_fk": {
2362
+ "name": "record_tags_tag_id_tags_id_fk",
2363
+ "tableFrom": "record_tags",
2364
+ "tableTo": "tags",
2365
+ "columnsFrom": [
2366
+ "tag_id"
2367
+ ],
2368
+ "columnsTo": [
2369
+ "id"
2370
+ ],
2371
+ "onDelete": "cascade",
2372
+ "onUpdate": "no action"
2373
+ }
2374
+ },
2375
+ "compositePrimaryKeys": {},
2376
+ "uniqueConstraints": {},
2377
+ "checkConstraints": {}
2378
+ },
2379
+ "records": {
2380
+ "name": "records",
2381
+ "columns": {
2382
+ "id": {
2383
+ "name": "id",
2384
+ "type": "text",
2385
+ "primaryKey": true,
2386
+ "notNull": true,
2387
+ "autoincrement": false
2388
+ },
2389
+ "epic_id": {
2390
+ "name": "epic_id",
2391
+ "type": "text",
2392
+ "primaryKey": false,
2393
+ "notNull": true,
2394
+ "autoincrement": false
2395
+ },
2396
+ "type": {
2397
+ "name": "type",
2398
+ "type": "text",
2399
+ "primaryKey": false,
2400
+ "notNull": true,
2401
+ "autoincrement": false
2402
+ },
2403
+ "data": {
2404
+ "name": "data",
2405
+ "type": "text",
2406
+ "primaryKey": false,
2407
+ "notNull": true,
2408
+ "autoincrement": false
2409
+ },
2410
+ "version": {
2411
+ "name": "version",
2412
+ "type": "integer",
2413
+ "primaryKey": false,
2414
+ "notNull": true,
2415
+ "autoincrement": false,
2416
+ "default": 1
2417
+ },
2418
+ "created_at": {
2419
+ "name": "created_at",
2420
+ "type": "text",
2421
+ "primaryKey": false,
2422
+ "notNull": true,
2423
+ "autoincrement": false
2424
+ },
2425
+ "updated_at": {
2426
+ "name": "updated_at",
2427
+ "type": "text",
2428
+ "primaryKey": false,
2429
+ "notNull": true,
2430
+ "autoincrement": false
2431
+ }
2432
+ },
2433
+ "indexes": {},
2434
+ "foreignKeys": {
2435
+ "records_epic_id_epics_id_fk": {
2436
+ "name": "records_epic_id_epics_id_fk",
2437
+ "tableFrom": "records",
2438
+ "tableTo": "epics",
2439
+ "columnsFrom": [
2440
+ "epic_id"
2441
+ ],
2442
+ "columnsTo": [
2443
+ "id"
2444
+ ],
2445
+ "onDelete": "cascade",
2446
+ "onUpdate": "no action"
2447
+ }
2448
+ },
2449
+ "compositePrimaryKeys": {},
2450
+ "uniqueConstraints": {},
2451
+ "checkConstraints": {}
2452
+ },
2453
+ "sessions": {
2454
+ "name": "sessions",
2455
+ "columns": {
2456
+ "id": {
2457
+ "name": "id",
2458
+ "type": "text",
2459
+ "primaryKey": true,
2460
+ "notNull": true,
2461
+ "autoincrement": false
2462
+ },
2463
+ "epic_id": {
2464
+ "name": "epic_id",
2465
+ "type": "text",
2466
+ "primaryKey": false,
2467
+ "notNull": false,
2468
+ "autoincrement": false
2469
+ },
2470
+ "agent_id": {
2471
+ "name": "agent_id",
2472
+ "type": "text",
2473
+ "primaryKey": false,
2474
+ "notNull": false,
2475
+ "autoincrement": false
2476
+ },
2477
+ "tmux_session_id": {
2478
+ "name": "tmux_session_id",
2479
+ "type": "text",
2480
+ "primaryKey": false,
2481
+ "notNull": false,
2482
+ "autoincrement": false
2483
+ },
2484
+ "status": {
2485
+ "name": "status",
2486
+ "type": "text",
2487
+ "primaryKey": false,
2488
+ "notNull": true,
2489
+ "autoincrement": false
2490
+ },
2491
+ "started_at": {
2492
+ "name": "started_at",
2493
+ "type": "text",
2494
+ "primaryKey": false,
2495
+ "notNull": true,
2496
+ "autoincrement": false
2497
+ },
2498
+ "ended_at": {
2499
+ "name": "ended_at",
2500
+ "type": "text",
2501
+ "primaryKey": false,
2502
+ "notNull": false,
2503
+ "autoincrement": false
2504
+ },
2505
+ "last_activity_at": {
2506
+ "name": "last_activity_at",
2507
+ "type": "text",
2508
+ "primaryKey": false,
2509
+ "notNull": false,
2510
+ "autoincrement": false
2511
+ },
2512
+ "activity_state": {
2513
+ "name": "activity_state",
2514
+ "type": "text",
2515
+ "primaryKey": false,
2516
+ "notNull": false,
2517
+ "autoincrement": false
2518
+ },
2519
+ "busy_since": {
2520
+ "name": "busy_since",
2521
+ "type": "text",
2522
+ "primaryKey": false,
2523
+ "notNull": false,
2524
+ "autoincrement": false
2525
+ },
2526
+ "created_at": {
2527
+ "name": "created_at",
2528
+ "type": "text",
2529
+ "primaryKey": false,
2530
+ "notNull": true,
2531
+ "autoincrement": false
2532
+ },
2533
+ "updated_at": {
2534
+ "name": "updated_at",
2535
+ "type": "text",
2536
+ "primaryKey": false,
2537
+ "notNull": true,
2538
+ "autoincrement": false
2539
+ }
2540
+ },
2541
+ "indexes": {},
2542
+ "foreignKeys": {
2543
+ "sessions_epic_id_epics_id_fk": {
2544
+ "name": "sessions_epic_id_epics_id_fk",
2545
+ "tableFrom": "sessions",
2546
+ "tableTo": "epics",
2547
+ "columnsFrom": [
2548
+ "epic_id"
2549
+ ],
2550
+ "columnsTo": [
2551
+ "id"
2552
+ ],
2553
+ "onDelete": "set null",
2554
+ "onUpdate": "no action"
2555
+ },
2556
+ "sessions_agent_id_agents_id_fk": {
2557
+ "name": "sessions_agent_id_agents_id_fk",
2558
+ "tableFrom": "sessions",
2559
+ "tableTo": "agents",
2560
+ "columnsFrom": [
2561
+ "agent_id"
2562
+ ],
2563
+ "columnsTo": [
2564
+ "id"
2565
+ ],
2566
+ "onDelete": "restrict",
2567
+ "onUpdate": "no action"
2568
+ }
2569
+ },
2570
+ "compositePrimaryKeys": {},
2571
+ "uniqueConstraints": {},
2572
+ "checkConstraints": {}
2573
+ },
2574
+ "settings": {
2575
+ "name": "settings",
2576
+ "columns": {
2577
+ "id": {
2578
+ "name": "id",
2579
+ "type": "text",
2580
+ "primaryKey": true,
2581
+ "notNull": true,
2582
+ "autoincrement": false
2583
+ },
2584
+ "key": {
2585
+ "name": "key",
2586
+ "type": "text",
2587
+ "primaryKey": false,
2588
+ "notNull": true,
2589
+ "autoincrement": false
2590
+ },
2591
+ "value": {
2592
+ "name": "value",
2593
+ "type": "text",
2594
+ "primaryKey": false,
2595
+ "notNull": true,
2596
+ "autoincrement": false
2597
+ },
2598
+ "created_at": {
2599
+ "name": "created_at",
2600
+ "type": "text",
2601
+ "primaryKey": false,
2602
+ "notNull": true,
2603
+ "autoincrement": false
2604
+ },
2605
+ "updated_at": {
2606
+ "name": "updated_at",
2607
+ "type": "text",
2608
+ "primaryKey": false,
2609
+ "notNull": true,
2610
+ "autoincrement": false
2611
+ }
2612
+ },
2613
+ "indexes": {
2614
+ "settings_key_unique": {
2615
+ "name": "settings_key_unique",
2616
+ "columns": [
2617
+ "key"
2618
+ ],
2619
+ "isUnique": true
2620
+ }
2621
+ },
2622
+ "foreignKeys": {},
2623
+ "compositePrimaryKeys": {},
2624
+ "uniqueConstraints": {},
2625
+ "checkConstraints": {}
2626
+ },
2627
+ "statuses": {
2628
+ "name": "statuses",
2629
+ "columns": {
2630
+ "id": {
2631
+ "name": "id",
2632
+ "type": "text",
2633
+ "primaryKey": true,
2634
+ "notNull": true,
2635
+ "autoincrement": false
2636
+ },
2637
+ "project_id": {
2638
+ "name": "project_id",
2639
+ "type": "text",
2640
+ "primaryKey": false,
2641
+ "notNull": true,
2642
+ "autoincrement": false
2643
+ },
2644
+ "label": {
2645
+ "name": "label",
2646
+ "type": "text",
2647
+ "primaryKey": false,
2648
+ "notNull": true,
2649
+ "autoincrement": false
2650
+ },
2651
+ "color": {
2652
+ "name": "color",
2653
+ "type": "text",
2654
+ "primaryKey": false,
2655
+ "notNull": true,
2656
+ "autoincrement": false
2657
+ },
2658
+ "position": {
2659
+ "name": "position",
2660
+ "type": "integer",
2661
+ "primaryKey": false,
2662
+ "notNull": true,
2663
+ "autoincrement": false
2664
+ },
2665
+ "mcp_hidden": {
2666
+ "name": "mcp_hidden",
2667
+ "type": "integer",
2668
+ "primaryKey": false,
2669
+ "notNull": true,
2670
+ "autoincrement": false,
2671
+ "default": 0
2672
+ },
2673
+ "created_at": {
2674
+ "name": "created_at",
2675
+ "type": "text",
2676
+ "primaryKey": false,
2677
+ "notNull": true,
2678
+ "autoincrement": false
2679
+ },
2680
+ "updated_at": {
2681
+ "name": "updated_at",
2682
+ "type": "text",
2683
+ "primaryKey": false,
2684
+ "notNull": true,
2685
+ "autoincrement": false
2686
+ }
2687
+ },
2688
+ "indexes": {
2689
+ "statuses_project_position_idx": {
2690
+ "name": "statuses_project_position_idx",
2691
+ "columns": [
2692
+ "project_id",
2693
+ "position"
2694
+ ],
2695
+ "isUnique": true
2696
+ }
2697
+ },
2698
+ "foreignKeys": {
2699
+ "statuses_project_id_projects_id_fk": {
2700
+ "name": "statuses_project_id_projects_id_fk",
2701
+ "tableFrom": "statuses",
2702
+ "tableTo": "projects",
2703
+ "columnsFrom": [
2704
+ "project_id"
2705
+ ],
2706
+ "columnsTo": [
2707
+ "id"
2708
+ ],
2709
+ "onDelete": "cascade",
2710
+ "onUpdate": "no action"
2711
+ }
2712
+ },
2713
+ "compositePrimaryKeys": {},
2714
+ "uniqueConstraints": {},
2715
+ "checkConstraints": {}
2716
+ },
2717
+ "tags": {
2718
+ "name": "tags",
2719
+ "columns": {
2720
+ "id": {
2721
+ "name": "id",
2722
+ "type": "text",
2723
+ "primaryKey": true,
2724
+ "notNull": true,
2725
+ "autoincrement": false
2726
+ },
2727
+ "project_id": {
2728
+ "name": "project_id",
2729
+ "type": "text",
2730
+ "primaryKey": false,
2731
+ "notNull": false,
2732
+ "autoincrement": false
2733
+ },
2734
+ "name": {
2735
+ "name": "name",
2736
+ "type": "text",
2737
+ "primaryKey": false,
2738
+ "notNull": true,
2739
+ "autoincrement": false
2740
+ },
2741
+ "created_at": {
2742
+ "name": "created_at",
2743
+ "type": "text",
2744
+ "primaryKey": false,
2745
+ "notNull": true,
2746
+ "autoincrement": false
2747
+ },
2748
+ "updated_at": {
2749
+ "name": "updated_at",
2750
+ "type": "text",
2751
+ "primaryKey": false,
2752
+ "notNull": true,
2753
+ "autoincrement": false
2754
+ }
2755
+ },
2756
+ "indexes": {},
2757
+ "foreignKeys": {
2758
+ "tags_project_id_projects_id_fk": {
2759
+ "name": "tags_project_id_projects_id_fk",
2760
+ "tableFrom": "tags",
2761
+ "tableTo": "projects",
2762
+ "columnsFrom": [
2763
+ "project_id"
2764
+ ],
2765
+ "columnsTo": [
2766
+ "id"
2767
+ ],
2768
+ "onDelete": "cascade",
2769
+ "onUpdate": "no action"
2770
+ }
2771
+ },
2772
+ "compositePrimaryKeys": {},
2773
+ "uniqueConstraints": {},
2774
+ "checkConstraints": {}
2775
+ },
2776
+ "terminal_watchers": {
2777
+ "name": "terminal_watchers",
2778
+ "columns": {
2779
+ "id": {
2780
+ "name": "id",
2781
+ "type": "text",
2782
+ "primaryKey": true,
2783
+ "notNull": true,
2784
+ "autoincrement": false
2785
+ },
2786
+ "project_id": {
2787
+ "name": "project_id",
2788
+ "type": "text",
2789
+ "primaryKey": false,
2790
+ "notNull": true,
2791
+ "autoincrement": false
2792
+ },
2793
+ "name": {
2794
+ "name": "name",
2795
+ "type": "text",
2796
+ "primaryKey": false,
2797
+ "notNull": true,
2798
+ "autoincrement": false
2799
+ },
2800
+ "description": {
2801
+ "name": "description",
2802
+ "type": "text",
2803
+ "primaryKey": false,
2804
+ "notNull": false,
2805
+ "autoincrement": false
2806
+ },
2807
+ "enabled": {
2808
+ "name": "enabled",
2809
+ "type": "integer",
2810
+ "primaryKey": false,
2811
+ "notNull": true,
2812
+ "autoincrement": false,
2813
+ "default": true
2814
+ },
2815
+ "scope": {
2816
+ "name": "scope",
2817
+ "type": "text",
2818
+ "primaryKey": false,
2819
+ "notNull": true,
2820
+ "autoincrement": false,
2821
+ "default": "'all'"
2822
+ },
2823
+ "scope_filter_id": {
2824
+ "name": "scope_filter_id",
2825
+ "type": "text",
2826
+ "primaryKey": false,
2827
+ "notNull": false,
2828
+ "autoincrement": false
2829
+ },
2830
+ "poll_interval_ms": {
2831
+ "name": "poll_interval_ms",
2832
+ "type": "integer",
2833
+ "primaryKey": false,
2834
+ "notNull": true,
2835
+ "autoincrement": false,
2836
+ "default": 5000
2837
+ },
2838
+ "viewport_lines": {
2839
+ "name": "viewport_lines",
2840
+ "type": "integer",
2841
+ "primaryKey": false,
2842
+ "notNull": true,
2843
+ "autoincrement": false,
2844
+ "default": 50
2845
+ },
2846
+ "condition": {
2847
+ "name": "condition",
2848
+ "type": "text",
2849
+ "primaryKey": false,
2850
+ "notNull": true,
2851
+ "autoincrement": false
2852
+ },
2853
+ "cooldown_ms": {
2854
+ "name": "cooldown_ms",
2855
+ "type": "integer",
2856
+ "primaryKey": false,
2857
+ "notNull": true,
2858
+ "autoincrement": false,
2859
+ "default": 60000
2860
+ },
2861
+ "cooldown_mode": {
2862
+ "name": "cooldown_mode",
2863
+ "type": "text",
2864
+ "primaryKey": false,
2865
+ "notNull": true,
2866
+ "autoincrement": false,
2867
+ "default": "'time'"
2868
+ },
2869
+ "event_name": {
2870
+ "name": "event_name",
2871
+ "type": "text",
2872
+ "primaryKey": false,
2873
+ "notNull": true,
2874
+ "autoincrement": false
2875
+ },
2876
+ "created_at": {
2877
+ "name": "created_at",
2878
+ "type": "text",
2879
+ "primaryKey": false,
2880
+ "notNull": true,
2881
+ "autoincrement": false
2882
+ },
2883
+ "updated_at": {
2884
+ "name": "updated_at",
2885
+ "type": "text",
2886
+ "primaryKey": false,
2887
+ "notNull": true,
2888
+ "autoincrement": false
2889
+ }
2890
+ },
2891
+ "indexes": {
2892
+ "terminal_watchers_project_id_idx": {
2893
+ "name": "terminal_watchers_project_id_idx",
2894
+ "columns": [
2895
+ "project_id"
2896
+ ],
2897
+ "isUnique": false
2898
+ },
2899
+ "terminal_watchers_enabled_idx": {
2900
+ "name": "terminal_watchers_enabled_idx",
2901
+ "columns": [
2902
+ "enabled"
2903
+ ],
2904
+ "isUnique": false
2905
+ },
2906
+ "terminal_watchers_event_name_unique": {
2907
+ "name": "terminal_watchers_event_name_unique",
2908
+ "columns": [
2909
+ "project_id",
2910
+ "event_name"
2911
+ ],
2912
+ "isUnique": true
2913
+ }
2914
+ },
2915
+ "foreignKeys": {
2916
+ "terminal_watchers_project_id_projects_id_fk": {
2917
+ "name": "terminal_watchers_project_id_projects_id_fk",
2918
+ "tableFrom": "terminal_watchers",
2919
+ "tableTo": "projects",
2920
+ "columnsFrom": [
2921
+ "project_id"
2922
+ ],
2923
+ "columnsTo": [
2924
+ "id"
2925
+ ],
2926
+ "onDelete": "cascade",
2927
+ "onUpdate": "no action"
2928
+ }
2929
+ },
2930
+ "compositePrimaryKeys": {},
2931
+ "uniqueConstraints": {},
2932
+ "checkConstraints": {}
2933
+ },
2934
+ "transcripts": {
2935
+ "name": "transcripts",
2936
+ "columns": {
2937
+ "id": {
2938
+ "name": "id",
2939
+ "type": "text",
2940
+ "primaryKey": true,
2941
+ "notNull": true,
2942
+ "autoincrement": false
2943
+ },
2944
+ "session_id": {
2945
+ "name": "session_id",
2946
+ "type": "text",
2947
+ "primaryKey": false,
2948
+ "notNull": true,
2949
+ "autoincrement": false
2950
+ },
2951
+ "content": {
2952
+ "name": "content",
2953
+ "type": "text",
2954
+ "primaryKey": false,
2955
+ "notNull": true,
2956
+ "autoincrement": false
2957
+ },
2958
+ "archived_at": {
2959
+ "name": "archived_at",
2960
+ "type": "text",
2961
+ "primaryKey": false,
2962
+ "notNull": false,
2963
+ "autoincrement": false
2964
+ },
2965
+ "created_at": {
2966
+ "name": "created_at",
2967
+ "type": "text",
2968
+ "primaryKey": false,
2969
+ "notNull": true,
2970
+ "autoincrement": false
2971
+ },
2972
+ "updated_at": {
2973
+ "name": "updated_at",
2974
+ "type": "text",
2975
+ "primaryKey": false,
2976
+ "notNull": true,
2977
+ "autoincrement": false
2978
+ }
2979
+ },
2980
+ "indexes": {},
2981
+ "foreignKeys": {
2982
+ "transcripts_session_id_sessions_id_fk": {
2983
+ "name": "transcripts_session_id_sessions_id_fk",
2984
+ "tableFrom": "transcripts",
2985
+ "tableTo": "sessions",
2986
+ "columnsFrom": [
2987
+ "session_id"
2988
+ ],
2989
+ "columnsTo": [
2990
+ "id"
2991
+ ],
2992
+ "onDelete": "cascade",
2993
+ "onUpdate": "no action"
2994
+ }
2995
+ },
2996
+ "compositePrimaryKeys": {},
2997
+ "uniqueConstraints": {},
2998
+ "checkConstraints": {}
2999
+ },
3000
+ "users": {
3001
+ "name": "users",
3002
+ "columns": {
3003
+ "id": {
3004
+ "name": "id",
3005
+ "type": "text",
3006
+ "primaryKey": true,
3007
+ "notNull": true,
3008
+ "autoincrement": false
3009
+ },
3010
+ "email": {
3011
+ "name": "email",
3012
+ "type": "text",
3013
+ "primaryKey": false,
3014
+ "notNull": true,
3015
+ "autoincrement": false
3016
+ },
3017
+ "name": {
3018
+ "name": "name",
3019
+ "type": "text",
3020
+ "primaryKey": false,
3021
+ "notNull": false,
3022
+ "autoincrement": false
3023
+ },
3024
+ "created_at": {
3025
+ "name": "created_at",
3026
+ "type": "text",
3027
+ "primaryKey": false,
3028
+ "notNull": true,
3029
+ "autoincrement": false
3030
+ },
3031
+ "updated_at": {
3032
+ "name": "updated_at",
3033
+ "type": "text",
3034
+ "primaryKey": false,
3035
+ "notNull": true,
3036
+ "autoincrement": false
3037
+ }
3038
+ },
3039
+ "indexes": {
3040
+ "users_email_unique": {
3041
+ "name": "users_email_unique",
3042
+ "columns": [
3043
+ "email"
3044
+ ],
3045
+ "isUnique": true
3046
+ }
3047
+ },
3048
+ "foreignKeys": {},
3049
+ "compositePrimaryKeys": {},
3050
+ "uniqueConstraints": {},
3051
+ "checkConstraints": {}
3052
+ }
3053
+ },
3054
+ "views": {},
3055
+ "enums": {},
3056
+ "_meta": {
3057
+ "schemas": {},
3058
+ "tables": {},
3059
+ "columns": {}
3060
+ },
3061
+ "internal": {
3062
+ "indexes": {}
3063
+ }
3064
+ }