diff --git a/collection/uni-id-users/collection.json b/collection/uni-id-users/collection.json index 073c8f2..5fb09ad 100644 --- a/collection/uni-id-users/collection.json +++ b/collection/uni-id-users/collection.json @@ -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 + } + } ] }