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

96 lines
2.1 KiB
JSON

{
"summary": [
{
"name": "pipeline_capacity",
"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": "max_concurrent",
"title": "最大并发数",
"type": "int"
},
{
"name": "daily_limit",
"title": "每日限额",
"type": "int"
},
{
"name": "monthly_limit",
"title": "每月限额",
"type": "int"
},
{
"name": "today_usage",
"title": "今日用量",
"type": "int"
},
{
"name": "month_usage",
"title": "本月用量",
"type": "int"
},
{
"name": "status",
"title": "状态",
"type": "str",
"length": 20,
"default": "active"
},
{
"name": "org_id",
"title": "所属组织",
"type": "str",
"length": 32,
"default": "0"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp"
}
],
"indexes": [
{
"name": "uk_capacity_pipeline",
"idxtype": "unique",
"idxfields": [
"pipeline_id"
]
}
],
"codes": [
{
"field": "pipeline_id",
"table": "pipelines",
"valuefield": "id",
"textfield": "name"
},
{
"field": "status",
"table": "appcodes_kv",
"valuefield": "k",
"textfield": "v",
"cond": "parentid='capacity_status'"
}
]
}