uni-id-permissions.schema.json 930 字节
Newer Older
雪洛's avatar
雪洛 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
{
	"bsonType": "object",
	"required": ["permission_id", "permission_name"],
	"properties": {
		"_id": {
			"description": "存储文档 ID,系统自动生成"
		},
		"permission_id": {
			"bsonType": "string",
			"description": "权限唯一标识,不可修改,不允许重复",
			"label": "权限标识",
			"trim": "both",
			"title": "权限ID",
			"component": {
				"name": "input"
			}
		},
		"permission_name": {
			"bsonType": "string",
			"description": "权限名称",
			"label": "权限名称",
			"title": "权限名称",
			"trim": "both",
			"component": {
				"name": "input"
			}
		},
		"comment": {
			"bsonType": "string",
			"description": "备注",
			"label": "备注",
			"title": "备注",
			"trim": "both",
			"component": {
				"name": "textarea"
			}
		},
		"create_date": {
			"bsonType": "timestamp",
			"description": "创建时间",
			"forceDefaultValue": {
				"$env": "now"
			}
		}
	}
}