From 9603cda4f9f8ded9849707fcda5f82ab6375423b Mon Sep 17 00:00:00 2001 From: linju Date: Thu, 23 Nov 2023 14:57:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E7=B4=A2?= =?UTF-8?q?=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/uni-id-device/collection.json | 43 ++++++++++++++++++- .../uni-im-conversation/collection.json | 15 ++++++- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/collection/uni-id-device/collection.json b/collection/uni-id-device/collection.json index c7e4adc..8e0a879 100644 --- a/collection/uni-id-device/collection.json +++ b/collection/uni-id-device/collection.json @@ -42,6 +42,10 @@ "bsonType": "string", "description": "推送设备客户端标识" }, + "device_id": { + "bsonType": "string", + "description": "设备id" + }, "imei": { "bsonType": "string", "description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)" @@ -79,5 +83,42 @@ } } }, - "index": [] + "index": [ + { + "IndexName": "device_id", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "device_id", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "oaid", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "oaid", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + }, + { + "IndexName": "imei", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "imei", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + } + ] } diff --git a/collection/uni-im-conversation/collection.json b/collection/uni-im-conversation/collection.json index 659e117..0a7e2b6 100644 --- a/collection/uni-im-conversation/collection.json +++ b/collection/uni-im-conversation/collection.json @@ -62,5 +62,18 @@ } } }, - "index": [] + "index": [ + { + "IndexName": "id", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "id", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + } + ] }