@elizaos/plugin-sql 1.0.4 → 1.0.6
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.
- package/dist/{chunk-QOV7MUNF.js → chunk-74FVWTXP.js} +10 -2
- package/dist/chunk-74FVWTXP.js.map +1 -0
- package/dist/index.js +398 -15
- package/dist/index.js.map +1 -1
- package/dist/migrate.js +1 -1
- package/drizzle/migrations/{0000_snapshot.sql → 0000_thin_madame_web.sql} +55 -1
- package/drizzle/migrations/meta/0000_snapshot.json +556 -70
- package/drizzle/migrations/meta/_journal.json +3 -3
- package/package.json +4 -4
- package/dist/chunk-QOV7MUNF.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "355d7152-120c-4cfc-8ec4-fad352811436",
|
|
3
3
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
4
|
"version": "7",
|
|
5
5
|
"dialect": "postgresql",
|
|
@@ -52,13 +52,15 @@
|
|
|
52
52
|
"name": "system",
|
|
53
53
|
"type": "text",
|
|
54
54
|
"primaryKey": false,
|
|
55
|
-
"
|
|
55
|
+
"notNull": false,
|
|
56
|
+
"default": "''"
|
|
56
57
|
},
|
|
57
58
|
"bio": {
|
|
58
59
|
"name": "bio",
|
|
59
60
|
"type": "jsonb",
|
|
60
61
|
"primaryKey": false,
|
|
61
|
-
"
|
|
62
|
+
"notNull": false,
|
|
63
|
+
"default": "'[]'::jsonb"
|
|
62
64
|
},
|
|
63
65
|
"message_examples": {
|
|
64
66
|
"name": "message_examples",
|
|
@@ -124,7 +126,9 @@
|
|
|
124
126
|
"name_unique": {
|
|
125
127
|
"name": "name_unique",
|
|
126
128
|
"nullsNotDistinct": false,
|
|
127
|
-
"columns": [
|
|
129
|
+
"columns": [
|
|
130
|
+
"name"
|
|
131
|
+
]
|
|
128
132
|
}
|
|
129
133
|
},
|
|
130
134
|
"policies": {},
|
|
@@ -180,8 +184,12 @@
|
|
|
180
184
|
"name": "cache_agentId_agents_id_fk",
|
|
181
185
|
"tableFrom": "cache",
|
|
182
186
|
"tableTo": "agents",
|
|
183
|
-
"columnsFrom": [
|
|
184
|
-
|
|
187
|
+
"columnsFrom": [
|
|
188
|
+
"agentId"
|
|
189
|
+
],
|
|
190
|
+
"columnsTo": [
|
|
191
|
+
"id"
|
|
192
|
+
],
|
|
185
193
|
"onDelete": "cascade",
|
|
186
194
|
"onUpdate": "no action"
|
|
187
195
|
}
|
|
@@ -191,9 +199,148 @@
|
|
|
191
199
|
"cache_key_agent_unique": {
|
|
192
200
|
"name": "cache_key_agent_unique",
|
|
193
201
|
"nullsNotDistinct": false,
|
|
194
|
-
"columns": [
|
|
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"
|
|
195
324
|
}
|
|
196
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": {},
|
|
197
344
|
"policies": {},
|
|
198
345
|
"checkConstraints": {},
|
|
199
346
|
"isRLSEnabled": false
|
|
@@ -266,8 +413,12 @@
|
|
|
266
413
|
"name": "components_entityId_entities_id_fk",
|
|
267
414
|
"tableFrom": "components",
|
|
268
415
|
"tableTo": "entities",
|
|
269
|
-
"columnsFrom": [
|
|
270
|
-
|
|
416
|
+
"columnsFrom": [
|
|
417
|
+
"entityId"
|
|
418
|
+
],
|
|
419
|
+
"columnsTo": [
|
|
420
|
+
"id"
|
|
421
|
+
],
|
|
271
422
|
"onDelete": "cascade",
|
|
272
423
|
"onUpdate": "no action"
|
|
273
424
|
},
|
|
@@ -275,8 +426,12 @@
|
|
|
275
426
|
"name": "components_agentId_agents_id_fk",
|
|
276
427
|
"tableFrom": "components",
|
|
277
428
|
"tableTo": "agents",
|
|
278
|
-
"columnsFrom": [
|
|
279
|
-
|
|
429
|
+
"columnsFrom": [
|
|
430
|
+
"agentId"
|
|
431
|
+
],
|
|
432
|
+
"columnsTo": [
|
|
433
|
+
"id"
|
|
434
|
+
],
|
|
280
435
|
"onDelete": "cascade",
|
|
281
436
|
"onUpdate": "no action"
|
|
282
437
|
},
|
|
@@ -284,8 +439,12 @@
|
|
|
284
439
|
"name": "components_roomId_rooms_id_fk",
|
|
285
440
|
"tableFrom": "components",
|
|
286
441
|
"tableTo": "rooms",
|
|
287
|
-
"columnsFrom": [
|
|
288
|
-
|
|
442
|
+
"columnsFrom": [
|
|
443
|
+
"roomId"
|
|
444
|
+
],
|
|
445
|
+
"columnsTo": [
|
|
446
|
+
"id"
|
|
447
|
+
],
|
|
289
448
|
"onDelete": "cascade",
|
|
290
449
|
"onUpdate": "no action"
|
|
291
450
|
},
|
|
@@ -293,8 +452,12 @@
|
|
|
293
452
|
"name": "components_worldId_worlds_id_fk",
|
|
294
453
|
"tableFrom": "components",
|
|
295
454
|
"tableTo": "worlds",
|
|
296
|
-
"columnsFrom": [
|
|
297
|
-
|
|
455
|
+
"columnsFrom": [
|
|
456
|
+
"worldId"
|
|
457
|
+
],
|
|
458
|
+
"columnsTo": [
|
|
459
|
+
"id"
|
|
460
|
+
],
|
|
298
461
|
"onDelete": "cascade",
|
|
299
462
|
"onUpdate": "no action"
|
|
300
463
|
},
|
|
@@ -302,8 +465,12 @@
|
|
|
302
465
|
"name": "components_sourceEntityId_entities_id_fk",
|
|
303
466
|
"tableFrom": "components",
|
|
304
467
|
"tableTo": "entities",
|
|
305
|
-
"columnsFrom": [
|
|
306
|
-
|
|
468
|
+
"columnsFrom": [
|
|
469
|
+
"sourceEntityId"
|
|
470
|
+
],
|
|
471
|
+
"columnsTo": [
|
|
472
|
+
"id"
|
|
473
|
+
],
|
|
307
474
|
"onDelete": "cascade",
|
|
308
475
|
"onUpdate": "no action"
|
|
309
476
|
}
|
|
@@ -397,8 +564,12 @@
|
|
|
397
564
|
"name": "embeddings_memory_id_memories_id_fk",
|
|
398
565
|
"tableFrom": "embeddings",
|
|
399
566
|
"tableTo": "memories",
|
|
400
|
-
"columnsFrom": [
|
|
401
|
-
|
|
567
|
+
"columnsFrom": [
|
|
568
|
+
"memory_id"
|
|
569
|
+
],
|
|
570
|
+
"columnsTo": [
|
|
571
|
+
"id"
|
|
572
|
+
],
|
|
402
573
|
"onDelete": "no action",
|
|
403
574
|
"onUpdate": "no action"
|
|
404
575
|
},
|
|
@@ -406,8 +577,12 @@
|
|
|
406
577
|
"name": "fk_embedding_memory",
|
|
407
578
|
"tableFrom": "embeddings",
|
|
408
579
|
"tableTo": "memories",
|
|
409
|
-
"columnsFrom": [
|
|
410
|
-
|
|
580
|
+
"columnsFrom": [
|
|
581
|
+
"memory_id"
|
|
582
|
+
],
|
|
583
|
+
"columnsTo": [
|
|
584
|
+
"id"
|
|
585
|
+
],
|
|
411
586
|
"onDelete": "cascade",
|
|
412
587
|
"onUpdate": "no action"
|
|
413
588
|
}
|
|
@@ -467,8 +642,12 @@
|
|
|
467
642
|
"name": "entities_agentId_agents_id_fk",
|
|
468
643
|
"tableFrom": "entities",
|
|
469
644
|
"tableTo": "agents",
|
|
470
|
-
"columnsFrom": [
|
|
471
|
-
|
|
645
|
+
"columnsFrom": [
|
|
646
|
+
"agentId"
|
|
647
|
+
],
|
|
648
|
+
"columnsTo": [
|
|
649
|
+
"id"
|
|
650
|
+
],
|
|
472
651
|
"onDelete": "cascade",
|
|
473
652
|
"onUpdate": "no action"
|
|
474
653
|
}
|
|
@@ -478,7 +657,10 @@
|
|
|
478
657
|
"id_agent_id_unique": {
|
|
479
658
|
"name": "id_agent_id_unique",
|
|
480
659
|
"nullsNotDistinct": false,
|
|
481
|
-
"columns": [
|
|
660
|
+
"columns": [
|
|
661
|
+
"id",
|
|
662
|
+
"agentId"
|
|
663
|
+
]
|
|
482
664
|
}
|
|
483
665
|
},
|
|
484
666
|
"policies": {},
|
|
@@ -534,8 +716,12 @@
|
|
|
534
716
|
"name": "logs_entityId_entities_id_fk",
|
|
535
717
|
"tableFrom": "logs",
|
|
536
718
|
"tableTo": "entities",
|
|
537
|
-
"columnsFrom": [
|
|
538
|
-
|
|
719
|
+
"columnsFrom": [
|
|
720
|
+
"entityId"
|
|
721
|
+
],
|
|
722
|
+
"columnsTo": [
|
|
723
|
+
"id"
|
|
724
|
+
],
|
|
539
725
|
"onDelete": "no action",
|
|
540
726
|
"onUpdate": "no action"
|
|
541
727
|
},
|
|
@@ -543,8 +729,12 @@
|
|
|
543
729
|
"name": "logs_roomId_rooms_id_fk",
|
|
544
730
|
"tableFrom": "logs",
|
|
545
731
|
"tableTo": "rooms",
|
|
546
|
-
"columnsFrom": [
|
|
547
|
-
|
|
732
|
+
"columnsFrom": [
|
|
733
|
+
"roomId"
|
|
734
|
+
],
|
|
735
|
+
"columnsTo": [
|
|
736
|
+
"id"
|
|
737
|
+
],
|
|
548
738
|
"onDelete": "cascade",
|
|
549
739
|
"onUpdate": "no action"
|
|
550
740
|
},
|
|
@@ -552,8 +742,12 @@
|
|
|
552
742
|
"name": "fk_room",
|
|
553
743
|
"tableFrom": "logs",
|
|
554
744
|
"tableTo": "rooms",
|
|
555
|
-
"columnsFrom": [
|
|
556
|
-
|
|
745
|
+
"columnsFrom": [
|
|
746
|
+
"roomId"
|
|
747
|
+
],
|
|
748
|
+
"columnsTo": [
|
|
749
|
+
"id"
|
|
750
|
+
],
|
|
557
751
|
"onDelete": "cascade",
|
|
558
752
|
"onUpdate": "no action"
|
|
559
753
|
},
|
|
@@ -561,8 +755,12 @@
|
|
|
561
755
|
"name": "fk_user",
|
|
562
756
|
"tableFrom": "logs",
|
|
563
757
|
"tableTo": "entities",
|
|
564
|
-
"columnsFrom": [
|
|
565
|
-
|
|
758
|
+
"columnsFrom": [
|
|
759
|
+
"entityId"
|
|
760
|
+
],
|
|
761
|
+
"columnsTo": [
|
|
762
|
+
"id"
|
|
763
|
+
],
|
|
566
764
|
"onDelete": "cascade",
|
|
567
765
|
"onUpdate": "no action"
|
|
568
766
|
}
|
|
@@ -735,8 +933,12 @@
|
|
|
735
933
|
"name": "memories_entityId_entities_id_fk",
|
|
736
934
|
"tableFrom": "memories",
|
|
737
935
|
"tableTo": "entities",
|
|
738
|
-
"columnsFrom": [
|
|
739
|
-
|
|
936
|
+
"columnsFrom": [
|
|
937
|
+
"entityId"
|
|
938
|
+
],
|
|
939
|
+
"columnsTo": [
|
|
940
|
+
"id"
|
|
941
|
+
],
|
|
740
942
|
"onDelete": "cascade",
|
|
741
943
|
"onUpdate": "no action"
|
|
742
944
|
},
|
|
@@ -744,8 +946,12 @@
|
|
|
744
946
|
"name": "memories_agentId_agents_id_fk",
|
|
745
947
|
"tableFrom": "memories",
|
|
746
948
|
"tableTo": "agents",
|
|
747
|
-
"columnsFrom": [
|
|
748
|
-
|
|
949
|
+
"columnsFrom": [
|
|
950
|
+
"agentId"
|
|
951
|
+
],
|
|
952
|
+
"columnsTo": [
|
|
953
|
+
"id"
|
|
954
|
+
],
|
|
749
955
|
"onDelete": "cascade",
|
|
750
956
|
"onUpdate": "no action"
|
|
751
957
|
},
|
|
@@ -753,8 +959,12 @@
|
|
|
753
959
|
"name": "memories_roomId_rooms_id_fk",
|
|
754
960
|
"tableFrom": "memories",
|
|
755
961
|
"tableTo": "rooms",
|
|
756
|
-
"columnsFrom": [
|
|
757
|
-
|
|
962
|
+
"columnsFrom": [
|
|
963
|
+
"roomId"
|
|
964
|
+
],
|
|
965
|
+
"columnsTo": [
|
|
966
|
+
"id"
|
|
967
|
+
],
|
|
758
968
|
"onDelete": "cascade",
|
|
759
969
|
"onUpdate": "no action"
|
|
760
970
|
},
|
|
@@ -762,8 +972,12 @@
|
|
|
762
972
|
"name": "fk_room",
|
|
763
973
|
"tableFrom": "memories",
|
|
764
974
|
"tableTo": "rooms",
|
|
765
|
-
"columnsFrom": [
|
|
766
|
-
|
|
975
|
+
"columnsFrom": [
|
|
976
|
+
"roomId"
|
|
977
|
+
],
|
|
978
|
+
"columnsTo": [
|
|
979
|
+
"id"
|
|
980
|
+
],
|
|
767
981
|
"onDelete": "cascade",
|
|
768
982
|
"onUpdate": "no action"
|
|
769
983
|
},
|
|
@@ -771,8 +985,12 @@
|
|
|
771
985
|
"name": "fk_user",
|
|
772
986
|
"tableFrom": "memories",
|
|
773
987
|
"tableTo": "entities",
|
|
774
|
-
"columnsFrom": [
|
|
775
|
-
|
|
988
|
+
"columnsFrom": [
|
|
989
|
+
"entityId"
|
|
990
|
+
],
|
|
991
|
+
"columnsTo": [
|
|
992
|
+
"id"
|
|
993
|
+
],
|
|
776
994
|
"onDelete": "cascade",
|
|
777
995
|
"onUpdate": "no action"
|
|
778
996
|
},
|
|
@@ -780,8 +998,12 @@
|
|
|
780
998
|
"name": "fk_agent",
|
|
781
999
|
"tableFrom": "memories",
|
|
782
1000
|
"tableTo": "agents",
|
|
783
|
-
"columnsFrom": [
|
|
784
|
-
|
|
1001
|
+
"columnsFrom": [
|
|
1002
|
+
"agentId"
|
|
1003
|
+
],
|
|
1004
|
+
"columnsTo": [
|
|
1005
|
+
"id"
|
|
1006
|
+
],
|
|
785
1007
|
"onDelete": "cascade",
|
|
786
1008
|
"onUpdate": "no action"
|
|
787
1009
|
}
|
|
@@ -801,6 +1023,171 @@
|
|
|
801
1023
|
},
|
|
802
1024
|
"isRLSEnabled": false
|
|
803
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
|
+
},
|
|
804
1191
|
"public.participants": {
|
|
805
1192
|
"name": "participants",
|
|
806
1193
|
"schema": "",
|
|
@@ -881,8 +1268,12 @@
|
|
|
881
1268
|
"name": "participants_entityId_entities_id_fk",
|
|
882
1269
|
"tableFrom": "participants",
|
|
883
1270
|
"tableTo": "entities",
|
|
884
|
-
"columnsFrom": [
|
|
885
|
-
|
|
1271
|
+
"columnsFrom": [
|
|
1272
|
+
"entityId"
|
|
1273
|
+
],
|
|
1274
|
+
"columnsTo": [
|
|
1275
|
+
"id"
|
|
1276
|
+
],
|
|
886
1277
|
"onDelete": "cascade",
|
|
887
1278
|
"onUpdate": "no action"
|
|
888
1279
|
},
|
|
@@ -890,8 +1281,12 @@
|
|
|
890
1281
|
"name": "participants_roomId_rooms_id_fk",
|
|
891
1282
|
"tableFrom": "participants",
|
|
892
1283
|
"tableTo": "rooms",
|
|
893
|
-
"columnsFrom": [
|
|
894
|
-
|
|
1284
|
+
"columnsFrom": [
|
|
1285
|
+
"roomId"
|
|
1286
|
+
],
|
|
1287
|
+
"columnsTo": [
|
|
1288
|
+
"id"
|
|
1289
|
+
],
|
|
895
1290
|
"onDelete": "cascade",
|
|
896
1291
|
"onUpdate": "no action"
|
|
897
1292
|
},
|
|
@@ -899,8 +1294,12 @@
|
|
|
899
1294
|
"name": "participants_agentId_agents_id_fk",
|
|
900
1295
|
"tableFrom": "participants",
|
|
901
1296
|
"tableTo": "agents",
|
|
902
|
-
"columnsFrom": [
|
|
903
|
-
|
|
1297
|
+
"columnsFrom": [
|
|
1298
|
+
"agentId"
|
|
1299
|
+
],
|
|
1300
|
+
"columnsTo": [
|
|
1301
|
+
"id"
|
|
1302
|
+
],
|
|
904
1303
|
"onDelete": "cascade",
|
|
905
1304
|
"onUpdate": "no action"
|
|
906
1305
|
},
|
|
@@ -908,8 +1307,12 @@
|
|
|
908
1307
|
"name": "fk_room",
|
|
909
1308
|
"tableFrom": "participants",
|
|
910
1309
|
"tableTo": "rooms",
|
|
911
|
-
"columnsFrom": [
|
|
912
|
-
|
|
1310
|
+
"columnsFrom": [
|
|
1311
|
+
"roomId"
|
|
1312
|
+
],
|
|
1313
|
+
"columnsTo": [
|
|
1314
|
+
"id"
|
|
1315
|
+
],
|
|
913
1316
|
"onDelete": "cascade",
|
|
914
1317
|
"onUpdate": "no action"
|
|
915
1318
|
},
|
|
@@ -917,8 +1320,12 @@
|
|
|
917
1320
|
"name": "fk_user",
|
|
918
1321
|
"tableFrom": "participants",
|
|
919
1322
|
"tableTo": "entities",
|
|
920
|
-
"columnsFrom": [
|
|
921
|
-
|
|
1323
|
+
"columnsFrom": [
|
|
1324
|
+
"entityId"
|
|
1325
|
+
],
|
|
1326
|
+
"columnsTo": [
|
|
1327
|
+
"id"
|
|
1328
|
+
],
|
|
922
1329
|
"onDelete": "cascade",
|
|
923
1330
|
"onUpdate": "no action"
|
|
924
1331
|
}
|
|
@@ -1006,8 +1413,12 @@
|
|
|
1006
1413
|
"name": "relationships_sourceEntityId_entities_id_fk",
|
|
1007
1414
|
"tableFrom": "relationships",
|
|
1008
1415
|
"tableTo": "entities",
|
|
1009
|
-
"columnsFrom": [
|
|
1010
|
-
|
|
1416
|
+
"columnsFrom": [
|
|
1417
|
+
"sourceEntityId"
|
|
1418
|
+
],
|
|
1419
|
+
"columnsTo": [
|
|
1420
|
+
"id"
|
|
1421
|
+
],
|
|
1011
1422
|
"onDelete": "cascade",
|
|
1012
1423
|
"onUpdate": "no action"
|
|
1013
1424
|
},
|
|
@@ -1015,8 +1426,12 @@
|
|
|
1015
1426
|
"name": "relationships_targetEntityId_entities_id_fk",
|
|
1016
1427
|
"tableFrom": "relationships",
|
|
1017
1428
|
"tableTo": "entities",
|
|
1018
|
-
"columnsFrom": [
|
|
1019
|
-
|
|
1429
|
+
"columnsFrom": [
|
|
1430
|
+
"targetEntityId"
|
|
1431
|
+
],
|
|
1432
|
+
"columnsTo": [
|
|
1433
|
+
"id"
|
|
1434
|
+
],
|
|
1020
1435
|
"onDelete": "cascade",
|
|
1021
1436
|
"onUpdate": "no action"
|
|
1022
1437
|
},
|
|
@@ -1024,8 +1439,12 @@
|
|
|
1024
1439
|
"name": "relationships_agentId_agents_id_fk",
|
|
1025
1440
|
"tableFrom": "relationships",
|
|
1026
1441
|
"tableTo": "agents",
|
|
1027
|
-
"columnsFrom": [
|
|
1028
|
-
|
|
1442
|
+
"columnsFrom": [
|
|
1443
|
+
"agentId"
|
|
1444
|
+
],
|
|
1445
|
+
"columnsTo": [
|
|
1446
|
+
"id"
|
|
1447
|
+
],
|
|
1029
1448
|
"onDelete": "cascade",
|
|
1030
1449
|
"onUpdate": "no action"
|
|
1031
1450
|
},
|
|
@@ -1033,8 +1452,12 @@
|
|
|
1033
1452
|
"name": "fk_user_a",
|
|
1034
1453
|
"tableFrom": "relationships",
|
|
1035
1454
|
"tableTo": "entities",
|
|
1036
|
-
"columnsFrom": [
|
|
1037
|
-
|
|
1455
|
+
"columnsFrom": [
|
|
1456
|
+
"sourceEntityId"
|
|
1457
|
+
],
|
|
1458
|
+
"columnsTo": [
|
|
1459
|
+
"id"
|
|
1460
|
+
],
|
|
1038
1461
|
"onDelete": "cascade",
|
|
1039
1462
|
"onUpdate": "no action"
|
|
1040
1463
|
},
|
|
@@ -1042,8 +1465,12 @@
|
|
|
1042
1465
|
"name": "fk_user_b",
|
|
1043
1466
|
"tableFrom": "relationships",
|
|
1044
1467
|
"tableTo": "entities",
|
|
1045
|
-
"columnsFrom": [
|
|
1046
|
-
|
|
1468
|
+
"columnsFrom": [
|
|
1469
|
+
"targetEntityId"
|
|
1470
|
+
],
|
|
1471
|
+
"columnsTo": [
|
|
1472
|
+
"id"
|
|
1473
|
+
],
|
|
1047
1474
|
"onDelete": "cascade",
|
|
1048
1475
|
"onUpdate": "no action"
|
|
1049
1476
|
}
|
|
@@ -1053,7 +1480,11 @@
|
|
|
1053
1480
|
"unique_relationship": {
|
|
1054
1481
|
"name": "unique_relationship",
|
|
1055
1482
|
"nullsNotDistinct": false,
|
|
1056
|
-
"columns": [
|
|
1483
|
+
"columns": [
|
|
1484
|
+
"sourceEntityId",
|
|
1485
|
+
"targetEntityId",
|
|
1486
|
+
"agentId"
|
|
1487
|
+
]
|
|
1057
1488
|
}
|
|
1058
1489
|
},
|
|
1059
1490
|
"policies": {},
|
|
@@ -1133,8 +1564,12 @@
|
|
|
1133
1564
|
"name": "rooms_agentId_agents_id_fk",
|
|
1134
1565
|
"tableFrom": "rooms",
|
|
1135
1566
|
"tableTo": "agents",
|
|
1136
|
-
"columnsFrom": [
|
|
1137
|
-
|
|
1567
|
+
"columnsFrom": [
|
|
1568
|
+
"agentId"
|
|
1569
|
+
],
|
|
1570
|
+
"columnsTo": [
|
|
1571
|
+
"id"
|
|
1572
|
+
],
|
|
1138
1573
|
"onDelete": "cascade",
|
|
1139
1574
|
"onUpdate": "no action"
|
|
1140
1575
|
}
|
|
@@ -1145,6 +1580,53 @@
|
|
|
1145
1580
|
"checkConstraints": {},
|
|
1146
1581
|
"isRLSEnabled": false
|
|
1147
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
|
+
},
|
|
1148
1630
|
"public.tasks": {
|
|
1149
1631
|
"name": "tasks",
|
|
1150
1632
|
"schema": "",
|
|
@@ -1278,8 +1760,12 @@
|
|
|
1278
1760
|
"name": "worlds_agentId_agents_id_fk",
|
|
1279
1761
|
"tableFrom": "worlds",
|
|
1280
1762
|
"tableTo": "agents",
|
|
1281
|
-
"columnsFrom": [
|
|
1282
|
-
|
|
1763
|
+
"columnsFrom": [
|
|
1764
|
+
"agentId"
|
|
1765
|
+
],
|
|
1766
|
+
"columnsTo": [
|
|
1767
|
+
"id"
|
|
1768
|
+
],
|
|
1283
1769
|
"onDelete": "cascade",
|
|
1284
1770
|
"onUpdate": "no action"
|
|
1285
1771
|
}
|
|
@@ -1302,4 +1788,4 @@
|
|
|
1302
1788
|
"schemas": {},
|
|
1303
1789
|
"tables": {}
|
|
1304
1790
|
}
|
|
1305
|
-
}
|
|
1791
|
+
}
|