diff --git a/uniCloud/database/uni-im-conversation.index.json b/uniCloud/database/uni-im-conversation.index.json new file mode 100644 index 0000000000000000000000000000000000000000..d1d93b6ee86005f5151ac33544d0cdbd390b780c --- /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 0000000000000000000000000000000000000000..d6d5a1d4ec20a6f6480f1405d96aaeb30a9c329c --- /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 0000000000000000000000000000000000000000..4bc17120eb78aa225073d8be04cff88cf64cb78e --- /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