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/外键)
120 lines
2.7 KiB
JSON
120 lines
2.7 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "pipeline_usage_log",
|
|
"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": "user_id",
|
|
"title": "用户ID",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "distributor_id",
|
|
"title": "分销商ID",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "call_count",
|
|
"title": "调用次数",
|
|
"type": "int",
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "token_input",
|
|
"title": "输入Token数",
|
|
"type": "int",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "token_output",
|
|
"title": "输出Token数",
|
|
"type": "int",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"title": "金额",
|
|
"type": "double",
|
|
"length": 15,
|
|
"dec": 4,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 20
|
|
},
|
|
{
|
|
"name": "error_message",
|
|
"title": "错误信息",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "called_at",
|
|
"title": "调用时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_usagelog_pipeline",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"pipeline_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_usagelog_called_at",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"called_at"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_usagelog_distributor",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"distributor_id"
|
|
]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "pipeline_id",
|
|
"table": "pipelines",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='usage_status'"
|
|
}
|
|
]
|
|
}
|