update: uni-id-permission 增加表单属性

This commit is contained in:
handongxun 2020-10-21 18:00:23 +08:00
parent a11e1c8492
commit 1562b0440e

View File

@ -2,7 +2,8 @@
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"required": [ "required": [
"permission_id" "permission_id",
"permission_name"
], ],
"properties": { "properties": {
"_id": { "_id": {
@ -10,34 +11,45 @@
}, },
"permission_id": { "permission_id": {
"bsonType": "string", "bsonType": "string",
"description": "权限唯一标识,不可修改,不允许重复" "description": "权限唯一标识,不可修改,不允许重复",
"label": "权限标识",
"component": {
"name": "input"
}
}, },
"permission_name": { "permission_name": {
"bsonType": "string", "bsonType": "string",
"description": "权限名称" "description": "权限名称",
"label": "权限名称",
"component": {
"name": "input"
}
}, },
"comment": { "comment": {
"bsonType": "string", "bsonType": "string",
"description": "备注" "description": "备注",
"label": "备注",
"component": {
"name": "textarea"
}
}, },
"create_date": { "create_date": {
"bsonType": "timestamp", "bsonType": "timestamp",
"description": "创建时间" "description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
} }
} }
}, },
"index": [ "index": [{
{ "IndexName": "permission_id",
"IndexName": "permission_id", "MgoKeySchema": {
"MgoKeySchema": { "MgoIndexKeys": [{
"MgoIndexKeys": [ "Name": "permission_id",
{ "Direction": "1"
"Name": "permission_id", }],
"Direction": "1" "MgoIsUnique": true
}
],
"MgoIsUnique": true
}
} }
] }]
} }