@inkeep/agents-core 0.47.5 → 0.48.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 (78) hide show
  1. package/README.md +1 -1
  2. package/dist/auth/auth-schema.d.ts +83 -83
  3. package/dist/auth/auth-validation-schemas.d.ts +148 -148
  4. package/dist/auth/auth.d.ts +58 -58
  5. package/dist/auth/permissions.d.ts +13 -13
  6. package/dist/client-exports.d.ts +13 -2
  7. package/dist/client-exports.js +5 -4
  8. package/dist/data-access/index.d.ts +6 -1
  9. package/dist/data-access/index.js +6 -1
  10. package/dist/data-access/manage/agentFull.js +154 -1
  11. package/dist/data-access/manage/agents.d.ts +4 -4
  12. package/dist/data-access/manage/agents.js +56 -4
  13. package/dist/data-access/manage/artifactComponents.d.ts +41 -5
  14. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  15. package/dist/data-access/manage/functionTools.d.ts +3 -3
  16. package/dist/data-access/manage/projectFull.js +97 -0
  17. package/dist/data-access/manage/scheduledTriggers.d.ts +80 -0
  18. package/dist/data-access/manage/scheduledTriggers.js +76 -0
  19. package/dist/data-access/manage/scheduledWorkflows.d.ts +29 -0
  20. package/dist/data-access/manage/scheduledWorkflows.js +32 -0
  21. package/dist/data-access/manage/skills.d.ts +109 -0
  22. package/dist/data-access/manage/skills.js +122 -0
  23. package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
  24. package/dist/data-access/manage/tools.d.ts +4 -4
  25. package/dist/data-access/runtime/conversations.d.ts +11 -11
  26. package/dist/data-access/runtime/messages.d.ts +9 -9
  27. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +233 -0
  28. package/dist/data-access/runtime/scheduledTriggerInvocations.js +226 -0
  29. package/dist/data-access/runtime/tasks.d.ts +4 -4
  30. package/dist/data-access/runtime/workAppSlack.d.ts +55 -0
  31. package/dist/data-access/runtime/workAppSlack.js +146 -0
  32. package/dist/db/manage/manage-schema.d.ts +1436 -506
  33. package/dist/db/manage/manage-schema.js +240 -15
  34. package/dist/db/runtime/runtime-schema.d.ts +1244 -242
  35. package/dist/db/runtime/runtime-schema.js +108 -3
  36. package/dist/index.d.ts +15 -6
  37. package/dist/index.js +13 -5
  38. package/dist/types/entities.d.ts +15 -2
  39. package/dist/types/index.d.ts +2 -2
  40. package/dist/utils/index.d.ts +5 -2
  41. package/dist/utils/index.js +5 -2
  42. package/dist/utils/slack-link-token.d.ts +57 -0
  43. package/dist/utils/slack-link-token.js +112 -0
  44. package/dist/utils/slack-user-token.d.ts +65 -0
  45. package/dist/utils/slack-user-token.js +129 -0
  46. package/dist/utils/sse-parser.d.ts +35 -0
  47. package/dist/utils/sse-parser.js +71 -0
  48. package/dist/utils/tracer-factory.d.ts +11 -2
  49. package/dist/utils/tracer-factory.js +24 -5
  50. package/dist/utils/tracer.d.ts +2 -2
  51. package/dist/utils/tracer.js +2 -2
  52. package/dist/utils/trigger-auth.d.ts +1 -1
  53. package/dist/validation/dolt-schemas.d.ts +1 -1
  54. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  55. package/dist/validation/extend-schemas.d.ts +34 -0
  56. package/dist/validation/extend-schemas.js +33 -0
  57. package/dist/validation/index.d.ts +2 -2
  58. package/dist/validation/index.js +2 -2
  59. package/dist/validation/json-schemas.d.ts +28 -0
  60. package/dist/validation/json-schemas.js +56 -0
  61. package/dist/validation/schemas.d.ts +5719 -2429
  62. package/dist/validation/schemas.js +159 -38
  63. package/dist/validation/stream-event-schemas.d.ts +0 -2
  64. package/dist/validation/stream-event-schemas.js +1 -2
  65. package/drizzle/manage/0007_nice_lilandra.sql +3 -0
  66. package/drizzle/manage/0008_friendly_mentallo.sql +32 -0
  67. package/drizzle/manage/0009_chilly_old_lace.sql +39 -0
  68. package/drizzle/manage/meta/0007_snapshot.json +3148 -0
  69. package/drizzle/manage/meta/0008_snapshot.json +3391 -0
  70. package/drizzle/manage/meta/0009_snapshot.json +3670 -0
  71. package/drizzle/manage/meta/_journal.json +21 -0
  72. package/drizzle/runtime/0012_greedy_hulk.sql +84 -0
  73. package/drizzle/runtime/0013_huge_white_queen.sql +19 -0
  74. package/drizzle/runtime/meta/0007_snapshot.json +1 -1
  75. package/drizzle/runtime/meta/0012_snapshot.json +3622 -0
  76. package/drizzle/runtime/meta/0013_snapshot.json +3746 -0
  77. package/drizzle/runtime/meta/_journal.json +14 -0
  78. package/package.json +1 -1
@@ -0,0 +1,3746 @@
1
+ {
2
+ "id": "6551e674-d4cf-403e-91bc-1fca44a03bd6",
3
+ "prevId": "a3af6418-fe18-46e7-ae37-e4afecb966c5",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "account_id": {
18
+ "name": "account_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "provider_id": {
24
+ "name": "provider_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "user_id": {
30
+ "name": "user_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "id_token": {
48
+ "name": "id_token",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "access_token_expires_at": {
54
+ "name": "access_token_expires_at",
55
+ "type": "timestamp",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "refresh_token_expires_at": {
60
+ "name": "refresh_token_expires_at",
61
+ "type": "timestamp",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "scope": {
66
+ "name": "scope",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "default": "now()"
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ }
90
+ },
91
+ "indexes": {
92
+ "account_userId_idx": {
93
+ "name": "account_userId_idx",
94
+ "columns": [
95
+ {
96
+ "expression": "user_id",
97
+ "isExpression": false,
98
+ "asc": true,
99
+ "nulls": "last"
100
+ }
101
+ ],
102
+ "isUnique": false,
103
+ "concurrently": false,
104
+ "method": "btree",
105
+ "with": {}
106
+ }
107
+ },
108
+ "foreignKeys": {
109
+ "account_user_id_user_id_fk": {
110
+ "name": "account_user_id_user_id_fk",
111
+ "tableFrom": "account",
112
+ "tableTo": "user",
113
+ "columnsFrom": [
114
+ "user_id"
115
+ ],
116
+ "columnsTo": [
117
+ "id"
118
+ ],
119
+ "onDelete": "cascade",
120
+ "onUpdate": "no action"
121
+ }
122
+ },
123
+ "compositePrimaryKeys": {},
124
+ "uniqueConstraints": {},
125
+ "policies": {},
126
+ "checkConstraints": {},
127
+ "isRLSEnabled": false
128
+ },
129
+ "public.api_keys": {
130
+ "name": "api_keys",
131
+ "schema": "",
132
+ "columns": {
133
+ "tenant_id": {
134
+ "name": "tenant_id",
135
+ "type": "varchar(256)",
136
+ "primaryKey": false,
137
+ "notNull": true
138
+ },
139
+ "id": {
140
+ "name": "id",
141
+ "type": "varchar(256)",
142
+ "primaryKey": false,
143
+ "notNull": true
144
+ },
145
+ "project_id": {
146
+ "name": "project_id",
147
+ "type": "varchar(256)",
148
+ "primaryKey": false,
149
+ "notNull": true
150
+ },
151
+ "agent_id": {
152
+ "name": "agent_id",
153
+ "type": "varchar(256)",
154
+ "primaryKey": false,
155
+ "notNull": true
156
+ },
157
+ "public_id": {
158
+ "name": "public_id",
159
+ "type": "varchar(256)",
160
+ "primaryKey": false,
161
+ "notNull": true
162
+ },
163
+ "key_hash": {
164
+ "name": "key_hash",
165
+ "type": "varchar(256)",
166
+ "primaryKey": false,
167
+ "notNull": true
168
+ },
169
+ "key_prefix": {
170
+ "name": "key_prefix",
171
+ "type": "varchar(256)",
172
+ "primaryKey": false,
173
+ "notNull": true
174
+ },
175
+ "name": {
176
+ "name": "name",
177
+ "type": "varchar(256)",
178
+ "primaryKey": false,
179
+ "notNull": false
180
+ },
181
+ "last_used_at": {
182
+ "name": "last_used_at",
183
+ "type": "timestamp",
184
+ "primaryKey": false,
185
+ "notNull": false
186
+ },
187
+ "expires_at": {
188
+ "name": "expires_at",
189
+ "type": "timestamp",
190
+ "primaryKey": false,
191
+ "notNull": false
192
+ },
193
+ "created_at": {
194
+ "name": "created_at",
195
+ "type": "timestamp",
196
+ "primaryKey": false,
197
+ "notNull": true,
198
+ "default": "now()"
199
+ },
200
+ "updated_at": {
201
+ "name": "updated_at",
202
+ "type": "timestamp",
203
+ "primaryKey": false,
204
+ "notNull": true,
205
+ "default": "now()"
206
+ }
207
+ },
208
+ "indexes": {
209
+ "api_keys_tenant_agent_idx": {
210
+ "name": "api_keys_tenant_agent_idx",
211
+ "columns": [
212
+ {
213
+ "expression": "tenant_id",
214
+ "isExpression": false,
215
+ "asc": true,
216
+ "nulls": "last"
217
+ },
218
+ {
219
+ "expression": "agent_id",
220
+ "isExpression": false,
221
+ "asc": true,
222
+ "nulls": "last"
223
+ }
224
+ ],
225
+ "isUnique": false,
226
+ "concurrently": false,
227
+ "method": "btree",
228
+ "with": {}
229
+ },
230
+ "api_keys_prefix_idx": {
231
+ "name": "api_keys_prefix_idx",
232
+ "columns": [
233
+ {
234
+ "expression": "key_prefix",
235
+ "isExpression": false,
236
+ "asc": true,
237
+ "nulls": "last"
238
+ }
239
+ ],
240
+ "isUnique": false,
241
+ "concurrently": false,
242
+ "method": "btree",
243
+ "with": {}
244
+ },
245
+ "api_keys_public_id_idx": {
246
+ "name": "api_keys_public_id_idx",
247
+ "columns": [
248
+ {
249
+ "expression": "public_id",
250
+ "isExpression": false,
251
+ "asc": true,
252
+ "nulls": "last"
253
+ }
254
+ ],
255
+ "isUnique": false,
256
+ "concurrently": false,
257
+ "method": "btree",
258
+ "with": {}
259
+ }
260
+ },
261
+ "foreignKeys": {
262
+ "api_keys_organization_fk": {
263
+ "name": "api_keys_organization_fk",
264
+ "tableFrom": "api_keys",
265
+ "tableTo": "organization",
266
+ "columnsFrom": [
267
+ "tenant_id"
268
+ ],
269
+ "columnsTo": [
270
+ "id"
271
+ ],
272
+ "onDelete": "cascade",
273
+ "onUpdate": "no action"
274
+ }
275
+ },
276
+ "compositePrimaryKeys": {},
277
+ "uniqueConstraints": {
278
+ "api_keys_public_id_unique": {
279
+ "name": "api_keys_public_id_unique",
280
+ "nullsNotDistinct": false,
281
+ "columns": [
282
+ "public_id"
283
+ ]
284
+ }
285
+ },
286
+ "policies": {},
287
+ "checkConstraints": {},
288
+ "isRLSEnabled": false
289
+ },
290
+ "public.context_cache": {
291
+ "name": "context_cache",
292
+ "schema": "",
293
+ "columns": {
294
+ "tenant_id": {
295
+ "name": "tenant_id",
296
+ "type": "varchar(256)",
297
+ "primaryKey": false,
298
+ "notNull": true
299
+ },
300
+ "id": {
301
+ "name": "id",
302
+ "type": "varchar(256)",
303
+ "primaryKey": false,
304
+ "notNull": true
305
+ },
306
+ "project_id": {
307
+ "name": "project_id",
308
+ "type": "varchar(256)",
309
+ "primaryKey": false,
310
+ "notNull": true
311
+ },
312
+ "conversation_id": {
313
+ "name": "conversation_id",
314
+ "type": "varchar(256)",
315
+ "primaryKey": false,
316
+ "notNull": true
317
+ },
318
+ "context_config_id": {
319
+ "name": "context_config_id",
320
+ "type": "varchar(256)",
321
+ "primaryKey": false,
322
+ "notNull": true
323
+ },
324
+ "context_variable_key": {
325
+ "name": "context_variable_key",
326
+ "type": "varchar(256)",
327
+ "primaryKey": false,
328
+ "notNull": true
329
+ },
330
+ "ref": {
331
+ "name": "ref",
332
+ "type": "jsonb",
333
+ "primaryKey": false,
334
+ "notNull": false
335
+ },
336
+ "value": {
337
+ "name": "value",
338
+ "type": "jsonb",
339
+ "primaryKey": false,
340
+ "notNull": true
341
+ },
342
+ "request_hash": {
343
+ "name": "request_hash",
344
+ "type": "varchar(256)",
345
+ "primaryKey": false,
346
+ "notNull": false
347
+ },
348
+ "fetched_at": {
349
+ "name": "fetched_at",
350
+ "type": "timestamp",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "default": "now()"
354
+ },
355
+ "fetch_source": {
356
+ "name": "fetch_source",
357
+ "type": "varchar(256)",
358
+ "primaryKey": false,
359
+ "notNull": false
360
+ },
361
+ "created_at": {
362
+ "name": "created_at",
363
+ "type": "timestamp",
364
+ "primaryKey": false,
365
+ "notNull": true,
366
+ "default": "now()"
367
+ },
368
+ "updated_at": {
369
+ "name": "updated_at",
370
+ "type": "timestamp",
371
+ "primaryKey": false,
372
+ "notNull": true,
373
+ "default": "now()"
374
+ }
375
+ },
376
+ "indexes": {
377
+ "context_cache_lookup_idx": {
378
+ "name": "context_cache_lookup_idx",
379
+ "columns": [
380
+ {
381
+ "expression": "conversation_id",
382
+ "isExpression": false,
383
+ "asc": true,
384
+ "nulls": "last"
385
+ },
386
+ {
387
+ "expression": "context_config_id",
388
+ "isExpression": false,
389
+ "asc": true,
390
+ "nulls": "last"
391
+ },
392
+ {
393
+ "expression": "context_variable_key",
394
+ "isExpression": false,
395
+ "asc": true,
396
+ "nulls": "last"
397
+ }
398
+ ],
399
+ "isUnique": false,
400
+ "concurrently": false,
401
+ "method": "btree",
402
+ "with": {}
403
+ }
404
+ },
405
+ "foreignKeys": {
406
+ "context_cache_conversation_fk": {
407
+ "name": "context_cache_conversation_fk",
408
+ "tableFrom": "context_cache",
409
+ "tableTo": "conversations",
410
+ "columnsFrom": [
411
+ "tenant_id",
412
+ "project_id",
413
+ "conversation_id"
414
+ ],
415
+ "columnsTo": [
416
+ "tenant_id",
417
+ "project_id",
418
+ "id"
419
+ ],
420
+ "onDelete": "cascade",
421
+ "onUpdate": "no action"
422
+ }
423
+ },
424
+ "compositePrimaryKeys": {
425
+ "context_cache_tenant_id_project_id_id_pk": {
426
+ "name": "context_cache_tenant_id_project_id_id_pk",
427
+ "columns": [
428
+ "tenant_id",
429
+ "project_id",
430
+ "id"
431
+ ]
432
+ }
433
+ },
434
+ "uniqueConstraints": {},
435
+ "policies": {},
436
+ "checkConstraints": {},
437
+ "isRLSEnabled": false
438
+ },
439
+ "public.conversations": {
440
+ "name": "conversations",
441
+ "schema": "",
442
+ "columns": {
443
+ "tenant_id": {
444
+ "name": "tenant_id",
445
+ "type": "varchar(256)",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "id": {
450
+ "name": "id",
451
+ "type": "varchar(256)",
452
+ "primaryKey": false,
453
+ "notNull": true
454
+ },
455
+ "project_id": {
456
+ "name": "project_id",
457
+ "type": "varchar(256)",
458
+ "primaryKey": false,
459
+ "notNull": true
460
+ },
461
+ "user_id": {
462
+ "name": "user_id",
463
+ "type": "varchar(256)",
464
+ "primaryKey": false,
465
+ "notNull": false
466
+ },
467
+ "agent_id": {
468
+ "name": "agent_id",
469
+ "type": "varchar(256)",
470
+ "primaryKey": false,
471
+ "notNull": false
472
+ },
473
+ "active_sub_agent_id": {
474
+ "name": "active_sub_agent_id",
475
+ "type": "varchar(256)",
476
+ "primaryKey": false,
477
+ "notNull": true
478
+ },
479
+ "ref": {
480
+ "name": "ref",
481
+ "type": "jsonb",
482
+ "primaryKey": false,
483
+ "notNull": false
484
+ },
485
+ "title": {
486
+ "name": "title",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": false
490
+ },
491
+ "last_context_resolution": {
492
+ "name": "last_context_resolution",
493
+ "type": "timestamp",
494
+ "primaryKey": false,
495
+ "notNull": false
496
+ },
497
+ "metadata": {
498
+ "name": "metadata",
499
+ "type": "jsonb",
500
+ "primaryKey": false,
501
+ "notNull": false
502
+ },
503
+ "created_at": {
504
+ "name": "created_at",
505
+ "type": "timestamp",
506
+ "primaryKey": false,
507
+ "notNull": true,
508
+ "default": "now()"
509
+ },
510
+ "updated_at": {
511
+ "name": "updated_at",
512
+ "type": "timestamp",
513
+ "primaryKey": false,
514
+ "notNull": true,
515
+ "default": "now()"
516
+ }
517
+ },
518
+ "indexes": {},
519
+ "foreignKeys": {},
520
+ "compositePrimaryKeys": {
521
+ "conversations_tenant_id_project_id_id_pk": {
522
+ "name": "conversations_tenant_id_project_id_id_pk",
523
+ "columns": [
524
+ "tenant_id",
525
+ "project_id",
526
+ "id"
527
+ ]
528
+ }
529
+ },
530
+ "uniqueConstraints": {},
531
+ "policies": {},
532
+ "checkConstraints": {},
533
+ "isRLSEnabled": false
534
+ },
535
+ "public.dataset_run": {
536
+ "name": "dataset_run",
537
+ "schema": "",
538
+ "columns": {
539
+ "tenant_id": {
540
+ "name": "tenant_id",
541
+ "type": "varchar(256)",
542
+ "primaryKey": false,
543
+ "notNull": true
544
+ },
545
+ "id": {
546
+ "name": "id",
547
+ "type": "varchar(256)",
548
+ "primaryKey": false,
549
+ "notNull": true
550
+ },
551
+ "project_id": {
552
+ "name": "project_id",
553
+ "type": "varchar(256)",
554
+ "primaryKey": false,
555
+ "notNull": true
556
+ },
557
+ "dataset_id": {
558
+ "name": "dataset_id",
559
+ "type": "text",
560
+ "primaryKey": false,
561
+ "notNull": true
562
+ },
563
+ "dataset_run_config_id": {
564
+ "name": "dataset_run_config_id",
565
+ "type": "text",
566
+ "primaryKey": false,
567
+ "notNull": false
568
+ },
569
+ "evaluation_job_config_id": {
570
+ "name": "evaluation_job_config_id",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": false
574
+ },
575
+ "created_at": {
576
+ "name": "created_at",
577
+ "type": "timestamp",
578
+ "primaryKey": false,
579
+ "notNull": true,
580
+ "default": "now()"
581
+ },
582
+ "updated_at": {
583
+ "name": "updated_at",
584
+ "type": "timestamp",
585
+ "primaryKey": false,
586
+ "notNull": true,
587
+ "default": "now()"
588
+ }
589
+ },
590
+ "indexes": {},
591
+ "foreignKeys": {},
592
+ "compositePrimaryKeys": {
593
+ "dataset_run_tenant_id_project_id_id_pk": {
594
+ "name": "dataset_run_tenant_id_project_id_id_pk",
595
+ "columns": [
596
+ "tenant_id",
597
+ "project_id",
598
+ "id"
599
+ ]
600
+ }
601
+ },
602
+ "uniqueConstraints": {},
603
+ "policies": {},
604
+ "checkConstraints": {},
605
+ "isRLSEnabled": false
606
+ },
607
+ "public.dataset_run_conversation_relations": {
608
+ "name": "dataset_run_conversation_relations",
609
+ "schema": "",
610
+ "columns": {
611
+ "tenant_id": {
612
+ "name": "tenant_id",
613
+ "type": "varchar(256)",
614
+ "primaryKey": false,
615
+ "notNull": true
616
+ },
617
+ "id": {
618
+ "name": "id",
619
+ "type": "varchar(256)",
620
+ "primaryKey": false,
621
+ "notNull": true
622
+ },
623
+ "project_id": {
624
+ "name": "project_id",
625
+ "type": "varchar(256)",
626
+ "primaryKey": false,
627
+ "notNull": true
628
+ },
629
+ "dataset_run_id": {
630
+ "name": "dataset_run_id",
631
+ "type": "text",
632
+ "primaryKey": false,
633
+ "notNull": true
634
+ },
635
+ "conversation_id": {
636
+ "name": "conversation_id",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ },
641
+ "dataset_item_id": {
642
+ "name": "dataset_item_id",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true
646
+ },
647
+ "created_at": {
648
+ "name": "created_at",
649
+ "type": "timestamp",
650
+ "primaryKey": false,
651
+ "notNull": true,
652
+ "default": "now()"
653
+ },
654
+ "updated_at": {
655
+ "name": "updated_at",
656
+ "type": "timestamp",
657
+ "primaryKey": false,
658
+ "notNull": true,
659
+ "default": "now()"
660
+ }
661
+ },
662
+ "indexes": {},
663
+ "foreignKeys": {
664
+ "dataset_run_conversation_relations_run_fk": {
665
+ "name": "dataset_run_conversation_relations_run_fk",
666
+ "tableFrom": "dataset_run_conversation_relations",
667
+ "tableTo": "dataset_run",
668
+ "columnsFrom": [
669
+ "tenant_id",
670
+ "project_id",
671
+ "dataset_run_id"
672
+ ],
673
+ "columnsTo": [
674
+ "tenant_id",
675
+ "project_id",
676
+ "id"
677
+ ],
678
+ "onDelete": "cascade",
679
+ "onUpdate": "no action"
680
+ },
681
+ "dataset_run_conversation_relations_conversation_fk": {
682
+ "name": "dataset_run_conversation_relations_conversation_fk",
683
+ "tableFrom": "dataset_run_conversation_relations",
684
+ "tableTo": "conversations",
685
+ "columnsFrom": [
686
+ "tenant_id",
687
+ "project_id",
688
+ "conversation_id"
689
+ ],
690
+ "columnsTo": [
691
+ "tenant_id",
692
+ "project_id",
693
+ "id"
694
+ ],
695
+ "onDelete": "cascade",
696
+ "onUpdate": "no action"
697
+ }
698
+ },
699
+ "compositePrimaryKeys": {
700
+ "dataset_run_conversation_relations_tenant_id_project_id_id_pk": {
701
+ "name": "dataset_run_conversation_relations_tenant_id_project_id_id_pk",
702
+ "columns": [
703
+ "tenant_id",
704
+ "project_id",
705
+ "id"
706
+ ]
707
+ }
708
+ },
709
+ "uniqueConstraints": {
710
+ "dataset_run_conversation_relations_unique": {
711
+ "name": "dataset_run_conversation_relations_unique",
712
+ "nullsNotDistinct": false,
713
+ "columns": [
714
+ "dataset_run_id",
715
+ "conversation_id"
716
+ ]
717
+ }
718
+ },
719
+ "policies": {},
720
+ "checkConstraints": {},
721
+ "isRLSEnabled": false
722
+ },
723
+ "public.device_code": {
724
+ "name": "device_code",
725
+ "schema": "",
726
+ "columns": {
727
+ "id": {
728
+ "name": "id",
729
+ "type": "text",
730
+ "primaryKey": true,
731
+ "notNull": true
732
+ },
733
+ "device_code": {
734
+ "name": "device_code",
735
+ "type": "text",
736
+ "primaryKey": false,
737
+ "notNull": true
738
+ },
739
+ "user_code": {
740
+ "name": "user_code",
741
+ "type": "text",
742
+ "primaryKey": false,
743
+ "notNull": true
744
+ },
745
+ "user_id": {
746
+ "name": "user_id",
747
+ "type": "text",
748
+ "primaryKey": false,
749
+ "notNull": false
750
+ },
751
+ "expires_at": {
752
+ "name": "expires_at",
753
+ "type": "timestamp",
754
+ "primaryKey": false,
755
+ "notNull": true
756
+ },
757
+ "status": {
758
+ "name": "status",
759
+ "type": "text",
760
+ "primaryKey": false,
761
+ "notNull": true
762
+ },
763
+ "last_polled_at": {
764
+ "name": "last_polled_at",
765
+ "type": "timestamp",
766
+ "primaryKey": false,
767
+ "notNull": false
768
+ },
769
+ "polling_interval": {
770
+ "name": "polling_interval",
771
+ "type": "integer",
772
+ "primaryKey": false,
773
+ "notNull": false
774
+ },
775
+ "client_id": {
776
+ "name": "client_id",
777
+ "type": "text",
778
+ "primaryKey": false,
779
+ "notNull": false
780
+ },
781
+ "scope": {
782
+ "name": "scope",
783
+ "type": "text",
784
+ "primaryKey": false,
785
+ "notNull": false
786
+ }
787
+ },
788
+ "indexes": {},
789
+ "foreignKeys": {},
790
+ "compositePrimaryKeys": {},
791
+ "uniqueConstraints": {},
792
+ "policies": {},
793
+ "checkConstraints": {},
794
+ "isRLSEnabled": false
795
+ },
796
+ "public.evaluation_result": {
797
+ "name": "evaluation_result",
798
+ "schema": "",
799
+ "columns": {
800
+ "tenant_id": {
801
+ "name": "tenant_id",
802
+ "type": "varchar(256)",
803
+ "primaryKey": false,
804
+ "notNull": true
805
+ },
806
+ "id": {
807
+ "name": "id",
808
+ "type": "varchar(256)",
809
+ "primaryKey": false,
810
+ "notNull": true
811
+ },
812
+ "project_id": {
813
+ "name": "project_id",
814
+ "type": "varchar(256)",
815
+ "primaryKey": false,
816
+ "notNull": true
817
+ },
818
+ "conversation_id": {
819
+ "name": "conversation_id",
820
+ "type": "text",
821
+ "primaryKey": false,
822
+ "notNull": true
823
+ },
824
+ "evaluator_id": {
825
+ "name": "evaluator_id",
826
+ "type": "text",
827
+ "primaryKey": false,
828
+ "notNull": true
829
+ },
830
+ "evaluation_run_id": {
831
+ "name": "evaluation_run_id",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": false
835
+ },
836
+ "output": {
837
+ "name": "output",
838
+ "type": "jsonb",
839
+ "primaryKey": false,
840
+ "notNull": false
841
+ },
842
+ "created_at": {
843
+ "name": "created_at",
844
+ "type": "timestamp",
845
+ "primaryKey": false,
846
+ "notNull": true,
847
+ "default": "now()"
848
+ },
849
+ "updated_at": {
850
+ "name": "updated_at",
851
+ "type": "timestamp",
852
+ "primaryKey": false,
853
+ "notNull": true,
854
+ "default": "now()"
855
+ }
856
+ },
857
+ "indexes": {},
858
+ "foreignKeys": {
859
+ "evaluation_result_conversation_fk": {
860
+ "name": "evaluation_result_conversation_fk",
861
+ "tableFrom": "evaluation_result",
862
+ "tableTo": "conversations",
863
+ "columnsFrom": [
864
+ "tenant_id",
865
+ "project_id",
866
+ "conversation_id"
867
+ ],
868
+ "columnsTo": [
869
+ "tenant_id",
870
+ "project_id",
871
+ "id"
872
+ ],
873
+ "onDelete": "cascade",
874
+ "onUpdate": "no action"
875
+ },
876
+ "evaluation_result_evaluation_run_fk": {
877
+ "name": "evaluation_result_evaluation_run_fk",
878
+ "tableFrom": "evaluation_result",
879
+ "tableTo": "evaluation_run",
880
+ "columnsFrom": [
881
+ "tenant_id",
882
+ "project_id",
883
+ "evaluation_run_id"
884
+ ],
885
+ "columnsTo": [
886
+ "tenant_id",
887
+ "project_id",
888
+ "id"
889
+ ],
890
+ "onDelete": "cascade",
891
+ "onUpdate": "no action"
892
+ }
893
+ },
894
+ "compositePrimaryKeys": {
895
+ "evaluation_result_tenant_id_project_id_id_pk": {
896
+ "name": "evaluation_result_tenant_id_project_id_id_pk",
897
+ "columns": [
898
+ "tenant_id",
899
+ "project_id",
900
+ "id"
901
+ ]
902
+ }
903
+ },
904
+ "uniqueConstraints": {},
905
+ "policies": {},
906
+ "checkConstraints": {},
907
+ "isRLSEnabled": false
908
+ },
909
+ "public.evaluation_run": {
910
+ "name": "evaluation_run",
911
+ "schema": "",
912
+ "columns": {
913
+ "tenant_id": {
914
+ "name": "tenant_id",
915
+ "type": "varchar(256)",
916
+ "primaryKey": false,
917
+ "notNull": true
918
+ },
919
+ "id": {
920
+ "name": "id",
921
+ "type": "varchar(256)",
922
+ "primaryKey": false,
923
+ "notNull": true
924
+ },
925
+ "project_id": {
926
+ "name": "project_id",
927
+ "type": "varchar(256)",
928
+ "primaryKey": false,
929
+ "notNull": true
930
+ },
931
+ "evaluation_job_config_id": {
932
+ "name": "evaluation_job_config_id",
933
+ "type": "text",
934
+ "primaryKey": false,
935
+ "notNull": false
936
+ },
937
+ "evaluation_run_config_id": {
938
+ "name": "evaluation_run_config_id",
939
+ "type": "text",
940
+ "primaryKey": false,
941
+ "notNull": false
942
+ },
943
+ "created_at": {
944
+ "name": "created_at",
945
+ "type": "timestamp",
946
+ "primaryKey": false,
947
+ "notNull": true,
948
+ "default": "now()"
949
+ },
950
+ "updated_at": {
951
+ "name": "updated_at",
952
+ "type": "timestamp",
953
+ "primaryKey": false,
954
+ "notNull": true,
955
+ "default": "now()"
956
+ }
957
+ },
958
+ "indexes": {},
959
+ "foreignKeys": {},
960
+ "compositePrimaryKeys": {
961
+ "evaluation_run_tenant_id_project_id_id_pk": {
962
+ "name": "evaluation_run_tenant_id_project_id_id_pk",
963
+ "columns": [
964
+ "tenant_id",
965
+ "project_id",
966
+ "id"
967
+ ]
968
+ }
969
+ },
970
+ "uniqueConstraints": {},
971
+ "policies": {},
972
+ "checkConstraints": {},
973
+ "isRLSEnabled": false
974
+ },
975
+ "public.invitation": {
976
+ "name": "invitation",
977
+ "schema": "",
978
+ "columns": {
979
+ "id": {
980
+ "name": "id",
981
+ "type": "text",
982
+ "primaryKey": true,
983
+ "notNull": true
984
+ },
985
+ "organization_id": {
986
+ "name": "organization_id",
987
+ "type": "text",
988
+ "primaryKey": false,
989
+ "notNull": true
990
+ },
991
+ "email": {
992
+ "name": "email",
993
+ "type": "text",
994
+ "primaryKey": false,
995
+ "notNull": true
996
+ },
997
+ "role": {
998
+ "name": "role",
999
+ "type": "text",
1000
+ "primaryKey": false,
1001
+ "notNull": false
1002
+ },
1003
+ "status": {
1004
+ "name": "status",
1005
+ "type": "text",
1006
+ "primaryKey": false,
1007
+ "notNull": true,
1008
+ "default": "'pending'"
1009
+ },
1010
+ "expires_at": {
1011
+ "name": "expires_at",
1012
+ "type": "timestamp",
1013
+ "primaryKey": false,
1014
+ "notNull": true
1015
+ },
1016
+ "created_at": {
1017
+ "name": "created_at",
1018
+ "type": "timestamp",
1019
+ "primaryKey": false,
1020
+ "notNull": true,
1021
+ "default": "now()"
1022
+ },
1023
+ "inviter_id": {
1024
+ "name": "inviter_id",
1025
+ "type": "text",
1026
+ "primaryKey": false,
1027
+ "notNull": true
1028
+ },
1029
+ "auth_method": {
1030
+ "name": "auth_method",
1031
+ "type": "text",
1032
+ "primaryKey": false,
1033
+ "notNull": false
1034
+ }
1035
+ },
1036
+ "indexes": {
1037
+ "invitation_organizationId_idx": {
1038
+ "name": "invitation_organizationId_idx",
1039
+ "columns": [
1040
+ {
1041
+ "expression": "organization_id",
1042
+ "isExpression": false,
1043
+ "asc": true,
1044
+ "nulls": "last"
1045
+ }
1046
+ ],
1047
+ "isUnique": false,
1048
+ "concurrently": false,
1049
+ "method": "btree",
1050
+ "with": {}
1051
+ },
1052
+ "invitation_email_idx": {
1053
+ "name": "invitation_email_idx",
1054
+ "columns": [
1055
+ {
1056
+ "expression": "email",
1057
+ "isExpression": false,
1058
+ "asc": true,
1059
+ "nulls": "last"
1060
+ }
1061
+ ],
1062
+ "isUnique": false,
1063
+ "concurrently": false,
1064
+ "method": "btree",
1065
+ "with": {}
1066
+ }
1067
+ },
1068
+ "foreignKeys": {
1069
+ "invitation_organization_id_organization_id_fk": {
1070
+ "name": "invitation_organization_id_organization_id_fk",
1071
+ "tableFrom": "invitation",
1072
+ "tableTo": "organization",
1073
+ "columnsFrom": [
1074
+ "organization_id"
1075
+ ],
1076
+ "columnsTo": [
1077
+ "id"
1078
+ ],
1079
+ "onDelete": "cascade",
1080
+ "onUpdate": "no action"
1081
+ },
1082
+ "invitation_inviter_id_user_id_fk": {
1083
+ "name": "invitation_inviter_id_user_id_fk",
1084
+ "tableFrom": "invitation",
1085
+ "tableTo": "user",
1086
+ "columnsFrom": [
1087
+ "inviter_id"
1088
+ ],
1089
+ "columnsTo": [
1090
+ "id"
1091
+ ],
1092
+ "onDelete": "cascade",
1093
+ "onUpdate": "no action"
1094
+ }
1095
+ },
1096
+ "compositePrimaryKeys": {},
1097
+ "uniqueConstraints": {},
1098
+ "policies": {},
1099
+ "checkConstraints": {},
1100
+ "isRLSEnabled": false
1101
+ },
1102
+ "public.ledger_artifacts": {
1103
+ "name": "ledger_artifacts",
1104
+ "schema": "",
1105
+ "columns": {
1106
+ "tenant_id": {
1107
+ "name": "tenant_id",
1108
+ "type": "varchar(256)",
1109
+ "primaryKey": false,
1110
+ "notNull": true
1111
+ },
1112
+ "id": {
1113
+ "name": "id",
1114
+ "type": "varchar(256)",
1115
+ "primaryKey": false,
1116
+ "notNull": true
1117
+ },
1118
+ "project_id": {
1119
+ "name": "project_id",
1120
+ "type": "varchar(256)",
1121
+ "primaryKey": false,
1122
+ "notNull": true
1123
+ },
1124
+ "task_id": {
1125
+ "name": "task_id",
1126
+ "type": "varchar(256)",
1127
+ "primaryKey": false,
1128
+ "notNull": true
1129
+ },
1130
+ "tool_call_id": {
1131
+ "name": "tool_call_id",
1132
+ "type": "varchar(256)",
1133
+ "primaryKey": false,
1134
+ "notNull": false
1135
+ },
1136
+ "context_id": {
1137
+ "name": "context_id",
1138
+ "type": "varchar(256)",
1139
+ "primaryKey": false,
1140
+ "notNull": true
1141
+ },
1142
+ "type": {
1143
+ "name": "type",
1144
+ "type": "varchar(256)",
1145
+ "primaryKey": false,
1146
+ "notNull": true,
1147
+ "default": "'source'"
1148
+ },
1149
+ "name": {
1150
+ "name": "name",
1151
+ "type": "varchar(256)",
1152
+ "primaryKey": false,
1153
+ "notNull": false
1154
+ },
1155
+ "description": {
1156
+ "name": "description",
1157
+ "type": "text",
1158
+ "primaryKey": false,
1159
+ "notNull": false
1160
+ },
1161
+ "parts": {
1162
+ "name": "parts",
1163
+ "type": "jsonb",
1164
+ "primaryKey": false,
1165
+ "notNull": false
1166
+ },
1167
+ "metadata": {
1168
+ "name": "metadata",
1169
+ "type": "jsonb",
1170
+ "primaryKey": false,
1171
+ "notNull": false
1172
+ },
1173
+ "summary": {
1174
+ "name": "summary",
1175
+ "type": "text",
1176
+ "primaryKey": false,
1177
+ "notNull": false
1178
+ },
1179
+ "mime": {
1180
+ "name": "mime",
1181
+ "type": "jsonb",
1182
+ "primaryKey": false,
1183
+ "notNull": false
1184
+ },
1185
+ "visibility": {
1186
+ "name": "visibility",
1187
+ "type": "varchar(256)",
1188
+ "primaryKey": false,
1189
+ "notNull": false,
1190
+ "default": "'context'"
1191
+ },
1192
+ "allowed_agents": {
1193
+ "name": "allowed_agents",
1194
+ "type": "jsonb",
1195
+ "primaryKey": false,
1196
+ "notNull": false
1197
+ },
1198
+ "derived_from": {
1199
+ "name": "derived_from",
1200
+ "type": "varchar(256)",
1201
+ "primaryKey": false,
1202
+ "notNull": false
1203
+ },
1204
+ "created_at": {
1205
+ "name": "created_at",
1206
+ "type": "timestamp",
1207
+ "primaryKey": false,
1208
+ "notNull": true,
1209
+ "default": "now()"
1210
+ },
1211
+ "updated_at": {
1212
+ "name": "updated_at",
1213
+ "type": "timestamp",
1214
+ "primaryKey": false,
1215
+ "notNull": true,
1216
+ "default": "now()"
1217
+ }
1218
+ },
1219
+ "indexes": {
1220
+ "ledger_artifacts_task_id_idx": {
1221
+ "name": "ledger_artifacts_task_id_idx",
1222
+ "columns": [
1223
+ {
1224
+ "expression": "task_id",
1225
+ "isExpression": false,
1226
+ "asc": true,
1227
+ "nulls": "last"
1228
+ }
1229
+ ],
1230
+ "isUnique": false,
1231
+ "concurrently": false,
1232
+ "method": "btree",
1233
+ "with": {}
1234
+ },
1235
+ "ledger_artifacts_tool_call_id_idx": {
1236
+ "name": "ledger_artifacts_tool_call_id_idx",
1237
+ "columns": [
1238
+ {
1239
+ "expression": "tool_call_id",
1240
+ "isExpression": false,
1241
+ "asc": true,
1242
+ "nulls": "last"
1243
+ }
1244
+ ],
1245
+ "isUnique": false,
1246
+ "concurrently": false,
1247
+ "method": "btree",
1248
+ "with": {}
1249
+ },
1250
+ "ledger_artifacts_context_id_idx": {
1251
+ "name": "ledger_artifacts_context_id_idx",
1252
+ "columns": [
1253
+ {
1254
+ "expression": "context_id",
1255
+ "isExpression": false,
1256
+ "asc": true,
1257
+ "nulls": "last"
1258
+ }
1259
+ ],
1260
+ "isUnique": false,
1261
+ "concurrently": false,
1262
+ "method": "btree",
1263
+ "with": {}
1264
+ }
1265
+ },
1266
+ "foreignKeys": {
1267
+ "ledger_artifacts_conversation_fk": {
1268
+ "name": "ledger_artifacts_conversation_fk",
1269
+ "tableFrom": "ledger_artifacts",
1270
+ "tableTo": "conversations",
1271
+ "columnsFrom": [
1272
+ "tenant_id",
1273
+ "project_id",
1274
+ "context_id"
1275
+ ],
1276
+ "columnsTo": [
1277
+ "tenant_id",
1278
+ "project_id",
1279
+ "id"
1280
+ ],
1281
+ "onDelete": "cascade",
1282
+ "onUpdate": "no action"
1283
+ }
1284
+ },
1285
+ "compositePrimaryKeys": {
1286
+ "ledger_artifacts_tenant_id_project_id_id_task_id_pk": {
1287
+ "name": "ledger_artifacts_tenant_id_project_id_id_task_id_pk",
1288
+ "columns": [
1289
+ "tenant_id",
1290
+ "project_id",
1291
+ "id",
1292
+ "task_id"
1293
+ ]
1294
+ }
1295
+ },
1296
+ "uniqueConstraints": {
1297
+ "ledger_artifacts_task_context_name_unique": {
1298
+ "name": "ledger_artifacts_task_context_name_unique",
1299
+ "nullsNotDistinct": false,
1300
+ "columns": [
1301
+ "task_id",
1302
+ "context_id",
1303
+ "name"
1304
+ ]
1305
+ }
1306
+ },
1307
+ "policies": {},
1308
+ "checkConstraints": {},
1309
+ "isRLSEnabled": false
1310
+ },
1311
+ "public.member": {
1312
+ "name": "member",
1313
+ "schema": "",
1314
+ "columns": {
1315
+ "id": {
1316
+ "name": "id",
1317
+ "type": "text",
1318
+ "primaryKey": true,
1319
+ "notNull": true
1320
+ },
1321
+ "organization_id": {
1322
+ "name": "organization_id",
1323
+ "type": "text",
1324
+ "primaryKey": false,
1325
+ "notNull": true
1326
+ },
1327
+ "user_id": {
1328
+ "name": "user_id",
1329
+ "type": "text",
1330
+ "primaryKey": false,
1331
+ "notNull": true
1332
+ },
1333
+ "role": {
1334
+ "name": "role",
1335
+ "type": "text",
1336
+ "primaryKey": false,
1337
+ "notNull": true,
1338
+ "default": "'member'"
1339
+ },
1340
+ "created_at": {
1341
+ "name": "created_at",
1342
+ "type": "timestamp",
1343
+ "primaryKey": false,
1344
+ "notNull": true
1345
+ }
1346
+ },
1347
+ "indexes": {
1348
+ "member_organizationId_idx": {
1349
+ "name": "member_organizationId_idx",
1350
+ "columns": [
1351
+ {
1352
+ "expression": "organization_id",
1353
+ "isExpression": false,
1354
+ "asc": true,
1355
+ "nulls": "last"
1356
+ }
1357
+ ],
1358
+ "isUnique": false,
1359
+ "concurrently": false,
1360
+ "method": "btree",
1361
+ "with": {}
1362
+ },
1363
+ "member_userId_idx": {
1364
+ "name": "member_userId_idx",
1365
+ "columns": [
1366
+ {
1367
+ "expression": "user_id",
1368
+ "isExpression": false,
1369
+ "asc": true,
1370
+ "nulls": "last"
1371
+ }
1372
+ ],
1373
+ "isUnique": false,
1374
+ "concurrently": false,
1375
+ "method": "btree",
1376
+ "with": {}
1377
+ }
1378
+ },
1379
+ "foreignKeys": {
1380
+ "member_organization_id_organization_id_fk": {
1381
+ "name": "member_organization_id_organization_id_fk",
1382
+ "tableFrom": "member",
1383
+ "tableTo": "organization",
1384
+ "columnsFrom": [
1385
+ "organization_id"
1386
+ ],
1387
+ "columnsTo": [
1388
+ "id"
1389
+ ],
1390
+ "onDelete": "cascade",
1391
+ "onUpdate": "no action"
1392
+ },
1393
+ "member_user_id_user_id_fk": {
1394
+ "name": "member_user_id_user_id_fk",
1395
+ "tableFrom": "member",
1396
+ "tableTo": "user",
1397
+ "columnsFrom": [
1398
+ "user_id"
1399
+ ],
1400
+ "columnsTo": [
1401
+ "id"
1402
+ ],
1403
+ "onDelete": "cascade",
1404
+ "onUpdate": "no action"
1405
+ }
1406
+ },
1407
+ "compositePrimaryKeys": {},
1408
+ "uniqueConstraints": {},
1409
+ "policies": {},
1410
+ "checkConstraints": {},
1411
+ "isRLSEnabled": false
1412
+ },
1413
+ "public.messages": {
1414
+ "name": "messages",
1415
+ "schema": "",
1416
+ "columns": {
1417
+ "tenant_id": {
1418
+ "name": "tenant_id",
1419
+ "type": "varchar(256)",
1420
+ "primaryKey": false,
1421
+ "notNull": true
1422
+ },
1423
+ "id": {
1424
+ "name": "id",
1425
+ "type": "varchar(256)",
1426
+ "primaryKey": false,
1427
+ "notNull": true
1428
+ },
1429
+ "project_id": {
1430
+ "name": "project_id",
1431
+ "type": "varchar(256)",
1432
+ "primaryKey": false,
1433
+ "notNull": true
1434
+ },
1435
+ "conversation_id": {
1436
+ "name": "conversation_id",
1437
+ "type": "varchar(256)",
1438
+ "primaryKey": false,
1439
+ "notNull": true
1440
+ },
1441
+ "role": {
1442
+ "name": "role",
1443
+ "type": "varchar(256)",
1444
+ "primaryKey": false,
1445
+ "notNull": true
1446
+ },
1447
+ "from_sub_agent_id": {
1448
+ "name": "from_sub_agent_id",
1449
+ "type": "varchar(256)",
1450
+ "primaryKey": false,
1451
+ "notNull": false
1452
+ },
1453
+ "to_sub_agent_id": {
1454
+ "name": "to_sub_agent_id",
1455
+ "type": "varchar(256)",
1456
+ "primaryKey": false,
1457
+ "notNull": false
1458
+ },
1459
+ "from_external_sub_agent_id": {
1460
+ "name": "from_external_sub_agent_id",
1461
+ "type": "varchar(256)",
1462
+ "primaryKey": false,
1463
+ "notNull": false
1464
+ },
1465
+ "to_external_sub_agent_id": {
1466
+ "name": "to_external_sub_agent_id",
1467
+ "type": "varchar(256)",
1468
+ "primaryKey": false,
1469
+ "notNull": false
1470
+ },
1471
+ "from_team_agent_id": {
1472
+ "name": "from_team_agent_id",
1473
+ "type": "varchar(256)",
1474
+ "primaryKey": false,
1475
+ "notNull": false
1476
+ },
1477
+ "to_team_agent_id": {
1478
+ "name": "to_team_agent_id",
1479
+ "type": "varchar(256)",
1480
+ "primaryKey": false,
1481
+ "notNull": false
1482
+ },
1483
+ "content": {
1484
+ "name": "content",
1485
+ "type": "jsonb",
1486
+ "primaryKey": false,
1487
+ "notNull": true
1488
+ },
1489
+ "visibility": {
1490
+ "name": "visibility",
1491
+ "type": "varchar(256)",
1492
+ "primaryKey": false,
1493
+ "notNull": true,
1494
+ "default": "'user-facing'"
1495
+ },
1496
+ "message_type": {
1497
+ "name": "message_type",
1498
+ "type": "varchar(256)",
1499
+ "primaryKey": false,
1500
+ "notNull": true,
1501
+ "default": "'chat'"
1502
+ },
1503
+ "task_id": {
1504
+ "name": "task_id",
1505
+ "type": "varchar(256)",
1506
+ "primaryKey": false,
1507
+ "notNull": false
1508
+ },
1509
+ "parent_message_id": {
1510
+ "name": "parent_message_id",
1511
+ "type": "varchar(256)",
1512
+ "primaryKey": false,
1513
+ "notNull": false
1514
+ },
1515
+ "a2a_task_id": {
1516
+ "name": "a2a_task_id",
1517
+ "type": "varchar(256)",
1518
+ "primaryKey": false,
1519
+ "notNull": false
1520
+ },
1521
+ "a2a_session_id": {
1522
+ "name": "a2a_session_id",
1523
+ "type": "varchar(256)",
1524
+ "primaryKey": false,
1525
+ "notNull": false
1526
+ },
1527
+ "metadata": {
1528
+ "name": "metadata",
1529
+ "type": "jsonb",
1530
+ "primaryKey": false,
1531
+ "notNull": false
1532
+ },
1533
+ "created_at": {
1534
+ "name": "created_at",
1535
+ "type": "timestamp",
1536
+ "primaryKey": false,
1537
+ "notNull": true,
1538
+ "default": "now()"
1539
+ },
1540
+ "updated_at": {
1541
+ "name": "updated_at",
1542
+ "type": "timestamp",
1543
+ "primaryKey": false,
1544
+ "notNull": true,
1545
+ "default": "now()"
1546
+ }
1547
+ },
1548
+ "indexes": {},
1549
+ "foreignKeys": {
1550
+ "messages_conversation_fk": {
1551
+ "name": "messages_conversation_fk",
1552
+ "tableFrom": "messages",
1553
+ "tableTo": "conversations",
1554
+ "columnsFrom": [
1555
+ "tenant_id",
1556
+ "project_id",
1557
+ "conversation_id"
1558
+ ],
1559
+ "columnsTo": [
1560
+ "tenant_id",
1561
+ "project_id",
1562
+ "id"
1563
+ ],
1564
+ "onDelete": "cascade",
1565
+ "onUpdate": "no action"
1566
+ }
1567
+ },
1568
+ "compositePrimaryKeys": {
1569
+ "messages_tenant_id_project_id_id_pk": {
1570
+ "name": "messages_tenant_id_project_id_id_pk",
1571
+ "columns": [
1572
+ "tenant_id",
1573
+ "project_id",
1574
+ "id"
1575
+ ]
1576
+ }
1577
+ },
1578
+ "uniqueConstraints": {},
1579
+ "policies": {},
1580
+ "checkConstraints": {},
1581
+ "isRLSEnabled": false
1582
+ },
1583
+ "public.organization": {
1584
+ "name": "organization",
1585
+ "schema": "",
1586
+ "columns": {
1587
+ "id": {
1588
+ "name": "id",
1589
+ "type": "text",
1590
+ "primaryKey": true,
1591
+ "notNull": true
1592
+ },
1593
+ "name": {
1594
+ "name": "name",
1595
+ "type": "text",
1596
+ "primaryKey": false,
1597
+ "notNull": true
1598
+ },
1599
+ "slug": {
1600
+ "name": "slug",
1601
+ "type": "text",
1602
+ "primaryKey": false,
1603
+ "notNull": true
1604
+ },
1605
+ "logo": {
1606
+ "name": "logo",
1607
+ "type": "text",
1608
+ "primaryKey": false,
1609
+ "notNull": false
1610
+ },
1611
+ "created_at": {
1612
+ "name": "created_at",
1613
+ "type": "timestamp",
1614
+ "primaryKey": false,
1615
+ "notNull": true
1616
+ },
1617
+ "metadata": {
1618
+ "name": "metadata",
1619
+ "type": "text",
1620
+ "primaryKey": false,
1621
+ "notNull": false
1622
+ }
1623
+ },
1624
+ "indexes": {
1625
+ "organization_slug_uidx": {
1626
+ "name": "organization_slug_uidx",
1627
+ "columns": [
1628
+ {
1629
+ "expression": "slug",
1630
+ "isExpression": false,
1631
+ "asc": true,
1632
+ "nulls": "last"
1633
+ }
1634
+ ],
1635
+ "isUnique": true,
1636
+ "concurrently": false,
1637
+ "method": "btree",
1638
+ "with": {}
1639
+ }
1640
+ },
1641
+ "foreignKeys": {},
1642
+ "compositePrimaryKeys": {},
1643
+ "uniqueConstraints": {
1644
+ "organization_slug_unique": {
1645
+ "name": "organization_slug_unique",
1646
+ "nullsNotDistinct": false,
1647
+ "columns": [
1648
+ "slug"
1649
+ ]
1650
+ }
1651
+ },
1652
+ "policies": {},
1653
+ "checkConstraints": {},
1654
+ "isRLSEnabled": false
1655
+ },
1656
+ "public.project_metadata": {
1657
+ "name": "project_metadata",
1658
+ "schema": "",
1659
+ "columns": {
1660
+ "id": {
1661
+ "name": "id",
1662
+ "type": "varchar(256)",
1663
+ "primaryKey": false,
1664
+ "notNull": true
1665
+ },
1666
+ "tenant_id": {
1667
+ "name": "tenant_id",
1668
+ "type": "varchar(256)",
1669
+ "primaryKey": false,
1670
+ "notNull": true
1671
+ },
1672
+ "created_at": {
1673
+ "name": "created_at",
1674
+ "type": "timestamp",
1675
+ "primaryKey": false,
1676
+ "notNull": true,
1677
+ "default": "now()"
1678
+ },
1679
+ "created_by": {
1680
+ "name": "created_by",
1681
+ "type": "varchar(256)",
1682
+ "primaryKey": false,
1683
+ "notNull": false
1684
+ },
1685
+ "main_branch_name": {
1686
+ "name": "main_branch_name",
1687
+ "type": "varchar(512)",
1688
+ "primaryKey": false,
1689
+ "notNull": true
1690
+ }
1691
+ },
1692
+ "indexes": {
1693
+ "project_metadata_tenant_idx": {
1694
+ "name": "project_metadata_tenant_idx",
1695
+ "columns": [
1696
+ {
1697
+ "expression": "tenant_id",
1698
+ "isExpression": false,
1699
+ "asc": true,
1700
+ "nulls": "last"
1701
+ }
1702
+ ],
1703
+ "isUnique": false,
1704
+ "concurrently": false,
1705
+ "method": "btree",
1706
+ "with": {}
1707
+ },
1708
+ "project_metadata_main_branch_idx": {
1709
+ "name": "project_metadata_main_branch_idx",
1710
+ "columns": [
1711
+ {
1712
+ "expression": "main_branch_name",
1713
+ "isExpression": false,
1714
+ "asc": true,
1715
+ "nulls": "last"
1716
+ }
1717
+ ],
1718
+ "isUnique": false,
1719
+ "concurrently": false,
1720
+ "method": "btree",
1721
+ "with": {}
1722
+ }
1723
+ },
1724
+ "foreignKeys": {
1725
+ "project_metadata_organization_fk": {
1726
+ "name": "project_metadata_organization_fk",
1727
+ "tableFrom": "project_metadata",
1728
+ "tableTo": "organization",
1729
+ "columnsFrom": [
1730
+ "tenant_id"
1731
+ ],
1732
+ "columnsTo": [
1733
+ "id"
1734
+ ],
1735
+ "onDelete": "cascade",
1736
+ "onUpdate": "no action"
1737
+ }
1738
+ },
1739
+ "compositePrimaryKeys": {
1740
+ "project_metadata_tenant_id_id_pk": {
1741
+ "name": "project_metadata_tenant_id_id_pk",
1742
+ "columns": [
1743
+ "tenant_id",
1744
+ "id"
1745
+ ]
1746
+ }
1747
+ },
1748
+ "uniqueConstraints": {},
1749
+ "policies": {},
1750
+ "checkConstraints": {},
1751
+ "isRLSEnabled": false
1752
+ },
1753
+ "public.scheduled_trigger_invocations": {
1754
+ "name": "scheduled_trigger_invocations",
1755
+ "schema": "",
1756
+ "columns": {
1757
+ "tenant_id": {
1758
+ "name": "tenant_id",
1759
+ "type": "varchar(256)",
1760
+ "primaryKey": false,
1761
+ "notNull": true
1762
+ },
1763
+ "id": {
1764
+ "name": "id",
1765
+ "type": "varchar(256)",
1766
+ "primaryKey": false,
1767
+ "notNull": true
1768
+ },
1769
+ "project_id": {
1770
+ "name": "project_id",
1771
+ "type": "varchar(256)",
1772
+ "primaryKey": false,
1773
+ "notNull": true
1774
+ },
1775
+ "agent_id": {
1776
+ "name": "agent_id",
1777
+ "type": "varchar(256)",
1778
+ "primaryKey": false,
1779
+ "notNull": true
1780
+ },
1781
+ "scheduled_trigger_id": {
1782
+ "name": "scheduled_trigger_id",
1783
+ "type": "varchar(256)",
1784
+ "primaryKey": false,
1785
+ "notNull": true
1786
+ },
1787
+ "status": {
1788
+ "name": "status",
1789
+ "type": "varchar(50)",
1790
+ "primaryKey": false,
1791
+ "notNull": true
1792
+ },
1793
+ "scheduled_for": {
1794
+ "name": "scheduled_for",
1795
+ "type": "timestamp with time zone",
1796
+ "primaryKey": false,
1797
+ "notNull": true
1798
+ },
1799
+ "started_at": {
1800
+ "name": "started_at",
1801
+ "type": "timestamp with time zone",
1802
+ "primaryKey": false,
1803
+ "notNull": false
1804
+ },
1805
+ "completed_at": {
1806
+ "name": "completed_at",
1807
+ "type": "timestamp with time zone",
1808
+ "primaryKey": false,
1809
+ "notNull": false
1810
+ },
1811
+ "resolved_payload": {
1812
+ "name": "resolved_payload",
1813
+ "type": "jsonb",
1814
+ "primaryKey": false,
1815
+ "notNull": false
1816
+ },
1817
+ "conversation_ids": {
1818
+ "name": "conversation_ids",
1819
+ "type": "jsonb",
1820
+ "primaryKey": false,
1821
+ "notNull": false,
1822
+ "default": "'[]'::jsonb"
1823
+ },
1824
+ "attempt_number": {
1825
+ "name": "attempt_number",
1826
+ "type": "integer",
1827
+ "primaryKey": false,
1828
+ "notNull": true,
1829
+ "default": 1
1830
+ },
1831
+ "idempotency_key": {
1832
+ "name": "idempotency_key",
1833
+ "type": "varchar(256)",
1834
+ "primaryKey": false,
1835
+ "notNull": true
1836
+ },
1837
+ "created_at": {
1838
+ "name": "created_at",
1839
+ "type": "timestamp with time zone",
1840
+ "primaryKey": false,
1841
+ "notNull": true,
1842
+ "default": "now()"
1843
+ }
1844
+ },
1845
+ "indexes": {
1846
+ "sched_invocations_idempotency_idx": {
1847
+ "name": "sched_invocations_idempotency_idx",
1848
+ "columns": [
1849
+ {
1850
+ "expression": "idempotency_key",
1851
+ "isExpression": false,
1852
+ "asc": true,
1853
+ "nulls": "last"
1854
+ }
1855
+ ],
1856
+ "isUnique": true,
1857
+ "concurrently": false,
1858
+ "method": "btree",
1859
+ "with": {}
1860
+ }
1861
+ },
1862
+ "foreignKeys": {},
1863
+ "compositePrimaryKeys": {
1864
+ "scheduled_trigger_invocations_tenant_id_id_pk": {
1865
+ "name": "scheduled_trigger_invocations_tenant_id_id_pk",
1866
+ "columns": [
1867
+ "tenant_id",
1868
+ "id"
1869
+ ]
1870
+ }
1871
+ },
1872
+ "uniqueConstraints": {},
1873
+ "policies": {},
1874
+ "checkConstraints": {},
1875
+ "isRLSEnabled": false
1876
+ },
1877
+ "public.session": {
1878
+ "name": "session",
1879
+ "schema": "",
1880
+ "columns": {
1881
+ "id": {
1882
+ "name": "id",
1883
+ "type": "text",
1884
+ "primaryKey": true,
1885
+ "notNull": true
1886
+ },
1887
+ "expires_at": {
1888
+ "name": "expires_at",
1889
+ "type": "timestamp",
1890
+ "primaryKey": false,
1891
+ "notNull": true
1892
+ },
1893
+ "token": {
1894
+ "name": "token",
1895
+ "type": "text",
1896
+ "primaryKey": false,
1897
+ "notNull": true
1898
+ },
1899
+ "created_at": {
1900
+ "name": "created_at",
1901
+ "type": "timestamp",
1902
+ "primaryKey": false,
1903
+ "notNull": true,
1904
+ "default": "now()"
1905
+ },
1906
+ "updated_at": {
1907
+ "name": "updated_at",
1908
+ "type": "timestamp",
1909
+ "primaryKey": false,
1910
+ "notNull": true
1911
+ },
1912
+ "ip_address": {
1913
+ "name": "ip_address",
1914
+ "type": "text",
1915
+ "primaryKey": false,
1916
+ "notNull": false
1917
+ },
1918
+ "user_agent": {
1919
+ "name": "user_agent",
1920
+ "type": "text",
1921
+ "primaryKey": false,
1922
+ "notNull": false
1923
+ },
1924
+ "user_id": {
1925
+ "name": "user_id",
1926
+ "type": "text",
1927
+ "primaryKey": false,
1928
+ "notNull": true
1929
+ },
1930
+ "active_organization_id": {
1931
+ "name": "active_organization_id",
1932
+ "type": "text",
1933
+ "primaryKey": false,
1934
+ "notNull": false
1935
+ }
1936
+ },
1937
+ "indexes": {
1938
+ "session_userId_idx": {
1939
+ "name": "session_userId_idx",
1940
+ "columns": [
1941
+ {
1942
+ "expression": "user_id",
1943
+ "isExpression": false,
1944
+ "asc": true,
1945
+ "nulls": "last"
1946
+ }
1947
+ ],
1948
+ "isUnique": false,
1949
+ "concurrently": false,
1950
+ "method": "btree",
1951
+ "with": {}
1952
+ }
1953
+ },
1954
+ "foreignKeys": {
1955
+ "session_user_id_user_id_fk": {
1956
+ "name": "session_user_id_user_id_fk",
1957
+ "tableFrom": "session",
1958
+ "tableTo": "user",
1959
+ "columnsFrom": [
1960
+ "user_id"
1961
+ ],
1962
+ "columnsTo": [
1963
+ "id"
1964
+ ],
1965
+ "onDelete": "cascade",
1966
+ "onUpdate": "no action"
1967
+ }
1968
+ },
1969
+ "compositePrimaryKeys": {},
1970
+ "uniqueConstraints": {
1971
+ "session_token_unique": {
1972
+ "name": "session_token_unique",
1973
+ "nullsNotDistinct": false,
1974
+ "columns": [
1975
+ "token"
1976
+ ]
1977
+ }
1978
+ },
1979
+ "policies": {},
1980
+ "checkConstraints": {},
1981
+ "isRLSEnabled": false
1982
+ },
1983
+ "public.sso_provider": {
1984
+ "name": "sso_provider",
1985
+ "schema": "",
1986
+ "columns": {
1987
+ "id": {
1988
+ "name": "id",
1989
+ "type": "text",
1990
+ "primaryKey": true,
1991
+ "notNull": true
1992
+ },
1993
+ "issuer": {
1994
+ "name": "issuer",
1995
+ "type": "text",
1996
+ "primaryKey": false,
1997
+ "notNull": true
1998
+ },
1999
+ "oidc_config": {
2000
+ "name": "oidc_config",
2001
+ "type": "text",
2002
+ "primaryKey": false,
2003
+ "notNull": false
2004
+ },
2005
+ "saml_config": {
2006
+ "name": "saml_config",
2007
+ "type": "text",
2008
+ "primaryKey": false,
2009
+ "notNull": false
2010
+ },
2011
+ "user_id": {
2012
+ "name": "user_id",
2013
+ "type": "text",
2014
+ "primaryKey": false,
2015
+ "notNull": false
2016
+ },
2017
+ "provider_id": {
2018
+ "name": "provider_id",
2019
+ "type": "text",
2020
+ "primaryKey": false,
2021
+ "notNull": true
2022
+ },
2023
+ "organization_id": {
2024
+ "name": "organization_id",
2025
+ "type": "text",
2026
+ "primaryKey": false,
2027
+ "notNull": false
2028
+ },
2029
+ "domain": {
2030
+ "name": "domain",
2031
+ "type": "text",
2032
+ "primaryKey": false,
2033
+ "notNull": true
2034
+ }
2035
+ },
2036
+ "indexes": {},
2037
+ "foreignKeys": {
2038
+ "sso_provider_user_id_user_id_fk": {
2039
+ "name": "sso_provider_user_id_user_id_fk",
2040
+ "tableFrom": "sso_provider",
2041
+ "tableTo": "user",
2042
+ "columnsFrom": [
2043
+ "user_id"
2044
+ ],
2045
+ "columnsTo": [
2046
+ "id"
2047
+ ],
2048
+ "onDelete": "cascade",
2049
+ "onUpdate": "no action"
2050
+ }
2051
+ },
2052
+ "compositePrimaryKeys": {},
2053
+ "uniqueConstraints": {
2054
+ "sso_provider_provider_id_unique": {
2055
+ "name": "sso_provider_provider_id_unique",
2056
+ "nullsNotDistinct": false,
2057
+ "columns": [
2058
+ "provider_id"
2059
+ ]
2060
+ }
2061
+ },
2062
+ "policies": {},
2063
+ "checkConstraints": {},
2064
+ "isRLSEnabled": false
2065
+ },
2066
+ "public.task_relations": {
2067
+ "name": "task_relations",
2068
+ "schema": "",
2069
+ "columns": {
2070
+ "tenant_id": {
2071
+ "name": "tenant_id",
2072
+ "type": "varchar(256)",
2073
+ "primaryKey": false,
2074
+ "notNull": true
2075
+ },
2076
+ "id": {
2077
+ "name": "id",
2078
+ "type": "varchar(256)",
2079
+ "primaryKey": false,
2080
+ "notNull": true
2081
+ },
2082
+ "project_id": {
2083
+ "name": "project_id",
2084
+ "type": "varchar(256)",
2085
+ "primaryKey": false,
2086
+ "notNull": true
2087
+ },
2088
+ "parent_task_id": {
2089
+ "name": "parent_task_id",
2090
+ "type": "varchar(256)",
2091
+ "primaryKey": false,
2092
+ "notNull": true
2093
+ },
2094
+ "child_task_id": {
2095
+ "name": "child_task_id",
2096
+ "type": "varchar(256)",
2097
+ "primaryKey": false,
2098
+ "notNull": true
2099
+ },
2100
+ "relation_type": {
2101
+ "name": "relation_type",
2102
+ "type": "varchar(256)",
2103
+ "primaryKey": false,
2104
+ "notNull": false,
2105
+ "default": "'parent_child'"
2106
+ },
2107
+ "created_at": {
2108
+ "name": "created_at",
2109
+ "type": "timestamp",
2110
+ "primaryKey": false,
2111
+ "notNull": true,
2112
+ "default": "now()"
2113
+ },
2114
+ "updated_at": {
2115
+ "name": "updated_at",
2116
+ "type": "timestamp",
2117
+ "primaryKey": false,
2118
+ "notNull": true,
2119
+ "default": "now()"
2120
+ }
2121
+ },
2122
+ "indexes": {},
2123
+ "foreignKeys": {
2124
+ "task_relations_parent_fk": {
2125
+ "name": "task_relations_parent_fk",
2126
+ "tableFrom": "task_relations",
2127
+ "tableTo": "tasks",
2128
+ "columnsFrom": [
2129
+ "tenant_id",
2130
+ "project_id",
2131
+ "parent_task_id"
2132
+ ],
2133
+ "columnsTo": [
2134
+ "tenant_id",
2135
+ "project_id",
2136
+ "id"
2137
+ ],
2138
+ "onDelete": "cascade",
2139
+ "onUpdate": "no action"
2140
+ },
2141
+ "task_relations_child_fk": {
2142
+ "name": "task_relations_child_fk",
2143
+ "tableFrom": "task_relations",
2144
+ "tableTo": "tasks",
2145
+ "columnsFrom": [
2146
+ "tenant_id",
2147
+ "project_id",
2148
+ "child_task_id"
2149
+ ],
2150
+ "columnsTo": [
2151
+ "tenant_id",
2152
+ "project_id",
2153
+ "id"
2154
+ ],
2155
+ "onDelete": "cascade",
2156
+ "onUpdate": "no action"
2157
+ }
2158
+ },
2159
+ "compositePrimaryKeys": {
2160
+ "task_relations_tenant_id_project_id_id_pk": {
2161
+ "name": "task_relations_tenant_id_project_id_id_pk",
2162
+ "columns": [
2163
+ "tenant_id",
2164
+ "project_id",
2165
+ "id"
2166
+ ]
2167
+ }
2168
+ },
2169
+ "uniqueConstraints": {},
2170
+ "policies": {},
2171
+ "checkConstraints": {},
2172
+ "isRLSEnabled": false
2173
+ },
2174
+ "public.tasks": {
2175
+ "name": "tasks",
2176
+ "schema": "",
2177
+ "columns": {
2178
+ "tenant_id": {
2179
+ "name": "tenant_id",
2180
+ "type": "varchar(256)",
2181
+ "primaryKey": false,
2182
+ "notNull": true
2183
+ },
2184
+ "id": {
2185
+ "name": "id",
2186
+ "type": "varchar(256)",
2187
+ "primaryKey": false,
2188
+ "notNull": true
2189
+ },
2190
+ "project_id": {
2191
+ "name": "project_id",
2192
+ "type": "varchar(256)",
2193
+ "primaryKey": false,
2194
+ "notNull": true
2195
+ },
2196
+ "agent_id": {
2197
+ "name": "agent_id",
2198
+ "type": "varchar(256)",
2199
+ "primaryKey": false,
2200
+ "notNull": true
2201
+ },
2202
+ "sub_agent_id": {
2203
+ "name": "sub_agent_id",
2204
+ "type": "varchar(256)",
2205
+ "primaryKey": false,
2206
+ "notNull": true
2207
+ },
2208
+ "context_id": {
2209
+ "name": "context_id",
2210
+ "type": "varchar(256)",
2211
+ "primaryKey": false,
2212
+ "notNull": true
2213
+ },
2214
+ "ref": {
2215
+ "name": "ref",
2216
+ "type": "jsonb",
2217
+ "primaryKey": false,
2218
+ "notNull": false
2219
+ },
2220
+ "status": {
2221
+ "name": "status",
2222
+ "type": "varchar(256)",
2223
+ "primaryKey": false,
2224
+ "notNull": true
2225
+ },
2226
+ "metadata": {
2227
+ "name": "metadata",
2228
+ "type": "jsonb",
2229
+ "primaryKey": false,
2230
+ "notNull": false
2231
+ },
2232
+ "created_at": {
2233
+ "name": "created_at",
2234
+ "type": "timestamp",
2235
+ "primaryKey": false,
2236
+ "notNull": true,
2237
+ "default": "now()"
2238
+ },
2239
+ "updated_at": {
2240
+ "name": "updated_at",
2241
+ "type": "timestamp",
2242
+ "primaryKey": false,
2243
+ "notNull": true,
2244
+ "default": "now()"
2245
+ }
2246
+ },
2247
+ "indexes": {},
2248
+ "foreignKeys": {},
2249
+ "compositePrimaryKeys": {
2250
+ "tasks_tenant_id_project_id_id_pk": {
2251
+ "name": "tasks_tenant_id_project_id_id_pk",
2252
+ "columns": [
2253
+ "tenant_id",
2254
+ "project_id",
2255
+ "id"
2256
+ ]
2257
+ }
2258
+ },
2259
+ "uniqueConstraints": {},
2260
+ "policies": {},
2261
+ "checkConstraints": {},
2262
+ "isRLSEnabled": false
2263
+ },
2264
+ "public.trigger_invocations": {
2265
+ "name": "trigger_invocations",
2266
+ "schema": "",
2267
+ "columns": {
2268
+ "tenant_id": {
2269
+ "name": "tenant_id",
2270
+ "type": "varchar(256)",
2271
+ "primaryKey": false,
2272
+ "notNull": true
2273
+ },
2274
+ "id": {
2275
+ "name": "id",
2276
+ "type": "varchar(256)",
2277
+ "primaryKey": false,
2278
+ "notNull": true
2279
+ },
2280
+ "project_id": {
2281
+ "name": "project_id",
2282
+ "type": "varchar(256)",
2283
+ "primaryKey": false,
2284
+ "notNull": true
2285
+ },
2286
+ "agent_id": {
2287
+ "name": "agent_id",
2288
+ "type": "varchar(256)",
2289
+ "primaryKey": false,
2290
+ "notNull": true
2291
+ },
2292
+ "trigger_id": {
2293
+ "name": "trigger_id",
2294
+ "type": "varchar(256)",
2295
+ "primaryKey": false,
2296
+ "notNull": true
2297
+ },
2298
+ "conversation_id": {
2299
+ "name": "conversation_id",
2300
+ "type": "varchar(256)",
2301
+ "primaryKey": false,
2302
+ "notNull": false
2303
+ },
2304
+ "status": {
2305
+ "name": "status",
2306
+ "type": "varchar(20)",
2307
+ "primaryKey": false,
2308
+ "notNull": true,
2309
+ "default": "'pending'"
2310
+ },
2311
+ "request_payload": {
2312
+ "name": "request_payload",
2313
+ "type": "jsonb",
2314
+ "primaryKey": false,
2315
+ "notNull": true
2316
+ },
2317
+ "transformed_payload": {
2318
+ "name": "transformed_payload",
2319
+ "type": "jsonb",
2320
+ "primaryKey": false,
2321
+ "notNull": false
2322
+ },
2323
+ "error_message": {
2324
+ "name": "error_message",
2325
+ "type": "text",
2326
+ "primaryKey": false,
2327
+ "notNull": false
2328
+ },
2329
+ "created_at": {
2330
+ "name": "created_at",
2331
+ "type": "timestamp",
2332
+ "primaryKey": false,
2333
+ "notNull": true,
2334
+ "default": "now()"
2335
+ }
2336
+ },
2337
+ "indexes": {
2338
+ "trigger_invocations_trigger_idx": {
2339
+ "name": "trigger_invocations_trigger_idx",
2340
+ "columns": [
2341
+ {
2342
+ "expression": "trigger_id",
2343
+ "isExpression": false,
2344
+ "asc": true,
2345
+ "nulls": "last"
2346
+ },
2347
+ {
2348
+ "expression": "created_at",
2349
+ "isExpression": false,
2350
+ "asc": true,
2351
+ "nulls": "last"
2352
+ }
2353
+ ],
2354
+ "isUnique": false,
2355
+ "concurrently": false,
2356
+ "method": "btree",
2357
+ "with": {}
2358
+ },
2359
+ "trigger_invocations_status_idx": {
2360
+ "name": "trigger_invocations_status_idx",
2361
+ "columns": [
2362
+ {
2363
+ "expression": "trigger_id",
2364
+ "isExpression": false,
2365
+ "asc": true,
2366
+ "nulls": "last"
2367
+ },
2368
+ {
2369
+ "expression": "status",
2370
+ "isExpression": false,
2371
+ "asc": true,
2372
+ "nulls": "last"
2373
+ }
2374
+ ],
2375
+ "isUnique": false,
2376
+ "concurrently": false,
2377
+ "method": "btree",
2378
+ "with": {}
2379
+ }
2380
+ },
2381
+ "foreignKeys": {},
2382
+ "compositePrimaryKeys": {
2383
+ "trigger_invocations_tenant_id_project_id_agent_id_id_pk": {
2384
+ "name": "trigger_invocations_tenant_id_project_id_agent_id_id_pk",
2385
+ "columns": [
2386
+ "tenant_id",
2387
+ "project_id",
2388
+ "agent_id",
2389
+ "id"
2390
+ ]
2391
+ }
2392
+ },
2393
+ "uniqueConstraints": {},
2394
+ "policies": {},
2395
+ "checkConstraints": {},
2396
+ "isRLSEnabled": false
2397
+ },
2398
+ "public.user": {
2399
+ "name": "user",
2400
+ "schema": "",
2401
+ "columns": {
2402
+ "id": {
2403
+ "name": "id",
2404
+ "type": "text",
2405
+ "primaryKey": true,
2406
+ "notNull": true
2407
+ },
2408
+ "name": {
2409
+ "name": "name",
2410
+ "type": "text",
2411
+ "primaryKey": false,
2412
+ "notNull": true
2413
+ },
2414
+ "email": {
2415
+ "name": "email",
2416
+ "type": "text",
2417
+ "primaryKey": false,
2418
+ "notNull": true
2419
+ },
2420
+ "email_verified": {
2421
+ "name": "email_verified",
2422
+ "type": "boolean",
2423
+ "primaryKey": false,
2424
+ "notNull": true,
2425
+ "default": false
2426
+ },
2427
+ "image": {
2428
+ "name": "image",
2429
+ "type": "text",
2430
+ "primaryKey": false,
2431
+ "notNull": false
2432
+ },
2433
+ "created_at": {
2434
+ "name": "created_at",
2435
+ "type": "timestamp",
2436
+ "primaryKey": false,
2437
+ "notNull": true,
2438
+ "default": "now()"
2439
+ },
2440
+ "updated_at": {
2441
+ "name": "updated_at",
2442
+ "type": "timestamp",
2443
+ "primaryKey": false,
2444
+ "notNull": true,
2445
+ "default": "now()"
2446
+ }
2447
+ },
2448
+ "indexes": {},
2449
+ "foreignKeys": {},
2450
+ "compositePrimaryKeys": {},
2451
+ "uniqueConstraints": {
2452
+ "user_email_unique": {
2453
+ "name": "user_email_unique",
2454
+ "nullsNotDistinct": false,
2455
+ "columns": [
2456
+ "email"
2457
+ ]
2458
+ }
2459
+ },
2460
+ "policies": {},
2461
+ "checkConstraints": {},
2462
+ "isRLSEnabled": false
2463
+ },
2464
+ "public.verification": {
2465
+ "name": "verification",
2466
+ "schema": "",
2467
+ "columns": {
2468
+ "id": {
2469
+ "name": "id",
2470
+ "type": "text",
2471
+ "primaryKey": true,
2472
+ "notNull": true
2473
+ },
2474
+ "identifier": {
2475
+ "name": "identifier",
2476
+ "type": "text",
2477
+ "primaryKey": false,
2478
+ "notNull": true
2479
+ },
2480
+ "value": {
2481
+ "name": "value",
2482
+ "type": "text",
2483
+ "primaryKey": false,
2484
+ "notNull": true
2485
+ },
2486
+ "expires_at": {
2487
+ "name": "expires_at",
2488
+ "type": "timestamp",
2489
+ "primaryKey": false,
2490
+ "notNull": true
2491
+ },
2492
+ "created_at": {
2493
+ "name": "created_at",
2494
+ "type": "timestamp",
2495
+ "primaryKey": false,
2496
+ "notNull": true,
2497
+ "default": "now()"
2498
+ },
2499
+ "updated_at": {
2500
+ "name": "updated_at",
2501
+ "type": "timestamp",
2502
+ "primaryKey": false,
2503
+ "notNull": true,
2504
+ "default": "now()"
2505
+ }
2506
+ },
2507
+ "indexes": {
2508
+ "verification_identifier_idx": {
2509
+ "name": "verification_identifier_idx",
2510
+ "columns": [
2511
+ {
2512
+ "expression": "identifier",
2513
+ "isExpression": false,
2514
+ "asc": true,
2515
+ "nulls": "last"
2516
+ }
2517
+ ],
2518
+ "isUnique": false,
2519
+ "concurrently": false,
2520
+ "method": "btree",
2521
+ "with": {}
2522
+ }
2523
+ },
2524
+ "foreignKeys": {},
2525
+ "compositePrimaryKeys": {},
2526
+ "uniqueConstraints": {},
2527
+ "policies": {},
2528
+ "checkConstraints": {},
2529
+ "isRLSEnabled": false
2530
+ },
2531
+ "public.work_app_github_installations": {
2532
+ "name": "work_app_github_installations",
2533
+ "schema": "",
2534
+ "columns": {
2535
+ "tenant_id": {
2536
+ "name": "tenant_id",
2537
+ "type": "varchar(256)",
2538
+ "primaryKey": false,
2539
+ "notNull": true
2540
+ },
2541
+ "id": {
2542
+ "name": "id",
2543
+ "type": "varchar(256)",
2544
+ "primaryKey": false,
2545
+ "notNull": true
2546
+ },
2547
+ "installation_id": {
2548
+ "name": "installation_id",
2549
+ "type": "text",
2550
+ "primaryKey": false,
2551
+ "notNull": true
2552
+ },
2553
+ "account_login": {
2554
+ "name": "account_login",
2555
+ "type": "varchar(256)",
2556
+ "primaryKey": false,
2557
+ "notNull": true
2558
+ },
2559
+ "account_id": {
2560
+ "name": "account_id",
2561
+ "type": "text",
2562
+ "primaryKey": false,
2563
+ "notNull": true
2564
+ },
2565
+ "account_type": {
2566
+ "name": "account_type",
2567
+ "type": "varchar(20)",
2568
+ "primaryKey": false,
2569
+ "notNull": true
2570
+ },
2571
+ "status": {
2572
+ "name": "status",
2573
+ "type": "varchar(20)",
2574
+ "primaryKey": false,
2575
+ "notNull": true,
2576
+ "default": "'active'"
2577
+ },
2578
+ "created_at": {
2579
+ "name": "created_at",
2580
+ "type": "timestamp",
2581
+ "primaryKey": false,
2582
+ "notNull": true,
2583
+ "default": "now()"
2584
+ },
2585
+ "updated_at": {
2586
+ "name": "updated_at",
2587
+ "type": "timestamp",
2588
+ "primaryKey": false,
2589
+ "notNull": true,
2590
+ "default": "now()"
2591
+ }
2592
+ },
2593
+ "indexes": {
2594
+ "work_app_github_installations_tenant_idx": {
2595
+ "name": "work_app_github_installations_tenant_idx",
2596
+ "columns": [
2597
+ {
2598
+ "expression": "tenant_id",
2599
+ "isExpression": false,
2600
+ "asc": true,
2601
+ "nulls": "last"
2602
+ }
2603
+ ],
2604
+ "isUnique": false,
2605
+ "concurrently": false,
2606
+ "method": "btree",
2607
+ "with": {}
2608
+ },
2609
+ "work_app_github_installations_installation_id_idx": {
2610
+ "name": "work_app_github_installations_installation_id_idx",
2611
+ "columns": [
2612
+ {
2613
+ "expression": "installation_id",
2614
+ "isExpression": false,
2615
+ "asc": true,
2616
+ "nulls": "last"
2617
+ }
2618
+ ],
2619
+ "isUnique": false,
2620
+ "concurrently": false,
2621
+ "method": "btree",
2622
+ "with": {}
2623
+ }
2624
+ },
2625
+ "foreignKeys": {
2626
+ "work_app_github_installations_organization_fk": {
2627
+ "name": "work_app_github_installations_organization_fk",
2628
+ "tableFrom": "work_app_github_installations",
2629
+ "tableTo": "organization",
2630
+ "columnsFrom": [
2631
+ "tenant_id"
2632
+ ],
2633
+ "columnsTo": [
2634
+ "id"
2635
+ ],
2636
+ "onDelete": "cascade",
2637
+ "onUpdate": "no action"
2638
+ }
2639
+ },
2640
+ "compositePrimaryKeys": {},
2641
+ "uniqueConstraints": {
2642
+ "work_app_github_installations_installation_id_unique": {
2643
+ "name": "work_app_github_installations_installation_id_unique",
2644
+ "nullsNotDistinct": false,
2645
+ "columns": [
2646
+ "installation_id"
2647
+ ]
2648
+ }
2649
+ },
2650
+ "policies": {},
2651
+ "checkConstraints": {},
2652
+ "isRLSEnabled": false
2653
+ },
2654
+ "public.work_app_github_mcp_tool_access_mode": {
2655
+ "name": "work_app_github_mcp_tool_access_mode",
2656
+ "schema": "",
2657
+ "columns": {
2658
+ "tool_id": {
2659
+ "name": "tool_id",
2660
+ "type": "varchar(256)",
2661
+ "primaryKey": false,
2662
+ "notNull": true
2663
+ },
2664
+ "tenant_id": {
2665
+ "name": "tenant_id",
2666
+ "type": "varchar(256)",
2667
+ "primaryKey": false,
2668
+ "notNull": true
2669
+ },
2670
+ "project_id": {
2671
+ "name": "project_id",
2672
+ "type": "varchar(256)",
2673
+ "primaryKey": false,
2674
+ "notNull": true
2675
+ },
2676
+ "mode": {
2677
+ "name": "mode",
2678
+ "type": "varchar(20)",
2679
+ "primaryKey": false,
2680
+ "notNull": true
2681
+ },
2682
+ "created_at": {
2683
+ "name": "created_at",
2684
+ "type": "timestamp",
2685
+ "primaryKey": false,
2686
+ "notNull": true,
2687
+ "default": "now()"
2688
+ },
2689
+ "updated_at": {
2690
+ "name": "updated_at",
2691
+ "type": "timestamp",
2692
+ "primaryKey": false,
2693
+ "notNull": true,
2694
+ "default": "now()"
2695
+ }
2696
+ },
2697
+ "indexes": {
2698
+ "work_app_github_mcp_tool_access_mode_tenant_idx": {
2699
+ "name": "work_app_github_mcp_tool_access_mode_tenant_idx",
2700
+ "columns": [
2701
+ {
2702
+ "expression": "tenant_id",
2703
+ "isExpression": false,
2704
+ "asc": true,
2705
+ "nulls": "last"
2706
+ }
2707
+ ],
2708
+ "isUnique": false,
2709
+ "concurrently": false,
2710
+ "method": "btree",
2711
+ "with": {}
2712
+ },
2713
+ "work_app_github_mcp_tool_access_mode_project_idx": {
2714
+ "name": "work_app_github_mcp_tool_access_mode_project_idx",
2715
+ "columns": [
2716
+ {
2717
+ "expression": "project_id",
2718
+ "isExpression": false,
2719
+ "asc": true,
2720
+ "nulls": "last"
2721
+ }
2722
+ ],
2723
+ "isUnique": false,
2724
+ "concurrently": false,
2725
+ "method": "btree",
2726
+ "with": {}
2727
+ }
2728
+ },
2729
+ "foreignKeys": {
2730
+ "work_app_github_mcp_tool_access_mode_tenant_fk": {
2731
+ "name": "work_app_github_mcp_tool_access_mode_tenant_fk",
2732
+ "tableFrom": "work_app_github_mcp_tool_access_mode",
2733
+ "tableTo": "organization",
2734
+ "columnsFrom": [
2735
+ "tenant_id"
2736
+ ],
2737
+ "columnsTo": [
2738
+ "id"
2739
+ ],
2740
+ "onDelete": "cascade",
2741
+ "onUpdate": "no action"
2742
+ }
2743
+ },
2744
+ "compositePrimaryKeys": {
2745
+ "work_app_github_mcp_tool_access_mode_tool_id_pk": {
2746
+ "name": "work_app_github_mcp_tool_access_mode_tool_id_pk",
2747
+ "columns": [
2748
+ "tool_id"
2749
+ ]
2750
+ }
2751
+ },
2752
+ "uniqueConstraints": {},
2753
+ "policies": {},
2754
+ "checkConstraints": {},
2755
+ "isRLSEnabled": false
2756
+ },
2757
+ "public.work_app_github_mcp_tool_repository_access": {
2758
+ "name": "work_app_github_mcp_tool_repository_access",
2759
+ "schema": "",
2760
+ "columns": {
2761
+ "tenant_id": {
2762
+ "name": "tenant_id",
2763
+ "type": "varchar(256)",
2764
+ "primaryKey": false,
2765
+ "notNull": true
2766
+ },
2767
+ "id": {
2768
+ "name": "id",
2769
+ "type": "varchar(256)",
2770
+ "primaryKey": false,
2771
+ "notNull": true
2772
+ },
2773
+ "project_id": {
2774
+ "name": "project_id",
2775
+ "type": "varchar(256)",
2776
+ "primaryKey": false,
2777
+ "notNull": true
2778
+ },
2779
+ "tool_id": {
2780
+ "name": "tool_id",
2781
+ "type": "varchar(256)",
2782
+ "primaryKey": false,
2783
+ "notNull": true
2784
+ },
2785
+ "repository_db_id": {
2786
+ "name": "repository_db_id",
2787
+ "type": "varchar(256)",
2788
+ "primaryKey": false,
2789
+ "notNull": true
2790
+ },
2791
+ "created_at": {
2792
+ "name": "created_at",
2793
+ "type": "timestamp",
2794
+ "primaryKey": false,
2795
+ "notNull": true,
2796
+ "default": "now()"
2797
+ },
2798
+ "updated_at": {
2799
+ "name": "updated_at",
2800
+ "type": "timestamp",
2801
+ "primaryKey": false,
2802
+ "notNull": true,
2803
+ "default": "now()"
2804
+ }
2805
+ },
2806
+ "indexes": {
2807
+ "work_app_github_mcp_tool_repository_access_tool_idx": {
2808
+ "name": "work_app_github_mcp_tool_repository_access_tool_idx",
2809
+ "columns": [
2810
+ {
2811
+ "expression": "tool_id",
2812
+ "isExpression": false,
2813
+ "asc": true,
2814
+ "nulls": "last"
2815
+ }
2816
+ ],
2817
+ "isUnique": false,
2818
+ "concurrently": false,
2819
+ "method": "btree",
2820
+ "with": {}
2821
+ },
2822
+ "work_app_github_mcp_tool_repository_access_tenant_idx": {
2823
+ "name": "work_app_github_mcp_tool_repository_access_tenant_idx",
2824
+ "columns": [
2825
+ {
2826
+ "expression": "tenant_id",
2827
+ "isExpression": false,
2828
+ "asc": true,
2829
+ "nulls": "last"
2830
+ }
2831
+ ],
2832
+ "isUnique": false,
2833
+ "concurrently": false,
2834
+ "method": "btree",
2835
+ "with": {}
2836
+ },
2837
+ "work_app_github_mcp_tool_repository_access_project_idx": {
2838
+ "name": "work_app_github_mcp_tool_repository_access_project_idx",
2839
+ "columns": [
2840
+ {
2841
+ "expression": "project_id",
2842
+ "isExpression": false,
2843
+ "asc": true,
2844
+ "nulls": "last"
2845
+ }
2846
+ ],
2847
+ "isUnique": false,
2848
+ "concurrently": false,
2849
+ "method": "btree",
2850
+ "with": {}
2851
+ }
2852
+ },
2853
+ "foreignKeys": {
2854
+ "work_app_github_mcp_tool_repository_access_tenant_fk": {
2855
+ "name": "work_app_github_mcp_tool_repository_access_tenant_fk",
2856
+ "tableFrom": "work_app_github_mcp_tool_repository_access",
2857
+ "tableTo": "organization",
2858
+ "columnsFrom": [
2859
+ "tenant_id"
2860
+ ],
2861
+ "columnsTo": [
2862
+ "id"
2863
+ ],
2864
+ "onDelete": "cascade",
2865
+ "onUpdate": "no action"
2866
+ },
2867
+ "work_app_github_mcp_tool_repository_access_repo_fk": {
2868
+ "name": "work_app_github_mcp_tool_repository_access_repo_fk",
2869
+ "tableFrom": "work_app_github_mcp_tool_repository_access",
2870
+ "tableTo": "work_app_github_repositories",
2871
+ "columnsFrom": [
2872
+ "repository_db_id"
2873
+ ],
2874
+ "columnsTo": [
2875
+ "id"
2876
+ ],
2877
+ "onDelete": "cascade",
2878
+ "onUpdate": "no action"
2879
+ }
2880
+ },
2881
+ "compositePrimaryKeys": {},
2882
+ "uniqueConstraints": {
2883
+ "work_app_github_mcp_tool_repository_access_unique": {
2884
+ "name": "work_app_github_mcp_tool_repository_access_unique",
2885
+ "nullsNotDistinct": false,
2886
+ "columns": [
2887
+ "tool_id",
2888
+ "repository_db_id"
2889
+ ]
2890
+ }
2891
+ },
2892
+ "policies": {},
2893
+ "checkConstraints": {},
2894
+ "isRLSEnabled": false
2895
+ },
2896
+ "public.work_app_github_project_access_mode": {
2897
+ "name": "work_app_github_project_access_mode",
2898
+ "schema": "",
2899
+ "columns": {
2900
+ "tenant_id": {
2901
+ "name": "tenant_id",
2902
+ "type": "varchar(256)",
2903
+ "primaryKey": false,
2904
+ "notNull": true
2905
+ },
2906
+ "project_id": {
2907
+ "name": "project_id",
2908
+ "type": "varchar(256)",
2909
+ "primaryKey": false,
2910
+ "notNull": true
2911
+ },
2912
+ "mode": {
2913
+ "name": "mode",
2914
+ "type": "varchar(20)",
2915
+ "primaryKey": false,
2916
+ "notNull": true
2917
+ },
2918
+ "created_at": {
2919
+ "name": "created_at",
2920
+ "type": "timestamp",
2921
+ "primaryKey": false,
2922
+ "notNull": true,
2923
+ "default": "now()"
2924
+ },
2925
+ "updated_at": {
2926
+ "name": "updated_at",
2927
+ "type": "timestamp",
2928
+ "primaryKey": false,
2929
+ "notNull": true,
2930
+ "default": "now()"
2931
+ }
2932
+ },
2933
+ "indexes": {},
2934
+ "foreignKeys": {
2935
+ "work_app_github_project_access_mode_tenant_fk": {
2936
+ "name": "work_app_github_project_access_mode_tenant_fk",
2937
+ "tableFrom": "work_app_github_project_access_mode",
2938
+ "tableTo": "organization",
2939
+ "columnsFrom": [
2940
+ "tenant_id"
2941
+ ],
2942
+ "columnsTo": [
2943
+ "id"
2944
+ ],
2945
+ "onDelete": "cascade",
2946
+ "onUpdate": "no action"
2947
+ }
2948
+ },
2949
+ "compositePrimaryKeys": {
2950
+ "work_app_github_project_access_mode_tenant_id_project_id_pk": {
2951
+ "name": "work_app_github_project_access_mode_tenant_id_project_id_pk",
2952
+ "columns": [
2953
+ "tenant_id",
2954
+ "project_id"
2955
+ ]
2956
+ }
2957
+ },
2958
+ "uniqueConstraints": {},
2959
+ "policies": {},
2960
+ "checkConstraints": {},
2961
+ "isRLSEnabled": false
2962
+ },
2963
+ "public.work_app_github_project_repository_access": {
2964
+ "name": "work_app_github_project_repository_access",
2965
+ "schema": "",
2966
+ "columns": {
2967
+ "tenant_id": {
2968
+ "name": "tenant_id",
2969
+ "type": "varchar(256)",
2970
+ "primaryKey": false,
2971
+ "notNull": true
2972
+ },
2973
+ "id": {
2974
+ "name": "id",
2975
+ "type": "varchar(256)",
2976
+ "primaryKey": false,
2977
+ "notNull": true
2978
+ },
2979
+ "project_id": {
2980
+ "name": "project_id",
2981
+ "type": "varchar(256)",
2982
+ "primaryKey": false,
2983
+ "notNull": true
2984
+ },
2985
+ "repository_db_id": {
2986
+ "name": "repository_db_id",
2987
+ "type": "varchar(256)",
2988
+ "primaryKey": false,
2989
+ "notNull": true
2990
+ },
2991
+ "created_at": {
2992
+ "name": "created_at",
2993
+ "type": "timestamp",
2994
+ "primaryKey": false,
2995
+ "notNull": true,
2996
+ "default": "now()"
2997
+ },
2998
+ "updated_at": {
2999
+ "name": "updated_at",
3000
+ "type": "timestamp",
3001
+ "primaryKey": false,
3002
+ "notNull": true,
3003
+ "default": "now()"
3004
+ }
3005
+ },
3006
+ "indexes": {
3007
+ "work_app_github_project_repository_access_tenant_idx": {
3008
+ "name": "work_app_github_project_repository_access_tenant_idx",
3009
+ "columns": [
3010
+ {
3011
+ "expression": "tenant_id",
3012
+ "isExpression": false,
3013
+ "asc": true,
3014
+ "nulls": "last"
3015
+ }
3016
+ ],
3017
+ "isUnique": false,
3018
+ "concurrently": false,
3019
+ "method": "btree",
3020
+ "with": {}
3021
+ },
3022
+ "work_app_github_project_repository_access_project_idx": {
3023
+ "name": "work_app_github_project_repository_access_project_idx",
3024
+ "columns": [
3025
+ {
3026
+ "expression": "project_id",
3027
+ "isExpression": false,
3028
+ "asc": true,
3029
+ "nulls": "last"
3030
+ }
3031
+ ],
3032
+ "isUnique": false,
3033
+ "concurrently": false,
3034
+ "method": "btree",
3035
+ "with": {}
3036
+ }
3037
+ },
3038
+ "foreignKeys": {
3039
+ "work_app_github_project_repository_access_tenant_fk": {
3040
+ "name": "work_app_github_project_repository_access_tenant_fk",
3041
+ "tableFrom": "work_app_github_project_repository_access",
3042
+ "tableTo": "organization",
3043
+ "columnsFrom": [
3044
+ "tenant_id"
3045
+ ],
3046
+ "columnsTo": [
3047
+ "id"
3048
+ ],
3049
+ "onDelete": "cascade",
3050
+ "onUpdate": "no action"
3051
+ },
3052
+ "work_app_github_project_repository_access_repo_fk": {
3053
+ "name": "work_app_github_project_repository_access_repo_fk",
3054
+ "tableFrom": "work_app_github_project_repository_access",
3055
+ "tableTo": "work_app_github_repositories",
3056
+ "columnsFrom": [
3057
+ "repository_db_id"
3058
+ ],
3059
+ "columnsTo": [
3060
+ "id"
3061
+ ],
3062
+ "onDelete": "cascade",
3063
+ "onUpdate": "no action"
3064
+ }
3065
+ },
3066
+ "compositePrimaryKeys": {},
3067
+ "uniqueConstraints": {
3068
+ "work_app_github_project_repository_access_unique": {
3069
+ "name": "work_app_github_project_repository_access_unique",
3070
+ "nullsNotDistinct": false,
3071
+ "columns": [
3072
+ "tenant_id",
3073
+ "project_id",
3074
+ "repository_db_id"
3075
+ ]
3076
+ }
3077
+ },
3078
+ "policies": {},
3079
+ "checkConstraints": {},
3080
+ "isRLSEnabled": false
3081
+ },
3082
+ "public.work_app_github_repositories": {
3083
+ "name": "work_app_github_repositories",
3084
+ "schema": "",
3085
+ "columns": {
3086
+ "id": {
3087
+ "name": "id",
3088
+ "type": "varchar(256)",
3089
+ "primaryKey": true,
3090
+ "notNull": true
3091
+ },
3092
+ "installation_db_id": {
3093
+ "name": "installation_db_id",
3094
+ "type": "varchar(256)",
3095
+ "primaryKey": false,
3096
+ "notNull": true
3097
+ },
3098
+ "repository_id": {
3099
+ "name": "repository_id",
3100
+ "type": "text",
3101
+ "primaryKey": false,
3102
+ "notNull": true
3103
+ },
3104
+ "repository_name": {
3105
+ "name": "repository_name",
3106
+ "type": "varchar(256)",
3107
+ "primaryKey": false,
3108
+ "notNull": true
3109
+ },
3110
+ "repository_full_name": {
3111
+ "name": "repository_full_name",
3112
+ "type": "varchar(512)",
3113
+ "primaryKey": false,
3114
+ "notNull": true
3115
+ },
3116
+ "private": {
3117
+ "name": "private",
3118
+ "type": "boolean",
3119
+ "primaryKey": false,
3120
+ "notNull": true,
3121
+ "default": false
3122
+ },
3123
+ "created_at": {
3124
+ "name": "created_at",
3125
+ "type": "timestamp",
3126
+ "primaryKey": false,
3127
+ "notNull": true,
3128
+ "default": "now()"
3129
+ },
3130
+ "updated_at": {
3131
+ "name": "updated_at",
3132
+ "type": "timestamp",
3133
+ "primaryKey": false,
3134
+ "notNull": true,
3135
+ "default": "now()"
3136
+ }
3137
+ },
3138
+ "indexes": {
3139
+ "work_app_github_repositories_installation_idx": {
3140
+ "name": "work_app_github_repositories_installation_idx",
3141
+ "columns": [
3142
+ {
3143
+ "expression": "installation_db_id",
3144
+ "isExpression": false,
3145
+ "asc": true,
3146
+ "nulls": "last"
3147
+ }
3148
+ ],
3149
+ "isUnique": false,
3150
+ "concurrently": false,
3151
+ "method": "btree",
3152
+ "with": {}
3153
+ },
3154
+ "work_app_github_repositories_full_name_idx": {
3155
+ "name": "work_app_github_repositories_full_name_idx",
3156
+ "columns": [
3157
+ {
3158
+ "expression": "repository_full_name",
3159
+ "isExpression": false,
3160
+ "asc": true,
3161
+ "nulls": "last"
3162
+ }
3163
+ ],
3164
+ "isUnique": false,
3165
+ "concurrently": false,
3166
+ "method": "btree",
3167
+ "with": {}
3168
+ }
3169
+ },
3170
+ "foreignKeys": {
3171
+ "work_app_github_repositories_installation_fk": {
3172
+ "name": "work_app_github_repositories_installation_fk",
3173
+ "tableFrom": "work_app_github_repositories",
3174
+ "tableTo": "work_app_github_installations",
3175
+ "columnsFrom": [
3176
+ "installation_db_id"
3177
+ ],
3178
+ "columnsTo": [
3179
+ "id"
3180
+ ],
3181
+ "onDelete": "cascade",
3182
+ "onUpdate": "no action"
3183
+ }
3184
+ },
3185
+ "compositePrimaryKeys": {},
3186
+ "uniqueConstraints": {
3187
+ "work_app_github_repositories_repo_installation_unique": {
3188
+ "name": "work_app_github_repositories_repo_installation_unique",
3189
+ "nullsNotDistinct": false,
3190
+ "columns": [
3191
+ "installation_db_id",
3192
+ "repository_id"
3193
+ ]
3194
+ }
3195
+ },
3196
+ "policies": {},
3197
+ "checkConstraints": {},
3198
+ "isRLSEnabled": false
3199
+ },
3200
+ "public.work_app_slack_channel_agent_configs": {
3201
+ "name": "work_app_slack_channel_agent_configs",
3202
+ "schema": "",
3203
+ "columns": {
3204
+ "id": {
3205
+ "name": "id",
3206
+ "type": "varchar(256)",
3207
+ "primaryKey": true,
3208
+ "notNull": true
3209
+ },
3210
+ "tenant_id": {
3211
+ "name": "tenant_id",
3212
+ "type": "varchar(256)",
3213
+ "primaryKey": false,
3214
+ "notNull": true
3215
+ },
3216
+ "slack_team_id": {
3217
+ "name": "slack_team_id",
3218
+ "type": "varchar(256)",
3219
+ "primaryKey": false,
3220
+ "notNull": true
3221
+ },
3222
+ "slack_channel_id": {
3223
+ "name": "slack_channel_id",
3224
+ "type": "varchar(256)",
3225
+ "primaryKey": false,
3226
+ "notNull": true
3227
+ },
3228
+ "slack_channel_name": {
3229
+ "name": "slack_channel_name",
3230
+ "type": "varchar(256)",
3231
+ "primaryKey": false,
3232
+ "notNull": false
3233
+ },
3234
+ "slack_channel_type": {
3235
+ "name": "slack_channel_type",
3236
+ "type": "varchar(50)",
3237
+ "primaryKey": false,
3238
+ "notNull": false
3239
+ },
3240
+ "project_id": {
3241
+ "name": "project_id",
3242
+ "type": "varchar(256)",
3243
+ "primaryKey": false,
3244
+ "notNull": true
3245
+ },
3246
+ "agent_id": {
3247
+ "name": "agent_id",
3248
+ "type": "varchar(256)",
3249
+ "primaryKey": false,
3250
+ "notNull": true
3251
+ },
3252
+ "agent_name": {
3253
+ "name": "agent_name",
3254
+ "type": "varchar(256)",
3255
+ "primaryKey": false,
3256
+ "notNull": false
3257
+ },
3258
+ "configured_by_user_id": {
3259
+ "name": "configured_by_user_id",
3260
+ "type": "text",
3261
+ "primaryKey": false,
3262
+ "notNull": false
3263
+ },
3264
+ "enabled": {
3265
+ "name": "enabled",
3266
+ "type": "boolean",
3267
+ "primaryKey": false,
3268
+ "notNull": true,
3269
+ "default": true
3270
+ },
3271
+ "created_at": {
3272
+ "name": "created_at",
3273
+ "type": "timestamp",
3274
+ "primaryKey": false,
3275
+ "notNull": true,
3276
+ "default": "now()"
3277
+ },
3278
+ "updated_at": {
3279
+ "name": "updated_at",
3280
+ "type": "timestamp",
3281
+ "primaryKey": false,
3282
+ "notNull": true,
3283
+ "default": "now()"
3284
+ }
3285
+ },
3286
+ "indexes": {
3287
+ "work_app_slack_channel_agent_configs_tenant_idx": {
3288
+ "name": "work_app_slack_channel_agent_configs_tenant_idx",
3289
+ "columns": [
3290
+ {
3291
+ "expression": "tenant_id",
3292
+ "isExpression": false,
3293
+ "asc": true,
3294
+ "nulls": "last"
3295
+ }
3296
+ ],
3297
+ "isUnique": false,
3298
+ "concurrently": false,
3299
+ "method": "btree",
3300
+ "with": {}
3301
+ },
3302
+ "work_app_slack_channel_agent_configs_team_idx": {
3303
+ "name": "work_app_slack_channel_agent_configs_team_idx",
3304
+ "columns": [
3305
+ {
3306
+ "expression": "slack_team_id",
3307
+ "isExpression": false,
3308
+ "asc": true,
3309
+ "nulls": "last"
3310
+ }
3311
+ ],
3312
+ "isUnique": false,
3313
+ "concurrently": false,
3314
+ "method": "btree",
3315
+ "with": {}
3316
+ },
3317
+ "work_app_slack_channel_agent_configs_channel_idx": {
3318
+ "name": "work_app_slack_channel_agent_configs_channel_idx",
3319
+ "columns": [
3320
+ {
3321
+ "expression": "slack_channel_id",
3322
+ "isExpression": false,
3323
+ "asc": true,
3324
+ "nulls": "last"
3325
+ }
3326
+ ],
3327
+ "isUnique": false,
3328
+ "concurrently": false,
3329
+ "method": "btree",
3330
+ "with": {}
3331
+ }
3332
+ },
3333
+ "foreignKeys": {
3334
+ "work_app_slack_channel_agent_configs_tenant_id_organization_id_fk": {
3335
+ "name": "work_app_slack_channel_agent_configs_tenant_id_organization_id_fk",
3336
+ "tableFrom": "work_app_slack_channel_agent_configs",
3337
+ "tableTo": "organization",
3338
+ "columnsFrom": [
3339
+ "tenant_id"
3340
+ ],
3341
+ "columnsTo": [
3342
+ "id"
3343
+ ],
3344
+ "onDelete": "cascade",
3345
+ "onUpdate": "no action"
3346
+ },
3347
+ "work_app_slack_channel_agent_configs_configured_by_user_id_user_id_fk": {
3348
+ "name": "work_app_slack_channel_agent_configs_configured_by_user_id_user_id_fk",
3349
+ "tableFrom": "work_app_slack_channel_agent_configs",
3350
+ "tableTo": "user",
3351
+ "columnsFrom": [
3352
+ "configured_by_user_id"
3353
+ ],
3354
+ "columnsTo": [
3355
+ "id"
3356
+ ],
3357
+ "onDelete": "set null",
3358
+ "onUpdate": "no action"
3359
+ }
3360
+ },
3361
+ "compositePrimaryKeys": {},
3362
+ "uniqueConstraints": {
3363
+ "work_app_slack_channel_agent_configs_unique": {
3364
+ "name": "work_app_slack_channel_agent_configs_unique",
3365
+ "nullsNotDistinct": false,
3366
+ "columns": [
3367
+ "tenant_id",
3368
+ "slack_team_id",
3369
+ "slack_channel_id"
3370
+ ]
3371
+ }
3372
+ },
3373
+ "policies": {},
3374
+ "checkConstraints": {},
3375
+ "isRLSEnabled": false
3376
+ },
3377
+ "public.work_app_slack_user_mappings": {
3378
+ "name": "work_app_slack_user_mappings",
3379
+ "schema": "",
3380
+ "columns": {
3381
+ "id": {
3382
+ "name": "id",
3383
+ "type": "varchar(256)",
3384
+ "primaryKey": true,
3385
+ "notNull": true
3386
+ },
3387
+ "tenant_id": {
3388
+ "name": "tenant_id",
3389
+ "type": "varchar(256)",
3390
+ "primaryKey": false,
3391
+ "notNull": true
3392
+ },
3393
+ "client_id": {
3394
+ "name": "client_id",
3395
+ "type": "varchar(256)",
3396
+ "primaryKey": false,
3397
+ "notNull": true,
3398
+ "default": "'work-apps-slack'"
3399
+ },
3400
+ "slack_user_id": {
3401
+ "name": "slack_user_id",
3402
+ "type": "varchar(256)",
3403
+ "primaryKey": false,
3404
+ "notNull": true
3405
+ },
3406
+ "slack_team_id": {
3407
+ "name": "slack_team_id",
3408
+ "type": "varchar(256)",
3409
+ "primaryKey": false,
3410
+ "notNull": true
3411
+ },
3412
+ "slack_enterprise_id": {
3413
+ "name": "slack_enterprise_id",
3414
+ "type": "varchar(256)",
3415
+ "primaryKey": false,
3416
+ "notNull": false
3417
+ },
3418
+ "inkeep_user_id": {
3419
+ "name": "inkeep_user_id",
3420
+ "type": "text",
3421
+ "primaryKey": false,
3422
+ "notNull": true
3423
+ },
3424
+ "slack_username": {
3425
+ "name": "slack_username",
3426
+ "type": "varchar(256)",
3427
+ "primaryKey": false,
3428
+ "notNull": false
3429
+ },
3430
+ "slack_email": {
3431
+ "name": "slack_email",
3432
+ "type": "varchar(256)",
3433
+ "primaryKey": false,
3434
+ "notNull": false
3435
+ },
3436
+ "linked_at": {
3437
+ "name": "linked_at",
3438
+ "type": "timestamp",
3439
+ "primaryKey": false,
3440
+ "notNull": true,
3441
+ "default": "now()"
3442
+ },
3443
+ "last_used_at": {
3444
+ "name": "last_used_at",
3445
+ "type": "timestamp",
3446
+ "primaryKey": false,
3447
+ "notNull": false
3448
+ },
3449
+ "created_at": {
3450
+ "name": "created_at",
3451
+ "type": "timestamp",
3452
+ "primaryKey": false,
3453
+ "notNull": true,
3454
+ "default": "now()"
3455
+ },
3456
+ "updated_at": {
3457
+ "name": "updated_at",
3458
+ "type": "timestamp",
3459
+ "primaryKey": false,
3460
+ "notNull": true,
3461
+ "default": "now()"
3462
+ }
3463
+ },
3464
+ "indexes": {
3465
+ "work_app_slack_user_mappings_tenant_idx": {
3466
+ "name": "work_app_slack_user_mappings_tenant_idx",
3467
+ "columns": [
3468
+ {
3469
+ "expression": "tenant_id",
3470
+ "isExpression": false,
3471
+ "asc": true,
3472
+ "nulls": "last"
3473
+ }
3474
+ ],
3475
+ "isUnique": false,
3476
+ "concurrently": false,
3477
+ "method": "btree",
3478
+ "with": {}
3479
+ },
3480
+ "work_app_slack_user_mappings_user_idx": {
3481
+ "name": "work_app_slack_user_mappings_user_idx",
3482
+ "columns": [
3483
+ {
3484
+ "expression": "inkeep_user_id",
3485
+ "isExpression": false,
3486
+ "asc": true,
3487
+ "nulls": "last"
3488
+ }
3489
+ ],
3490
+ "isUnique": false,
3491
+ "concurrently": false,
3492
+ "method": "btree",
3493
+ "with": {}
3494
+ },
3495
+ "work_app_slack_user_mappings_team_idx": {
3496
+ "name": "work_app_slack_user_mappings_team_idx",
3497
+ "columns": [
3498
+ {
3499
+ "expression": "slack_team_id",
3500
+ "isExpression": false,
3501
+ "asc": true,
3502
+ "nulls": "last"
3503
+ }
3504
+ ],
3505
+ "isUnique": false,
3506
+ "concurrently": false,
3507
+ "method": "btree",
3508
+ "with": {}
3509
+ },
3510
+ "work_app_slack_user_mappings_slack_user_idx": {
3511
+ "name": "work_app_slack_user_mappings_slack_user_idx",
3512
+ "columns": [
3513
+ {
3514
+ "expression": "slack_user_id",
3515
+ "isExpression": false,
3516
+ "asc": true,
3517
+ "nulls": "last"
3518
+ }
3519
+ ],
3520
+ "isUnique": false,
3521
+ "concurrently": false,
3522
+ "method": "btree",
3523
+ "with": {}
3524
+ }
3525
+ },
3526
+ "foreignKeys": {
3527
+ "work_app_slack_user_mappings_tenant_id_organization_id_fk": {
3528
+ "name": "work_app_slack_user_mappings_tenant_id_organization_id_fk",
3529
+ "tableFrom": "work_app_slack_user_mappings",
3530
+ "tableTo": "organization",
3531
+ "columnsFrom": [
3532
+ "tenant_id"
3533
+ ],
3534
+ "columnsTo": [
3535
+ "id"
3536
+ ],
3537
+ "onDelete": "cascade",
3538
+ "onUpdate": "no action"
3539
+ },
3540
+ "work_app_slack_user_mappings_inkeep_user_id_user_id_fk": {
3541
+ "name": "work_app_slack_user_mappings_inkeep_user_id_user_id_fk",
3542
+ "tableFrom": "work_app_slack_user_mappings",
3543
+ "tableTo": "user",
3544
+ "columnsFrom": [
3545
+ "inkeep_user_id"
3546
+ ],
3547
+ "columnsTo": [
3548
+ "id"
3549
+ ],
3550
+ "onDelete": "cascade",
3551
+ "onUpdate": "no action"
3552
+ }
3553
+ },
3554
+ "compositePrimaryKeys": {},
3555
+ "uniqueConstraints": {
3556
+ "work_app_slack_user_mappings_unique": {
3557
+ "name": "work_app_slack_user_mappings_unique",
3558
+ "nullsNotDistinct": false,
3559
+ "columns": [
3560
+ "tenant_id",
3561
+ "client_id",
3562
+ "slack_team_id",
3563
+ "slack_user_id"
3564
+ ]
3565
+ }
3566
+ },
3567
+ "policies": {},
3568
+ "checkConstraints": {},
3569
+ "isRLSEnabled": false
3570
+ },
3571
+ "public.work_app_slack_workspaces": {
3572
+ "name": "work_app_slack_workspaces",
3573
+ "schema": "",
3574
+ "columns": {
3575
+ "id": {
3576
+ "name": "id",
3577
+ "type": "varchar(256)",
3578
+ "primaryKey": true,
3579
+ "notNull": true
3580
+ },
3581
+ "tenant_id": {
3582
+ "name": "tenant_id",
3583
+ "type": "varchar(256)",
3584
+ "primaryKey": false,
3585
+ "notNull": true
3586
+ },
3587
+ "slack_team_id": {
3588
+ "name": "slack_team_id",
3589
+ "type": "varchar(256)",
3590
+ "primaryKey": false,
3591
+ "notNull": true
3592
+ },
3593
+ "slack_enterprise_id": {
3594
+ "name": "slack_enterprise_id",
3595
+ "type": "varchar(256)",
3596
+ "primaryKey": false,
3597
+ "notNull": false
3598
+ },
3599
+ "slack_app_id": {
3600
+ "name": "slack_app_id",
3601
+ "type": "varchar(256)",
3602
+ "primaryKey": false,
3603
+ "notNull": false
3604
+ },
3605
+ "slack_team_name": {
3606
+ "name": "slack_team_name",
3607
+ "type": "varchar(512)",
3608
+ "primaryKey": false,
3609
+ "notNull": false
3610
+ },
3611
+ "nango_provider_config_key": {
3612
+ "name": "nango_provider_config_key",
3613
+ "type": "varchar(256)",
3614
+ "primaryKey": false,
3615
+ "notNull": true,
3616
+ "default": "'work-apps-slack'"
3617
+ },
3618
+ "nango_connection_id": {
3619
+ "name": "nango_connection_id",
3620
+ "type": "varchar(256)",
3621
+ "primaryKey": false,
3622
+ "notNull": true
3623
+ },
3624
+ "status": {
3625
+ "name": "status",
3626
+ "type": "varchar(20)",
3627
+ "primaryKey": false,
3628
+ "notNull": true,
3629
+ "default": "'active'"
3630
+ },
3631
+ "installed_by_user_id": {
3632
+ "name": "installed_by_user_id",
3633
+ "type": "text",
3634
+ "primaryKey": false,
3635
+ "notNull": false
3636
+ },
3637
+ "created_at": {
3638
+ "name": "created_at",
3639
+ "type": "timestamp",
3640
+ "primaryKey": false,
3641
+ "notNull": true,
3642
+ "default": "now()"
3643
+ },
3644
+ "updated_at": {
3645
+ "name": "updated_at",
3646
+ "type": "timestamp",
3647
+ "primaryKey": false,
3648
+ "notNull": true,
3649
+ "default": "now()"
3650
+ }
3651
+ },
3652
+ "indexes": {
3653
+ "work_app_slack_workspaces_tenant_idx": {
3654
+ "name": "work_app_slack_workspaces_tenant_idx",
3655
+ "columns": [
3656
+ {
3657
+ "expression": "tenant_id",
3658
+ "isExpression": false,
3659
+ "asc": true,
3660
+ "nulls": "last"
3661
+ }
3662
+ ],
3663
+ "isUnique": false,
3664
+ "concurrently": false,
3665
+ "method": "btree",
3666
+ "with": {}
3667
+ },
3668
+ "work_app_slack_workspaces_team_idx": {
3669
+ "name": "work_app_slack_workspaces_team_idx",
3670
+ "columns": [
3671
+ {
3672
+ "expression": "slack_team_id",
3673
+ "isExpression": false,
3674
+ "asc": true,
3675
+ "nulls": "last"
3676
+ }
3677
+ ],
3678
+ "isUnique": false,
3679
+ "concurrently": false,
3680
+ "method": "btree",
3681
+ "with": {}
3682
+ }
3683
+ },
3684
+ "foreignKeys": {
3685
+ "work_app_slack_workspaces_tenant_id_organization_id_fk": {
3686
+ "name": "work_app_slack_workspaces_tenant_id_organization_id_fk",
3687
+ "tableFrom": "work_app_slack_workspaces",
3688
+ "tableTo": "organization",
3689
+ "columnsFrom": [
3690
+ "tenant_id"
3691
+ ],
3692
+ "columnsTo": [
3693
+ "id"
3694
+ ],
3695
+ "onDelete": "cascade",
3696
+ "onUpdate": "no action"
3697
+ },
3698
+ "work_app_slack_workspaces_installed_by_user_id_user_id_fk": {
3699
+ "name": "work_app_slack_workspaces_installed_by_user_id_user_id_fk",
3700
+ "tableFrom": "work_app_slack_workspaces",
3701
+ "tableTo": "user",
3702
+ "columnsFrom": [
3703
+ "installed_by_user_id"
3704
+ ],
3705
+ "columnsTo": [
3706
+ "id"
3707
+ ],
3708
+ "onDelete": "set null",
3709
+ "onUpdate": "no action"
3710
+ }
3711
+ },
3712
+ "compositePrimaryKeys": {},
3713
+ "uniqueConstraints": {
3714
+ "work_app_slack_workspaces_tenant_team_unique": {
3715
+ "name": "work_app_slack_workspaces_tenant_team_unique",
3716
+ "nullsNotDistinct": false,
3717
+ "columns": [
3718
+ "tenant_id",
3719
+ "slack_team_id"
3720
+ ]
3721
+ },
3722
+ "work_app_slack_workspaces_nango_connection_unique": {
3723
+ "name": "work_app_slack_workspaces_nango_connection_unique",
3724
+ "nullsNotDistinct": false,
3725
+ "columns": [
3726
+ "nango_connection_id"
3727
+ ]
3728
+ }
3729
+ },
3730
+ "policies": {},
3731
+ "checkConstraints": {},
3732
+ "isRLSEnabled": false
3733
+ }
3734
+ },
3735
+ "enums": {},
3736
+ "schemas": {},
3737
+ "sequences": {},
3738
+ "roles": {},
3739
+ "policies": {},
3740
+ "views": {},
3741
+ "_meta": {
3742
+ "columns": {},
3743
+ "schemas": {},
3744
+ "tables": {}
3745
+ }
3746
+ }