pipeline-service/models/pipeline_pm_notices.json

27 lines
1.4 KiB
JSON

{
"summary": [
{
"name": "pipeline_pm_notices",
"title": "PM 编排查漏通知表",
"primary": ["id"],
"catelog": "entity"
}
],
"fields": [
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
{"name": "tenant_id", "title": "项目ID", "type": "str", "length": 32, "nullable": "no"},
{"name": "task_id", "title": "关联任务ID", "type": "str", "length": 32, "nullable": "yes"},
{"name": "fingerprint", "title": "缺口指纹(去重)", "type": "str", "length": 255, "nullable": "no"},
{"name": "gap_kind", "title": "缺口类型(G1/G2/G3)", "type": "str", "length": 8, "nullable": "yes"},
{"name": "gap_text", "title": "缺口事实描述", "type": "text"},
{"name": "status", "title": "通知状态", "type": "str", "length": 16, "nullable": "no", "default": "pending"},
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no"}
],
"indexes": [
{"name": "idx_ppn_tenant", "idxtype": "index", "idxfields": ["tenant_id"]},
{"name": "idx_ppn_status", "idxtype": "index", "idxfields": ["status"]},
{"name": "idx_ppn_fp", "idxtype": "unique", "idxfields": ["tenant_id", "fingerprint"]}
]
}