pipeline-app/pipeline_ops/models/pipeline_pricing.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

26 lines
1.6 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"}
]
}