pbl_blueprint/models/pbl_blueprint_role.json

40 lines
2.0 KiB
JSON

{
"summary": [
{
"table": "pbl_blueprint_role",
"name": "蓝图角色",
"title": "PBL角色",
"subtitle": "蓝图子对象-角色",
"primary": ["id"],
"defaultsort": "seq asc",
"orderby": "seq asc",
"caption": "角色"
}
],
"fields": [
{"name": "id", "type": "str(32)", "title": "主键", "notnull": 1, "primary": 1, "readonly": 1},
{"name": "tenant_id", "type": "str(32)", "title": "租户ID", "notnull": 1, "default": "0"},
{"name": "blueprint_id", "type": "str(32)", "title": "所属蓝图", "notnull": 1},
{"name": "seq", "type": "int", "title": "序号", "notnull": 1, "default": 0},
{"name": "role_code", "type": "str(64)", "title": "角色编码", "notnull": 1},
{"name": "role_name", "type": "str(128)", "title": "角色名称", "notnull": 1},
{"name": "description", "type": "text", "title": "角色说明", "default": ""},
{"name": "responsibilities", "type": "text", "title": "职责JSON数组", "default": "[]"},
{"name": "required_skills", "type": "text", "title": "所需技能JSON数组", "default": "[]"},
{"name": "min_members", "type": "int", "title": "最少人数", "default": 1},
{"name": "max_members", "type": "int", "title": "最多人数", "default": 1},
{"name": "is_mandatory", "type": "str(1)", "title": "是否必需角色", "default": "0"},
{"name": "created_by", "type": "str(32)", "title": "创建人", "default": ""},
{"name": "created_at", "type": "datetime", "title": "创建时间", "notnull": 1},
{"name": "updated_by", "type": "str(32)", "title": "更新人", "default": ""},
{"name": "updated_at", "type": "datetime", "title": "更新时间"}
],
"indexes": [
{"name": "uk_pbl_role_code", "fields": ["tenant_id", "blueprint_id", "role_code"], "unique": 1},
{"name": "idx_pbl_role_bp", "fields": ["tenant_id", "blueprint_id", "seq"], "unique": 0}
],
"codes": [
{"field": "blueprint_id", "table": "pbl_blueprint", "cond": "", "valuefield": "id", "textfield": "title"}
]
}