ticket/init/data.json
yumoqing ce685bc684 fix: appcodes_kv.id列宽32,组合键tk_transfer_action_escalate_to_human(36)超长1406致种子整段回滚——parentid缩短tk_action(最长27)+models codes cond同步
部署实测抓到第二个根因: import_init用id=parentid_k组合键, appcodes_kv.id是varchar(32),
tk_transfer_action前缀过长→1406 DataError→ticket整段种子中断(owner.maintainer角色也没导)。
改parentid为tk_action,全码表组合id最长27,0超长。
2026-09-10 16:36:08 +08:00

170 lines
4.6 KiB
JSON
Raw Permalink 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.

{
"_note": "ticket 模块种子码表嵌套格式import_init.py normalize 展开)+ owner.maintainer 角色(照 app_audit 的 owner.audit 先例。params 参数ticket_default_role 等不在种子——core.py _get_param 有兜底默认值,运行时在参数管理页可调。",
"appcodes": [
{
"parentid": "tk_status",
"parentname": "工单状态",
"items": [
{
"k": "new",
"v": "已提交"
},
{
"k": "agent_processing",
"v": "助手处理中"
},
{
"k": "agent_replied",
"v": "助手已回复"
},
{
"k": "human_pending",
"v": "待人工认领"
},
{
"k": "human_processing",
"v": "人工处理中"
},
{
"k": "staff_replied",
"v": "人工已回复"
},
{
"k": "closed",
"v": "已关闭"
},
{
"k": "cancelled",
"v": "已取消"
}
]
},
{
"parentid": "tk_category",
"parentname": "工单分类",
"items": [
{
"k": "consult",
"v": "使用咨询"
},
{
"k": "fault",
"v": "故障报修"
},
{
"k": "billing",
"v": "计费账务"
},
{
"k": "other",
"v": "其他"
}
]
},
{
"parentid": "tk_priority",
"parentname": "工单优先级",
"items": [
{
"k": "low",
"v": "低"
},
{
"k": "normal",
"v": "普通"
},
{
"k": "high",
"v": "高"
},
{
"k": "urgent",
"v": "紧急"
}
]
},
{
"parentid": "tk_sender_type",
"parentname": "工单消息发送方",
"items": [
{
"k": "customer",
"v": "客户"
},
{
"k": "agent",
"v": "智能助手"
},
{
"k": "staff",
"v": "人工客服"
}
]
},
{
"parentid": "tk_visibility",
"parentname": "工单消息可见性",
"items": [
{
"k": "customer",
"v": "客户可见"
},
{
"k": "internal",
"v": "内部备注"
}
]
},
{
"parentid": "tk_action",
"parentname": "工单流转动作",
"items": [
{
"k": "escalate_to_human",
"v": "转人工"
},
{
"k": "claim",
"v": "认领"
},
{
"k": "transfer_role",
"v": "转角色"
},
{
"k": "transfer_user",
"v": "转人员"
},
{
"k": "return",
"v": "退回"
}
]
},
{
"parentid": "tk_close_reason",
"parentname": "工单关闭原因",
"items": [
{
"k": "resolved",
"v": "已解决"
},
{
"k": "cancelled",
"v": "客户取消"
},
{
"k": "timeout",
"v": "超时关闭"
}
]
}
],
"roles": [
{
"id": "owner.maintainer",
"orgtypeid": "owner",
"name": "maintainer"
}
]
}