feat: OKR模板库P2治理 — owner字段/防重复/校准文档/缺口清单
- 模型+DB: okr_templates.owner (CMA标准库/行业包/用户自定义) - API: create同名去重(409) + list/get返回owner + apply透传metric_kpi - 前端: 模板卡片展示owner标签 - 文档: kpi-dictionary-gap-list.md(33条缺口+建议补KPI) + okr-template-calibration.md(酣客/博海校准表) - 回归: 模板API验证通过
This commit is contained in:
@@ -410,6 +410,7 @@ class OKRTemplate(Base):
|
||||
industry_tag = Column(String(50), default="general", comment="行业标签")
|
||||
preset_krs = Column(JSON, nullable=False, comment="预设关键结果列表")
|
||||
source = Column(String(20), default="system", comment="system/user/industry_pack")
|
||||
owner = Column(String(50), default="CMA标准库", comment="模板负责人(治理P2: 可追踪)")
|
||||
use_count = Column(Integer, default=0, comment="使用次数")
|
||||
sort_order = Column(Integer, default=0)
|
||||
is_active = Column(Integer, default=1)
|
||||
|
||||
Reference in New Issue
Block a user