@elizaos/plugin-sql 1.0.0-alpha.63 → 1.0.0-alpha.64

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.
@@ -1,1425 +1,1285 @@
1
1
  {
2
- "id": "e868cf2d-10a2-406f-a31e-9342a0f29c35",
3
- "prevId": "00000000-0000-0000-0000-000000000000",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.agents": {
8
- "name": "agents",
9
- "schema": "",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "uuid",
14
- "primaryKey": true,
15
- "notNull": true,
16
- "default": "gen_random_uuid()"
17
- },
18
- "enabled": {
19
- "name": "enabled",
20
- "type": "boolean",
21
- "primaryKey": false,
22
- "notNull": true,
23
- "default": "true"
24
- },
25
- "createdAt": {
26
- "name": "createdAt",
27
- "type": "timestamptz",
28
- "primaryKey": false,
29
- "notNull": true,
30
- "default": "now()"
31
- },
32
- "updatedAt": {
33
- "name": "updatedAt",
34
- "type": "timestamptz",
35
- "primaryKey": false,
36
- "notNull": true,
37
- "default": "now()"
38
- },
39
- "name": {
40
- "name": "name",
41
- "type": "text",
42
- "primaryKey": false,
43
- "notNull": false
44
- },
45
- "username": {
46
- "name": "username",
47
- "type": "text",
48
- "primaryKey": false,
49
- "notNull": false
50
- },
51
- "system": {
52
- "name": "system",
53
- "type": "text",
54
- "primaryKey": false,
55
- "notNull": false
56
- },
57
- "bio": {
58
- "name": "bio",
59
- "type": "jsonb",
60
- "primaryKey": false,
61
- "notNull": true
62
- },
63
- "message_examples": {
64
- "name": "message_examples",
65
- "type": "jsonb",
66
- "primaryKey": false,
67
- "notNull": false,
68
- "default": "'[]'::jsonb"
69
- },
70
- "post_examples": {
71
- "name": "post_examples",
72
- "type": "jsonb",
73
- "primaryKey": false,
74
- "notNull": false,
75
- "default": "'[]'::jsonb"
76
- },
77
- "topics": {
78
- "name": "topics",
79
- "type": "jsonb",
80
- "primaryKey": false,
81
- "notNull": false,
82
- "default": "'[]'::jsonb"
83
- },
84
- "adjectives": {
85
- "name": "adjectives",
86
- "type": "jsonb",
87
- "primaryKey": false,
88
- "notNull": false,
89
- "default": "'[]'::jsonb"
90
- },
91
- "knowledge": {
92
- "name": "knowledge",
93
- "type": "jsonb",
94
- "primaryKey": false,
95
- "notNull": false,
96
- "default": "'[]'::jsonb"
97
- },
98
- "plugins": {
99
- "name": "plugins",
100
- "type": "jsonb",
101
- "primaryKey": false,
102
- "notNull": false,
103
- "default": "'[]'::jsonb"
104
- },
105
- "settings": {
106
- "name": "settings",
107
- "type": "jsonb",
108
- "primaryKey": false,
109
- "notNull": false,
110
- "default": "'{}'::jsonb"
111
- },
112
- "style": {
113
- "name": "style",
114
- "type": "jsonb",
115
- "primaryKey": false,
116
- "notNull": false,
117
- "default": "'{}'::jsonb"
118
- }
119
- },
120
- "indexes": {},
121
- "foreignKeys": {},
122
- "compositePrimaryKeys": {},
123
- "uniqueConstraints": {
124
- "name_unique": {
125
- "name": "name_unique",
126
- "nullsNotDistinct": false,
127
- "columns": [
128
- "name"
129
- ]
130
- }
131
- },
132
- "policies": {},
133
- "checkConstraints": {},
134
- "isRLSEnabled": false
135
- },
136
- "public.cache": {
137
- "name": "cache",
138
- "schema": "",
139
- "columns": {
140
- "id": {
141
- "name": "id",
142
- "type": "uuid",
143
- "primaryKey": true,
144
- "notNull": true,
145
- "default": "gen_random_uuid()"
146
- },
147
- "key": {
148
- "name": "key",
149
- "type": "text",
150
- "primaryKey": false,
151
- "notNull": true
152
- },
153
- "agentId": {
154
- "name": "agentId",
155
- "type": "uuid",
156
- "primaryKey": false,
157
- "notNull": true
158
- },
159
- "value": {
160
- "name": "value",
161
- "type": "jsonb",
162
- "primaryKey": false,
163
- "notNull": true
164
- },
165
- "createdAt": {
166
- "name": "createdAt",
167
- "type": "timestamptz",
168
- "primaryKey": false,
169
- "notNull": true,
170
- "default": "now()"
171
- },
172
- "expiresAt": {
173
- "name": "expiresAt",
174
- "type": "timestamptz",
175
- "primaryKey": false,
176
- "notNull": false
177
- }
178
- },
179
- "indexes": {},
180
- "foreignKeys": {
181
- "cache_agentId_agents_id_fk": {
182
- "name": "cache_agentId_agents_id_fk",
183
- "tableFrom": "cache",
184
- "tableTo": "agents",
185
- "columnsFrom": [
186
- "agentId"
187
- ],
188
- "columnsTo": [
189
- "id"
190
- ],
191
- "onDelete": "cascade",
192
- "onUpdate": "no action"
193
- }
194
- },
195
- "compositePrimaryKeys": {},
196
- "uniqueConstraints": {
197
- "cache_key_agent_unique": {
198
- "name": "cache_key_agent_unique",
199
- "nullsNotDistinct": false,
200
- "columns": [
201
- "key",
202
- "agentId"
203
- ]
204
- }
205
- },
206
- "policies": {},
207
- "checkConstraints": {},
208
- "isRLSEnabled": false
209
- },
210
- "public.components": {
211
- "name": "components",
212
- "schema": "",
213
- "columns": {
214
- "id": {
215
- "name": "id",
216
- "type": "uuid",
217
- "primaryKey": true,
218
- "notNull": true,
219
- "default": "gen_random_uuid()"
220
- },
221
- "entityId": {
222
- "name": "entityId",
223
- "type": "uuid",
224
- "primaryKey": false,
225
- "notNull": true
226
- },
227
- "agentId": {
228
- "name": "agentId",
229
- "type": "uuid",
230
- "primaryKey": false,
231
- "notNull": true
232
- },
233
- "roomId": {
234
- "name": "roomId",
235
- "type": "uuid",
236
- "primaryKey": false,
237
- "notNull": true
238
- },
239
- "worldId": {
240
- "name": "worldId",
241
- "type": "uuid",
242
- "primaryKey": false,
243
- "notNull": false
244
- },
245
- "sourceEntityId": {
246
- "name": "sourceEntityId",
247
- "type": "uuid",
248
- "primaryKey": false,
249
- "notNull": false
250
- },
251
- "type": {
252
- "name": "type",
253
- "type": "text",
254
- "primaryKey": false,
255
- "notNull": true
256
- },
257
- "data": {
258
- "name": "data",
259
- "type": "jsonb",
260
- "primaryKey": false,
261
- "notNull": false,
262
- "default": "'{}'::jsonb"
263
- },
264
- "createdAt": {
265
- "name": "createdAt",
266
- "type": "timestamptz",
267
- "primaryKey": false,
268
- "notNull": true,
269
- "default": "now()"
270
- }
271
- },
272
- "indexes": {},
273
- "foreignKeys": {
274
- "components_entityId_entities_id_fk": {
275
- "name": "components_entityId_entities_id_fk",
276
- "tableFrom": "components",
277
- "tableTo": "entities",
278
- "columnsFrom": [
279
- "entityId"
280
- ],
281
- "columnsTo": [
282
- "id"
283
- ],
284
- "onDelete": "cascade",
285
- "onUpdate": "no action"
286
- },
287
- "components_agentId_agents_id_fk": {
288
- "name": "components_agentId_agents_id_fk",
289
- "tableFrom": "components",
290
- "tableTo": "agents",
291
- "columnsFrom": [
292
- "agentId"
293
- ],
294
- "columnsTo": [
295
- "id"
296
- ],
297
- "onDelete": "cascade",
298
- "onUpdate": "no action"
299
- },
300
- "components_roomId_rooms_id_fk": {
301
- "name": "components_roomId_rooms_id_fk",
302
- "tableFrom": "components",
303
- "tableTo": "rooms",
304
- "columnsFrom": [
305
- "roomId"
306
- ],
307
- "columnsTo": [
308
- "id"
309
- ],
310
- "onDelete": "cascade",
311
- "onUpdate": "no action"
312
- },
313
- "components_worldId_worlds_id_fk": {
314
- "name": "components_worldId_worlds_id_fk",
315
- "tableFrom": "components",
316
- "tableTo": "worlds",
317
- "columnsFrom": [
318
- "worldId"
319
- ],
320
- "columnsTo": [
321
- "id"
322
- ],
323
- "onDelete": "cascade",
324
- "onUpdate": "no action"
325
- },
326
- "components_sourceEntityId_entities_id_fk": {
327
- "name": "components_sourceEntityId_entities_id_fk",
328
- "tableFrom": "components",
329
- "tableTo": "entities",
330
- "columnsFrom": [
331
- "sourceEntityId"
332
- ],
333
- "columnsTo": [
334
- "id"
335
- ],
336
- "onDelete": "cascade",
337
- "onUpdate": "no action"
338
- }
339
- },
340
- "compositePrimaryKeys": {},
341
- "uniqueConstraints": {},
342
- "policies": {},
343
- "checkConstraints": {},
344
- "isRLSEnabled": false
345
- },
346
- "public.embeddings": {
347
- "name": "embeddings",
348
- "schema": "",
349
- "columns": {
350
- "id": {
351
- "name": "id",
352
- "type": "uuid",
353
- "primaryKey": true,
354
- "notNull": true,
355
- "default": "gen_random_uuid()"
356
- },
357
- "memory_id": {
358
- "name": "memory_id",
359
- "type": "uuid",
360
- "primaryKey": false,
361
- "notNull": false
362
- },
363
- "created_at": {
364
- "name": "created_at",
365
- "type": "timestamptz",
366
- "primaryKey": false,
367
- "notNull": true,
368
- "default": "now()"
369
- },
370
- "dim_384": {
371
- "name": "dim_384",
372
- "type": "vector(384)",
373
- "primaryKey": false,
374
- "notNull": false
375
- },
376
- "dim_512": {
377
- "name": "dim_512",
378
- "type": "vector(512)",
379
- "primaryKey": false,
380
- "notNull": false
381
- },
382
- "dim_768": {
383
- "name": "dim_768",
384
- "type": "vector(768)",
385
- "primaryKey": false,
386
- "notNull": false
387
- },
388
- "dim_1024": {
389
- "name": "dim_1024",
390
- "type": "vector(1024)",
391
- "primaryKey": false,
392
- "notNull": false
393
- },
394
- "dim_1536": {
395
- "name": "dim_1536",
396
- "type": "vector(1536)",
397
- "primaryKey": false,
398
- "notNull": false
399
- },
400
- "dim_3072": {
401
- "name": "dim_3072",
402
- "type": "vector(3072)",
403
- "primaryKey": false,
404
- "notNull": false
405
- }
406
- },
407
- "indexes": {
408
- "idx_embedding_memory": {
409
- "name": "idx_embedding_memory",
410
- "columns": [
411
- {
412
- "expression": "memory_id",
413
- "isExpression": false,
414
- "asc": true,
415
- "nulls": "last"
416
- }
417
- ],
418
- "isUnique": false,
419
- "concurrently": false,
420
- "method": "btree",
421
- "with": {}
422
- }
423
- },
424
- "foreignKeys": {
425
- "embeddings_memory_id_memories_id_fk": {
426
- "name": "embeddings_memory_id_memories_id_fk",
427
- "tableFrom": "embeddings",
428
- "tableTo": "memories",
429
- "columnsFrom": [
430
- "memory_id"
431
- ],
432
- "columnsTo": [
433
- "id"
434
- ],
435
- "onDelete": "no action",
436
- "onUpdate": "no action"
437
- },
438
- "fk_embedding_memory": {
439
- "name": "fk_embedding_memory",
440
- "tableFrom": "embeddings",
441
- "tableTo": "memories",
442
- "columnsFrom": [
443
- "memory_id"
444
- ],
445
- "columnsTo": [
446
- "id"
447
- ],
448
- "onDelete": "cascade",
449
- "onUpdate": "no action"
450
- }
451
- },
452
- "compositePrimaryKeys": {},
453
- "uniqueConstraints": {},
454
- "policies": {},
455
- "checkConstraints": {
456
- "embedding_source_check": {
457
- "name": "embedding_source_check",
458
- "value": "\"memory_id\" IS NOT NULL"
459
- }
460
- },
461
- "isRLSEnabled": false
462
- },
463
- "public.entities": {
464
- "name": "entities",
465
- "schema": "",
466
- "columns": {
467
- "id": {
468
- "name": "id",
469
- "type": "uuid",
470
- "primaryKey": true,
471
- "notNull": true
472
- },
473
- "agentId": {
474
- "name": "agentId",
475
- "type": "uuid",
476
- "primaryKey": false,
477
- "notNull": true
478
- },
479
- "createdAt": {
480
- "name": "createdAt",
481
- "type": "timestamptz",
482
- "primaryKey": false,
483
- "notNull": true,
484
- "default": "now()"
485
- },
486
- "names": {
487
- "name": "names",
488
- "type": "text[]",
489
- "primaryKey": false,
490
- "notNull": false,
491
- "default": "'{}'::text[]"
492
- },
493
- "metadata": {
494
- "name": "metadata",
495
- "type": "jsonb",
496
- "primaryKey": false,
497
- "notNull": false,
498
- "default": "'{}'::jsonb"
499
- }
500
- },
501
- "indexes": {},
502
- "foreignKeys": {
503
- "entities_agentId_agents_id_fk": {
504
- "name": "entities_agentId_agents_id_fk",
505
- "tableFrom": "entities",
506
- "tableTo": "agents",
507
- "columnsFrom": [
508
- "agentId"
509
- ],
510
- "columnsTo": [
511
- "id"
512
- ],
513
- "onDelete": "cascade",
514
- "onUpdate": "no action"
515
- }
516
- },
517
- "compositePrimaryKeys": {},
518
- "uniqueConstraints": {
519
- "id_agent_id_unique": {
520
- "name": "id_agent_id_unique",
521
- "nullsNotDistinct": false,
522
- "columns": [
523
- "id",
524
- "agentId"
525
- ]
526
- }
527
- },
528
- "policies": {},
529
- "checkConstraints": {},
530
- "isRLSEnabled": false
531
- },
532
- "public.logs": {
533
- "name": "logs",
534
- "schema": "",
535
- "columns": {
536
- "id": {
537
- "name": "id",
538
- "type": "uuid",
539
- "primaryKey": false,
540
- "notNull": true,
541
- "default": "gen_random_uuid()"
542
- },
543
- "createdAt": {
544
- "name": "createdAt",
545
- "type": "timestamptz",
546
- "primaryKey": false,
547
- "notNull": true,
548
- "default": "now()"
549
- },
550
- "entityId": {
551
- "name": "entityId",
552
- "type": "uuid",
553
- "primaryKey": false,
554
- "notNull": true
555
- },
556
- "body": {
557
- "name": "body",
558
- "type": "jsonb",
559
- "primaryKey": false,
560
- "notNull": true
561
- },
562
- "type": {
563
- "name": "type",
564
- "type": "text",
565
- "primaryKey": false,
566
- "notNull": true
567
- },
568
- "roomId": {
569
- "name": "roomId",
570
- "type": "uuid",
571
- "primaryKey": false,
572
- "notNull": true
573
- }
574
- },
575
- "indexes": {},
576
- "foreignKeys": {
577
- "logs_entityId_entities_id_fk": {
578
- "name": "logs_entityId_entities_id_fk",
579
- "tableFrom": "logs",
580
- "tableTo": "entities",
581
- "columnsFrom": [
582
- "entityId"
583
- ],
584
- "columnsTo": [
585
- "id"
586
- ],
587
- "onDelete": "no action",
588
- "onUpdate": "no action"
589
- },
590
- "logs_roomId_rooms_id_fk": {
591
- "name": "logs_roomId_rooms_id_fk",
592
- "tableFrom": "logs",
593
- "tableTo": "rooms",
594
- "columnsFrom": [
595
- "roomId"
596
- ],
597
- "columnsTo": [
598
- "id"
599
- ],
600
- "onDelete": "no action",
601
- "onUpdate": "no action"
602
- },
603
- "fk_room": {
604
- "name": "fk_room",
605
- "tableFrom": "logs",
606
- "tableTo": "rooms",
607
- "columnsFrom": [
608
- "roomId"
609
- ],
610
- "columnsTo": [
611
- "id"
612
- ],
613
- "onDelete": "cascade",
614
- "onUpdate": "no action"
615
- },
616
- "fk_user": {
617
- "name": "fk_user",
618
- "tableFrom": "logs",
619
- "tableTo": "entities",
620
- "columnsFrom": [
621
- "entityId"
622
- ],
623
- "columnsTo": [
624
- "id"
625
- ],
626
- "onDelete": "cascade",
627
- "onUpdate": "no action"
628
- }
629
- },
630
- "compositePrimaryKeys": {},
631
- "uniqueConstraints": {},
632
- "policies": {},
633
- "checkConstraints": {},
634
- "isRLSEnabled": false
635
- },
636
- "public.memories": {
637
- "name": "memories",
638
- "schema": "",
639
- "columns": {
640
- "id": {
641
- "name": "id",
642
- "type": "uuid",
643
- "primaryKey": true,
644
- "notNull": true
645
- },
646
- "type": {
647
- "name": "type",
648
- "type": "text",
649
- "primaryKey": false,
650
- "notNull": true
651
- },
652
- "createdAt": {
653
- "name": "createdAt",
654
- "type": "timestamptz",
655
- "primaryKey": false,
656
- "notNull": true,
657
- "default": "now()"
658
- },
659
- "content": {
660
- "name": "content",
661
- "type": "jsonb",
662
- "primaryKey": false,
663
- "notNull": true
664
- },
665
- "entityId": {
666
- "name": "entityId",
667
- "type": "uuid",
668
- "primaryKey": false,
669
- "notNull": false
670
- },
671
- "agentId": {
672
- "name": "agentId",
673
- "type": "uuid",
674
- "primaryKey": false,
675
- "notNull": false
676
- },
677
- "roomId": {
678
- "name": "roomId",
679
- "type": "uuid",
680
- "primaryKey": false,
681
- "notNull": false
682
- },
683
- "unique": {
684
- "name": "unique",
685
- "type": "boolean",
686
- "primaryKey": false,
687
- "notNull": true,
688
- "default": true
689
- },
690
- "metadata": {
691
- "name": "metadata",
692
- "type": "jsonb",
693
- "primaryKey": false,
694
- "notNull": true,
695
- "default": "'{}'::jsonb"
696
- }
697
- },
698
- "indexes": {
699
- "idx_memories_type_room": {
700
- "name": "idx_memories_type_room",
701
- "columns": [
702
- {
703
- "expression": "type",
704
- "isExpression": false,
705
- "asc": true,
706
- "nulls": "last"
707
- },
708
- {
709
- "expression": "roomId",
710
- "isExpression": false,
711
- "asc": true,
712
- "nulls": "last"
713
- }
714
- ],
715
- "isUnique": false,
716
- "concurrently": false,
717
- "method": "btree",
718
- "with": {}
719
- },
720
- "idx_memories_metadata_type": {
721
- "name": "idx_memories_metadata_type",
722
- "columns": [
723
- {
724
- "expression": "((metadata->>'type'))",
725
- "asc": true,
726
- "isExpression": true,
727
- "nulls": "last"
728
- }
729
- ],
730
- "isUnique": false,
731
- "concurrently": false,
732
- "method": "btree",
733
- "with": {}
734
- },
735
- "idx_memories_document_id": {
736
- "name": "idx_memories_document_id",
737
- "columns": [
738
- {
739
- "expression": "((metadata->>'documentId'))",
740
- "asc": true,
741
- "isExpression": true,
742
- "nulls": "last"
743
- }
744
- ],
745
- "isUnique": false,
746
- "concurrently": false,
747
- "method": "btree",
748
- "with": {}
749
- },
750
- "idx_fragments_order": {
751
- "name": "idx_fragments_order",
752
- "columns": [
753
- {
754
- "expression": "((metadata->>'documentId'))",
755
- "asc": true,
756
- "isExpression": true,
757
- "nulls": "last"
758
- },
759
- {
760
- "expression": "((metadata->>'position'))",
761
- "asc": true,
762
- "isExpression": true,
763
- "nulls": "last"
764
- }
765
- ],
766
- "isUnique": false,
767
- "concurrently": false,
768
- "method": "btree",
769
- "with": {}
770
- }
771
- },
772
- "foreignKeys": {
773
- "memories_entityId_entities_id_fk": {
774
- "name": "memories_entityId_entities_id_fk",
775
- "tableFrom": "memories",
776
- "tableTo": "entities",
777
- "columnsFrom": [
778
- "entityId"
779
- ],
780
- "columnsTo": [
781
- "id"
782
- ],
783
- "onDelete": "cascade",
784
- "onUpdate": "no action"
785
- },
786
- "memories_agentId_agents_id_fk": {
787
- "name": "memories_agentId_agents_id_fk",
788
- "tableFrom": "memories",
789
- "tableTo": "agents",
790
- "columnsFrom": [
791
- "agentId"
792
- ],
793
- "columnsTo": [
794
- "id"
795
- ],
796
- "onDelete": "cascade",
797
- "onUpdate": "no action"
798
- },
799
- "memories_roomId_rooms_id_fk": {
800
- "name": "memories_roomId_rooms_id_fk",
801
- "tableFrom": "memories",
802
- "tableTo": "rooms",
803
- "columnsFrom": [
804
- "roomId"
805
- ],
806
- "columnsTo": [
807
- "id"
808
- ],
809
- "onDelete": "cascade",
810
- "onUpdate": "no action"
811
- },
812
- "fk_room": {
813
- "name": "fk_room",
814
- "tableFrom": "memories",
815
- "tableTo": "rooms",
816
- "columnsFrom": [
817
- "roomId"
818
- ],
819
- "columnsTo": [
820
- "id"
821
- ],
822
- "onDelete": "cascade",
823
- "onUpdate": "no action"
824
- },
825
- "fk_user": {
826
- "name": "fk_user",
827
- "tableFrom": "memories",
828
- "tableTo": "entities",
829
- "columnsFrom": [
830
- "entityId"
831
- ],
832
- "columnsTo": [
833
- "id"
834
- ],
835
- "onDelete": "cascade",
836
- "onUpdate": "no action"
837
- },
838
- "fk_agent": {
839
- "name": "fk_agent",
840
- "tableFrom": "memories",
841
- "tableTo": "entities",
842
- "columnsFrom": [
843
- "agentId"
844
- ],
845
- "columnsTo": [
846
- "id"
847
- ],
848
- "onDelete": "cascade",
849
- "onUpdate": "no action"
850
- }
851
- },
852
- "compositePrimaryKeys": {},
853
- "uniqueConstraints": {},
854
- "policies": {},
855
- "checkConstraints": {
856
- "fragment_metadata_check": {
857
- "name": "fragment_metadata_check",
858
- "value": "\n CASE \n WHEN metadata->>'type' = 'fragment' THEN\n metadata ? 'documentId' AND \n metadata ? 'position'\n ELSE true\n END\n "
859
- },
860
- "document_metadata_check": {
861
- "name": "document_metadata_check",
862
- "value": "\n CASE \n WHEN metadata->>'type' = 'document' THEN\n metadata ? 'timestamp'\n ELSE true\n END\n "
863
- }
864
- },
865
- "isRLSEnabled": false
866
- },
867
- "public.participants": {
868
- "name": "participants",
869
- "schema": "",
870
- "columns": {
871
- "id": {
872
- "name": "id",
873
- "type": "uuid",
874
- "primaryKey": true,
875
- "notNull": true,
876
- "default": "gen_random_uuid()"
877
- },
878
- "createdAt": {
879
- "name": "createdAt",
880
- "type": "timestamptz",
881
- "primaryKey": false,
882
- "notNull": true,
883
- "default": "now()"
884
- },
885
- "entityId": {
886
- "name": "entityId",
887
- "type": "uuid",
888
- "primaryKey": false,
889
- "notNull": false
890
- },
891
- "roomId": {
892
- "name": "roomId",
893
- "type": "uuid",
894
- "primaryKey": false,
895
- "notNull": false
896
- },
897
- "agentId": {
898
- "name": "agentId",
899
- "type": "uuid",
900
- "primaryKey": false,
901
- "notNull": false
902
- },
903
- "roomState": {
904
- "name": "roomState",
905
- "type": "text",
906
- "primaryKey": false,
907
- "notNull": false
908
- }
909
- },
910
- "indexes": {
911
- "idx_participants_user": {
912
- "name": "idx_participants_user",
913
- "columns": [
914
- {
915
- "expression": "entityId",
916
- "isExpression": false,
917
- "asc": true,
918
- "nulls": "last"
919
- }
920
- ],
921
- "isUnique": false,
922
- "concurrently": false,
923
- "method": "btree",
924
- "with": {}
925
- },
926
- "idx_participants_room": {
927
- "name": "idx_participants_room",
928
- "columns": [
929
- {
930
- "expression": "roomId",
931
- "isExpression": false,
932
- "asc": true,
933
- "nulls": "last"
934
- }
935
- ],
936
- "isUnique": false,
937
- "concurrently": false,
938
- "method": "btree",
939
- "with": {}
940
- }
941
- },
942
- "foreignKeys": {
943
- "participants_entityId_entities_id_fk": {
944
- "name": "participants_entityId_entities_id_fk",
945
- "tableFrom": "participants",
946
- "tableTo": "entities",
947
- "columnsFrom": [
948
- "entityId"
949
- ],
950
- "columnsTo": [
951
- "id"
952
- ],
953
- "onDelete": "cascade",
954
- "onUpdate": "no action"
955
- },
956
- "participants_roomId_rooms_id_fk": {
957
- "name": "participants_roomId_rooms_id_fk",
958
- "tableFrom": "participants",
959
- "tableTo": "rooms",
960
- "columnsFrom": [
961
- "roomId"
962
- ],
963
- "columnsTo": [
964
- "id"
965
- ],
966
- "onDelete": "cascade",
967
- "onUpdate": "no action"
968
- },
969
- "participants_agentId_agents_id_fk": {
970
- "name": "participants_agentId_agents_id_fk",
971
- "tableFrom": "participants",
972
- "tableTo": "agents",
973
- "columnsFrom": [
974
- "agentId"
975
- ],
976
- "columnsTo": [
977
- "id"
978
- ],
979
- "onDelete": "cascade",
980
- "onUpdate": "no action"
981
- },
982
- "fk_room": {
983
- "name": "fk_room",
984
- "tableFrom": "participants",
985
- "tableTo": "rooms",
986
- "columnsFrom": [
987
- "roomId"
988
- ],
989
- "columnsTo": [
990
- "id"
991
- ],
992
- "onDelete": "cascade",
993
- "onUpdate": "no action"
994
- },
995
- "fk_user": {
996
- "name": "fk_user",
997
- "tableFrom": "participants",
998
- "tableTo": "entities",
999
- "columnsFrom": [
1000
- "entityId"
1001
- ],
1002
- "columnsTo": [
1003
- "id"
1004
- ],
1005
- "onDelete": "cascade",
1006
- "onUpdate": "no action"
1007
- }
1008
- },
1009
- "compositePrimaryKeys": {},
1010
- "uniqueConstraints": {},
1011
- "policies": {},
1012
- "checkConstraints": {},
1013
- "isRLSEnabled": false
1014
- },
1015
- "public.relationships": {
1016
- "name": "relationships",
1017
- "schema": "",
1018
- "columns": {
1019
- "id": {
1020
- "name": "id",
1021
- "type": "uuid",
1022
- "primaryKey": true,
1023
- "notNull": true,
1024
- "default": "gen_random_uuid()"
1025
- },
1026
- "createdAt": {
1027
- "name": "createdAt",
1028
- "type": "timestamptz",
1029
- "primaryKey": false,
1030
- "notNull": true,
1031
- "default": "now()"
1032
- },
1033
- "sourceEntityId": {
1034
- "name": "sourceEntityId",
1035
- "type": "uuid",
1036
- "primaryKey": false,
1037
- "notNull": true
1038
- },
1039
- "targetEntityId": {
1040
- "name": "targetEntityId",
1041
- "type": "uuid",
1042
- "primaryKey": false,
1043
- "notNull": true
1044
- },
1045
- "agentId": {
1046
- "name": "agentId",
1047
- "type": "uuid",
1048
- "primaryKey": false,
1049
- "notNull": true
1050
- },
1051
- "tags": {
1052
- "name": "tags",
1053
- "type": "text[]",
1054
- "primaryKey": false,
1055
- "notNull": false
1056
- },
1057
- "metadata": {
1058
- "name": "metadata",
1059
- "type": "jsonb",
1060
- "primaryKey": false,
1061
- "notNull": false
1062
- }
1063
- },
1064
- "indexes": {
1065
- "idx_relationships_users": {
1066
- "name": "idx_relationships_users",
1067
- "columns": [
1068
- {
1069
- "expression": "sourceEntityId",
1070
- "isExpression": false,
1071
- "asc": true,
1072
- "nulls": "last"
1073
- },
1074
- {
1075
- "expression": "targetEntityId",
1076
- "isExpression": false,
1077
- "asc": true,
1078
- "nulls": "last"
1079
- }
1080
- ],
1081
- "isUnique": false,
1082
- "concurrently": false,
1083
- "method": "btree",
1084
- "with": {}
1085
- }
1086
- },
1087
- "foreignKeys": {
1088
- "relationships_sourceEntityId_entities_id_fk": {
1089
- "name": "relationships_sourceEntityId_entities_id_fk",
1090
- "tableFrom": "relationships",
1091
- "tableTo": "entities",
1092
- "columnsFrom": [
1093
- "sourceEntityId"
1094
- ],
1095
- "columnsTo": [
1096
- "id"
1097
- ],
1098
- "onDelete": "cascade",
1099
- "onUpdate": "no action"
1100
- },
1101
- "relationships_targetEntityId_entities_id_fk": {
1102
- "name": "relationships_targetEntityId_entities_id_fk",
1103
- "tableFrom": "relationships",
1104
- "tableTo": "entities",
1105
- "columnsFrom": [
1106
- "targetEntityId"
1107
- ],
1108
- "columnsTo": [
1109
- "id"
1110
- ],
1111
- "onDelete": "cascade",
1112
- "onUpdate": "no action"
1113
- },
1114
- "relationships_agentId_agents_id_fk": {
1115
- "name": "relationships_agentId_agents_id_fk",
1116
- "tableFrom": "relationships",
1117
- "tableTo": "agents",
1118
- "columnsFrom": [
1119
- "agentId"
1120
- ],
1121
- "columnsTo": [
1122
- "id"
1123
- ],
1124
- "onDelete": "cascade",
1125
- "onUpdate": "no action"
1126
- },
1127
- "fk_user_a": {
1128
- "name": "fk_user_a",
1129
- "tableFrom": "relationships",
1130
- "tableTo": "entities",
1131
- "columnsFrom": [
1132
- "sourceEntityId"
1133
- ],
1134
- "columnsTo": [
1135
- "id"
1136
- ],
1137
- "onDelete": "cascade",
1138
- "onUpdate": "no action"
1139
- },
1140
- "fk_user_b": {
1141
- "name": "fk_user_b",
1142
- "tableFrom": "relationships",
1143
- "tableTo": "entities",
1144
- "columnsFrom": [
1145
- "targetEntityId"
1146
- ],
1147
- "columnsTo": [
1148
- "id"
1149
- ],
1150
- "onDelete": "cascade",
1151
- "onUpdate": "no action"
1152
- }
1153
- },
1154
- "compositePrimaryKeys": {},
1155
- "uniqueConstraints": {
1156
- "unique_relationship": {
1157
- "name": "unique_relationship",
1158
- "nullsNotDistinct": false,
1159
- "columns": [
1160
- "sourceEntityId",
1161
- "targetEntityId",
1162
- "agentId"
1163
- ]
1164
- }
1165
- },
1166
- "policies": {},
1167
- "checkConstraints": {},
1168
- "isRLSEnabled": false
1169
- },
1170
- "public.rooms": {
1171
- "name": "rooms",
1172
- "schema": "",
1173
- "columns": {
1174
- "id": {
1175
- "name": "id",
1176
- "type": "uuid",
1177
- "primaryKey": true,
1178
- "notNull": true,
1179
- "default": "gen_random_uuid()"
1180
- },
1181
- "agentId": {
1182
- "name": "agentId",
1183
- "type": "uuid",
1184
- "primaryKey": false,
1185
- "notNull": false
1186
- },
1187
- "source": {
1188
- "name": "source",
1189
- "type": "text",
1190
- "primaryKey": false,
1191
- "notNull": true
1192
- },
1193
- "type": {
1194
- "name": "type",
1195
- "type": "text",
1196
- "primaryKey": false,
1197
- "notNull": true
1198
- },
1199
- "serverId": {
1200
- "name": "serverId",
1201
- "type": "text",
1202
- "primaryKey": false,
1203
- "notNull": false
1204
- },
1205
- "worldId": {
1206
- "name": "worldId",
1207
- "type": "uuid",
1208
- "primaryKey": false,
1209
- "notNull": false
1210
- },
1211
- "name": {
1212
- "name": "name",
1213
- "type": "text",
1214
- "primaryKey": false,
1215
- "notNull": false
1216
- },
1217
- "metadata": {
1218
- "name": "metadata",
1219
- "type": "jsonb",
1220
- "primaryKey": false,
1221
- "notNull": false
1222
- },
1223
- "channelId": {
1224
- "name": "channelId",
1225
- "type": "text",
1226
- "primaryKey": false,
1227
- "notNull": false
1228
- },
1229
- "createdAt": {
1230
- "name": "createdAt",
1231
- "type": "timestamptz",
1232
- "primaryKey": false,
1233
- "notNull": true,
1234
- "default": "now()"
1235
- }
1236
- },
1237
- "indexes": {},
1238
- "foreignKeys": {
1239
- "rooms_agentId_agents_id_fk": {
1240
- "name": "rooms_agentId_agents_id_fk",
1241
- "tableFrom": "rooms",
1242
- "tableTo": "agents",
1243
- "columnsFrom": [
1244
- "agentId"
1245
- ],
1246
- "columnsTo": [
1247
- "id"
1248
- ],
1249
- "onDelete": "cascade",
1250
- "onUpdate": "no action"
1251
- },
1252
- "rooms_worldId_worlds_id_fk": {
1253
- "name": "rooms_worldId_worlds_id_fk",
1254
- "tableFrom": "rooms",
1255
- "tableTo": "worlds",
1256
- "columnsFrom": [
1257
- "worldId"
1258
- ],
1259
- "columnsTo": [
1260
- "id"
1261
- ],
1262
- "onDelete": "cascade",
1263
- "onUpdate": "no action"
1264
- }
1265
- },
1266
- "compositePrimaryKeys": {},
1267
- "uniqueConstraints": {},
1268
- "policies": {},
1269
- "checkConstraints": {},
1270
- "isRLSEnabled": false
1271
- },
1272
- "public.tasks": {
1273
- "name": "tasks",
1274
- "schema": "",
1275
- "columns": {
1276
- "id": {
1277
- "name": "id",
1278
- "type": "uuid",
1279
- "primaryKey": true,
1280
- "notNull": true,
1281
- "default": "gen_random_uuid()"
1282
- },
1283
- "name": {
1284
- "name": "name",
1285
- "type": "text",
1286
- "primaryKey": false,
1287
- "notNull": true
1288
- },
1289
- "description": {
1290
- "name": "description",
1291
- "type": "text",
1292
- "primaryKey": false,
1293
- "notNull": true
1294
- },
1295
- "room_id": {
1296
- "name": "room_id",
1297
- "type": "uuid",
1298
- "primaryKey": false,
1299
- "notNull": false
1300
- },
1301
- "world_id": {
1302
- "name": "world_id",
1303
- "type": "uuid",
1304
- "primaryKey": false,
1305
- "notNull": false
1306
- },
1307
- "agent_id": {
1308
- "name": "agent_id",
1309
- "type": "uuid",
1310
- "primaryKey": false,
1311
- "notNull": true
1312
- },
1313
- "tags": {
1314
- "name": "tags",
1315
- "type": "text[]",
1316
- "primaryKey": false,
1317
- "notNull": false
1318
- },
1319
- "metadata": {
1320
- "name": "metadata",
1321
- "type": "jsonb",
1322
- "primaryKey": false,
1323
- "notNull": false
1324
- },
1325
- "created_at": {
1326
- "name": "created_at",
1327
- "type": "timestamp",
1328
- "primaryKey": false,
1329
- "notNull": false,
1330
- "default": "now()"
1331
- },
1332
- "updated_at": {
1333
- "name": "updated_at",
1334
- "type": "timestamp",
1335
- "primaryKey": false,
1336
- "notNull": false,
1337
- "default": "now()"
1338
- }
1339
- },
1340
- "indexes": {},
1341
- "foreignKeys": {},
1342
- "compositePrimaryKeys": {},
1343
- "uniqueConstraints": {},
1344
- "policies": {},
1345
- "checkConstraints": {},
1346
- "isRLSEnabled": false
1347
- },
1348
- "public.worlds": {
1349
- "name": "worlds",
1350
- "schema": "",
1351
- "columns": {
1352
- "id": {
1353
- "name": "id",
1354
- "type": "uuid",
1355
- "primaryKey": true,
1356
- "notNull": true,
1357
- "default": "gen_random_uuid()"
1358
- },
1359
- "agentId": {
1360
- "name": "agentId",
1361
- "type": "uuid",
1362
- "primaryKey": false,
1363
- "notNull": true
1364
- },
1365
- "name": {
1366
- "name": "name",
1367
- "type": "text",
1368
- "primaryKey": false,
1369
- "notNull": true
1370
- },
1371
- "metadata": {
1372
- "name": "metadata",
1373
- "type": "jsonb",
1374
- "primaryKey": false,
1375
- "notNull": false
1376
- },
1377
- "serverId": {
1378
- "name": "serverId",
1379
- "type": "text",
1380
- "primaryKey": false,
1381
- "notNull": true
1382
- },
1383
- "createdAt": {
1384
- "name": "createdAt",
1385
- "type": "timestamptz",
1386
- "primaryKey": false,
1387
- "notNull": true,
1388
- "default": "now()"
1389
- }
1390
- },
1391
- "indexes": {},
1392
- "foreignKeys": {
1393
- "worlds_agentId_agents_id_fk": {
1394
- "name": "worlds_agentId_agents_id_fk",
1395
- "tableFrom": "worlds",
1396
- "tableTo": "agents",
1397
- "columnsFrom": [
1398
- "agentId"
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
- },
1414
- "enums": {},
1415
- "schemas": {},
1416
- "sequences": {},
1417
- "roles": {},
1418
- "policies": {},
1419
- "views": {},
1420
- "_meta": {
1421
- "columns": {},
1422
- "schemas": {},
1423
- "tables": {}
1424
- }
1425
- }
2
+ "id": "e868cf2d-10a2-406f-a31e-9342a0f29c35",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.agents": {
8
+ "name": "agents",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "enabled": {
19
+ "name": "enabled",
20
+ "type": "boolean",
21
+ "primaryKey": false,
22
+ "notNull": true,
23
+ "default": "true"
24
+ },
25
+ "createdAt": {
26
+ "name": "createdAt",
27
+ "type": "timestamptz",
28
+ "primaryKey": false,
29
+ "notNull": true,
30
+ "default": "now()"
31
+ },
32
+ "updatedAt": {
33
+ "name": "updatedAt",
34
+ "type": "timestamptz",
35
+ "primaryKey": false,
36
+ "notNull": true,
37
+ "default": "now()"
38
+ },
39
+ "name": {
40
+ "name": "name",
41
+ "type": "text",
42
+ "primaryKey": false,
43
+ "notNull": false
44
+ },
45
+ "username": {
46
+ "name": "username",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false
50
+ },
51
+ "system": {
52
+ "name": "system",
53
+ "type": "text",
54
+ "primaryKey": false,
55
+ "notNull": false
56
+ },
57
+ "bio": {
58
+ "name": "bio",
59
+ "type": "jsonb",
60
+ "primaryKey": false,
61
+ "notNull": true
62
+ },
63
+ "message_examples": {
64
+ "name": "message_examples",
65
+ "type": "jsonb",
66
+ "primaryKey": false,
67
+ "notNull": false,
68
+ "default": "'[]'::jsonb"
69
+ },
70
+ "post_examples": {
71
+ "name": "post_examples",
72
+ "type": "jsonb",
73
+ "primaryKey": false,
74
+ "notNull": false,
75
+ "default": "'[]'::jsonb"
76
+ },
77
+ "topics": {
78
+ "name": "topics",
79
+ "type": "jsonb",
80
+ "primaryKey": false,
81
+ "notNull": false,
82
+ "default": "'[]'::jsonb"
83
+ },
84
+ "adjectives": {
85
+ "name": "adjectives",
86
+ "type": "jsonb",
87
+ "primaryKey": false,
88
+ "notNull": false,
89
+ "default": "'[]'::jsonb"
90
+ },
91
+ "knowledge": {
92
+ "name": "knowledge",
93
+ "type": "jsonb",
94
+ "primaryKey": false,
95
+ "notNull": false,
96
+ "default": "'[]'::jsonb"
97
+ },
98
+ "plugins": {
99
+ "name": "plugins",
100
+ "type": "jsonb",
101
+ "primaryKey": false,
102
+ "notNull": false,
103
+ "default": "'[]'::jsonb"
104
+ },
105
+ "settings": {
106
+ "name": "settings",
107
+ "type": "jsonb",
108
+ "primaryKey": false,
109
+ "notNull": false,
110
+ "default": "'{}'::jsonb"
111
+ },
112
+ "style": {
113
+ "name": "style",
114
+ "type": "jsonb",
115
+ "primaryKey": false,
116
+ "notNull": false,
117
+ "default": "'{}'::jsonb"
118
+ }
119
+ },
120
+ "indexes": {},
121
+ "foreignKeys": {},
122
+ "compositePrimaryKeys": {},
123
+ "uniqueConstraints": {
124
+ "name_unique": {
125
+ "name": "name_unique",
126
+ "nullsNotDistinct": false,
127
+ "columns": ["name"]
128
+ }
129
+ },
130
+ "policies": {},
131
+ "checkConstraints": {},
132
+ "isRLSEnabled": false
133
+ },
134
+ "public.cache": {
135
+ "name": "cache",
136
+ "schema": "",
137
+ "columns": {
138
+ "id": {
139
+ "name": "id",
140
+ "type": "uuid",
141
+ "primaryKey": true,
142
+ "notNull": true,
143
+ "default": "gen_random_uuid()"
144
+ },
145
+ "key": {
146
+ "name": "key",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": true
150
+ },
151
+ "agentId": {
152
+ "name": "agentId",
153
+ "type": "uuid",
154
+ "primaryKey": false,
155
+ "notNull": true
156
+ },
157
+ "value": {
158
+ "name": "value",
159
+ "type": "jsonb",
160
+ "primaryKey": false,
161
+ "notNull": true
162
+ },
163
+ "createdAt": {
164
+ "name": "createdAt",
165
+ "type": "timestamptz",
166
+ "primaryKey": false,
167
+ "notNull": true,
168
+ "default": "now()"
169
+ },
170
+ "expiresAt": {
171
+ "name": "expiresAt",
172
+ "type": "timestamptz",
173
+ "primaryKey": false,
174
+ "notNull": false
175
+ }
176
+ },
177
+ "indexes": {},
178
+ "foreignKeys": {
179
+ "cache_agentId_agents_id_fk": {
180
+ "name": "cache_agentId_agents_id_fk",
181
+ "tableFrom": "cache",
182
+ "tableTo": "agents",
183
+ "columnsFrom": ["agentId"],
184
+ "columnsTo": ["id"],
185
+ "onDelete": "cascade",
186
+ "onUpdate": "no action"
187
+ }
188
+ },
189
+ "compositePrimaryKeys": {},
190
+ "uniqueConstraints": {
191
+ "cache_key_agent_unique": {
192
+ "name": "cache_key_agent_unique",
193
+ "nullsNotDistinct": false,
194
+ "columns": ["key", "agentId"]
195
+ }
196
+ },
197
+ "policies": {},
198
+ "checkConstraints": {},
199
+ "isRLSEnabled": false
200
+ },
201
+ "public.components": {
202
+ "name": "components",
203
+ "schema": "",
204
+ "columns": {
205
+ "id": {
206
+ "name": "id",
207
+ "type": "uuid",
208
+ "primaryKey": true,
209
+ "notNull": true,
210
+ "default": "gen_random_uuid()"
211
+ },
212
+ "entityId": {
213
+ "name": "entityId",
214
+ "type": "uuid",
215
+ "primaryKey": false,
216
+ "notNull": true
217
+ },
218
+ "agentId": {
219
+ "name": "agentId",
220
+ "type": "uuid",
221
+ "primaryKey": false,
222
+ "notNull": true
223
+ },
224
+ "roomId": {
225
+ "name": "roomId",
226
+ "type": "uuid",
227
+ "primaryKey": false,
228
+ "notNull": true
229
+ },
230
+ "worldId": {
231
+ "name": "worldId",
232
+ "type": "uuid",
233
+ "primaryKey": false,
234
+ "notNull": false
235
+ },
236
+ "sourceEntityId": {
237
+ "name": "sourceEntityId",
238
+ "type": "uuid",
239
+ "primaryKey": false,
240
+ "notNull": false
241
+ },
242
+ "type": {
243
+ "name": "type",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": true
247
+ },
248
+ "data": {
249
+ "name": "data",
250
+ "type": "jsonb",
251
+ "primaryKey": false,
252
+ "notNull": false,
253
+ "default": "'{}'::jsonb"
254
+ },
255
+ "createdAt": {
256
+ "name": "createdAt",
257
+ "type": "timestamptz",
258
+ "primaryKey": false,
259
+ "notNull": true,
260
+ "default": "now()"
261
+ }
262
+ },
263
+ "indexes": {},
264
+ "foreignKeys": {
265
+ "components_entityId_entities_id_fk": {
266
+ "name": "components_entityId_entities_id_fk",
267
+ "tableFrom": "components",
268
+ "tableTo": "entities",
269
+ "columnsFrom": ["entityId"],
270
+ "columnsTo": ["id"],
271
+ "onDelete": "cascade",
272
+ "onUpdate": "no action"
273
+ },
274
+ "components_agentId_agents_id_fk": {
275
+ "name": "components_agentId_agents_id_fk",
276
+ "tableFrom": "components",
277
+ "tableTo": "agents",
278
+ "columnsFrom": ["agentId"],
279
+ "columnsTo": ["id"],
280
+ "onDelete": "cascade",
281
+ "onUpdate": "no action"
282
+ },
283
+ "components_roomId_rooms_id_fk": {
284
+ "name": "components_roomId_rooms_id_fk",
285
+ "tableFrom": "components",
286
+ "tableTo": "rooms",
287
+ "columnsFrom": ["roomId"],
288
+ "columnsTo": ["id"],
289
+ "onDelete": "cascade",
290
+ "onUpdate": "no action"
291
+ },
292
+ "components_worldId_worlds_id_fk": {
293
+ "name": "components_worldId_worlds_id_fk",
294
+ "tableFrom": "components",
295
+ "tableTo": "worlds",
296
+ "columnsFrom": ["worldId"],
297
+ "columnsTo": ["id"],
298
+ "onDelete": "cascade",
299
+ "onUpdate": "no action"
300
+ },
301
+ "components_sourceEntityId_entities_id_fk": {
302
+ "name": "components_sourceEntityId_entities_id_fk",
303
+ "tableFrom": "components",
304
+ "tableTo": "entities",
305
+ "columnsFrom": ["sourceEntityId"],
306
+ "columnsTo": ["id"],
307
+ "onDelete": "cascade",
308
+ "onUpdate": "no action"
309
+ }
310
+ },
311
+ "compositePrimaryKeys": {},
312
+ "uniqueConstraints": {},
313
+ "policies": {},
314
+ "checkConstraints": {},
315
+ "isRLSEnabled": false
316
+ },
317
+ "public.embeddings": {
318
+ "name": "embeddings",
319
+ "schema": "",
320
+ "columns": {
321
+ "id": {
322
+ "name": "id",
323
+ "type": "uuid",
324
+ "primaryKey": true,
325
+ "notNull": true,
326
+ "default": "gen_random_uuid()"
327
+ },
328
+ "memory_id": {
329
+ "name": "memory_id",
330
+ "type": "uuid",
331
+ "primaryKey": false,
332
+ "notNull": false
333
+ },
334
+ "created_at": {
335
+ "name": "created_at",
336
+ "type": "timestamptz",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "default": "now()"
340
+ },
341
+ "dim_384": {
342
+ "name": "dim_384",
343
+ "type": "vector(384)",
344
+ "primaryKey": false,
345
+ "notNull": false
346
+ },
347
+ "dim_512": {
348
+ "name": "dim_512",
349
+ "type": "vector(512)",
350
+ "primaryKey": false,
351
+ "notNull": false
352
+ },
353
+ "dim_768": {
354
+ "name": "dim_768",
355
+ "type": "vector(768)",
356
+ "primaryKey": false,
357
+ "notNull": false
358
+ },
359
+ "dim_1024": {
360
+ "name": "dim_1024",
361
+ "type": "vector(1024)",
362
+ "primaryKey": false,
363
+ "notNull": false
364
+ },
365
+ "dim_1536": {
366
+ "name": "dim_1536",
367
+ "type": "vector(1536)",
368
+ "primaryKey": false,
369
+ "notNull": false
370
+ },
371
+ "dim_3072": {
372
+ "name": "dim_3072",
373
+ "type": "vector(3072)",
374
+ "primaryKey": false,
375
+ "notNull": false
376
+ }
377
+ },
378
+ "indexes": {
379
+ "idx_embedding_memory": {
380
+ "name": "idx_embedding_memory",
381
+ "columns": [
382
+ {
383
+ "expression": "memory_id",
384
+ "isExpression": false,
385
+ "asc": true,
386
+ "nulls": "last"
387
+ }
388
+ ],
389
+ "isUnique": false,
390
+ "concurrently": false,
391
+ "method": "btree",
392
+ "with": {}
393
+ }
394
+ },
395
+ "foreignKeys": {
396
+ "embeddings_memory_id_memories_id_fk": {
397
+ "name": "embeddings_memory_id_memories_id_fk",
398
+ "tableFrom": "embeddings",
399
+ "tableTo": "memories",
400
+ "columnsFrom": ["memory_id"],
401
+ "columnsTo": ["id"],
402
+ "onDelete": "no action",
403
+ "onUpdate": "no action"
404
+ },
405
+ "fk_embedding_memory": {
406
+ "name": "fk_embedding_memory",
407
+ "tableFrom": "embeddings",
408
+ "tableTo": "memories",
409
+ "columnsFrom": ["memory_id"],
410
+ "columnsTo": ["id"],
411
+ "onDelete": "cascade",
412
+ "onUpdate": "no action"
413
+ }
414
+ },
415
+ "compositePrimaryKeys": {},
416
+ "uniqueConstraints": {},
417
+ "policies": {},
418
+ "checkConstraints": {
419
+ "embedding_source_check": {
420
+ "name": "embedding_source_check",
421
+ "value": "\"memory_id\" IS NOT NULL"
422
+ }
423
+ },
424
+ "isRLSEnabled": false
425
+ },
426
+ "public.entities": {
427
+ "name": "entities",
428
+ "schema": "",
429
+ "columns": {
430
+ "id": {
431
+ "name": "id",
432
+ "type": "uuid",
433
+ "primaryKey": true,
434
+ "notNull": true
435
+ },
436
+ "agentId": {
437
+ "name": "agentId",
438
+ "type": "uuid",
439
+ "primaryKey": false,
440
+ "notNull": true
441
+ },
442
+ "createdAt": {
443
+ "name": "createdAt",
444
+ "type": "timestamptz",
445
+ "primaryKey": false,
446
+ "notNull": true,
447
+ "default": "now()"
448
+ },
449
+ "names": {
450
+ "name": "names",
451
+ "type": "text[]",
452
+ "primaryKey": false,
453
+ "notNull": false,
454
+ "default": "'{}'::text[]"
455
+ },
456
+ "metadata": {
457
+ "name": "metadata",
458
+ "type": "jsonb",
459
+ "primaryKey": false,
460
+ "notNull": false,
461
+ "default": "'{}'::jsonb"
462
+ }
463
+ },
464
+ "indexes": {},
465
+ "foreignKeys": {
466
+ "entities_agentId_agents_id_fk": {
467
+ "name": "entities_agentId_agents_id_fk",
468
+ "tableFrom": "entities",
469
+ "tableTo": "agents",
470
+ "columnsFrom": ["agentId"],
471
+ "columnsTo": ["id"],
472
+ "onDelete": "cascade",
473
+ "onUpdate": "no action"
474
+ }
475
+ },
476
+ "compositePrimaryKeys": {},
477
+ "uniqueConstraints": {
478
+ "id_agent_id_unique": {
479
+ "name": "id_agent_id_unique",
480
+ "nullsNotDistinct": false,
481
+ "columns": ["id", "agentId"]
482
+ }
483
+ },
484
+ "policies": {},
485
+ "checkConstraints": {},
486
+ "isRLSEnabled": false
487
+ },
488
+ "public.logs": {
489
+ "name": "logs",
490
+ "schema": "",
491
+ "columns": {
492
+ "id": {
493
+ "name": "id",
494
+ "type": "uuid",
495
+ "primaryKey": false,
496
+ "notNull": true,
497
+ "default": "gen_random_uuid()"
498
+ },
499
+ "createdAt": {
500
+ "name": "createdAt",
501
+ "type": "timestamptz",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "default": "now()"
505
+ },
506
+ "entityId": {
507
+ "name": "entityId",
508
+ "type": "uuid",
509
+ "primaryKey": false,
510
+ "notNull": true
511
+ },
512
+ "body": {
513
+ "name": "body",
514
+ "type": "jsonb",
515
+ "primaryKey": false,
516
+ "notNull": true
517
+ },
518
+ "type": {
519
+ "name": "type",
520
+ "type": "text",
521
+ "primaryKey": false,
522
+ "notNull": true
523
+ },
524
+ "roomId": {
525
+ "name": "roomId",
526
+ "type": "uuid",
527
+ "primaryKey": false,
528
+ "notNull": true
529
+ }
530
+ },
531
+ "indexes": {},
532
+ "foreignKeys": {
533
+ "logs_entityId_entities_id_fk": {
534
+ "name": "logs_entityId_entities_id_fk",
535
+ "tableFrom": "logs",
536
+ "tableTo": "entities",
537
+ "columnsFrom": ["entityId"],
538
+ "columnsTo": ["id"],
539
+ "onDelete": "no action",
540
+ "onUpdate": "no action"
541
+ },
542
+ "logs_roomId_rooms_id_fk": {
543
+ "name": "logs_roomId_rooms_id_fk",
544
+ "tableFrom": "logs",
545
+ "tableTo": "rooms",
546
+ "columnsFrom": ["roomId"],
547
+ "columnsTo": ["id"],
548
+ "onDelete": "no action",
549
+ "onUpdate": "no action"
550
+ },
551
+ "fk_room": {
552
+ "name": "fk_room",
553
+ "tableFrom": "logs",
554
+ "tableTo": "rooms",
555
+ "columnsFrom": ["roomId"],
556
+ "columnsTo": ["id"],
557
+ "onDelete": "cascade",
558
+ "onUpdate": "no action"
559
+ },
560
+ "fk_user": {
561
+ "name": "fk_user",
562
+ "tableFrom": "logs",
563
+ "tableTo": "entities",
564
+ "columnsFrom": ["entityId"],
565
+ "columnsTo": ["id"],
566
+ "onDelete": "cascade",
567
+ "onUpdate": "no action"
568
+ }
569
+ },
570
+ "compositePrimaryKeys": {},
571
+ "uniqueConstraints": {},
572
+ "policies": {},
573
+ "checkConstraints": {},
574
+ "isRLSEnabled": false
575
+ },
576
+ "public.memories": {
577
+ "name": "memories",
578
+ "schema": "",
579
+ "columns": {
580
+ "id": {
581
+ "name": "id",
582
+ "type": "uuid",
583
+ "primaryKey": true,
584
+ "notNull": true
585
+ },
586
+ "type": {
587
+ "name": "type",
588
+ "type": "text",
589
+ "primaryKey": false,
590
+ "notNull": true
591
+ },
592
+ "createdAt": {
593
+ "name": "createdAt",
594
+ "type": "timestamptz",
595
+ "primaryKey": false,
596
+ "notNull": true,
597
+ "default": "now()"
598
+ },
599
+ "content": {
600
+ "name": "content",
601
+ "type": "jsonb",
602
+ "primaryKey": false,
603
+ "notNull": true
604
+ },
605
+ "entityId": {
606
+ "name": "entityId",
607
+ "type": "uuid",
608
+ "primaryKey": false,
609
+ "notNull": false
610
+ },
611
+ "agentId": {
612
+ "name": "agentId",
613
+ "type": "uuid",
614
+ "primaryKey": false,
615
+ "notNull": false
616
+ },
617
+ "roomId": {
618
+ "name": "roomId",
619
+ "type": "uuid",
620
+ "primaryKey": false,
621
+ "notNull": false
622
+ },
623
+ "unique": {
624
+ "name": "unique",
625
+ "type": "boolean",
626
+ "primaryKey": false,
627
+ "notNull": true,
628
+ "default": true
629
+ },
630
+ "metadata": {
631
+ "name": "metadata",
632
+ "type": "jsonb",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "default": "'{}'::jsonb"
636
+ }
637
+ },
638
+ "indexes": {
639
+ "idx_memories_type_room": {
640
+ "name": "idx_memories_type_room",
641
+ "columns": [
642
+ {
643
+ "expression": "type",
644
+ "isExpression": false,
645
+ "asc": true,
646
+ "nulls": "last"
647
+ },
648
+ {
649
+ "expression": "roomId",
650
+ "isExpression": false,
651
+ "asc": true,
652
+ "nulls": "last"
653
+ }
654
+ ],
655
+ "isUnique": false,
656
+ "concurrently": false,
657
+ "method": "btree",
658
+ "with": {}
659
+ },
660
+ "idx_memories_metadata_type": {
661
+ "name": "idx_memories_metadata_type",
662
+ "columns": [
663
+ {
664
+ "expression": "((metadata->>'type'))",
665
+ "asc": true,
666
+ "isExpression": true,
667
+ "nulls": "last"
668
+ }
669
+ ],
670
+ "isUnique": false,
671
+ "concurrently": false,
672
+ "method": "btree",
673
+ "with": {}
674
+ },
675
+ "idx_memories_document_id": {
676
+ "name": "idx_memories_document_id",
677
+ "columns": [
678
+ {
679
+ "expression": "((metadata->>'documentId'))",
680
+ "asc": true,
681
+ "isExpression": true,
682
+ "nulls": "last"
683
+ }
684
+ ],
685
+ "isUnique": false,
686
+ "concurrently": false,
687
+ "method": "btree",
688
+ "with": {}
689
+ },
690
+ "idx_fragments_order": {
691
+ "name": "idx_fragments_order",
692
+ "columns": [
693
+ {
694
+ "expression": "((metadata->>'documentId'))",
695
+ "asc": true,
696
+ "isExpression": true,
697
+ "nulls": "last"
698
+ },
699
+ {
700
+ "expression": "((metadata->>'position'))",
701
+ "asc": true,
702
+ "isExpression": true,
703
+ "nulls": "last"
704
+ }
705
+ ],
706
+ "isUnique": false,
707
+ "concurrently": false,
708
+ "method": "btree",
709
+ "with": {}
710
+ }
711
+ },
712
+ "foreignKeys": {
713
+ "memories_entityId_entities_id_fk": {
714
+ "name": "memories_entityId_entities_id_fk",
715
+ "tableFrom": "memories",
716
+ "tableTo": "entities",
717
+ "columnsFrom": ["entityId"],
718
+ "columnsTo": ["id"],
719
+ "onDelete": "cascade",
720
+ "onUpdate": "no action"
721
+ },
722
+ "memories_agentId_agents_id_fk": {
723
+ "name": "memories_agentId_agents_id_fk",
724
+ "tableFrom": "memories",
725
+ "tableTo": "agents",
726
+ "columnsFrom": ["agentId"],
727
+ "columnsTo": ["id"],
728
+ "onDelete": "cascade",
729
+ "onUpdate": "no action"
730
+ },
731
+ "memories_roomId_rooms_id_fk": {
732
+ "name": "memories_roomId_rooms_id_fk",
733
+ "tableFrom": "memories",
734
+ "tableTo": "rooms",
735
+ "columnsFrom": ["roomId"],
736
+ "columnsTo": ["id"],
737
+ "onDelete": "cascade",
738
+ "onUpdate": "no action"
739
+ },
740
+ "fk_room": {
741
+ "name": "fk_room",
742
+ "tableFrom": "memories",
743
+ "tableTo": "rooms",
744
+ "columnsFrom": ["roomId"],
745
+ "columnsTo": ["id"],
746
+ "onDelete": "cascade",
747
+ "onUpdate": "no action"
748
+ },
749
+ "fk_user": {
750
+ "name": "fk_user",
751
+ "tableFrom": "memories",
752
+ "tableTo": "entities",
753
+ "columnsFrom": ["entityId"],
754
+ "columnsTo": ["id"],
755
+ "onDelete": "cascade",
756
+ "onUpdate": "no action"
757
+ },
758
+ "fk_agent": {
759
+ "name": "fk_agent",
760
+ "tableFrom": "memories",
761
+ "tableTo": "entities",
762
+ "columnsFrom": ["agentId"],
763
+ "columnsTo": ["id"],
764
+ "onDelete": "cascade",
765
+ "onUpdate": "no action"
766
+ }
767
+ },
768
+ "compositePrimaryKeys": {},
769
+ "uniqueConstraints": {},
770
+ "policies": {},
771
+ "checkConstraints": {
772
+ "fragment_metadata_check": {
773
+ "name": "fragment_metadata_check",
774
+ "value": "\n CASE \n WHEN metadata->>'type' = 'fragment' THEN\n metadata ? 'documentId' AND \n metadata ? 'position'\n ELSE true\n END\n "
775
+ },
776
+ "document_metadata_check": {
777
+ "name": "document_metadata_check",
778
+ "value": "\n CASE \n WHEN metadata->>'type' = 'document' THEN\n metadata ? 'timestamp'\n ELSE true\n END\n "
779
+ }
780
+ },
781
+ "isRLSEnabled": false
782
+ },
783
+ "public.participants": {
784
+ "name": "participants",
785
+ "schema": "",
786
+ "columns": {
787
+ "id": {
788
+ "name": "id",
789
+ "type": "uuid",
790
+ "primaryKey": true,
791
+ "notNull": true,
792
+ "default": "gen_random_uuid()"
793
+ },
794
+ "createdAt": {
795
+ "name": "createdAt",
796
+ "type": "timestamptz",
797
+ "primaryKey": false,
798
+ "notNull": true,
799
+ "default": "now()"
800
+ },
801
+ "entityId": {
802
+ "name": "entityId",
803
+ "type": "uuid",
804
+ "primaryKey": false,
805
+ "notNull": false
806
+ },
807
+ "roomId": {
808
+ "name": "roomId",
809
+ "type": "uuid",
810
+ "primaryKey": false,
811
+ "notNull": false
812
+ },
813
+ "agentId": {
814
+ "name": "agentId",
815
+ "type": "uuid",
816
+ "primaryKey": false,
817
+ "notNull": false
818
+ },
819
+ "roomState": {
820
+ "name": "roomState",
821
+ "type": "text",
822
+ "primaryKey": false,
823
+ "notNull": false
824
+ }
825
+ },
826
+ "indexes": {
827
+ "idx_participants_user": {
828
+ "name": "idx_participants_user",
829
+ "columns": [
830
+ {
831
+ "expression": "entityId",
832
+ "isExpression": false,
833
+ "asc": true,
834
+ "nulls": "last"
835
+ }
836
+ ],
837
+ "isUnique": false,
838
+ "concurrently": false,
839
+ "method": "btree",
840
+ "with": {}
841
+ },
842
+ "idx_participants_room": {
843
+ "name": "idx_participants_room",
844
+ "columns": [
845
+ {
846
+ "expression": "roomId",
847
+ "isExpression": false,
848
+ "asc": true,
849
+ "nulls": "last"
850
+ }
851
+ ],
852
+ "isUnique": false,
853
+ "concurrently": false,
854
+ "method": "btree",
855
+ "with": {}
856
+ }
857
+ },
858
+ "foreignKeys": {
859
+ "participants_entityId_entities_id_fk": {
860
+ "name": "participants_entityId_entities_id_fk",
861
+ "tableFrom": "participants",
862
+ "tableTo": "entities",
863
+ "columnsFrom": ["entityId"],
864
+ "columnsTo": ["id"],
865
+ "onDelete": "cascade",
866
+ "onUpdate": "no action"
867
+ },
868
+ "participants_roomId_rooms_id_fk": {
869
+ "name": "participants_roomId_rooms_id_fk",
870
+ "tableFrom": "participants",
871
+ "tableTo": "rooms",
872
+ "columnsFrom": ["roomId"],
873
+ "columnsTo": ["id"],
874
+ "onDelete": "cascade",
875
+ "onUpdate": "no action"
876
+ },
877
+ "participants_agentId_agents_id_fk": {
878
+ "name": "participants_agentId_agents_id_fk",
879
+ "tableFrom": "participants",
880
+ "tableTo": "agents",
881
+ "columnsFrom": ["agentId"],
882
+ "columnsTo": ["id"],
883
+ "onDelete": "cascade",
884
+ "onUpdate": "no action"
885
+ },
886
+ "fk_room": {
887
+ "name": "fk_room",
888
+ "tableFrom": "participants",
889
+ "tableTo": "rooms",
890
+ "columnsFrom": ["roomId"],
891
+ "columnsTo": ["id"],
892
+ "onDelete": "cascade",
893
+ "onUpdate": "no action"
894
+ },
895
+ "fk_user": {
896
+ "name": "fk_user",
897
+ "tableFrom": "participants",
898
+ "tableTo": "entities",
899
+ "columnsFrom": ["entityId"],
900
+ "columnsTo": ["id"],
901
+ "onDelete": "cascade",
902
+ "onUpdate": "no action"
903
+ }
904
+ },
905
+ "compositePrimaryKeys": {},
906
+ "uniqueConstraints": {},
907
+ "policies": {},
908
+ "checkConstraints": {},
909
+ "isRLSEnabled": false
910
+ },
911
+ "public.relationships": {
912
+ "name": "relationships",
913
+ "schema": "",
914
+ "columns": {
915
+ "id": {
916
+ "name": "id",
917
+ "type": "uuid",
918
+ "primaryKey": true,
919
+ "notNull": true,
920
+ "default": "gen_random_uuid()"
921
+ },
922
+ "createdAt": {
923
+ "name": "createdAt",
924
+ "type": "timestamptz",
925
+ "primaryKey": false,
926
+ "notNull": true,
927
+ "default": "now()"
928
+ },
929
+ "sourceEntityId": {
930
+ "name": "sourceEntityId",
931
+ "type": "uuid",
932
+ "primaryKey": false,
933
+ "notNull": true
934
+ },
935
+ "targetEntityId": {
936
+ "name": "targetEntityId",
937
+ "type": "uuid",
938
+ "primaryKey": false,
939
+ "notNull": true
940
+ },
941
+ "agentId": {
942
+ "name": "agentId",
943
+ "type": "uuid",
944
+ "primaryKey": false,
945
+ "notNull": true
946
+ },
947
+ "tags": {
948
+ "name": "tags",
949
+ "type": "text[]",
950
+ "primaryKey": false,
951
+ "notNull": false
952
+ },
953
+ "metadata": {
954
+ "name": "metadata",
955
+ "type": "jsonb",
956
+ "primaryKey": false,
957
+ "notNull": false
958
+ }
959
+ },
960
+ "indexes": {
961
+ "idx_relationships_users": {
962
+ "name": "idx_relationships_users",
963
+ "columns": [
964
+ {
965
+ "expression": "sourceEntityId",
966
+ "isExpression": false,
967
+ "asc": true,
968
+ "nulls": "last"
969
+ },
970
+ {
971
+ "expression": "targetEntityId",
972
+ "isExpression": false,
973
+ "asc": true,
974
+ "nulls": "last"
975
+ }
976
+ ],
977
+ "isUnique": false,
978
+ "concurrently": false,
979
+ "method": "btree",
980
+ "with": {}
981
+ }
982
+ },
983
+ "foreignKeys": {
984
+ "relationships_sourceEntityId_entities_id_fk": {
985
+ "name": "relationships_sourceEntityId_entities_id_fk",
986
+ "tableFrom": "relationships",
987
+ "tableTo": "entities",
988
+ "columnsFrom": ["sourceEntityId"],
989
+ "columnsTo": ["id"],
990
+ "onDelete": "cascade",
991
+ "onUpdate": "no action"
992
+ },
993
+ "relationships_targetEntityId_entities_id_fk": {
994
+ "name": "relationships_targetEntityId_entities_id_fk",
995
+ "tableFrom": "relationships",
996
+ "tableTo": "entities",
997
+ "columnsFrom": ["targetEntityId"],
998
+ "columnsTo": ["id"],
999
+ "onDelete": "cascade",
1000
+ "onUpdate": "no action"
1001
+ },
1002
+ "relationships_agentId_agents_id_fk": {
1003
+ "name": "relationships_agentId_agents_id_fk",
1004
+ "tableFrom": "relationships",
1005
+ "tableTo": "agents",
1006
+ "columnsFrom": ["agentId"],
1007
+ "columnsTo": ["id"],
1008
+ "onDelete": "cascade",
1009
+ "onUpdate": "no action"
1010
+ },
1011
+ "fk_user_a": {
1012
+ "name": "fk_user_a",
1013
+ "tableFrom": "relationships",
1014
+ "tableTo": "entities",
1015
+ "columnsFrom": ["sourceEntityId"],
1016
+ "columnsTo": ["id"],
1017
+ "onDelete": "cascade",
1018
+ "onUpdate": "no action"
1019
+ },
1020
+ "fk_user_b": {
1021
+ "name": "fk_user_b",
1022
+ "tableFrom": "relationships",
1023
+ "tableTo": "entities",
1024
+ "columnsFrom": ["targetEntityId"],
1025
+ "columnsTo": ["id"],
1026
+ "onDelete": "cascade",
1027
+ "onUpdate": "no action"
1028
+ }
1029
+ },
1030
+ "compositePrimaryKeys": {},
1031
+ "uniqueConstraints": {
1032
+ "unique_relationship": {
1033
+ "name": "unique_relationship",
1034
+ "nullsNotDistinct": false,
1035
+ "columns": ["sourceEntityId", "targetEntityId", "agentId"]
1036
+ }
1037
+ },
1038
+ "policies": {},
1039
+ "checkConstraints": {},
1040
+ "isRLSEnabled": false
1041
+ },
1042
+ "public.rooms": {
1043
+ "name": "rooms",
1044
+ "schema": "",
1045
+ "columns": {
1046
+ "id": {
1047
+ "name": "id",
1048
+ "type": "uuid",
1049
+ "primaryKey": true,
1050
+ "notNull": true,
1051
+ "default": "gen_random_uuid()"
1052
+ },
1053
+ "agentId": {
1054
+ "name": "agentId",
1055
+ "type": "uuid",
1056
+ "primaryKey": false,
1057
+ "notNull": false
1058
+ },
1059
+ "source": {
1060
+ "name": "source",
1061
+ "type": "text",
1062
+ "primaryKey": false,
1063
+ "notNull": true
1064
+ },
1065
+ "type": {
1066
+ "name": "type",
1067
+ "type": "text",
1068
+ "primaryKey": false,
1069
+ "notNull": true
1070
+ },
1071
+ "serverId": {
1072
+ "name": "serverId",
1073
+ "type": "text",
1074
+ "primaryKey": false,
1075
+ "notNull": false
1076
+ },
1077
+ "worldId": {
1078
+ "name": "worldId",
1079
+ "type": "uuid",
1080
+ "primaryKey": false,
1081
+ "notNull": false
1082
+ },
1083
+ "name": {
1084
+ "name": "name",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": false
1088
+ },
1089
+ "metadata": {
1090
+ "name": "metadata",
1091
+ "type": "jsonb",
1092
+ "primaryKey": false,
1093
+ "notNull": false
1094
+ },
1095
+ "channelId": {
1096
+ "name": "channelId",
1097
+ "type": "text",
1098
+ "primaryKey": false,
1099
+ "notNull": false
1100
+ },
1101
+ "createdAt": {
1102
+ "name": "createdAt",
1103
+ "type": "timestamptz",
1104
+ "primaryKey": false,
1105
+ "notNull": true,
1106
+ "default": "now()"
1107
+ }
1108
+ },
1109
+ "indexes": {},
1110
+ "foreignKeys": {
1111
+ "rooms_agentId_agents_id_fk": {
1112
+ "name": "rooms_agentId_agents_id_fk",
1113
+ "tableFrom": "rooms",
1114
+ "tableTo": "agents",
1115
+ "columnsFrom": ["agentId"],
1116
+ "columnsTo": ["id"],
1117
+ "onDelete": "cascade",
1118
+ "onUpdate": "no action"
1119
+ },
1120
+ "rooms_worldId_worlds_id_fk": {
1121
+ "name": "rooms_worldId_worlds_id_fk",
1122
+ "tableFrom": "rooms",
1123
+ "tableTo": "worlds",
1124
+ "columnsFrom": ["worldId"],
1125
+ "columnsTo": ["id"],
1126
+ "onDelete": "cascade",
1127
+ "onUpdate": "no action"
1128
+ }
1129
+ },
1130
+ "compositePrimaryKeys": {},
1131
+ "uniqueConstraints": {},
1132
+ "policies": {},
1133
+ "checkConstraints": {},
1134
+ "isRLSEnabled": false
1135
+ },
1136
+ "public.tasks": {
1137
+ "name": "tasks",
1138
+ "schema": "",
1139
+ "columns": {
1140
+ "id": {
1141
+ "name": "id",
1142
+ "type": "uuid",
1143
+ "primaryKey": true,
1144
+ "notNull": true,
1145
+ "default": "gen_random_uuid()"
1146
+ },
1147
+ "name": {
1148
+ "name": "name",
1149
+ "type": "text",
1150
+ "primaryKey": false,
1151
+ "notNull": true
1152
+ },
1153
+ "description": {
1154
+ "name": "description",
1155
+ "type": "text",
1156
+ "primaryKey": false,
1157
+ "notNull": true
1158
+ },
1159
+ "room_id": {
1160
+ "name": "room_id",
1161
+ "type": "uuid",
1162
+ "primaryKey": false,
1163
+ "notNull": false
1164
+ },
1165
+ "world_id": {
1166
+ "name": "world_id",
1167
+ "type": "uuid",
1168
+ "primaryKey": false,
1169
+ "notNull": false
1170
+ },
1171
+ "agent_id": {
1172
+ "name": "agent_id",
1173
+ "type": "uuid",
1174
+ "primaryKey": false,
1175
+ "notNull": true
1176
+ },
1177
+ "tags": {
1178
+ "name": "tags",
1179
+ "type": "text[]",
1180
+ "primaryKey": false,
1181
+ "notNull": false
1182
+ },
1183
+ "metadata": {
1184
+ "name": "metadata",
1185
+ "type": "jsonb",
1186
+ "primaryKey": false,
1187
+ "notNull": false
1188
+ },
1189
+ "created_at": {
1190
+ "name": "created_at",
1191
+ "type": "timestamp",
1192
+ "primaryKey": false,
1193
+ "notNull": false,
1194
+ "default": "now()"
1195
+ },
1196
+ "updated_at": {
1197
+ "name": "updated_at",
1198
+ "type": "timestamp",
1199
+ "primaryKey": false,
1200
+ "notNull": false,
1201
+ "default": "now()"
1202
+ }
1203
+ },
1204
+ "indexes": {},
1205
+ "foreignKeys": {},
1206
+ "compositePrimaryKeys": {},
1207
+ "uniqueConstraints": {},
1208
+ "policies": {},
1209
+ "checkConstraints": {},
1210
+ "isRLSEnabled": false
1211
+ },
1212
+ "public.worlds": {
1213
+ "name": "worlds",
1214
+ "schema": "",
1215
+ "columns": {
1216
+ "id": {
1217
+ "name": "id",
1218
+ "type": "uuid",
1219
+ "primaryKey": true,
1220
+ "notNull": true,
1221
+ "default": "gen_random_uuid()"
1222
+ },
1223
+ "agentId": {
1224
+ "name": "agentId",
1225
+ "type": "uuid",
1226
+ "primaryKey": false,
1227
+ "notNull": true
1228
+ },
1229
+ "name": {
1230
+ "name": "name",
1231
+ "type": "text",
1232
+ "primaryKey": false,
1233
+ "notNull": true
1234
+ },
1235
+ "metadata": {
1236
+ "name": "metadata",
1237
+ "type": "jsonb",
1238
+ "primaryKey": false,
1239
+ "notNull": false
1240
+ },
1241
+ "serverId": {
1242
+ "name": "serverId",
1243
+ "type": "text",
1244
+ "primaryKey": false,
1245
+ "notNull": true
1246
+ },
1247
+ "createdAt": {
1248
+ "name": "createdAt",
1249
+ "type": "timestamptz",
1250
+ "primaryKey": false,
1251
+ "notNull": true,
1252
+ "default": "now()"
1253
+ }
1254
+ },
1255
+ "indexes": {},
1256
+ "foreignKeys": {
1257
+ "worlds_agentId_agents_id_fk": {
1258
+ "name": "worlds_agentId_agents_id_fk",
1259
+ "tableFrom": "worlds",
1260
+ "tableTo": "agents",
1261
+ "columnsFrom": ["agentId"],
1262
+ "columnsTo": ["id"],
1263
+ "onDelete": "cascade",
1264
+ "onUpdate": "no action"
1265
+ }
1266
+ },
1267
+ "compositePrimaryKeys": {},
1268
+ "uniqueConstraints": {},
1269
+ "policies": {},
1270
+ "checkConstraints": {},
1271
+ "isRLSEnabled": false
1272
+ }
1273
+ },
1274
+ "enums": {},
1275
+ "schemas": {},
1276
+ "sequences": {},
1277
+ "roles": {},
1278
+ "policies": {},
1279
+ "views": {},
1280
+ "_meta": {
1281
+ "columns": {},
1282
+ "schemas": {},
1283
+ "tables": {}
1284
+ }
1285
+ }