pipeline-core: - pipelines.json codes cond: id -> parentid pipeline-ops: - init/data.json: 转为Format B(parentid/parentname/items) - pipeline_pricing.json: +4 codes(pricing_type/currency/status/pipeline_id) - pipeline_capacity.json: +2 codes(capacity_status/pipeline_id) - pipeline_usage_log.json: +2 codes(usage_status/pipeline_id) pipeline-dist: - init/data.json: 转为Format B(parentid/parentname/items) - distributors.json: +1 code(distributor_status) - distributor_pipeline.json: +4 codes(markup_type/dp_status/外键)
142 lines
3.3 KiB
JSON
142 lines
3.3 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "pipeline_pricing",
|
|
"title": "产线定价表",
|
|
"primary": [
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "pipeline_id",
|
|
"title": "产线ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "pricing_type",
|
|
"title": "计费方式",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "unit_price",
|
|
"title": "单价",
|
|
"type": "double",
|
|
"length": 15,
|
|
"dec": 4,
|
|
"nullable": "no",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "currency",
|
|
"title": "货币",
|
|
"type": "str",
|
|
"length": 10,
|
|
"default": "CNY"
|
|
},
|
|
{
|
|
"name": "pricing_config",
|
|
"title": "定价配置JSON",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "effective_date",
|
|
"title": "生效日期",
|
|
"type": "date"
|
|
},
|
|
{
|
|
"name": "expiry_date",
|
|
"title": "失效日期",
|
|
"type": "date"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 20,
|
|
"default": "active"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "所属组织",
|
|
"type": "str",
|
|
"length": 32,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "created_by",
|
|
"title": "创建人",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_pricing_pipeline",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"pipeline_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_pricing_status_date",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"status",
|
|
"effective_date"
|
|
]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "pipeline_id",
|
|
"table": "pipelines",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"field": "pricing_type",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='pricing_type'"
|
|
},
|
|
{
|
|
"field": "currency",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='currency'"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='pricing_status'"
|
|
}
|
|
]
|
|
}
|