@ykurilov/agent-chat-storage-postgres 0.0.0-stage → 0.56.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 (46) hide show
  1. package/CHANGELOG.md +1220 -0
  2. package/LICENSE +21 -0
  3. package/README.md +37 -2
  4. package/dist/index.js +801 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/types/drizzle-chat-storage.d.ts +1604 -0
  7. package/dist/types/index.d.ts +2 -0
  8. package/dist/types/migrate.d.ts +6 -0
  9. package/dist/types/postgres-storage.d.ts +18 -0
  10. package/dist/types/schema.d.ts +1678 -0
  11. package/drizzle/0000_init.sql +32 -0
  12. package/drizzle/0001_chat_reasoning.sql +1 -0
  13. package/drizzle/0002_compactions.sql +16 -0
  14. package/drizzle/0003_branch_selections.sql +10 -0
  15. package/drizzle/0004_chat_title.sql +22 -0
  16. package/drizzle/0005_usage_records.sql +19 -0
  17. package/drizzle/0006_user_model_choices.sql +7 -0
  18. package/drizzle/0007_voice_dialog.sql +7 -0
  19. package/drizzle/0008_memory_notes.sql +11 -0
  20. package/drizzle/0009_memory_optimization.sql +15 -0
  21. package/drizzle/0010_usage_estimated.sql +1 -0
  22. package/drizzle/0011_message_alive_at.sql +1 -0
  23. package/drizzle/0012_spending_limit_states.sql +6 -0
  24. package/drizzle/0013_chat_origin.sql +1 -0
  25. package/drizzle/0014_chat_subject_after_turn.sql +5 -0
  26. package/drizzle/0015_chat_closed.sql +1 -0
  27. package/drizzle/0016_chat_turn_leases.sql +5 -0
  28. package/drizzle/meta/0000_snapshot.json +259 -0
  29. package/drizzle/meta/0001_snapshot.json +265 -0
  30. package/drizzle/meta/0002_snapshot.json +392 -0
  31. package/drizzle/meta/0003_snapshot.json +483 -0
  32. package/drizzle/meta/0004_snapshot.json +489 -0
  33. package/drizzle/meta/0005_snapshot.json +629 -0
  34. package/drizzle/meta/0006_snapshot.json +672 -0
  35. package/drizzle/meta/0007_snapshot.json +709 -0
  36. package/drizzle/meta/0008_snapshot.json +787 -0
  37. package/drizzle/meta/0009_snapshot.json +908 -0
  38. package/drizzle/meta/0010_snapshot.json +915 -0
  39. package/drizzle/meta/0011_snapshot.json +921 -0
  40. package/drizzle/meta/0012_snapshot.json +958 -0
  41. package/drizzle/meta/0013_snapshot.json +964 -0
  42. package/drizzle/meta/0014_snapshot.json +1019 -0
  43. package/drizzle/meta/0015_snapshot.json +1025 -0
  44. package/drizzle/meta/0016_snapshot.json +1056 -0
  45. package/drizzle/meta/_journal.json +125 -0
  46. package/package.json +46 -3
@@ -0,0 +1,787 @@
1
+ {
2
+ "id": "575ed718-1929-4e84-b354-53f16fd2722e",
3
+ "prevId": "e215c306-d367-4b6d-a7e3-5b1b5ca267cb",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "agent_chat.branch_selections": {
8
+ "name": "branch_selections",
9
+ "schema": "agent_chat",
10
+ "columns": {
11
+ "seq": {
12
+ "name": "seq",
13
+ "type": "bigint",
14
+ "primaryKey": false,
15
+ "notNull": true,
16
+ "identity": {
17
+ "type": "always",
18
+ "name": "branch_selections_seq_seq",
19
+ "schema": "agent_chat",
20
+ "increment": "1",
21
+ "startWith": "1",
22
+ "minValue": "1",
23
+ "maxValue": "9223372036854775807",
24
+ "cache": "1",
25
+ "cycle": false
26
+ }
27
+ },
28
+ "id": {
29
+ "name": "id",
30
+ "type": "text",
31
+ "primaryKey": true,
32
+ "notNull": true
33
+ },
34
+ "chat_id": {
35
+ "name": "chat_id",
36
+ "type": "text",
37
+ "primaryKey": false,
38
+ "notNull": true
39
+ },
40
+ "message_id": {
41
+ "name": "message_id",
42
+ "type": "text",
43
+ "primaryKey": false,
44
+ "notNull": true
45
+ },
46
+ "selected_at": {
47
+ "name": "selected_at",
48
+ "type": "text",
49
+ "primaryKey": false,
50
+ "notNull": true
51
+ }
52
+ },
53
+ "indexes": {
54
+ "branch_selections_chat_seq_idx": {
55
+ "name": "branch_selections_chat_seq_idx",
56
+ "columns": [
57
+ {
58
+ "expression": "chat_id",
59
+ "isExpression": false,
60
+ "asc": true,
61
+ "nulls": "last"
62
+ },
63
+ {
64
+ "expression": "seq",
65
+ "isExpression": false,
66
+ "asc": true,
67
+ "nulls": "last"
68
+ }
69
+ ],
70
+ "isUnique": false,
71
+ "concurrently": false,
72
+ "method": "btree",
73
+ "with": {}
74
+ }
75
+ },
76
+ "foreignKeys": {
77
+ "branch_selections_chat_id_chats_id_fk": {
78
+ "name": "branch_selections_chat_id_chats_id_fk",
79
+ "tableFrom": "branch_selections",
80
+ "tableTo": "chats",
81
+ "schemaTo": "agent_chat",
82
+ "columnsFrom": [
83
+ "chat_id"
84
+ ],
85
+ "columnsTo": [
86
+ "id"
87
+ ],
88
+ "onDelete": "cascade",
89
+ "onUpdate": "no action"
90
+ }
91
+ },
92
+ "compositePrimaryKeys": {},
93
+ "uniqueConstraints": {},
94
+ "policies": {},
95
+ "checkConstraints": {},
96
+ "isRLSEnabled": false
97
+ },
98
+ "agent_chat.chats": {
99
+ "name": "chats",
100
+ "schema": "agent_chat",
101
+ "columns": {
102
+ "id": {
103
+ "name": "id",
104
+ "type": "text",
105
+ "primaryKey": true,
106
+ "notNull": true
107
+ },
108
+ "owner_id": {
109
+ "name": "owner_id",
110
+ "type": "text",
111
+ "primaryKey": false,
112
+ "notNull": true
113
+ },
114
+ "model_id": {
115
+ "name": "model_id",
116
+ "type": "text",
117
+ "primaryKey": false,
118
+ "notNull": true
119
+ },
120
+ "provider_id": {
121
+ "name": "provider_id",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": true
125
+ },
126
+ "reasoning": {
127
+ "name": "reasoning",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": false
131
+ },
132
+ "title": {
133
+ "name": "title",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": false
137
+ },
138
+ "created_at": {
139
+ "name": "created_at",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "updated_at": {
145
+ "name": "updated_at",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ }
150
+ },
151
+ "indexes": {
152
+ "chats_owner_updated_idx": {
153
+ "name": "chats_owner_updated_idx",
154
+ "columns": [
155
+ {
156
+ "expression": "owner_id",
157
+ "isExpression": false,
158
+ "asc": true,
159
+ "nulls": "last"
160
+ },
161
+ {
162
+ "expression": "updated_at",
163
+ "isExpression": false,
164
+ "asc": true,
165
+ "nulls": "last"
166
+ }
167
+ ],
168
+ "isUnique": false,
169
+ "concurrently": false,
170
+ "method": "btree",
171
+ "with": {}
172
+ }
173
+ },
174
+ "foreignKeys": {},
175
+ "compositePrimaryKeys": {},
176
+ "uniqueConstraints": {},
177
+ "policies": {},
178
+ "checkConstraints": {},
179
+ "isRLSEnabled": false
180
+ },
181
+ "agent_chat.compactions": {
182
+ "name": "compactions",
183
+ "schema": "agent_chat",
184
+ "columns": {
185
+ "seq": {
186
+ "name": "seq",
187
+ "type": "bigint",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "identity": {
191
+ "type": "always",
192
+ "name": "compactions_seq_seq",
193
+ "schema": "agent_chat",
194
+ "increment": "1",
195
+ "startWith": "1",
196
+ "minValue": "1",
197
+ "maxValue": "9223372036854775807",
198
+ "cache": "1",
199
+ "cycle": false
200
+ }
201
+ },
202
+ "id": {
203
+ "name": "id",
204
+ "type": "text",
205
+ "primaryKey": true,
206
+ "notNull": true
207
+ },
208
+ "chat_id": {
209
+ "name": "chat_id",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": true
213
+ },
214
+ "from_message_id": {
215
+ "name": "from_message_id",
216
+ "type": "text",
217
+ "primaryKey": false,
218
+ "notNull": true
219
+ },
220
+ "through_message_id": {
221
+ "name": "through_message_id",
222
+ "type": "text",
223
+ "primaryKey": false,
224
+ "notNull": true
225
+ },
226
+ "summary": {
227
+ "name": "summary",
228
+ "type": "text",
229
+ "primaryKey": false,
230
+ "notNull": true
231
+ },
232
+ "summary_tokens": {
233
+ "name": "summary_tokens",
234
+ "type": "integer",
235
+ "primaryKey": false,
236
+ "notNull": true
237
+ },
238
+ "model_id": {
239
+ "name": "model_id",
240
+ "type": "text",
241
+ "primaryKey": false,
242
+ "notNull": true
243
+ },
244
+ "provider_id": {
245
+ "name": "provider_id",
246
+ "type": "text",
247
+ "primaryKey": false,
248
+ "notNull": true
249
+ },
250
+ "usage": {
251
+ "name": "usage",
252
+ "type": "json",
253
+ "primaryKey": false,
254
+ "notNull": false
255
+ },
256
+ "created_at": {
257
+ "name": "created_at",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true
261
+ }
262
+ },
263
+ "indexes": {
264
+ "compactions_chat_seq_idx": {
265
+ "name": "compactions_chat_seq_idx",
266
+ "columns": [
267
+ {
268
+ "expression": "chat_id",
269
+ "isExpression": false,
270
+ "asc": true,
271
+ "nulls": "last"
272
+ },
273
+ {
274
+ "expression": "seq",
275
+ "isExpression": false,
276
+ "asc": true,
277
+ "nulls": "last"
278
+ }
279
+ ],
280
+ "isUnique": false,
281
+ "concurrently": false,
282
+ "method": "btree",
283
+ "with": {}
284
+ }
285
+ },
286
+ "foreignKeys": {
287
+ "compactions_chat_id_chats_id_fk": {
288
+ "name": "compactions_chat_id_chats_id_fk",
289
+ "tableFrom": "compactions",
290
+ "tableTo": "chats",
291
+ "schemaTo": "agent_chat",
292
+ "columnsFrom": [
293
+ "chat_id"
294
+ ],
295
+ "columnsTo": [
296
+ "id"
297
+ ],
298
+ "onDelete": "cascade",
299
+ "onUpdate": "no action"
300
+ }
301
+ },
302
+ "compositePrimaryKeys": {},
303
+ "uniqueConstraints": {},
304
+ "policies": {},
305
+ "checkConstraints": {},
306
+ "isRLSEnabled": false
307
+ },
308
+ "agent_chat.memory_notes": {
309
+ "name": "memory_notes",
310
+ "schema": "agent_chat",
311
+ "columns": {
312
+ "id": {
313
+ "name": "id",
314
+ "type": "text",
315
+ "primaryKey": true,
316
+ "notNull": true
317
+ },
318
+ "owner_id": {
319
+ "name": "owner_id",
320
+ "type": "text",
321
+ "primaryKey": false,
322
+ "notNull": true
323
+ },
324
+ "categories": {
325
+ "name": "categories",
326
+ "type": "jsonb",
327
+ "primaryKey": false,
328
+ "notNull": true
329
+ },
330
+ "content": {
331
+ "name": "content",
332
+ "type": "text",
333
+ "primaryKey": false,
334
+ "notNull": true
335
+ },
336
+ "version": {
337
+ "name": "version",
338
+ "type": "integer",
339
+ "primaryKey": false,
340
+ "notNull": true,
341
+ "default": 1
342
+ },
343
+ "created_at": {
344
+ "name": "created_at",
345
+ "type": "timestamp with time zone",
346
+ "primaryKey": false,
347
+ "notNull": true
348
+ },
349
+ "updated_at": {
350
+ "name": "updated_at",
351
+ "type": "timestamp with time zone",
352
+ "primaryKey": false,
353
+ "notNull": true
354
+ }
355
+ },
356
+ "indexes": {
357
+ "memory_notes_owner_updated_idx": {
358
+ "name": "memory_notes_owner_updated_idx",
359
+ "columns": [
360
+ {
361
+ "expression": "owner_id",
362
+ "isExpression": false,
363
+ "asc": true,
364
+ "nulls": "last"
365
+ },
366
+ {
367
+ "expression": "updated_at",
368
+ "isExpression": false,
369
+ "asc": true,
370
+ "nulls": "last"
371
+ }
372
+ ],
373
+ "isUnique": false,
374
+ "concurrently": false,
375
+ "method": "btree",
376
+ "with": {}
377
+ }
378
+ },
379
+ "foreignKeys": {},
380
+ "compositePrimaryKeys": {},
381
+ "uniqueConstraints": {},
382
+ "policies": {},
383
+ "checkConstraints": {},
384
+ "isRLSEnabled": false
385
+ },
386
+ "agent_chat.messages": {
387
+ "name": "messages",
388
+ "schema": "agent_chat",
389
+ "columns": {
390
+ "seq": {
391
+ "name": "seq",
392
+ "type": "bigint",
393
+ "primaryKey": false,
394
+ "notNull": true,
395
+ "identity": {
396
+ "type": "always",
397
+ "name": "messages_seq_seq",
398
+ "schema": "agent_chat",
399
+ "increment": "1",
400
+ "startWith": "1",
401
+ "minValue": "1",
402
+ "maxValue": "9223372036854775807",
403
+ "cache": "1",
404
+ "cycle": false
405
+ }
406
+ },
407
+ "id": {
408
+ "name": "id",
409
+ "type": "text",
410
+ "primaryKey": true,
411
+ "notNull": true
412
+ },
413
+ "chat_id": {
414
+ "name": "chat_id",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": true
418
+ },
419
+ "parent_id": {
420
+ "name": "parent_id",
421
+ "type": "text",
422
+ "primaryKey": false,
423
+ "notNull": false
424
+ },
425
+ "role": {
426
+ "name": "role",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true
430
+ },
431
+ "parts": {
432
+ "name": "parts",
433
+ "type": "json",
434
+ "primaryKey": false,
435
+ "notNull": true
436
+ },
437
+ "format_version": {
438
+ "name": "format_version",
439
+ "type": "integer",
440
+ "primaryKey": false,
441
+ "notNull": true
442
+ },
443
+ "status": {
444
+ "name": "status",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "model_id": {
450
+ "name": "model_id",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": false
454
+ },
455
+ "provider_id": {
456
+ "name": "provider_id",
457
+ "type": "text",
458
+ "primaryKey": false,
459
+ "notNull": false
460
+ },
461
+ "usage": {
462
+ "name": "usage",
463
+ "type": "json",
464
+ "primaryKey": false,
465
+ "notNull": false
466
+ },
467
+ "reasoning_durations_ms": {
468
+ "name": "reasoning_durations_ms",
469
+ "type": "json",
470
+ "primaryKey": false,
471
+ "notNull": true
472
+ },
473
+ "error": {
474
+ "name": "error",
475
+ "type": "json",
476
+ "primaryKey": false,
477
+ "notNull": false
478
+ },
479
+ "created_at": {
480
+ "name": "created_at",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": true
484
+ },
485
+ "voice_cut": {
486
+ "name": "voice_cut",
487
+ "type": "json",
488
+ "primaryKey": false,
489
+ "notNull": false
490
+ }
491
+ },
492
+ "indexes": {
493
+ "messages_chat_created_idx": {
494
+ "name": "messages_chat_created_idx",
495
+ "columns": [
496
+ {
497
+ "expression": "chat_id",
498
+ "isExpression": false,
499
+ "asc": true,
500
+ "nulls": "last"
501
+ },
502
+ {
503
+ "expression": "created_at",
504
+ "isExpression": false,
505
+ "asc": true,
506
+ "nulls": "last"
507
+ },
508
+ {
509
+ "expression": "seq",
510
+ "isExpression": false,
511
+ "asc": true,
512
+ "nulls": "last"
513
+ }
514
+ ],
515
+ "isUnique": false,
516
+ "concurrently": false,
517
+ "method": "btree",
518
+ "with": {}
519
+ },
520
+ "messages_streaming_idx": {
521
+ "name": "messages_streaming_idx",
522
+ "columns": [
523
+ {
524
+ "expression": "status",
525
+ "isExpression": false,
526
+ "asc": true,
527
+ "nulls": "last"
528
+ }
529
+ ],
530
+ "isUnique": false,
531
+ "where": "\"agent_chat\".\"messages\".\"status\" = 'streaming'",
532
+ "concurrently": false,
533
+ "method": "btree",
534
+ "with": {}
535
+ }
536
+ },
537
+ "foreignKeys": {
538
+ "messages_chat_id_chats_id_fk": {
539
+ "name": "messages_chat_id_chats_id_fk",
540
+ "tableFrom": "messages",
541
+ "tableTo": "chats",
542
+ "schemaTo": "agent_chat",
543
+ "columnsFrom": [
544
+ "chat_id"
545
+ ],
546
+ "columnsTo": [
547
+ "id"
548
+ ],
549
+ "onDelete": "cascade",
550
+ "onUpdate": "no action"
551
+ }
552
+ },
553
+ "compositePrimaryKeys": {},
554
+ "uniqueConstraints": {},
555
+ "policies": {},
556
+ "checkConstraints": {},
557
+ "isRLSEnabled": false
558
+ },
559
+ "agent_chat.usage_records": {
560
+ "name": "usage_records",
561
+ "schema": "agent_chat",
562
+ "columns": {
563
+ "id": {
564
+ "name": "id",
565
+ "type": "text",
566
+ "primaryKey": true,
567
+ "notNull": true
568
+ },
569
+ "owner_id": {
570
+ "name": "owner_id",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": true
574
+ },
575
+ "chat_id": {
576
+ "name": "chat_id",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": true
580
+ },
581
+ "message_id": {
582
+ "name": "message_id",
583
+ "type": "text",
584
+ "primaryKey": false,
585
+ "notNull": false
586
+ },
587
+ "source": {
588
+ "name": "source",
589
+ "type": "text",
590
+ "primaryKey": false,
591
+ "notNull": true
592
+ },
593
+ "model_id": {
594
+ "name": "model_id",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": true
598
+ },
599
+ "provider_id": {
600
+ "name": "provider_id",
601
+ "type": "text",
602
+ "primaryKey": false,
603
+ "notNull": true
604
+ },
605
+ "input_tokens": {
606
+ "name": "input_tokens",
607
+ "type": "bigint",
608
+ "primaryKey": false,
609
+ "notNull": true
610
+ },
611
+ "cached_input_tokens": {
612
+ "name": "cached_input_tokens",
613
+ "type": "bigint",
614
+ "primaryKey": false,
615
+ "notNull": true
616
+ },
617
+ "cache_write_tokens": {
618
+ "name": "cache_write_tokens",
619
+ "type": "bigint",
620
+ "primaryKey": false,
621
+ "notNull": true
622
+ },
623
+ "output_tokens": {
624
+ "name": "output_tokens",
625
+ "type": "bigint",
626
+ "primaryKey": false,
627
+ "notNull": true
628
+ },
629
+ "reasoning_tokens": {
630
+ "name": "reasoning_tokens",
631
+ "type": "bigint",
632
+ "primaryKey": false,
633
+ "notNull": true
634
+ },
635
+ "cost_usd": {
636
+ "name": "cost_usd",
637
+ "type": "double precision",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ },
641
+ "created_at": {
642
+ "name": "created_at",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true
646
+ }
647
+ },
648
+ "indexes": {
649
+ "usage_records_owner_created_idx": {
650
+ "name": "usage_records_owner_created_idx",
651
+ "columns": [
652
+ {
653
+ "expression": "owner_id",
654
+ "isExpression": false,
655
+ "asc": true,
656
+ "nulls": "last"
657
+ },
658
+ {
659
+ "expression": "created_at",
660
+ "isExpression": false,
661
+ "asc": true,
662
+ "nulls": "last"
663
+ }
664
+ ],
665
+ "isUnique": false,
666
+ "concurrently": false,
667
+ "method": "btree",
668
+ "with": {}
669
+ },
670
+ "usage_records_chat_created_idx": {
671
+ "name": "usage_records_chat_created_idx",
672
+ "columns": [
673
+ {
674
+ "expression": "chat_id",
675
+ "isExpression": false,
676
+ "asc": true,
677
+ "nulls": "last"
678
+ },
679
+ {
680
+ "expression": "created_at",
681
+ "isExpression": false,
682
+ "asc": true,
683
+ "nulls": "last"
684
+ }
685
+ ],
686
+ "isUnique": false,
687
+ "concurrently": false,
688
+ "method": "btree",
689
+ "with": {}
690
+ }
691
+ },
692
+ "foreignKeys": {},
693
+ "compositePrimaryKeys": {},
694
+ "uniqueConstraints": {},
695
+ "policies": {},
696
+ "checkConstraints": {},
697
+ "isRLSEnabled": false
698
+ },
699
+ "agent_chat.user_model_choices": {
700
+ "name": "user_model_choices",
701
+ "schema": "agent_chat",
702
+ "columns": {
703
+ "owner_id": {
704
+ "name": "owner_id",
705
+ "type": "text",
706
+ "primaryKey": true,
707
+ "notNull": true
708
+ },
709
+ "model_id": {
710
+ "name": "model_id",
711
+ "type": "text",
712
+ "primaryKey": false,
713
+ "notNull": true
714
+ },
715
+ "provider_id": {
716
+ "name": "provider_id",
717
+ "type": "text",
718
+ "primaryKey": false,
719
+ "notNull": true
720
+ },
721
+ "reasoning": {
722
+ "name": "reasoning",
723
+ "type": "text",
724
+ "primaryKey": false,
725
+ "notNull": false
726
+ },
727
+ "updated_at": {
728
+ "name": "updated_at",
729
+ "type": "text",
730
+ "primaryKey": false,
731
+ "notNull": true
732
+ }
733
+ },
734
+ "indexes": {},
735
+ "foreignKeys": {},
736
+ "compositePrimaryKeys": {},
737
+ "uniqueConstraints": {},
738
+ "policies": {},
739
+ "checkConstraints": {},
740
+ "isRLSEnabled": false
741
+ },
742
+ "agent_chat.voice_choices": {
743
+ "name": "voice_choices",
744
+ "schema": "agent_chat",
745
+ "columns": {
746
+ "owner_id": {
747
+ "name": "owner_id",
748
+ "type": "text",
749
+ "primaryKey": true,
750
+ "notNull": true
751
+ },
752
+ "voice_id": {
753
+ "name": "voice_id",
754
+ "type": "text",
755
+ "primaryKey": false,
756
+ "notNull": true
757
+ },
758
+ "updated_at": {
759
+ "name": "updated_at",
760
+ "type": "text",
761
+ "primaryKey": false,
762
+ "notNull": true
763
+ }
764
+ },
765
+ "indexes": {},
766
+ "foreignKeys": {},
767
+ "compositePrimaryKeys": {},
768
+ "uniqueConstraints": {},
769
+ "policies": {},
770
+ "checkConstraints": {},
771
+ "isRLSEnabled": false
772
+ }
773
+ },
774
+ "enums": {},
775
+ "schemas": {
776
+ "agent_chat": "agent_chat"
777
+ },
778
+ "sequences": {},
779
+ "roles": {},
780
+ "policies": {},
781
+ "views": {},
782
+ "_meta": {
783
+ "columns": {},
784
+ "schemas": {},
785
+ "tables": {}
786
+ }
787
+ }