-- 新增字典数据
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (11, '车端数据', '102', 4);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (11, '桩端数据', '101', 5);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (11, '实验数据', '105', 6);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (11, '其他', '106', 7);

-- 删除字典表的 数据集多余类型
DELETE
FROM
    dict_detail
WHERE
        id IN ( 60, 61, 62 );

-- 新增 标签类型、模型类型字典
INSERT INTO `dict`(`id`, `name`, `remark`) VALUES (14, 'label_type', '标签类型');
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (14, '健康状态', '10', 1);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (14, '安全预警', '11', 2);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (14, '异常检测', '12', 3);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (14, '其他', '13', 3);

INSERT INTO `dict`(`id`, `name`, `remark`) VALUES (15, 'model_category', '模型类型');
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (15, '健康状态', '10', 1);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (15, '安全预警', '11', 2);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (15, '异常检测', '12', 3);
INSERT INTO `dict_detail`(`dict_id`, `label`, `value`, `sort`) VALUES (15, '其他', '13', 3);

-- 模型类别 前段使用单独接口获取。需要单独处理pt_auxiliary_info表数据
UPDATE `pt_auxiliary_info` SET `deleted` = 1 WHERE `id` in(1,2,3,4,5,6);
insert into `pt_auxiliary_info` (`origin_user_id`,`type`,`aux_info`) values (0,'algorithem_usage','健康状态');
insert into `pt_auxiliary_info` (`origin_user_id`,`type`,`aux_info`) values (0,'algorithem_usage','安全预警');
insert into `pt_auxiliary_info` (`origin_user_id`,`type`,`aux_info`) values (0,'algorithem_usage','异常检测');
insert into `pt_auxiliary_info` (`origin_user_id`,`type`,`aux_info`) values (0,'algorithem_usage','其他');
