yumoqing 707b491345 fix: init/data.json格式修正+model codes补全
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/外键)
2026-06-11 15:11:02 +08:00

129 lines
2.9 KiB
JSON

{
"summary": [
{
"name": "distributors",
"title": "分销商表",
"primary": [
"id"
]
}
],
"fields": [
{
"name": "id",
"title": "主键",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "name",
"title": "分销商名称",
"type": "str",
"length": 200,
"nullable": "no"
},
{
"name": "org_id",
"title": "关联组织ID",
"type": "str",
"length": 32
},
{
"name": "contact_name",
"title": "联系人",
"type": "str",
"length": 50
},
{
"name": "contact_phone",
"title": "联系电话",
"type": "str",
"length": 20
},
{
"name": "contact_email",
"title": "联系邮箱",
"type": "str",
"length": 100
},
{
"name": "api_key",
"title": "API密钥",
"type": "str",
"length": 200
},
{
"name": "commission_rate",
"title": "佣金比例%",
"type": "double",
"length": 5,
"dec": 2,
"default": "0"
},
{
"name": "status",
"title": "状态",
"type": "str",
"length": 20,
"default": "active"
},
{
"name": "agreement_start",
"title": "协议开始日",
"type": "date"
},
{
"name": "agreement_end",
"title": "协议结束日",
"type": "date"
},
{
"name": "remarks",
"title": "备注",
"type": "text"
},
{
"name": "created_by",
"title": "创建人",
"type": "str",
"length": 32
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp"
}
],
"indexes": [
{
"name": "idx_dist_name",
"idxtype": "index",
"idxfields": [
"name"
]
},
{
"name": "idx_dist_status",
"idxtype": "index",
"idxfields": [
"status"
]
}
],
"codes": [
{
"field": "status",
"table": "appcodes_kv",
"valuefield": "k",
"textfield": "v",
"cond": "parentid='distributor_status'"
}
]
}