opendb/collection/uni-id-permissions/collection.json

62 lines
1.3 KiB
JSON
Raw Normal View History

{
"schema": {
"bsonType": "object",
"required": [
"permission_id",
"permission_name"
],
"properties": {
"_id": {
"description": "存储文档 ID系统自动生成"
},
"permission_id": {
"bsonType": "string",
"description": "权限唯一标识,不可修改,不允许重复",
"label": "权限标识",
2020-12-23 20:20:34 +08:00
"trim":"both",
"title":"权限ID",
"component": {
"name": "input"
}
},
"permission_name": {
"bsonType": "string",
"description": "权限名称",
"label": "权限名称",
2020-12-23 20:20:34 +08:00
"title":"权限名称",
"trim":"both",
"component": {
"name": "input"
}
},
"comment": {
"bsonType": "string",
"description": "备注",
"label": "备注",
2020-12-23 20:20:34 +08:00
"title":"备注",
"trim":"both",
"component": {
"name": "textarea"
}
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
},
"index": [{
"IndexName": "permission_id",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "permission_id",
"Direction": "1"
}],
"MgoIsUnique": true
}
}]
}