add department_id index

This commit is contained in:
崔红保 2021-01-10 10:22:57 +08:00
parent 7ce677f5ae
commit b3834c525a

View File

@ -111,7 +111,7 @@
"trim":"both"
},
"department_id": {
"bsonType": "string",
"bsonType": "array",
"description": "部门ID",
"title": "部门",
"enumType": "tree",
@ -371,6 +371,16 @@
}],
"MgoIsUnique": false
}
}
},
{
"IndexName": "department",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "department_id",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}