diff --git a/collection/uni-id-permissions/collection.json b/collection/uni-id-permissions/collection.json index 16a9f08..802c96a 100644 --- a/collection/uni-id-permissions/collection.json +++ b/collection/uni-id-permissions/collection.json @@ -2,7 +2,8 @@ "schema": { "bsonType": "object", "required": [ - "permission_id" + "permission_id", + "permission_name" ], "properties": { "_id": { @@ -10,34 +11,45 @@ }, "permission_id": { "bsonType": "string", - "description": "权限唯一标识,不可修改,不允许重复" + "description": "权限唯一标识,不可修改,不允许重复", + "label": "权限标识", + "component": { + "name": "input" + } }, "permission_name": { "bsonType": "string", - "description": "权限名称" + "description": "权限名称", + "label": "权限名称", + "component": { + "name": "input" + } }, "comment": { "bsonType": "string", - "description": "备注" + "description": "备注", + "label": "备注", + "component": { + "name": "textarea" + } }, "create_date": { "bsonType": "timestamp", - "description": "创建时间" + "description": "创建时间", + "forceDefaultValue": { + "$env": "now" + } } } }, - "index": [ - { - "IndexName": "permission_id", - "MgoKeySchema": { - "MgoIndexKeys": [ - { - "Name": "permission_id", - "Direction": "1" - } - ], - "MgoIsUnique": true - } + "index": [{ + "IndexName": "permission_id", + "MgoKeySchema": { + "MgoIndexKeys": [{ + "Name": "permission_id", + "Direction": "1" + }], + "MgoIsUnique": true } - ] -} \ No newline at end of file + }] +}