pipeline-app/pipeline_dist/models/distributor_pipeline.json
yumoqing 9eccd08ffd feat: pipeline-app独立产线后端服务
3个业务模块:
- pipeline_core: 产线定义(pipelines/steps/versions)
- pipeline_ops: 运营(定价/供应量/使用记录)
- pipeline_dist: 分销(分销商/独立定价/API密钥)

- ahserver独立部署(端口9090)
- 独立数据库pipeline
- 80个文件, 符合module/db-table/crud三规范
2026-06-11 14:49:02 +08:00

27 lines
1.7 KiB
JSON

{
"summary": [{"name": "distributor_pipeline", "title": "分销商-产线关联定价表", "primary": ["id"]}],
"fields": [
{"name": "id", "title": "主键", "type": "str", "length": 32, "nullable": "no"},
{"name": "distributor_id", "title": "分销商ID", "type": "str", "length": 32, "nullable": "no"},
{"name": "pipeline_id", "title": "产线ID", "type": "str", "length": 32, "nullable": "no"},
{"name": "custom_price", "title": "自定义单价", "type": "double", "length": 15, "dec": 4},
{"name": "markup_type", "title": "加价方式", "type": "str", "length": 20},
{"name": "markup_value", "title": "加价值", "type": "double", "length": 10, "dec": 2},
{"name": "daily_limit", "title": "日限额", "type": "int", "default": "0"},
{"name": "monthly_limit", "title": "月限额", "type": "int", "default": "0"},
{"name": "today_usage", "title": "今日已用", "type": "int", "default": "0"},
{"name": "month_usage", "title": "本月已用", "type": "int", "default": "0"},
{"name": "status", "title": "状态", "type": "str", "length": 20, "default": "active"},
{"name": "created_at", "title": "创建时间", "type": "timestamp"},
{"name": "updated_at", "title": "更新时间", "type": "timestamp"}
],
"indexes": [
{"name": "idx_dp_dist_pipe", "idxtype": "unique", "idxfields": ["distributor_id", "pipeline_id"]},
{"name": "idx_dp_distributor", "idxtype": "index", "idxfields": ["distributor_id"]}
],
"codes": [
{"field": "distributor_id", "table": "distributors", "valuefield": "id", "textfield": "name"},
{"field": "pipeline_id", "table": "pipelines", "valuefield": "id", "textfield": "name"}
]
}