@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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.6.10](https://github.com/lobehub/lobe-chat/compare/v1.6.9...v1.6.10)
6
+
7
+ <sup>Released on **2024-07-23**</sup>
8
+
9
+ #### โ™ป Code Refactoring
10
+
11
+ - **misc**: Upgrade snapshot version.
12
+
13
+ #### ๐Ÿ’„ Styles
14
+
15
+ - **misc**: Fix the scrolling of the return result area of function calling.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### Code refactoring
23
+
24
+ - **misc**: Upgrade snapshot version, closes [#3296](https://github.com/lobehub/lobe-chat/issues/3296) ([2c14fef](https://github.com/lobehub/lobe-chat/commit/2c14fef))
25
+
26
+ #### Styles
27
+
28
+ - **misc**: Fix the scrolling of the return result area of function calling, closes [#3295](https://github.com/lobehub/lobe-chat/issues/3295) ([9c8f469](https://github.com/lobehub/lobe-chat/commit/9c8f469))
29
+
30
+ </details>
31
+
32
+ <div align="right">
33
+
34
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
35
+
36
+ </div>
37
+
5
38
  ### [Version 1.6.9](https://github.com/lobehub/lobe-chat/compare/v1.6.8...v1.6.9)
6
39
 
7
40
  <sup>Released on **2024-07-23**</sup>
package/README.md CHANGED
@@ -273,7 +273,7 @@ Our marketplace is not just a showcase platform but also a collaborative space.
273
273
  | [Convert SQL Table Structure to Dao and Mapper](https://chat-preview.lobehub.com/market?agent=my-batis-generator)<br/><sup>By **[MeYoung](https://github.com/MeYoung)** on **2024-07-17**</sup> | Generate entity class and MyBatis Mapper based on a table structure<br/>`sql` `sql` `mybatis` |
274
274
  | [Auto Extraction Data](https://chat-preview.lobehub.com/market?agent=the-20-autoextract)<br/><sup>By **[vkhoilq](https://github.com/vkhoilq)** on **2024-07-17**</sup> | The20 Auto Extraction Data<br/>`the-20` `autoextract` |
275
275
 
276
- > ๐Ÿ“Š Total agents: [<kbd>**302**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
276
+ > ๐Ÿ“Š Total agents: [<kbd>**304**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
277
277
 
278
278
  <!-- AGENT LIST -->
279
279
 
package/README.zh-CN.md CHANGED
@@ -261,7 +261,7 @@ LobeChat ็š„ๆ’ไปถ็”Ÿๆ€็ณป็ปŸๆ˜ฏๅ…ถๆ ธๅฟƒๅŠŸ่ƒฝ็š„้‡่ฆๆ‰ฉๅฑ•๏ผŒๅฎƒๆžๅคงๅœฐ
261
261
  | [SQL ่กจ็ป“ๆž„่ฝฌ Dao ๅ’Œ Mapper](https://chat-preview.lobehub.com/market?agent=my-batis-generator)<br/><sup>By **[MeYoung](https://github.com/MeYoung)** on **2024-07-17**</sup> | ็ป™ไธŽไธ€ไธช่กจ็ป“ๆž„๏ผŒ็”Ÿๆˆ่กจ็š„ๅฎžไฝ“ๅ’Œ MyBatis ็š„ Mapper<br/>`sql` `sql` `mybatis` |
262
262
  | [่‡ชๅŠจๆๅ–ๆ•ฐๆฎ](https://chat-preview.lobehub.com/market?agent=the-20-autoextract)<br/><sup>By **[vkhoilq](https://github.com/vkhoilq)** on **2024-07-17**</sup> | The20 ่‡ชๅŠจๆๅ–ๆ•ฐๆฎ<br/>`the-20` `autoextract` |
263
263
 
264
- > ๐Ÿ“Š Total agents: [<kbd>**302**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
264
+ > ๐Ÿ“Š Total agents: [<kbd>**304**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
265
265
 
266
266
  <!-- AGENT LIST -->
267
267
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.6.9",
3
+ "version": "1.6.10",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -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": {},
@@ -917,65 +917,75 @@
917
917
  },
918
918
  "indexes": {
919
919
  "messages_created_at_idx": {
920
+ "columns": [
921
+ {
922
+ "expression": "created_at",
923
+ "isExpression": false,
924
+ "asc": true,
925
+ "nulls": "last"
926
+ }
927
+ ],
928
+ "with": {},
920
929
  "name": "messages_created_at_idx",
921
- "columns": ["created_at"],
922
- "isUnique": false
930
+ "isUnique": false,
931
+ "method": "btree",
932
+ "concurrently": false
923
933
  }
924
934
  },
925
935
  "foreignKeys": {
926
936
  "messages_user_id_users_id_fk": {
927
937
  "name": "messages_user_id_users_id_fk",
928
938
  "tableFrom": "messages",
929
- "tableTo": "users",
930
939
  "columnsFrom": ["user_id"],
940
+ "tableTo": "users",
931
941
  "columnsTo": ["id"],
932
- "onDelete": "cascade",
933
- "onUpdate": "no action"
942
+ "onUpdate": "no action",
943
+ "onDelete": "cascade"
934
944
  },
935
945
  "messages_session_id_sessions_id_fk": {
936
946
  "name": "messages_session_id_sessions_id_fk",
937
947
  "tableFrom": "messages",
938
- "tableTo": "sessions",
939
948
  "columnsFrom": ["session_id"],
949
+ "tableTo": "sessions",
940
950
  "columnsTo": ["id"],
941
- "onDelete": "cascade",
942
- "onUpdate": "no action"
951
+ "onUpdate": "no action",
952
+ "onDelete": "cascade"
943
953
  },
944
954
  "messages_topic_id_topics_id_fk": {
945
955
  "name": "messages_topic_id_topics_id_fk",
946
956
  "tableFrom": "messages",
947
- "tableTo": "topics",
948
957
  "columnsFrom": ["topic_id"],
958
+ "tableTo": "topics",
949
959
  "columnsTo": ["id"],
950
- "onDelete": "cascade",
951
- "onUpdate": "no action"
960
+ "onUpdate": "no action",
961
+ "onDelete": "cascade"
952
962
  },
953
963
  "messages_parent_id_messages_id_fk": {
954
964
  "name": "messages_parent_id_messages_id_fk",
955
965
  "tableFrom": "messages",
956
- "tableTo": "messages",
957
966
  "columnsFrom": ["parent_id"],
967
+ "tableTo": "messages",
958
968
  "columnsTo": ["id"],
959
- "onDelete": "set null",
960
- "onUpdate": "no action"
969
+ "onUpdate": "no action",
970
+ "onDelete": "set null"
961
971
  },
962
972
  "messages_quota_id_messages_id_fk": {
963
973
  "name": "messages_quota_id_messages_id_fk",
964
974
  "tableFrom": "messages",
965
- "tableTo": "messages",
966
975
  "columnsFrom": ["quota_id"],
976
+ "tableTo": "messages",
967
977
  "columnsTo": ["id"],
968
- "onDelete": "set null",
969
- "onUpdate": "no action"
978
+ "onUpdate": "no action",
979
+ "onDelete": "set null"
970
980
  },
971
981
  "messages_agent_id_agents_id_fk": {
972
982
  "name": "messages_agent_id_agents_id_fk",
973
983
  "tableFrom": "messages",
974
- "tableTo": "agents",
975
984
  "columnsFrom": ["agent_id"],
985
+ "tableTo": "agents",
976
986
  "columnsTo": ["id"],
977
- "onDelete": "set null",
978
- "onUpdate": "no action"
987
+ "onUpdate": "no action",
988
+ "onDelete": "set null"
979
989
  }
980
990
  },
981
991
  "compositePrimaryKeys": {},
@@ -1054,8 +1064,8 @@
1054
1064
  "uniqueConstraints": {
1055
1065
  "plugins_identifier_unique": {
1056
1066
  "name": "plugins_identifier_unique",
1057
- "nullsNotDistinct": false,
1058
- "columns": ["identifier"]
1067
+ "columns": ["identifier"],
1068
+ "nullsNotDistinct": false
1059
1069
  }
1060
1070
  }
1061
1071
  },
@@ -1081,20 +1091,20 @@
1081
1091
  "plugins_tags_plugin_id_plugins_id_fk": {
1082
1092
  "name": "plugins_tags_plugin_id_plugins_id_fk",
1083
1093
  "tableFrom": "plugins_tags",
1084
- "tableTo": "plugins",
1085
1094
  "columnsFrom": ["plugin_id"],
1095
+ "tableTo": "plugins",
1086
1096
  "columnsTo": ["id"],
1087
- "onDelete": "cascade",
1088
- "onUpdate": "no action"
1097
+ "onUpdate": "no action",
1098
+ "onDelete": "cascade"
1089
1099
  },
1090
1100
  "plugins_tags_tag_id_tags_id_fk": {
1091
1101
  "name": "plugins_tags_tag_id_tags_id_fk",
1092
1102
  "tableFrom": "plugins_tags",
1093
- "tableTo": "tags",
1094
1103
  "columnsFrom": ["tag_id"],
1104
+ "tableTo": "tags",
1095
1105
  "columnsTo": ["id"],
1096
- "onDelete": "cascade",
1097
- "onUpdate": "no action"
1106
+ "onUpdate": "no action",
1107
+ "onDelete": "cascade"
1098
1108
  }
1099
1109
  },
1100
1110
  "compositePrimaryKeys": {
@@ -1153,11 +1163,11 @@
1153
1163
  "session_groups_user_id_users_id_fk": {
1154
1164
  "name": "session_groups_user_id_users_id_fk",
1155
1165
  "tableFrom": "session_groups",
1156
- "tableTo": "users",
1157
1166
  "columnsFrom": ["user_id"],
1167
+ "tableTo": "users",
1158
1168
  "columnsTo": ["id"],
1159
- "onDelete": "cascade",
1160
- "onUpdate": "no action"
1169
+ "onUpdate": "no action",
1170
+ "onDelete": "cascade"
1161
1171
  }
1162
1172
  },
1163
1173
  "compositePrimaryKeys": {},
@@ -1246,29 +1256,45 @@
1246
1256
  },
1247
1257
  "indexes": {
1248
1258
  "slug_user_id_unique": {
1259
+ "columns": [
1260
+ {
1261
+ "expression": "slug",
1262
+ "isExpression": false,
1263
+ "asc": true,
1264
+ "nulls": "last"
1265
+ },
1266
+ {
1267
+ "expression": "user_id",
1268
+ "isExpression": false,
1269
+ "asc": true,
1270
+ "nulls": "last"
1271
+ }
1272
+ ],
1273
+ "with": {},
1249
1274
  "name": "slug_user_id_unique",
1250
- "columns": ["slug", "user_id"],
1251
- "isUnique": true
1275
+ "isUnique": true,
1276
+ "method": "btree",
1277
+ "concurrently": false
1252
1278
  }
1253
1279
  },
1254
1280
  "foreignKeys": {
1255
1281
  "sessions_user_id_users_id_fk": {
1256
1282
  "name": "sessions_user_id_users_id_fk",
1257
1283
  "tableFrom": "sessions",
1258
- "tableTo": "users",
1259
1284
  "columnsFrom": ["user_id"],
1285
+ "tableTo": "users",
1260
1286
  "columnsTo": ["id"],
1261
- "onDelete": "cascade",
1262
- "onUpdate": "no action"
1287
+ "onUpdate": "no action",
1288
+ "onDelete": "cascade"
1263
1289
  },
1264
1290
  "sessions_group_id_session_groups_id_fk": {
1265
1291
  "name": "sessions_group_id_session_groups_id_fk",
1266
1292
  "tableFrom": "sessions",
1267
- "tableTo": "session_groups",
1268
1293
  "columnsFrom": ["group_id"],
1294
+ "tableTo": "session_groups",
1269
1295
  "columnsTo": ["id"],
1270
- "onDelete": "set null",
1271
- "onUpdate": "no action"
1296
+ "onUpdate": "no action",
1297
+ "onDelete": "set null"
1272
1298
  }
1273
1299
  },
1274
1300
  "compositePrimaryKeys": {},
@@ -1322,19 +1348,19 @@
1322
1348
  "tags_user_id_users_id_fk": {
1323
1349
  "name": "tags_user_id_users_id_fk",
1324
1350
  "tableFrom": "tags",
1325
- "tableTo": "users",
1326
1351
  "columnsFrom": ["user_id"],
1352
+ "tableTo": "users",
1327
1353
  "columnsTo": ["id"],
1328
- "onDelete": "cascade",
1329
- "onUpdate": "no action"
1354
+ "onUpdate": "no action",
1355
+ "onDelete": "cascade"
1330
1356
  }
1331
1357
  },
1332
1358
  "compositePrimaryKeys": {},
1333
1359
  "uniqueConstraints": {
1334
1360
  "tags_slug_unique": {
1335
1361
  "name": "tags_slug_unique",
1336
- "nullsNotDistinct": false,
1337
- "columns": ["slug"]
1362
+ "columns": ["slug"],
1363
+ "nullsNotDistinct": false
1338
1364
  }
1339
1365
  }
1340
1366
  },
@@ -1393,20 +1419,20 @@
1393
1419
  "topics_session_id_sessions_id_fk": {
1394
1420
  "name": "topics_session_id_sessions_id_fk",
1395
1421
  "tableFrom": "topics",
1396
- "tableTo": "sessions",
1397
1422
  "columnsFrom": ["session_id"],
1423
+ "tableTo": "sessions",
1398
1424
  "columnsTo": ["id"],
1399
- "onDelete": "cascade",
1400
- "onUpdate": "no action"
1425
+ "onUpdate": "no action",
1426
+ "onDelete": "cascade"
1401
1427
  },
1402
1428
  "topics_user_id_users_id_fk": {
1403
1429
  "name": "topics_user_id_users_id_fk",
1404
1430
  "tableFrom": "topics",
1405
- "tableTo": "users",
1406
1431
  "columnsFrom": ["user_id"],
1432
+ "tableTo": "users",
1407
1433
  "columnsTo": ["id"],
1408
- "onDelete": "cascade",
1409
- "onUpdate": "no action"
1434
+ "onUpdate": "no action",
1435
+ "onDelete": "cascade"
1410
1436
  }
1411
1437
  },
1412
1438
  "compositePrimaryKeys": {},
@@ -1470,11 +1496,11 @@
1470
1496
  "user_settings_id_users_id_fk": {
1471
1497
  "name": "user_settings_id_users_id_fk",
1472
1498
  "tableFrom": "user_settings",
1473
- "tableTo": "users",
1474
1499
  "columnsFrom": ["id"],
1500
+ "tableTo": "users",
1475
1501
  "columnsTo": ["id"],
1476
- "onDelete": "cascade",
1477
- "onUpdate": "no action"
1502
+ "onUpdate": "no action",
1503
+ "onDelete": "cascade"
1478
1504
  }
1479
1505
  },
1480
1506
  "compositePrimaryKeys": {},
@@ -1573,11 +1599,11 @@
1573
1599
  "uniqueConstraints": {
1574
1600
  "users_username_unique": {
1575
1601
  "name": "users_username_unique",
1576
- "nullsNotDistinct": false,
1577
- "columns": ["username"]
1602
+ "columns": ["username"],
1603
+ "nullsNotDistinct": false
1578
1604
  }
1579
1605
  }
1580
1606
  }
1581
1607
  },
1582
- "version": "6"
1608
+ "version": "7"
1583
1609
  }