product/models/pricing_plan.json
2025-12-05 18:03:14 +08:00

38 lines
1.5 KiB
JSON

{
"summary": [
{
"name": "pricing_plan",
"title": "定价策略",
"primary": "id",
"catelog": "entity"
}
],
"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": "name", "title": "方案名称", "type": "str", "length": 128, "nullable": "no"},
{"name": "type", "title": "方案类型", "type": "str", "length": 32, "nullable": "no", "default": "payg"},
{"name": "plan_detail", "title": "方案内容 JSON", "type": "text", "nullable": "yes"},
{"name": "is_default", "title": "是否默认方案", "type": "short", "length": 0, "nullable": "yes", "default": "0"},
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "yes"},
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "yes"}
],
"indexes": [
{"name": "idx_product", "idxtype": "index", "idxfields": ["product_id"]}
],
"codes": [
{
"field": "product_id",
"table": "product",
"valuefield": "id",
"textfield": "name",
"cond": ""
}
]
}