@elizaos/plugin-sql 1.0.6 → 1.0.8

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,1791 +0,0 @@
1
- {
2
- "id": "355d7152-120c-4cfc-8ec4-fad352811436",
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": true
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
- "default": "''"
57
- },
58
- "bio": {
59
- "name": "bio",
60
- "type": "jsonb",
61
- "primaryKey": false,
62
- "notNull": false,
63
- "default": "'[]'::jsonb"
64
- },
65
- "message_examples": {
66
- "name": "message_examples",
67
- "type": "jsonb",
68
- "primaryKey": false,
69
- "notNull": true,
70
- "default": "'[]'::jsonb"
71
- },
72
- "post_examples": {
73
- "name": "post_examples",
74
- "type": "jsonb",
75
- "primaryKey": false,
76
- "notNull": true,
77
- "default": "'[]'::jsonb"
78
- },
79
- "topics": {
80
- "name": "topics",
81
- "type": "jsonb",
82
- "primaryKey": false,
83
- "notNull": true,
84
- "default": "'[]'::jsonb"
85
- },
86
- "adjectives": {
87
- "name": "adjectives",
88
- "type": "jsonb",
89
- "primaryKey": false,
90
- "notNull": true,
91
- "default": "'[]'::jsonb"
92
- },
93
- "knowledge": {
94
- "name": "knowledge",
95
- "type": "jsonb",
96
- "primaryKey": false,
97
- "notNull": true,
98
- "default": "'[]'::jsonb"
99
- },
100
- "plugins": {
101
- "name": "plugins",
102
- "type": "jsonb",
103
- "primaryKey": false,
104
- "notNull": true,
105
- "default": "'[]'::jsonb"
106
- },
107
- "settings": {
108
- "name": "settings",
109
- "type": "jsonb",
110
- "primaryKey": false,
111
- "notNull": true,
112
- "default": "'{}'::jsonb"
113
- },
114
- "style": {
115
- "name": "style",
116
- "type": "jsonb",
117
- "primaryKey": false,
118
- "notNull": true,
119
- "default": "'{}'::jsonb"
120
- }
121
- },
122
- "indexes": {},
123
- "foreignKeys": {},
124
- "compositePrimaryKeys": {},
125
- "uniqueConstraints": {
126
- "name_unique": {
127
- "name": "name_unique",
128
- "nullsNotDistinct": false,
129
- "columns": [
130
- "name"
131
- ]
132
- }
133
- },
134
- "policies": {},
135
- "checkConstraints": {},
136
- "isRLSEnabled": false
137
- },
138
- "public.cache": {
139
- "name": "cache",
140
- "schema": "",
141
- "columns": {
142
- "id": {
143
- "name": "id",
144
- "type": "uuid",
145
- "primaryKey": true,
146
- "notNull": true,
147
- "default": "gen_random_uuid()"
148
- },
149
- "key": {
150
- "name": "key",
151
- "type": "text",
152
- "primaryKey": false,
153
- "notNull": true
154
- },
155
- "agentId": {
156
- "name": "agentId",
157
- "type": "uuid",
158
- "primaryKey": false,
159
- "notNull": true
160
- },
161
- "value": {
162
- "name": "value",
163
- "type": "jsonb",
164
- "primaryKey": false,
165
- "notNull": true
166
- },
167
- "createdAt": {
168
- "name": "createdAt",
169
- "type": "timestamptz",
170
- "primaryKey": false,
171
- "notNull": true,
172
- "default": "now()"
173
- },
174
- "expiresAt": {
175
- "name": "expiresAt",
176
- "type": "timestamptz",
177
- "primaryKey": false,
178
- "notNull": false
179
- }
180
- },
181
- "indexes": {},
182
- "foreignKeys": {
183
- "cache_agentId_agents_id_fk": {
184
- "name": "cache_agentId_agents_id_fk",
185
- "tableFrom": "cache",
186
- "tableTo": "agents",
187
- "columnsFrom": [
188
- "agentId"
189
- ],
190
- "columnsTo": [
191
- "id"
192
- ],
193
- "onDelete": "cascade",
194
- "onUpdate": "no action"
195
- }
196
- },
197
- "compositePrimaryKeys": {},
198
- "uniqueConstraints": {
199
- "cache_key_agent_unique": {
200
- "name": "cache_key_agent_unique",
201
- "nullsNotDistinct": false,
202
- "columns": [
203
- "key",
204
- "agentId"
205
- ]
206
- }
207
- },
208
- "policies": {},
209
- "checkConstraints": {},
210
- "isRLSEnabled": false
211
- },
212
- "public.channel_participants": {
213
- "name": "channel_participants",
214
- "schema": "",
215
- "columns": {
216
- "channel_id": {
217
- "name": "channel_id",
218
- "type": "text",
219
- "primaryKey": false,
220
- "notNull": true
221
- },
222
- "user_id": {
223
- "name": "user_id",
224
- "type": "text",
225
- "primaryKey": false,
226
- "notNull": true
227
- }
228
- },
229
- "indexes": {},
230
- "foreignKeys": {
231
- "channel_participants_channel_id_channels_id_fk": {
232
- "name": "channel_participants_channel_id_channels_id_fk",
233
- "tableFrom": "channel_participants",
234
- "tableTo": "channels",
235
- "columnsFrom": [
236
- "channel_id"
237
- ],
238
- "columnsTo": [
239
- "id"
240
- ],
241
- "onDelete": "cascade",
242
- "onUpdate": "no action"
243
- }
244
- },
245
- "compositePrimaryKeys": {
246
- "channel_participants_channel_id_user_id_pk": {
247
- "name": "channel_participants_channel_id_user_id_pk",
248
- "columns": [
249
- "channel_id",
250
- "user_id"
251
- ]
252
- }
253
- },
254
- "uniqueConstraints": {},
255
- "policies": {},
256
- "checkConstraints": {},
257
- "isRLSEnabled": false
258
- },
259
- "public.channels": {
260
- "name": "channels",
261
- "schema": "",
262
- "columns": {
263
- "id": {
264
- "name": "id",
265
- "type": "text",
266
- "primaryKey": true,
267
- "notNull": true
268
- },
269
- "server_id": {
270
- "name": "server_id",
271
- "type": "text",
272
- "primaryKey": false,
273
- "notNull": true
274
- },
275
- "name": {
276
- "name": "name",
277
- "type": "text",
278
- "primaryKey": false,
279
- "notNull": true
280
- },
281
- "type": {
282
- "name": "type",
283
- "type": "text",
284
- "primaryKey": false,
285
- "notNull": true
286
- },
287
- "source_type": {
288
- "name": "source_type",
289
- "type": "text",
290
- "primaryKey": false,
291
- "notNull": false
292
- },
293
- "source_id": {
294
- "name": "source_id",
295
- "type": "text",
296
- "primaryKey": false,
297
- "notNull": false
298
- },
299
- "topic": {
300
- "name": "topic",
301
- "type": "text",
302
- "primaryKey": false,
303
- "notNull": false
304
- },
305
- "metadata": {
306
- "name": "metadata",
307
- "type": "jsonb",
308
- "primaryKey": false,
309
- "notNull": false
310
- },
311
- "created_at": {
312
- "name": "created_at",
313
- "type": "timestamp",
314
- "primaryKey": false,
315
- "notNull": true,
316
- "default": "CURRENT_TIMESTAMP"
317
- },
318
- "updated_at": {
319
- "name": "updated_at",
320
- "type": "timestamp",
321
- "primaryKey": false,
322
- "notNull": true,
323
- "default": "CURRENT_TIMESTAMP"
324
- }
325
- },
326
- "indexes": {},
327
- "foreignKeys": {
328
- "channels_server_id_message_servers_id_fk": {
329
- "name": "channels_server_id_message_servers_id_fk",
330
- "tableFrom": "channels",
331
- "tableTo": "message_servers",
332
- "columnsFrom": [
333
- "server_id"
334
- ],
335
- "columnsTo": [
336
- "id"
337
- ],
338
- "onDelete": "cascade",
339
- "onUpdate": "no action"
340
- }
341
- },
342
- "compositePrimaryKeys": {},
343
- "uniqueConstraints": {},
344
- "policies": {},
345
- "checkConstraints": {},
346
- "isRLSEnabled": false
347
- },
348
- "public.components": {
349
- "name": "components",
350
- "schema": "",
351
- "columns": {
352
- "id": {
353
- "name": "id",
354
- "type": "uuid",
355
- "primaryKey": true,
356
- "notNull": true,
357
- "default": "gen_random_uuid()"
358
- },
359
- "entityId": {
360
- "name": "entityId",
361
- "type": "uuid",
362
- "primaryKey": false,
363
- "notNull": true
364
- },
365
- "agentId": {
366
- "name": "agentId",
367
- "type": "uuid",
368
- "primaryKey": false,
369
- "notNull": true
370
- },
371
- "roomId": {
372
- "name": "roomId",
373
- "type": "uuid",
374
- "primaryKey": false,
375
- "notNull": true
376
- },
377
- "worldId": {
378
- "name": "worldId",
379
- "type": "uuid",
380
- "primaryKey": false,
381
- "notNull": false
382
- },
383
- "sourceEntityId": {
384
- "name": "sourceEntityId",
385
- "type": "uuid",
386
- "primaryKey": false,
387
- "notNull": false
388
- },
389
- "type": {
390
- "name": "type",
391
- "type": "text",
392
- "primaryKey": false,
393
- "notNull": true
394
- },
395
- "data": {
396
- "name": "data",
397
- "type": "jsonb",
398
- "primaryKey": false,
399
- "notNull": false,
400
- "default": "'{}'::jsonb"
401
- },
402
- "createdAt": {
403
- "name": "createdAt",
404
- "type": "timestamptz",
405
- "primaryKey": false,
406
- "notNull": true,
407
- "default": "now()"
408
- }
409
- },
410
- "indexes": {},
411
- "foreignKeys": {
412
- "components_entityId_entities_id_fk": {
413
- "name": "components_entityId_entities_id_fk",
414
- "tableFrom": "components",
415
- "tableTo": "entities",
416
- "columnsFrom": [
417
- "entityId"
418
- ],
419
- "columnsTo": [
420
- "id"
421
- ],
422
- "onDelete": "cascade",
423
- "onUpdate": "no action"
424
- },
425
- "components_agentId_agents_id_fk": {
426
- "name": "components_agentId_agents_id_fk",
427
- "tableFrom": "components",
428
- "tableTo": "agents",
429
- "columnsFrom": [
430
- "agentId"
431
- ],
432
- "columnsTo": [
433
- "id"
434
- ],
435
- "onDelete": "cascade",
436
- "onUpdate": "no action"
437
- },
438
- "components_roomId_rooms_id_fk": {
439
- "name": "components_roomId_rooms_id_fk",
440
- "tableFrom": "components",
441
- "tableTo": "rooms",
442
- "columnsFrom": [
443
- "roomId"
444
- ],
445
- "columnsTo": [
446
- "id"
447
- ],
448
- "onDelete": "cascade",
449
- "onUpdate": "no action"
450
- },
451
- "components_worldId_worlds_id_fk": {
452
- "name": "components_worldId_worlds_id_fk",
453
- "tableFrom": "components",
454
- "tableTo": "worlds",
455
- "columnsFrom": [
456
- "worldId"
457
- ],
458
- "columnsTo": [
459
- "id"
460
- ],
461
- "onDelete": "cascade",
462
- "onUpdate": "no action"
463
- },
464
- "components_sourceEntityId_entities_id_fk": {
465
- "name": "components_sourceEntityId_entities_id_fk",
466
- "tableFrom": "components",
467
- "tableTo": "entities",
468
- "columnsFrom": [
469
- "sourceEntityId"
470
- ],
471
- "columnsTo": [
472
- "id"
473
- ],
474
- "onDelete": "cascade",
475
- "onUpdate": "no action"
476
- }
477
- },
478
- "compositePrimaryKeys": {},
479
- "uniqueConstraints": {},
480
- "policies": {},
481
- "checkConstraints": {},
482
- "isRLSEnabled": false
483
- },
484
- "public.embeddings": {
485
- "name": "embeddings",
486
- "schema": "",
487
- "columns": {
488
- "id": {
489
- "name": "id",
490
- "type": "uuid",
491
- "primaryKey": true,
492
- "notNull": true,
493
- "default": "gen_random_uuid()"
494
- },
495
- "memory_id": {
496
- "name": "memory_id",
497
- "type": "uuid",
498
- "primaryKey": false,
499
- "notNull": false
500
- },
501
- "created_at": {
502
- "name": "created_at",
503
- "type": "timestamptz",
504
- "primaryKey": false,
505
- "notNull": true,
506
- "default": "now()"
507
- },
508
- "dim_384": {
509
- "name": "dim_384",
510
- "type": "vector(384)",
511
- "primaryKey": false,
512
- "notNull": false
513
- },
514
- "dim_512": {
515
- "name": "dim_512",
516
- "type": "vector(512)",
517
- "primaryKey": false,
518
- "notNull": false
519
- },
520
- "dim_768": {
521
- "name": "dim_768",
522
- "type": "vector(768)",
523
- "primaryKey": false,
524
- "notNull": false
525
- },
526
- "dim_1024": {
527
- "name": "dim_1024",
528
- "type": "vector(1024)",
529
- "primaryKey": false,
530
- "notNull": false
531
- },
532
- "dim_1536": {
533
- "name": "dim_1536",
534
- "type": "vector(1536)",
535
- "primaryKey": false,
536
- "notNull": false
537
- },
538
- "dim_3072": {
539
- "name": "dim_3072",
540
- "type": "vector(3072)",
541
- "primaryKey": false,
542
- "notNull": false
543
- }
544
- },
545
- "indexes": {
546
- "idx_embedding_memory": {
547
- "name": "idx_embedding_memory",
548
- "columns": [
549
- {
550
- "expression": "memory_id",
551
- "isExpression": false,
552
- "asc": true,
553
- "nulls": "last"
554
- }
555
- ],
556
- "isUnique": false,
557
- "concurrently": false,
558
- "method": "btree",
559
- "with": {}
560
- }
561
- },
562
- "foreignKeys": {
563
- "embeddings_memory_id_memories_id_fk": {
564
- "name": "embeddings_memory_id_memories_id_fk",
565
- "tableFrom": "embeddings",
566
- "tableTo": "memories",
567
- "columnsFrom": [
568
- "memory_id"
569
- ],
570
- "columnsTo": [
571
- "id"
572
- ],
573
- "onDelete": "no action",
574
- "onUpdate": "no action"
575
- },
576
- "fk_embedding_memory": {
577
- "name": "fk_embedding_memory",
578
- "tableFrom": "embeddings",
579
- "tableTo": "memories",
580
- "columnsFrom": [
581
- "memory_id"
582
- ],
583
- "columnsTo": [
584
- "id"
585
- ],
586
- "onDelete": "cascade",
587
- "onUpdate": "no action"
588
- }
589
- },
590
- "compositePrimaryKeys": {},
591
- "uniqueConstraints": {},
592
- "policies": {},
593
- "checkConstraints": {
594
- "embedding_source_check": {
595
- "name": "embedding_source_check",
596
- "value": "\"memory_id\" IS NOT NULL"
597
- }
598
- },
599
- "isRLSEnabled": false
600
- },
601
- "public.entities": {
602
- "name": "entities",
603
- "schema": "",
604
- "columns": {
605
- "id": {
606
- "name": "id",
607
- "type": "uuid",
608
- "primaryKey": true,
609
- "notNull": true
610
- },
611
- "agentId": {
612
- "name": "agentId",
613
- "type": "uuid",
614
- "primaryKey": false,
615
- "notNull": true
616
- },
617
- "createdAt": {
618
- "name": "createdAt",
619
- "type": "timestamptz",
620
- "primaryKey": false,
621
- "notNull": true,
622
- "default": "now()"
623
- },
624
- "names": {
625
- "name": "names",
626
- "type": "text[]",
627
- "primaryKey": false,
628
- "notNull": true,
629
- "default": "'{}'::text[]"
630
- },
631
- "metadata": {
632
- "name": "metadata",
633
- "type": "jsonb",
634
- "primaryKey": false,
635
- "notNull": true,
636
- "default": "'{}'::jsonb"
637
- }
638
- },
639
- "indexes": {},
640
- "foreignKeys": {
641
- "entities_agentId_agents_id_fk": {
642
- "name": "entities_agentId_agents_id_fk",
643
- "tableFrom": "entities",
644
- "tableTo": "agents",
645
- "columnsFrom": [
646
- "agentId"
647
- ],
648
- "columnsTo": [
649
- "id"
650
- ],
651
- "onDelete": "cascade",
652
- "onUpdate": "no action"
653
- }
654
- },
655
- "compositePrimaryKeys": {},
656
- "uniqueConstraints": {
657
- "id_agent_id_unique": {
658
- "name": "id_agent_id_unique",
659
- "nullsNotDistinct": false,
660
- "columns": [
661
- "id",
662
- "agentId"
663
- ]
664
- }
665
- },
666
- "policies": {},
667
- "checkConstraints": {},
668
- "isRLSEnabled": false
669
- },
670
- "public.logs": {
671
- "name": "logs",
672
- "schema": "",
673
- "columns": {
674
- "id": {
675
- "name": "id",
676
- "type": "uuid",
677
- "primaryKey": false,
678
- "notNull": true,
679
- "default": "gen_random_uuid()"
680
- },
681
- "createdAt": {
682
- "name": "createdAt",
683
- "type": "timestamptz",
684
- "primaryKey": false,
685
- "notNull": true,
686
- "default": "now()"
687
- },
688
- "entityId": {
689
- "name": "entityId",
690
- "type": "uuid",
691
- "primaryKey": false,
692
- "notNull": true
693
- },
694
- "body": {
695
- "name": "body",
696
- "type": "jsonb",
697
- "primaryKey": false,
698
- "notNull": true
699
- },
700
- "type": {
701
- "name": "type",
702
- "type": "text",
703
- "primaryKey": false,
704
- "notNull": true
705
- },
706
- "roomId": {
707
- "name": "roomId",
708
- "type": "uuid",
709
- "primaryKey": false,
710
- "notNull": true
711
- }
712
- },
713
- "indexes": {},
714
- "foreignKeys": {
715
- "logs_entityId_entities_id_fk": {
716
- "name": "logs_entityId_entities_id_fk",
717
- "tableFrom": "logs",
718
- "tableTo": "entities",
719
- "columnsFrom": [
720
- "entityId"
721
- ],
722
- "columnsTo": [
723
- "id"
724
- ],
725
- "onDelete": "no action",
726
- "onUpdate": "no action"
727
- },
728
- "logs_roomId_rooms_id_fk": {
729
- "name": "logs_roomId_rooms_id_fk",
730
- "tableFrom": "logs",
731
- "tableTo": "rooms",
732
- "columnsFrom": [
733
- "roomId"
734
- ],
735
- "columnsTo": [
736
- "id"
737
- ],
738
- "onDelete": "cascade",
739
- "onUpdate": "no action"
740
- },
741
- "fk_room": {
742
- "name": "fk_room",
743
- "tableFrom": "logs",
744
- "tableTo": "rooms",
745
- "columnsFrom": [
746
- "roomId"
747
- ],
748
- "columnsTo": [
749
- "id"
750
- ],
751
- "onDelete": "cascade",
752
- "onUpdate": "no action"
753
- },
754
- "fk_user": {
755
- "name": "fk_user",
756
- "tableFrom": "logs",
757
- "tableTo": "entities",
758
- "columnsFrom": [
759
- "entityId"
760
- ],
761
- "columnsTo": [
762
- "id"
763
- ],
764
- "onDelete": "cascade",
765
- "onUpdate": "no action"
766
- }
767
- },
768
- "compositePrimaryKeys": {},
769
- "uniqueConstraints": {},
770
- "policies": {},
771
- "checkConstraints": {},
772
- "isRLSEnabled": false
773
- },
774
- "public.memories": {
775
- "name": "memories",
776
- "schema": "",
777
- "columns": {
778
- "id": {
779
- "name": "id",
780
- "type": "uuid",
781
- "primaryKey": true,
782
- "notNull": true
783
- },
784
- "type": {
785
- "name": "type",
786
- "type": "text",
787
- "primaryKey": false,
788
- "notNull": true
789
- },
790
- "createdAt": {
791
- "name": "createdAt",
792
- "type": "timestamptz",
793
- "primaryKey": false,
794
- "notNull": true,
795
- "default": "now()"
796
- },
797
- "content": {
798
- "name": "content",
799
- "type": "jsonb",
800
- "primaryKey": false,
801
- "notNull": true
802
- },
803
- "entityId": {
804
- "name": "entityId",
805
- "type": "uuid",
806
- "primaryKey": false,
807
- "notNull": false
808
- },
809
- "agentId": {
810
- "name": "agentId",
811
- "type": "uuid",
812
- "primaryKey": false,
813
- "notNull": true
814
- },
815
- "roomId": {
816
- "name": "roomId",
817
- "type": "uuid",
818
- "primaryKey": false,
819
- "notNull": false
820
- },
821
- "worldId": {
822
- "name": "worldId",
823
- "type": "uuid",
824
- "primaryKey": false,
825
- "notNull": false
826
- },
827
- "unique": {
828
- "name": "unique",
829
- "type": "boolean",
830
- "primaryKey": false,
831
- "notNull": true,
832
- "default": true
833
- },
834
- "metadata": {
835
- "name": "metadata",
836
- "type": "jsonb",
837
- "primaryKey": false,
838
- "notNull": true,
839
- "default": "'{}'::jsonb"
840
- }
841
- },
842
- "indexes": {
843
- "idx_memories_type_room": {
844
- "name": "idx_memories_type_room",
845
- "columns": [
846
- {
847
- "expression": "type",
848
- "isExpression": false,
849
- "asc": true,
850
- "nulls": "last"
851
- },
852
- {
853
- "expression": "roomId",
854
- "isExpression": false,
855
- "asc": true,
856
- "nulls": "last"
857
- }
858
- ],
859
- "isUnique": false,
860
- "concurrently": false,
861
- "method": "btree",
862
- "with": {}
863
- },
864
- "idx_memories_world_id": {
865
- "name": "idx_memories_world_id",
866
- "columns": [
867
- {
868
- "expression": "worldId",
869
- "isExpression": false,
870
- "asc": true,
871
- "nulls": "last"
872
- }
873
- ],
874
- "isUnique": false,
875
- "concurrently": false,
876
- "method": "btree",
877
- "with": {}
878
- },
879
- "idx_memories_metadata_type": {
880
- "name": "idx_memories_metadata_type",
881
- "columns": [
882
- {
883
- "expression": "((metadata->>'type'))",
884
- "asc": true,
885
- "isExpression": true,
886
- "nulls": "last"
887
- }
888
- ],
889
- "isUnique": false,
890
- "concurrently": false,
891
- "method": "btree",
892
- "with": {}
893
- },
894
- "idx_memories_document_id": {
895
- "name": "idx_memories_document_id",
896
- "columns": [
897
- {
898
- "expression": "((metadata->>'documentId'))",
899
- "asc": true,
900
- "isExpression": true,
901
- "nulls": "last"
902
- }
903
- ],
904
- "isUnique": false,
905
- "concurrently": false,
906
- "method": "btree",
907
- "with": {}
908
- },
909
- "idx_fragments_order": {
910
- "name": "idx_fragments_order",
911
- "columns": [
912
- {
913
- "expression": "((metadata->>'documentId'))",
914
- "asc": true,
915
- "isExpression": true,
916
- "nulls": "last"
917
- },
918
- {
919
- "expression": "((metadata->>'position'))",
920
- "asc": true,
921
- "isExpression": true,
922
- "nulls": "last"
923
- }
924
- ],
925
- "isUnique": false,
926
- "concurrently": false,
927
- "method": "btree",
928
- "with": {}
929
- }
930
- },
931
- "foreignKeys": {
932
- "memories_entityId_entities_id_fk": {
933
- "name": "memories_entityId_entities_id_fk",
934
- "tableFrom": "memories",
935
- "tableTo": "entities",
936
- "columnsFrom": [
937
- "entityId"
938
- ],
939
- "columnsTo": [
940
- "id"
941
- ],
942
- "onDelete": "cascade",
943
- "onUpdate": "no action"
944
- },
945
- "memories_agentId_agents_id_fk": {
946
- "name": "memories_agentId_agents_id_fk",
947
- "tableFrom": "memories",
948
- "tableTo": "agents",
949
- "columnsFrom": [
950
- "agentId"
951
- ],
952
- "columnsTo": [
953
- "id"
954
- ],
955
- "onDelete": "cascade",
956
- "onUpdate": "no action"
957
- },
958
- "memories_roomId_rooms_id_fk": {
959
- "name": "memories_roomId_rooms_id_fk",
960
- "tableFrom": "memories",
961
- "tableTo": "rooms",
962
- "columnsFrom": [
963
- "roomId"
964
- ],
965
- "columnsTo": [
966
- "id"
967
- ],
968
- "onDelete": "cascade",
969
- "onUpdate": "no action"
970
- },
971
- "fk_room": {
972
- "name": "fk_room",
973
- "tableFrom": "memories",
974
- "tableTo": "rooms",
975
- "columnsFrom": [
976
- "roomId"
977
- ],
978
- "columnsTo": [
979
- "id"
980
- ],
981
- "onDelete": "cascade",
982
- "onUpdate": "no action"
983
- },
984
- "fk_user": {
985
- "name": "fk_user",
986
- "tableFrom": "memories",
987
- "tableTo": "entities",
988
- "columnsFrom": [
989
- "entityId"
990
- ],
991
- "columnsTo": [
992
- "id"
993
- ],
994
- "onDelete": "cascade",
995
- "onUpdate": "no action"
996
- },
997
- "fk_agent": {
998
- "name": "fk_agent",
999
- "tableFrom": "memories",
1000
- "tableTo": "agents",
1001
- "columnsFrom": [
1002
- "agentId"
1003
- ],
1004
- "columnsTo": [
1005
- "id"
1006
- ],
1007
- "onDelete": "cascade",
1008
- "onUpdate": "no action"
1009
- }
1010
- },
1011
- "compositePrimaryKeys": {},
1012
- "uniqueConstraints": {},
1013
- "policies": {},
1014
- "checkConstraints": {
1015
- "fragment_metadata_check": {
1016
- "name": "fragment_metadata_check",
1017
- "value": "\n CASE \n WHEN metadata->>'type' = 'fragment' THEN\n metadata ? 'documentId' AND \n metadata ? 'position'\n ELSE true\n END\n "
1018
- },
1019
- "document_metadata_check": {
1020
- "name": "document_metadata_check",
1021
- "value": "\n CASE \n WHEN metadata->>'type' = 'document' THEN\n metadata ? 'timestamp'\n ELSE true\n END\n "
1022
- }
1023
- },
1024
- "isRLSEnabled": false
1025
- },
1026
- "public.message_servers": {
1027
- "name": "message_servers",
1028
- "schema": "",
1029
- "columns": {
1030
- "id": {
1031
- "name": "id",
1032
- "type": "text",
1033
- "primaryKey": true,
1034
- "notNull": true
1035
- },
1036
- "name": {
1037
- "name": "name",
1038
- "type": "text",
1039
- "primaryKey": false,
1040
- "notNull": true
1041
- },
1042
- "source_type": {
1043
- "name": "source_type",
1044
- "type": "text",
1045
- "primaryKey": false,
1046
- "notNull": true
1047
- },
1048
- "source_id": {
1049
- "name": "source_id",
1050
- "type": "text",
1051
- "primaryKey": false,
1052
- "notNull": false
1053
- },
1054
- "metadata": {
1055
- "name": "metadata",
1056
- "type": "jsonb",
1057
- "primaryKey": false,
1058
- "notNull": false
1059
- },
1060
- "created_at": {
1061
- "name": "created_at",
1062
- "type": "timestamp",
1063
- "primaryKey": false,
1064
- "notNull": true,
1065
- "default": "CURRENT_TIMESTAMP"
1066
- },
1067
- "updated_at": {
1068
- "name": "updated_at",
1069
- "type": "timestamp",
1070
- "primaryKey": false,
1071
- "notNull": true,
1072
- "default": "CURRENT_TIMESTAMP"
1073
- }
1074
- },
1075
- "indexes": {},
1076
- "foreignKeys": {},
1077
- "compositePrimaryKeys": {},
1078
- "uniqueConstraints": {},
1079
- "policies": {},
1080
- "checkConstraints": {},
1081
- "isRLSEnabled": false
1082
- },
1083
- "public.central_messages": {
1084
- "name": "central_messages",
1085
- "schema": "",
1086
- "columns": {
1087
- "id": {
1088
- "name": "id",
1089
- "type": "text",
1090
- "primaryKey": true,
1091
- "notNull": true
1092
- },
1093
- "channel_id": {
1094
- "name": "channel_id",
1095
- "type": "text",
1096
- "primaryKey": false,
1097
- "notNull": true
1098
- },
1099
- "author_id": {
1100
- "name": "author_id",
1101
- "type": "text",
1102
- "primaryKey": false,
1103
- "notNull": true
1104
- },
1105
- "content": {
1106
- "name": "content",
1107
- "type": "text",
1108
- "primaryKey": false,
1109
- "notNull": true
1110
- },
1111
- "raw_message": {
1112
- "name": "raw_message",
1113
- "type": "jsonb",
1114
- "primaryKey": false,
1115
- "notNull": false
1116
- },
1117
- "in_reply_to_root_message_id": {
1118
- "name": "in_reply_to_root_message_id",
1119
- "type": "text",
1120
- "primaryKey": false,
1121
- "notNull": false
1122
- },
1123
- "source_type": {
1124
- "name": "source_type",
1125
- "type": "text",
1126
- "primaryKey": false,
1127
- "notNull": false
1128
- },
1129
- "source_id": {
1130
- "name": "source_id",
1131
- "type": "text",
1132
- "primaryKey": false,
1133
- "notNull": false
1134
- },
1135
- "metadata": {
1136
- "name": "metadata",
1137
- "type": "jsonb",
1138
- "primaryKey": false,
1139
- "notNull": false
1140
- },
1141
- "created_at": {
1142
- "name": "created_at",
1143
- "type": "timestamp",
1144
- "primaryKey": false,
1145
- "notNull": true,
1146
- "default": "CURRENT_TIMESTAMP"
1147
- },
1148
- "updated_at": {
1149
- "name": "updated_at",
1150
- "type": "timestamp",
1151
- "primaryKey": false,
1152
- "notNull": true,
1153
- "default": "CURRENT_TIMESTAMP"
1154
- }
1155
- },
1156
- "indexes": {},
1157
- "foreignKeys": {
1158
- "central_messages_channel_id_channels_id_fk": {
1159
- "name": "central_messages_channel_id_channels_id_fk",
1160
- "tableFrom": "central_messages",
1161
- "tableTo": "channels",
1162
- "columnsFrom": [
1163
- "channel_id"
1164
- ],
1165
- "columnsTo": [
1166
- "id"
1167
- ],
1168
- "onDelete": "cascade",
1169
- "onUpdate": "no action"
1170
- },
1171
- "central_messages_in_reply_to_root_message_id_central_messages_id_fk": {
1172
- "name": "central_messages_in_reply_to_root_message_id_central_messages_id_fk",
1173
- "tableFrom": "central_messages",
1174
- "tableTo": "central_messages",
1175
- "columnsFrom": [
1176
- "in_reply_to_root_message_id"
1177
- ],
1178
- "columnsTo": [
1179
- "id"
1180
- ],
1181
- "onDelete": "set null",
1182
- "onUpdate": "no action"
1183
- }
1184
- },
1185
- "compositePrimaryKeys": {},
1186
- "uniqueConstraints": {},
1187
- "policies": {},
1188
- "checkConstraints": {},
1189
- "isRLSEnabled": false
1190
- },
1191
- "public.participants": {
1192
- "name": "participants",
1193
- "schema": "",
1194
- "columns": {
1195
- "id": {
1196
- "name": "id",
1197
- "type": "uuid",
1198
- "primaryKey": true,
1199
- "notNull": true,
1200
- "default": "gen_random_uuid()"
1201
- },
1202
- "createdAt": {
1203
- "name": "createdAt",
1204
- "type": "timestamptz",
1205
- "primaryKey": false,
1206
- "notNull": true,
1207
- "default": "now()"
1208
- },
1209
- "entityId": {
1210
- "name": "entityId",
1211
- "type": "uuid",
1212
- "primaryKey": false,
1213
- "notNull": false
1214
- },
1215
- "roomId": {
1216
- "name": "roomId",
1217
- "type": "uuid",
1218
- "primaryKey": false,
1219
- "notNull": false
1220
- },
1221
- "agentId": {
1222
- "name": "agentId",
1223
- "type": "uuid",
1224
- "primaryKey": false,
1225
- "notNull": false
1226
- },
1227
- "roomState": {
1228
- "name": "roomState",
1229
- "type": "text",
1230
- "primaryKey": false,
1231
- "notNull": false
1232
- }
1233
- },
1234
- "indexes": {
1235
- "idx_participants_user": {
1236
- "name": "idx_participants_user",
1237
- "columns": [
1238
- {
1239
- "expression": "entityId",
1240
- "isExpression": false,
1241
- "asc": true,
1242
- "nulls": "last"
1243
- }
1244
- ],
1245
- "isUnique": false,
1246
- "concurrently": false,
1247
- "method": "btree",
1248
- "with": {}
1249
- },
1250
- "idx_participants_room": {
1251
- "name": "idx_participants_room",
1252
- "columns": [
1253
- {
1254
- "expression": "roomId",
1255
- "isExpression": false,
1256
- "asc": true,
1257
- "nulls": "last"
1258
- }
1259
- ],
1260
- "isUnique": false,
1261
- "concurrently": false,
1262
- "method": "btree",
1263
- "with": {}
1264
- }
1265
- },
1266
- "foreignKeys": {
1267
- "participants_entityId_entities_id_fk": {
1268
- "name": "participants_entityId_entities_id_fk",
1269
- "tableFrom": "participants",
1270
- "tableTo": "entities",
1271
- "columnsFrom": [
1272
- "entityId"
1273
- ],
1274
- "columnsTo": [
1275
- "id"
1276
- ],
1277
- "onDelete": "cascade",
1278
- "onUpdate": "no action"
1279
- },
1280
- "participants_roomId_rooms_id_fk": {
1281
- "name": "participants_roomId_rooms_id_fk",
1282
- "tableFrom": "participants",
1283
- "tableTo": "rooms",
1284
- "columnsFrom": [
1285
- "roomId"
1286
- ],
1287
- "columnsTo": [
1288
- "id"
1289
- ],
1290
- "onDelete": "cascade",
1291
- "onUpdate": "no action"
1292
- },
1293
- "participants_agentId_agents_id_fk": {
1294
- "name": "participants_agentId_agents_id_fk",
1295
- "tableFrom": "participants",
1296
- "tableTo": "agents",
1297
- "columnsFrom": [
1298
- "agentId"
1299
- ],
1300
- "columnsTo": [
1301
- "id"
1302
- ],
1303
- "onDelete": "cascade",
1304
- "onUpdate": "no action"
1305
- },
1306
- "fk_room": {
1307
- "name": "fk_room",
1308
- "tableFrom": "participants",
1309
- "tableTo": "rooms",
1310
- "columnsFrom": [
1311
- "roomId"
1312
- ],
1313
- "columnsTo": [
1314
- "id"
1315
- ],
1316
- "onDelete": "cascade",
1317
- "onUpdate": "no action"
1318
- },
1319
- "fk_user": {
1320
- "name": "fk_user",
1321
- "tableFrom": "participants",
1322
- "tableTo": "entities",
1323
- "columnsFrom": [
1324
- "entityId"
1325
- ],
1326
- "columnsTo": [
1327
- "id"
1328
- ],
1329
- "onDelete": "cascade",
1330
- "onUpdate": "no action"
1331
- }
1332
- },
1333
- "compositePrimaryKeys": {},
1334
- "uniqueConstraints": {},
1335
- "policies": {},
1336
- "checkConstraints": {},
1337
- "isRLSEnabled": false
1338
- },
1339
- "public.relationships": {
1340
- "name": "relationships",
1341
- "schema": "",
1342
- "columns": {
1343
- "id": {
1344
- "name": "id",
1345
- "type": "uuid",
1346
- "primaryKey": true,
1347
- "notNull": true,
1348
- "default": "gen_random_uuid()"
1349
- },
1350
- "createdAt": {
1351
- "name": "createdAt",
1352
- "type": "timestamptz",
1353
- "primaryKey": false,
1354
- "notNull": true,
1355
- "default": "now()"
1356
- },
1357
- "sourceEntityId": {
1358
- "name": "sourceEntityId",
1359
- "type": "uuid",
1360
- "primaryKey": false,
1361
- "notNull": true
1362
- },
1363
- "targetEntityId": {
1364
- "name": "targetEntityId",
1365
- "type": "uuid",
1366
- "primaryKey": false,
1367
- "notNull": true
1368
- },
1369
- "agentId": {
1370
- "name": "agentId",
1371
- "type": "uuid",
1372
- "primaryKey": false,
1373
- "notNull": true
1374
- },
1375
- "tags": {
1376
- "name": "tags",
1377
- "type": "text[]",
1378
- "primaryKey": false,
1379
- "notNull": false
1380
- },
1381
- "metadata": {
1382
- "name": "metadata",
1383
- "type": "jsonb",
1384
- "primaryKey": false,
1385
- "notNull": false
1386
- }
1387
- },
1388
- "indexes": {
1389
- "idx_relationships_users": {
1390
- "name": "idx_relationships_users",
1391
- "columns": [
1392
- {
1393
- "expression": "sourceEntityId",
1394
- "isExpression": false,
1395
- "asc": true,
1396
- "nulls": "last"
1397
- },
1398
- {
1399
- "expression": "targetEntityId",
1400
- "isExpression": false,
1401
- "asc": true,
1402
- "nulls": "last"
1403
- }
1404
- ],
1405
- "isUnique": false,
1406
- "concurrently": false,
1407
- "method": "btree",
1408
- "with": {}
1409
- }
1410
- },
1411
- "foreignKeys": {
1412
- "relationships_sourceEntityId_entities_id_fk": {
1413
- "name": "relationships_sourceEntityId_entities_id_fk",
1414
- "tableFrom": "relationships",
1415
- "tableTo": "entities",
1416
- "columnsFrom": [
1417
- "sourceEntityId"
1418
- ],
1419
- "columnsTo": [
1420
- "id"
1421
- ],
1422
- "onDelete": "cascade",
1423
- "onUpdate": "no action"
1424
- },
1425
- "relationships_targetEntityId_entities_id_fk": {
1426
- "name": "relationships_targetEntityId_entities_id_fk",
1427
- "tableFrom": "relationships",
1428
- "tableTo": "entities",
1429
- "columnsFrom": [
1430
- "targetEntityId"
1431
- ],
1432
- "columnsTo": [
1433
- "id"
1434
- ],
1435
- "onDelete": "cascade",
1436
- "onUpdate": "no action"
1437
- },
1438
- "relationships_agentId_agents_id_fk": {
1439
- "name": "relationships_agentId_agents_id_fk",
1440
- "tableFrom": "relationships",
1441
- "tableTo": "agents",
1442
- "columnsFrom": [
1443
- "agentId"
1444
- ],
1445
- "columnsTo": [
1446
- "id"
1447
- ],
1448
- "onDelete": "cascade",
1449
- "onUpdate": "no action"
1450
- },
1451
- "fk_user_a": {
1452
- "name": "fk_user_a",
1453
- "tableFrom": "relationships",
1454
- "tableTo": "entities",
1455
- "columnsFrom": [
1456
- "sourceEntityId"
1457
- ],
1458
- "columnsTo": [
1459
- "id"
1460
- ],
1461
- "onDelete": "cascade",
1462
- "onUpdate": "no action"
1463
- },
1464
- "fk_user_b": {
1465
- "name": "fk_user_b",
1466
- "tableFrom": "relationships",
1467
- "tableTo": "entities",
1468
- "columnsFrom": [
1469
- "targetEntityId"
1470
- ],
1471
- "columnsTo": [
1472
- "id"
1473
- ],
1474
- "onDelete": "cascade",
1475
- "onUpdate": "no action"
1476
- }
1477
- },
1478
- "compositePrimaryKeys": {},
1479
- "uniqueConstraints": {
1480
- "unique_relationship": {
1481
- "name": "unique_relationship",
1482
- "nullsNotDistinct": false,
1483
- "columns": [
1484
- "sourceEntityId",
1485
- "targetEntityId",
1486
- "agentId"
1487
- ]
1488
- }
1489
- },
1490
- "policies": {},
1491
- "checkConstraints": {},
1492
- "isRLSEnabled": false
1493
- },
1494
- "public.rooms": {
1495
- "name": "rooms",
1496
- "schema": "",
1497
- "columns": {
1498
- "id": {
1499
- "name": "id",
1500
- "type": "uuid",
1501
- "primaryKey": true,
1502
- "notNull": true,
1503
- "default": "gen_random_uuid()"
1504
- },
1505
- "agentId": {
1506
- "name": "agentId",
1507
- "type": "uuid",
1508
- "primaryKey": false,
1509
- "notNull": false
1510
- },
1511
- "source": {
1512
- "name": "source",
1513
- "type": "text",
1514
- "primaryKey": false,
1515
- "notNull": true
1516
- },
1517
- "type": {
1518
- "name": "type",
1519
- "type": "text",
1520
- "primaryKey": false,
1521
- "notNull": true
1522
- },
1523
- "serverId": {
1524
- "name": "serverId",
1525
- "type": "text",
1526
- "primaryKey": false,
1527
- "notNull": false
1528
- },
1529
- "worldId": {
1530
- "name": "worldId",
1531
- "type": "uuid",
1532
- "primaryKey": false,
1533
- "notNull": false
1534
- },
1535
- "name": {
1536
- "name": "name",
1537
- "type": "text",
1538
- "primaryKey": false,
1539
- "notNull": false
1540
- },
1541
- "metadata": {
1542
- "name": "metadata",
1543
- "type": "jsonb",
1544
- "primaryKey": false,
1545
- "notNull": false
1546
- },
1547
- "channelId": {
1548
- "name": "channelId",
1549
- "type": "text",
1550
- "primaryKey": false,
1551
- "notNull": false
1552
- },
1553
- "createdAt": {
1554
- "name": "createdAt",
1555
- "type": "timestamptz",
1556
- "primaryKey": false,
1557
- "notNull": true,
1558
- "default": "now()"
1559
- }
1560
- },
1561
- "indexes": {},
1562
- "foreignKeys": {
1563
- "rooms_agentId_agents_id_fk": {
1564
- "name": "rooms_agentId_agents_id_fk",
1565
- "tableFrom": "rooms",
1566
- "tableTo": "agents",
1567
- "columnsFrom": [
1568
- "agentId"
1569
- ],
1570
- "columnsTo": [
1571
- "id"
1572
- ],
1573
- "onDelete": "cascade",
1574
- "onUpdate": "no action"
1575
- }
1576
- },
1577
- "compositePrimaryKeys": {},
1578
- "uniqueConstraints": {},
1579
- "policies": {},
1580
- "checkConstraints": {},
1581
- "isRLSEnabled": false
1582
- },
1583
- "public.server_agents": {
1584
- "name": "server_agents",
1585
- "schema": "",
1586
- "columns": {
1587
- "server_id": {
1588
- "name": "server_id",
1589
- "type": "text",
1590
- "primaryKey": false,
1591
- "notNull": true
1592
- },
1593
- "agent_id": {
1594
- "name": "agent_id",
1595
- "type": "text",
1596
- "primaryKey": false,
1597
- "notNull": true
1598
- }
1599
- },
1600
- "indexes": {},
1601
- "foreignKeys": {
1602
- "server_agents_server_id_message_servers_id_fk": {
1603
- "name": "server_agents_server_id_message_servers_id_fk",
1604
- "tableFrom": "server_agents",
1605
- "tableTo": "message_servers",
1606
- "columnsFrom": [
1607
- "server_id"
1608
- ],
1609
- "columnsTo": [
1610
- "id"
1611
- ],
1612
- "onDelete": "cascade",
1613
- "onUpdate": "no action"
1614
- }
1615
- },
1616
- "compositePrimaryKeys": {
1617
- "server_agents_server_id_agent_id_pk": {
1618
- "name": "server_agents_server_id_agent_id_pk",
1619
- "columns": [
1620
- "server_id",
1621
- "agent_id"
1622
- ]
1623
- }
1624
- },
1625
- "uniqueConstraints": {},
1626
- "policies": {},
1627
- "checkConstraints": {},
1628
- "isRLSEnabled": false
1629
- },
1630
- "public.tasks": {
1631
- "name": "tasks",
1632
- "schema": "",
1633
- "columns": {
1634
- "id": {
1635
- "name": "id",
1636
- "type": "uuid",
1637
- "primaryKey": true,
1638
- "notNull": true,
1639
- "default": "gen_random_uuid()"
1640
- },
1641
- "name": {
1642
- "name": "name",
1643
- "type": "text",
1644
- "primaryKey": false,
1645
- "notNull": true
1646
- },
1647
- "description": {
1648
- "name": "description",
1649
- "type": "text",
1650
- "primaryKey": false,
1651
- "notNull": false
1652
- },
1653
- "roomId": {
1654
- "name": "roomId",
1655
- "type": "uuid",
1656
- "primaryKey": false,
1657
- "notNull": false
1658
- },
1659
- "worldId": {
1660
- "name": "worldId",
1661
- "type": "uuid",
1662
- "primaryKey": false,
1663
- "notNull": false
1664
- },
1665
- "entityId": {
1666
- "name": "entityId",
1667
- "type": "uuid",
1668
- "primaryKey": false,
1669
- "notNull": false
1670
- },
1671
- "agent_id": {
1672
- "name": "agent_id",
1673
- "type": "uuid",
1674
- "primaryKey": false,
1675
- "notNull": true
1676
- },
1677
- "tags": {
1678
- "name": "tags",
1679
- "type": "text[]",
1680
- "primaryKey": false,
1681
- "notNull": false,
1682
- "default": "'{}'::text[]"
1683
- },
1684
- "metadata": {
1685
- "name": "metadata",
1686
- "type": "jsonb",
1687
- "primaryKey": false,
1688
- "notNull": false,
1689
- "default": "'{}'::jsonb"
1690
- },
1691
- "created_at": {
1692
- "name": "created_at",
1693
- "type": "timestamp with time zone",
1694
- "primaryKey": false,
1695
- "notNull": false,
1696
- "default": "now()"
1697
- },
1698
- "updated_at": {
1699
- "name": "updated_at",
1700
- "type": "timestamp with time zone",
1701
- "primaryKey": false,
1702
- "notNull": false,
1703
- "default": "now()"
1704
- }
1705
- },
1706
- "indexes": {},
1707
- "foreignKeys": {},
1708
- "compositePrimaryKeys": {},
1709
- "uniqueConstraints": {},
1710
- "policies": {},
1711
- "checkConstraints": {},
1712
- "isRLSEnabled": false
1713
- },
1714
- "public.worlds": {
1715
- "name": "worlds",
1716
- "schema": "",
1717
- "columns": {
1718
- "id": {
1719
- "name": "id",
1720
- "type": "uuid",
1721
- "primaryKey": true,
1722
- "notNull": true,
1723
- "default": "gen_random_uuid()"
1724
- },
1725
- "agentId": {
1726
- "name": "agentId",
1727
- "type": "uuid",
1728
- "primaryKey": false,
1729
- "notNull": true
1730
- },
1731
- "name": {
1732
- "name": "name",
1733
- "type": "text",
1734
- "primaryKey": false,
1735
- "notNull": true
1736
- },
1737
- "metadata": {
1738
- "name": "metadata",
1739
- "type": "jsonb",
1740
- "primaryKey": false,
1741
- "notNull": false
1742
- },
1743
- "serverId": {
1744
- "name": "serverId",
1745
- "type": "text",
1746
- "primaryKey": false,
1747
- "notNull": true
1748
- },
1749
- "createdAt": {
1750
- "name": "createdAt",
1751
- "type": "timestamptz",
1752
- "primaryKey": false,
1753
- "notNull": true,
1754
- "default": "now()"
1755
- }
1756
- },
1757
- "indexes": {},
1758
- "foreignKeys": {
1759
- "worlds_agentId_agents_id_fk": {
1760
- "name": "worlds_agentId_agents_id_fk",
1761
- "tableFrom": "worlds",
1762
- "tableTo": "agents",
1763
- "columnsFrom": [
1764
- "agentId"
1765
- ],
1766
- "columnsTo": [
1767
- "id"
1768
- ],
1769
- "onDelete": "cascade",
1770
- "onUpdate": "no action"
1771
- }
1772
- },
1773
- "compositePrimaryKeys": {},
1774
- "uniqueConstraints": {},
1775
- "policies": {},
1776
- "checkConstraints": {},
1777
- "isRLSEnabled": false
1778
- }
1779
- },
1780
- "enums": {},
1781
- "schemas": {},
1782
- "sequences": {},
1783
- "roles": {},
1784
- "policies": {},
1785
- "views": {},
1786
- "_meta": {
1787
- "columns": {},
1788
- "schemas": {},
1789
- "tables": {}
1790
- }
1791
- }