From f9ae434be21f84ce576ed305e2a4dd87e2709dc7 Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Fri, 21 Jun 2024 14:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../database/uni-im-conversation.index.json | 114 ++++++++++++++++++ uniCloud/database/uni-im-group.index.json | 33 +++++ uniCloud/database/uni-im-msg.index.json | 73 +++++++++++ 3 files changed, 220 insertions(+) create mode 100644 uniCloud/database/uni-im-conversation.index.json create mode 100644 uniCloud/database/uni-im-group.index.json create mode 100644 uniCloud/database/uni-im-msg.index.json diff --git a/uniCloud/database/uni-im-conversation.index.json b/uniCloud/database/uni-im-conversation.index.json new file mode 100644 index 0000000..d1d93b6 --- /dev/null +++ b/uniCloud/database/uni-im-conversation.index.json @@ -0,0 +1,114 @@ +[ + { + "IndexName": "user_id_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "user_id", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "friend_uid_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "friend_uid", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "group_id_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "group_id", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "update_time_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "update_time", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "id_1_user_id_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "user_id", + "Direction": "-1" + }, + { + "Name": "id", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "id_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "id", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "leave_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "leave", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "unread_count_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "unread_count", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "leave_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "leave", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + } +] \ No newline at end of file diff --git a/uniCloud/database/uni-im-group.index.json b/uniCloud/database/uni-im-group.index.json new file mode 100644 index 0000000..d6d5a1d --- /dev/null +++ b/uniCloud/database/uni-im-group.index.json @@ -0,0 +1,33 @@ +[ + { + "IndexName": "user_id_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "user_id", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "type_muteAllMembers_createTime", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "type", + "Direction": "1" + },{ + "Name": "mute_all_members", + "Direction": "1" + }, + { + "Name": "create_time", + "Direction": "-1" + } + ], + "MgoIsUnique": false + } + } +] \ No newline at end of file diff --git a/uniCloud/database/uni-im-msg.index.json b/uniCloud/database/uni-im-msg.index.json new file mode 100644 index 0000000..4bc1712 --- /dev/null +++ b/uniCloud/database/uni-im-msg.index.json @@ -0,0 +1,73 @@ +[ + { + "IndexName": "group_id_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "group_id", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "conversation_id_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "conversation_id", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "conversation_id_1_update_time_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "conversation_id", + "Direction": "1" + },{ + "Name": "update_time", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "type_1", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "type", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "groupId_type_createTime", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "group_id", + "Direction": "1" + }, + { + "Name": "type", + "Direction": "1" + }, + { + "Name": "create_time", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + } +] \ No newline at end of file -- GitLab