45 lines
1.4 KiB
JSON
45 lines
1.4 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "product_capability",
|
|
"title": "产品能力绑定",
|
|
"primary": "id",
|
|
"catelog": "relation"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{ "name": "orgid", "title": "租户ID", "type": "str", "length": 32, "nullable": "no", "default": "", "comments": "所属组织(多租户隔离)" },
|
|
|
|
{"name": "product_id", "title": "产品ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "capability_id", "title": "能力ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "config", "title": "绑定配置(JSON)", "type": "text", "nullable": "yes"},
|
|
|
|
{"name": "created_at", "title": "绑定时间", "type": "timestamp", "nullable": "yes"}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "uk_product_cap",
|
|
"idxtype": "unique",
|
|
"idxfields": ["product_id", "capability_id"]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "product_id",
|
|
"table": "product",
|
|
"valuefield": "id",
|
|
"textfield": "name",
|
|
"cond": ""
|
|
},
|
|
{
|
|
"field": "capability_id",
|
|
"table": "capability",
|
|
"valuefield": "id",
|
|
"textfield": "name",
|
|
"cond": ""
|
|
}
|
|
]
|
|
}
|
|
|