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 + } + } + ] }