@lobehub/chat 1.6.9 → 1.6.10

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,8 +1,8 @@
1
1
  {
2
2
  "_meta": {
3
- "columns": {},
4
3
  "schemas": {},
5
- "tables": {}
4
+ "tables": {},
5
+ "columns": {}
6
6
  },
7
7
  "dialect": "postgresql",
8
8
  "enums": {},
@@ -133,19 +133,19 @@
133
133
  "agents_user_id_users_id_fk": {
134
134
  "name": "agents_user_id_users_id_fk",
135
135
  "tableFrom": "agents",
136
- "tableTo": "users",
137
136
  "columnsFrom": ["user_id"],
137
+ "tableTo": "users",
138
138
  "columnsTo": ["id"],
139
- "onDelete": "cascade",
140
- "onUpdate": "no action"
139
+ "onUpdate": "no action",
140
+ "onDelete": "cascade"
141
141
  }
142
142
  },
143
143
  "compositePrimaryKeys": {},
144
144
  "uniqueConstraints": {
145
145
  "agents_slug_unique": {
146
146
  "name": "agents_slug_unique",
147
- "nullsNotDistinct": false,
148
- "columns": ["slug"]
147
+ "columns": ["slug"],
148
+ "nullsNotDistinct": false
149
149
  }
150
150
  }
151
151
  },
@@ -171,20 +171,20 @@
171
171
  "agents_tags_agent_id_agents_id_fk": {
172
172
  "name": "agents_tags_agent_id_agents_id_fk",
173
173
  "tableFrom": "agents_tags",
174
- "tableTo": "agents",
175
174
  "columnsFrom": ["agent_id"],
175
+ "tableTo": "agents",
176
176
  "columnsTo": ["id"],
177
- "onDelete": "cascade",
178
- "onUpdate": "no action"
177
+ "onUpdate": "no action",
178
+ "onDelete": "cascade"
179
179
  },
180
180
  "agents_tags_tag_id_tags_id_fk": {
181
181
  "name": "agents_tags_tag_id_tags_id_fk",
182
182
  "tableFrom": "agents_tags",
183
- "tableTo": "tags",
184
183
  "columnsFrom": ["tag_id"],
184
+ "tableTo": "tags",
185
185
  "columnsTo": ["id"],
186
- "onDelete": "cascade",
187
- "onUpdate": "no action"
186
+ "onUpdate": "no action",
187
+ "onDelete": "cascade"
188
188
  }
189
189
  },
190
190
  "compositePrimaryKeys": {
@@ -217,20 +217,20 @@
217
217
  "agents_to_sessions_agent_id_agents_id_fk": {
218
218
  "name": "agents_to_sessions_agent_id_agents_id_fk",
219
219
  "tableFrom": "agents_to_sessions",
220
- "tableTo": "agents",
221
220
  "columnsFrom": ["agent_id"],
221
+ "tableTo": "agents",
222
222
  "columnsTo": ["id"],
223
- "onDelete": "cascade",
224
- "onUpdate": "no action"
223
+ "onUpdate": "no action",
224
+ "onDelete": "cascade"
225
225
  },
226
226
  "agents_to_sessions_session_id_sessions_id_fk": {
227
227
  "name": "agents_to_sessions_session_id_sessions_id_fk",
228
228
  "tableFrom": "agents_to_sessions",
229
- "tableTo": "sessions",
230
229
  "columnsFrom": ["session_id"],
230
+ "tableTo": "sessions",
231
231
  "columnsTo": ["id"],
232
- "onDelete": "cascade",
233
- "onUpdate": "no action"
232
+ "onUpdate": "no action",
233
+ "onDelete": "cascade"
234
234
  }
235
235
  },
236
236
  "compositePrimaryKeys": {
@@ -307,11 +307,11 @@
307
307
  "files_user_id_users_id_fk": {
308
308
  "name": "files_user_id_users_id_fk",
309
309
  "tableFrom": "files",
310
- "tableTo": "users",
311
310
  "columnsFrom": ["user_id"],
311
+ "tableTo": "users",
312
312
  "columnsTo": ["id"],
313
- "onDelete": "cascade",
314
- "onUpdate": "no action"
313
+ "onUpdate": "no action",
314
+ "onDelete": "cascade"
315
315
  }
316
316
  },
317
317
  "compositePrimaryKeys": {},
@@ -339,20 +339,20 @@
339
339
  "files_to_agents_file_id_files_id_fk": {
340
340
  "name": "files_to_agents_file_id_files_id_fk",
341
341
  "tableFrom": "files_to_agents",
342
- "tableTo": "files",
343
342
  "columnsFrom": ["file_id"],
343
+ "tableTo": "files",
344
344
  "columnsTo": ["id"],
345
- "onDelete": "cascade",
346
- "onUpdate": "no action"
345
+ "onUpdate": "no action",
346
+ "onDelete": "cascade"
347
347
  },
348
348
  "files_to_agents_agent_id_agents_id_fk": {
349
349
  "name": "files_to_agents_agent_id_agents_id_fk",
350
350
  "tableFrom": "files_to_agents",
351
- "tableTo": "agents",
352
351
  "columnsFrom": ["agent_id"],
352
+ "tableTo": "agents",
353
353
  "columnsTo": ["id"],
354
- "onDelete": "cascade",
355
- "onUpdate": "no action"
354
+ "onUpdate": "no action",
355
+ "onDelete": "cascade"
356
356
  }
357
357
  },
358
358
  "compositePrimaryKeys": {
@@ -385,20 +385,20 @@
385
385
  "files_to_messages_file_id_files_id_fk": {
386
386
  "name": "files_to_messages_file_id_files_id_fk",
387
387
  "tableFrom": "files_to_messages",
388
- "tableTo": "files",
389
388
  "columnsFrom": ["file_id"],
389
+ "tableTo": "files",
390
390
  "columnsTo": ["id"],
391
- "onDelete": "cascade",
392
- "onUpdate": "no action"
391
+ "onUpdate": "no action",
392
+ "onDelete": "cascade"
393
393
  },
394
394
  "files_to_messages_message_id_messages_id_fk": {
395
395
  "name": "files_to_messages_message_id_messages_id_fk",
396
396
  "tableFrom": "files_to_messages",
397
- "tableTo": "messages",
398
397
  "columnsFrom": ["message_id"],
398
+ "tableTo": "messages",
399
399
  "columnsTo": ["id"],
400
- "onDelete": "cascade",
401
- "onUpdate": "no action"
400
+ "onUpdate": "no action",
401
+ "onDelete": "cascade"
402
402
  }
403
403
  },
404
404
  "compositePrimaryKeys": {
@@ -431,20 +431,20 @@
431
431
  "files_to_sessions_file_id_files_id_fk": {
432
432
  "name": "files_to_sessions_file_id_files_id_fk",
433
433
  "tableFrom": "files_to_sessions",
434
- "tableTo": "files",
435
434
  "columnsFrom": ["file_id"],
435
+ "tableTo": "files",
436
436
  "columnsTo": ["id"],
437
- "onDelete": "cascade",
438
- "onUpdate": "no action"
437
+ "onUpdate": "no action",
438
+ "onDelete": "cascade"
439
439
  },
440
440
  "files_to_sessions_session_id_sessions_id_fk": {
441
441
  "name": "files_to_sessions_session_id_sessions_id_fk",
442
442
  "tableFrom": "files_to_sessions",
443
- "tableTo": "sessions",
444
443
  "columnsFrom": ["session_id"],
444
+ "tableTo": "sessions",
445
445
  "columnsTo": ["id"],
446
- "onDelete": "cascade",
447
- "onUpdate": "no action"
446
+ "onUpdate": "no action",
447
+ "onDelete": "cascade"
448
448
  }
449
449
  },
450
450
  "compositePrimaryKeys": {
@@ -515,11 +515,11 @@
515
515
  "user_installed_plugins_user_id_users_id_fk": {
516
516
  "name": "user_installed_plugins_user_id_users_id_fk",
517
517
  "tableFrom": "user_installed_plugins",
518
- "tableTo": "users",
519
518
  "columnsFrom": ["user_id"],
519
+ "tableTo": "users",
520
520
  "columnsTo": ["id"],
521
- "onDelete": "cascade",
522
- "onUpdate": "no action"
521
+ "onUpdate": "no action",
522
+ "onDelete": "cascade"
523
523
  }
524
524
  },
525
525
  "compositePrimaryKeys": {
@@ -605,29 +605,29 @@
605
605
  "market_agent_id_agents_id_fk": {
606
606
  "name": "market_agent_id_agents_id_fk",
607
607
  "tableFrom": "market",
608
- "tableTo": "agents",
609
608
  "columnsFrom": ["agent_id"],
609
+ "tableTo": "agents",
610
610
  "columnsTo": ["id"],
611
- "onDelete": "cascade",
612
- "onUpdate": "no action"
611
+ "onUpdate": "no action",
612
+ "onDelete": "cascade"
613
613
  },
614
614
  "market_plugin_id_plugins_id_fk": {
615
615
  "name": "market_plugin_id_plugins_id_fk",
616
616
  "tableFrom": "market",
617
- "tableTo": "plugins",
618
617
  "columnsFrom": ["plugin_id"],
618
+ "tableTo": "plugins",
619
619
  "columnsTo": ["id"],
620
- "onDelete": "cascade",
621
- "onUpdate": "no action"
620
+ "onUpdate": "no action",
621
+ "onDelete": "cascade"
622
622
  },
623
623
  "market_user_id_users_id_fk": {
624
624
  "name": "market_user_id_users_id_fk",
625
625
  "tableFrom": "market",
626
- "tableTo": "users",
627
626
  "columnsFrom": ["user_id"],
627
+ "tableTo": "users",
628
628
  "columnsTo": ["id"],
629
- "onDelete": "cascade",
630
- "onUpdate": "no action"
629
+ "onUpdate": "no action",
630
+ "onDelete": "cascade"
631
631
  }
632
632
  },
633
633
  "compositePrimaryKeys": {},
@@ -692,11 +692,11 @@
692
692
  "message_plugins_id_messages_id_fk": {
693
693
  "name": "message_plugins_id_messages_id_fk",
694
694
  "tableFrom": "message_plugins",
695
- "tableTo": "messages",
696
695
  "columnsFrom": ["id"],
696
+ "tableTo": "messages",
697
697
  "columnsTo": ["id"],
698
- "onDelete": "cascade",
699
- "onUpdate": "no action"
698
+ "onUpdate": "no action",
699
+ "onDelete": "cascade"
700
700
  }
701
701
  },
702
702
  "compositePrimaryKeys": {},
@@ -736,20 +736,20 @@
736
736
  "message_tts_id_messages_id_fk": {
737
737
  "name": "message_tts_id_messages_id_fk",
738
738
  "tableFrom": "message_tts",
739
- "tableTo": "messages",
740
739
  "columnsFrom": ["id"],
740
+ "tableTo": "messages",
741
741
  "columnsTo": ["id"],
742
- "onDelete": "cascade",
743
- "onUpdate": "no action"
742
+ "onUpdate": "no action",
743
+ "onDelete": "cascade"
744
744
  },
745
745
  "message_tts_file_id_files_id_fk": {
746
746
  "name": "message_tts_file_id_files_id_fk",
747
747
  "tableFrom": "message_tts",
748
- "tableTo": "files",
749
748
  "columnsFrom": ["file_id"],
749
+ "tableTo": "files",
750
750
  "columnsTo": ["id"],
751
- "onDelete": "cascade",
752
- "onUpdate": "no action"
751
+ "onUpdate": "no action",
752
+ "onDelete": "cascade"
753
753
  }
754
754
  },
755
755
  "compositePrimaryKeys": {},
@@ -789,11 +789,11 @@
789
789
  "message_translates_id_messages_id_fk": {
790
790
  "name": "message_translates_id_messages_id_fk",
791
791
  "tableFrom": "message_translates",
792
- "tableTo": "messages",
793
792
  "columnsFrom": ["id"],
793
+ "tableTo": "messages",
794
794
  "columnsTo": ["id"],
795
- "onDelete": "cascade",
796
- "onUpdate": "no action"
795
+ "onUpdate": "no action",
796
+ "onDelete": "cascade"
797
797
  }
798
798
  },
799
799
  "compositePrimaryKeys": {},
@@ -923,70 +923,96 @@
923
923
  },
924
924
  "indexes": {
925
925
  "messages_created_at_idx": {
926
+ "columns": [
927
+ {
928
+ "expression": "created_at",
929
+ "isExpression": false,
930
+ "asc": true,
931
+ "nulls": "last"
932
+ }
933
+ ],
934
+ "with": {},
926
935
  "name": "messages_created_at_idx",
927
- "columns": ["created_at"],
928
- "isUnique": false
936
+ "isUnique": false,
937
+ "method": "btree",
938
+ "concurrently": false
929
939
  },
930
940
  "message_client_id_user_unique": {
941
+ "columns": [
942
+ {
943
+ "expression": "client_id",
944
+ "isExpression": false,
945
+ "asc": true,
946
+ "nulls": "last"
947
+ },
948
+ {
949
+ "expression": "user_id",
950
+ "isExpression": false,
951
+ "asc": true,
952
+ "nulls": "last"
953
+ }
954
+ ],
955
+ "with": {},
931
956
  "name": "message_client_id_user_unique",
932
- "columns": ["client_id", "user_id"],
933
- "isUnique": true
957
+ "isUnique": true,
958
+ "method": "btree",
959
+ "concurrently": false
934
960
  }
935
961
  },
936
962
  "foreignKeys": {
937
963
  "messages_user_id_users_id_fk": {
938
964
  "name": "messages_user_id_users_id_fk",
939
965
  "tableFrom": "messages",
940
- "tableTo": "users",
941
966
  "columnsFrom": ["user_id"],
967
+ "tableTo": "users",
942
968
  "columnsTo": ["id"],
943
- "onDelete": "cascade",
944
- "onUpdate": "no action"
969
+ "onUpdate": "no action",
970
+ "onDelete": "cascade"
945
971
  },
946
972
  "messages_session_id_sessions_id_fk": {
947
973
  "name": "messages_session_id_sessions_id_fk",
948
974
  "tableFrom": "messages",
949
- "tableTo": "sessions",
950
975
  "columnsFrom": ["session_id"],
976
+ "tableTo": "sessions",
951
977
  "columnsTo": ["id"],
952
- "onDelete": "cascade",
953
- "onUpdate": "no action"
978
+ "onUpdate": "no action",
979
+ "onDelete": "cascade"
954
980
  },
955
981
  "messages_topic_id_topics_id_fk": {
956
982
  "name": "messages_topic_id_topics_id_fk",
957
983
  "tableFrom": "messages",
958
- "tableTo": "topics",
959
984
  "columnsFrom": ["topic_id"],
985
+ "tableTo": "topics",
960
986
  "columnsTo": ["id"],
961
- "onDelete": "cascade",
962
- "onUpdate": "no action"
987
+ "onUpdate": "no action",
988
+ "onDelete": "cascade"
963
989
  },
964
990
  "messages_parent_id_messages_id_fk": {
965
991
  "name": "messages_parent_id_messages_id_fk",
966
992
  "tableFrom": "messages",
967
- "tableTo": "messages",
968
993
  "columnsFrom": ["parent_id"],
994
+ "tableTo": "messages",
969
995
  "columnsTo": ["id"],
970
- "onDelete": "set null",
971
- "onUpdate": "no action"
996
+ "onUpdate": "no action",
997
+ "onDelete": "set null"
972
998
  },
973
999
  "messages_quota_id_messages_id_fk": {
974
1000
  "name": "messages_quota_id_messages_id_fk",
975
1001
  "tableFrom": "messages",
976
- "tableTo": "messages",
977
1002
  "columnsFrom": ["quota_id"],
1003
+ "tableTo": "messages",
978
1004
  "columnsTo": ["id"],
979
- "onDelete": "set null",
980
- "onUpdate": "no action"
1005
+ "onUpdate": "no action",
1006
+ "onDelete": "set null"
981
1007
  },
982
1008
  "messages_agent_id_agents_id_fk": {
983
1009
  "name": "messages_agent_id_agents_id_fk",
984
1010
  "tableFrom": "messages",
985
- "tableTo": "agents",
986
1011
  "columnsFrom": ["agent_id"],
1012
+ "tableTo": "agents",
987
1013
  "columnsTo": ["id"],
988
- "onDelete": "set null",
989
- "onUpdate": "no action"
1014
+ "onUpdate": "no action",
1015
+ "onDelete": "set null"
990
1016
  }
991
1017
  },
992
1018
  "compositePrimaryKeys": {},
@@ -1065,8 +1091,8 @@
1065
1091
  "uniqueConstraints": {
1066
1092
  "plugins_identifier_unique": {
1067
1093
  "name": "plugins_identifier_unique",
1068
- "nullsNotDistinct": false,
1069
- "columns": ["identifier"]
1094
+ "columns": ["identifier"],
1095
+ "nullsNotDistinct": false
1070
1096
  }
1071
1097
  }
1072
1098
  },
@@ -1092,20 +1118,20 @@
1092
1118
  "plugins_tags_plugin_id_plugins_id_fk": {
1093
1119
  "name": "plugins_tags_plugin_id_plugins_id_fk",
1094
1120
  "tableFrom": "plugins_tags",
1095
- "tableTo": "plugins",
1096
1121
  "columnsFrom": ["plugin_id"],
1122
+ "tableTo": "plugins",
1097
1123
  "columnsTo": ["id"],
1098
- "onDelete": "cascade",
1099
- "onUpdate": "no action"
1124
+ "onUpdate": "no action",
1125
+ "onDelete": "cascade"
1100
1126
  },
1101
1127
  "plugins_tags_tag_id_tags_id_fk": {
1102
1128
  "name": "plugins_tags_tag_id_tags_id_fk",
1103
1129
  "tableFrom": "plugins_tags",
1104
- "tableTo": "tags",
1105
1130
  "columnsFrom": ["tag_id"],
1131
+ "tableTo": "tags",
1106
1132
  "columnsTo": ["id"],
1107
- "onDelete": "cascade",
1108
- "onUpdate": "no action"
1133
+ "onUpdate": "no action",
1134
+ "onDelete": "cascade"
1109
1135
  }
1110
1136
  },
1111
1137
  "compositePrimaryKeys": {
@@ -1170,19 +1196,19 @@
1170
1196
  "session_groups_user_id_users_id_fk": {
1171
1197
  "name": "session_groups_user_id_users_id_fk",
1172
1198
  "tableFrom": "session_groups",
1173
- "tableTo": "users",
1174
1199
  "columnsFrom": ["user_id"],
1200
+ "tableTo": "users",
1175
1201
  "columnsTo": ["id"],
1176
- "onDelete": "cascade",
1177
- "onUpdate": "no action"
1202
+ "onUpdate": "no action",
1203
+ "onDelete": "cascade"
1178
1204
  }
1179
1205
  },
1180
1206
  "compositePrimaryKeys": {},
1181
1207
  "uniqueConstraints": {
1182
1208
  "session_group_client_id_user_unique": {
1183
1209
  "name": "session_group_client_id_user_unique",
1184
- "nullsNotDistinct": false,
1185
- "columns": ["client_id", "user_id"]
1210
+ "columns": ["client_id", "user_id"],
1211
+ "nullsNotDistinct": false
1186
1212
  }
1187
1213
  }
1188
1214
  },
@@ -1275,37 +1301,53 @@
1275
1301
  },
1276
1302
  "indexes": {
1277
1303
  "slug_user_id_unique": {
1304
+ "columns": [
1305
+ {
1306
+ "expression": "slug",
1307
+ "isExpression": false,
1308
+ "asc": true,
1309
+ "nulls": "last"
1310
+ },
1311
+ {
1312
+ "expression": "user_id",
1313
+ "isExpression": false,
1314
+ "asc": true,
1315
+ "nulls": "last"
1316
+ }
1317
+ ],
1318
+ "with": {},
1278
1319
  "name": "slug_user_id_unique",
1279
- "columns": ["slug", "user_id"],
1280
- "isUnique": true
1320
+ "isUnique": true,
1321
+ "method": "btree",
1322
+ "concurrently": false
1281
1323
  }
1282
1324
  },
1283
1325
  "foreignKeys": {
1284
1326
  "sessions_user_id_users_id_fk": {
1285
1327
  "name": "sessions_user_id_users_id_fk",
1286
1328
  "tableFrom": "sessions",
1287
- "tableTo": "users",
1288
1329
  "columnsFrom": ["user_id"],
1330
+ "tableTo": "users",
1289
1331
  "columnsTo": ["id"],
1290
- "onDelete": "cascade",
1291
- "onUpdate": "no action"
1332
+ "onUpdate": "no action",
1333
+ "onDelete": "cascade"
1292
1334
  },
1293
1335
  "sessions_group_id_session_groups_id_fk": {
1294
1336
  "name": "sessions_group_id_session_groups_id_fk",
1295
1337
  "tableFrom": "sessions",
1296
- "tableTo": "session_groups",
1297
1338
  "columnsFrom": ["group_id"],
1339
+ "tableTo": "session_groups",
1298
1340
  "columnsTo": ["id"],
1299
- "onDelete": "set null",
1300
- "onUpdate": "no action"
1341
+ "onUpdate": "no action",
1342
+ "onDelete": "set null"
1301
1343
  }
1302
1344
  },
1303
1345
  "compositePrimaryKeys": {},
1304
1346
  "uniqueConstraints": {
1305
1347
  "sessions_client_id_user_id_unique": {
1306
1348
  "name": "sessions_client_id_user_id_unique",
1307
- "nullsNotDistinct": false,
1308
- "columns": ["client_id", "user_id"]
1349
+ "columns": ["client_id", "user_id"],
1350
+ "nullsNotDistinct": false
1309
1351
  }
1310
1352
  }
1311
1353
  },
@@ -1357,19 +1399,19 @@
1357
1399
  "tags_user_id_users_id_fk": {
1358
1400
  "name": "tags_user_id_users_id_fk",
1359
1401
  "tableFrom": "tags",
1360
- "tableTo": "users",
1361
1402
  "columnsFrom": ["user_id"],
1403
+ "tableTo": "users",
1362
1404
  "columnsTo": ["id"],
1363
- "onDelete": "cascade",
1364
- "onUpdate": "no action"
1405
+ "onUpdate": "no action",
1406
+ "onDelete": "cascade"
1365
1407
  }
1366
1408
  },
1367
1409
  "compositePrimaryKeys": {},
1368
1410
  "uniqueConstraints": {
1369
1411
  "tags_slug_unique": {
1370
1412
  "name": "tags_slug_unique",
1371
- "nullsNotDistinct": false,
1372
- "columns": ["slug"]
1413
+ "columns": ["slug"],
1414
+ "nullsNotDistinct": false
1373
1415
  }
1374
1416
  }
1375
1417
  },
@@ -1434,28 +1476,28 @@
1434
1476
  "topics_session_id_sessions_id_fk": {
1435
1477
  "name": "topics_session_id_sessions_id_fk",
1436
1478
  "tableFrom": "topics",
1437
- "tableTo": "sessions",
1438
1479
  "columnsFrom": ["session_id"],
1480
+ "tableTo": "sessions",
1439
1481
  "columnsTo": ["id"],
1440
- "onDelete": "cascade",
1441
- "onUpdate": "no action"
1482
+ "onUpdate": "no action",
1483
+ "onDelete": "cascade"
1442
1484
  },
1443
1485
  "topics_user_id_users_id_fk": {
1444
1486
  "name": "topics_user_id_users_id_fk",
1445
1487
  "tableFrom": "topics",
1446
- "tableTo": "users",
1447
1488
  "columnsFrom": ["user_id"],
1489
+ "tableTo": "users",
1448
1490
  "columnsTo": ["id"],
1449
- "onDelete": "cascade",
1450
- "onUpdate": "no action"
1491
+ "onUpdate": "no action",
1492
+ "onDelete": "cascade"
1451
1493
  }
1452
1494
  },
1453
1495
  "compositePrimaryKeys": {},
1454
1496
  "uniqueConstraints": {
1455
1497
  "topic_client_id_user_id_unique": {
1456
1498
  "name": "topic_client_id_user_id_unique",
1457
- "nullsNotDistinct": false,
1458
- "columns": ["client_id", "user_id"]
1499
+ "columns": ["client_id", "user_id"],
1500
+ "nullsNotDistinct": false
1459
1501
  }
1460
1502
  }
1461
1503
  },
@@ -1517,11 +1559,11 @@
1517
1559
  "user_settings_id_users_id_fk": {
1518
1560
  "name": "user_settings_id_users_id_fk",
1519
1561
  "tableFrom": "user_settings",
1520
- "tableTo": "users",
1521
1562
  "columnsFrom": ["id"],
1563
+ "tableTo": "users",
1522
1564
  "columnsTo": ["id"],
1523
- "onDelete": "cascade",
1524
- "onUpdate": "no action"
1565
+ "onUpdate": "no action",
1566
+ "onDelete": "cascade"
1525
1567
  }
1526
1568
  },
1527
1569
  "compositePrimaryKeys": {},
@@ -1620,11 +1662,11 @@
1620
1662
  "uniqueConstraints": {
1621
1663
  "users_username_unique": {
1622
1664
  "name": "users_username_unique",
1623
- "nullsNotDistinct": false,
1624
- "columns": ["username"]
1665
+ "columns": ["username"],
1666
+ "nullsNotDistinct": false
1625
1667
  }
1626
1668
  }
1627
1669
  }
1628
1670
  },
1629
- "version": "6"
1671
+ "version": "7"
1630
1672
  }