3个业务模块: - pipeline_core: 产线定义(pipelines/steps/versions) - pipeline_ops: 运营(定价/供应量/使用记录) - pipeline_dist: 分销(分销商/独立定价/API密钥) - ahserver独立部署(端口9090) - 独立数据库pipeline - 80个文件, 符合module/db-table/crud三规范
22 lines
1.2 KiB
JSON
22 lines
1.2 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"}
|
|
]
|
|
}
|