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