- sd_project_role_models CRUD(index.ui + get/add/update/delete dspy) - 下拉选项:get_model_options(模型)/get_role_options(角色)/get_project_select_options(项目) - load_path 注册权限路径 + models 表模型
26 lines
1.2 KiB
JSON
26 lines
1.2 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "sd_project_role_models",
|
|
"title": "项目角色模型配置",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "project_id", "title": "项目ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "role", "title": "角色名", "type": "str", "length": 64, "nullable": "no"},
|
|
{"name": "model_name", "title": "模型名(llm.name,空=用项目缺省模型)", "type": "str", "length": 128},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
|
|
{"name": "updated_at", "title": "更新时间", "type": "timestamp"}
|
|
],
|
|
"indexes": [
|
|
{"name": "uk_sd_project_role_models_pr", "idxtype": "unique", "idxfields": ["project_id", "role"]}
|
|
],
|
|
"codes": [
|
|
{"field": "role", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_role'"},
|
|
{"field": "model_name", "table": "llm", "valuefield": "name", "textfield": "name", "cond": ""}
|
|
]
|
|
}
|