product_management/models/product_org_auth.json

77 lines
1.8 KiB
JSON

{
"summary": [
{
"name": "product_org_auth",
"title": "产品授权机构表",
"primary": ["id"],
"catelog": "relation"
}
],
"fields": [
{
"name": "id",
"title": "主键ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "product_id",
"title": "产品ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "org_id",
"title": "被授权机构ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "auth_source",
"title": "授权来源",
"type": "str",
"length": 32
},
{
"name": "auth_source_id",
"title": "来源记录ID",
"type": "str",
"length": 32
},
{
"name": "created_at",
"title": "创建时间",
"type": "datetime",
"nullable": "no"
}
],
"indexes": [
{
"name": "idx_poa_product",
"idxtype": "index",
"idxfields": ["product_id"]
},
{
"name": "idx_poa_org",
"idxtype": "index",
"idxfields": ["org_id"]
},
{
"name": "idx_poa_unique",
"idxtype": "unique",
"idxfields": ["product_id", "org_id", "auth_source"]
}
],
"codes": [
{
"field": "product_id",
"table": "product",
"valuefield": "id",
"textfield": "product_name"
}
]
}