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