opportunity_management/models/opportunity_predictions.json
2026-04-16 13:30:38 +08:00

92 lines
2.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"summary": [
{
"name": "opportunity_predictions",
"title": "商机预测表",
"primary": "id",
"catelog": "indication"
}
],
"fields": [
{
"name": "id",
"title": "预测记录ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "主键 - UUID格式"
},
{
"name": "opportunity_id",
"title": "商机ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "关联的商机ID"
},
{
"name": "predicted_amount",
"title": "预测金额",
"type": "decimal",
"length": 15,
"dec": 2,
"nullable": "no",
"default": "0.00",
"comments": "基于历史转化率计算的预测成交金额"
},
{
"name": "confidence_level",
"title": "置信度",
"type": "decimal",
"length": 5,
"dec": 4,
"nullable": "no",
"default": "0.0000",
"comments": "预测的置信度0-1"
},
{
"name": "prediction_date",
"title": "预测日期",
"type": "date",
"nullable": "no",
"comments": "预测生成日期"
},
{
"name": "actual_amount",
"title": "实际金额",
"type": "decimal",
"length": 15,
"dec": 2,
"nullable": "yes",
"comments": "实际成交金额(成交后更新)"
},
{
"name": "deviation_rate",
"title": "偏差率",
"type": "decimal",
"length": 5,
"dec": 4,
"nullable": "yes",
"comments": "预测与实际的偏差率"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no",
"comments": "记录创建时间"
}
],
"indexes": [
{
"name": "idx_predictions_opportunity",
"idxtype": "unique",
"idxfields": ["opportunity_id", "prediction_date"]
},
{
"name": "idx_predictions_date",
"idxtype": "index",
"idxfields": ["prediction_date"]
}
]
}