部署实测抓到第二个根因: import_init用id=parentid_k组合键, appcodes_kv.id是varchar(32), tk_transfer_action前缀过长→1406 DataError→ticket整段种子中断(owner.maintainer角色也没导)。 改parentid为tk_action,全码表组合id最长27,0超长。
29 lines
1.3 KiB
JSON
29 lines
1.3 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "tk_transfers",
|
|
"title": "工单转派流水",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "ticket_id", "title": "工单ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "action", "title": "动作", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "from_role", "title": "转出角色", "type": "str", "length": 64},
|
|
{"name": "from_user", "title": "转出人", "type": "str", "length": 32},
|
|
{"name": "to_role", "title": "转入角色", "type": "str", "length": 64},
|
|
{"name": "to_user", "title": "转入人", "type": "str", "length": 32},
|
|
{"name": "reason", "title": "原因", "type": "str", "length": 500},
|
|
{"name": "operator_id", "title": "操作人", "type": "str", "length": 32},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_tkt_ticket", "idxtype": "index", "idxfields": ["ticket_id", "created_at"]}
|
|
],
|
|
"codes": [
|
|
{"field": "action", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='tk_action'"}
|
|
]
|
|
}
|