opendb/collection/uni-id-permissions/collection.json
2020-09-23 20:58:34 +08:00

44 lines
905 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema": {
"bsonType": "object",
"required": [
"role_id",
"permission"
],
"properties": {
"_id": {
"description": "存储文档 ID系统自动生成"
},
"role_id": {
"bsonType": "string",
"description": "角色唯一标识,不可修改,不允许重复"
},
"role_name": {
"bsonType": "string",
"description": "角色名称"
},
"comment": {
"bsonType": "string",
"description": "用户昵称"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间"
}
}
},
"index": [
{
"IndexName": "permission_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "permission_id",
"Direction": "1"
}
],
"MgoIsUnique": true
}
}
]
}