添加默认索引

This commit is contained in:
linju 2023-11-23 14:57:51 +08:00
parent 5404566751
commit 9603cda4f9
2 changed files with 56 additions and 2 deletions

View File

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

View File

@ -62,5 +62,18 @@
}
}
},
"index": []
"index": [
{
"IndexName": "id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "id",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
}