-- save taskInstanceNode record
-- mysql
insert into `sys_menu` ( `name`, `parent_id`, `route`, `component`, `type`, `sort`, `tenant_id`, `status`) values ( 'menu.taskInstanceNode', '0', '/system/taskInstanceNode', 'taskInstanceNode', '0' , '0', '1' , '1');

insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Query 任务执行节点明细表', '', '1', 'system:taskInstanceNode:list', '0', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Create 任务执行节点明细表', '', '1', 'system:taskInstanceNode:save', '1', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Update 任务执行节点明细表', '', '1', 'system:taskInstanceNode:update', '2', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Delete 任务执行节点明细表', '', '1', 'system:taskInstanceNode:remove', '3', '1', '1');

-- locale menu name
taskInstanceNode: 'TaskInstanceNode',

-- locale field
taskInstanceNode: {
    taskId: "taskId",
    taskNo: "taskNo",
    nodeOrder: "nodeOrder",
    nodeCode: "nodeCode",
    nodeName: "nodeName",
    nodeType: "nodeType",
    systemCode: "systemCode",
    systemName: "systemName",
    executeParams: "executeParams",
    executeResult: "executeResult",
    errorCode: "errorCode",
    errorMessage: "errorMessage",
    estimatedStartTime: "estimatedStartTime",
    actualStartTime: "actualStartTime",
    actualEndTime: "actualEndTime",
    timeoutAt: "timeoutAt",
    durationSeconds: "durationSeconds",
    retryTimes: "retryTimes",
    maxRetryTimes: "maxRetryTimes",
    dependsOnNodes: "dependsOnNodes",
},

-- ResourceContent
import taskInstanceNode from './taskInstanceNode';

case 'taskInstanceNode':
    return taskInstanceNode;
