@elizaos/plugin-sql 1.0.0-beta.38 → 1.0.0-beta.40

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,1285 +0,0 @@
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": ["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
- }