
-- ----------------------------
-- 系统专家分类表
-- ----------------------------
CREATE TABLE `smart_assess`.`sys_expert_classify`  (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
`classify_name` varchar(20) NOT NULL COMMENT '分类名称',
`parent_id` bigint NOT NULL DEFAULT 0 COMMENT '父id',
`del_flag` tinyint NOT NULL DEFAULT 0 COMMENT '删除标志(0代表存在，1代表删除，默认0)',
`version` int NULL DEFAULT 0 COMMENT '乐观锁',
`create_by` varchar(20) NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(20) NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`remark` varchar(100) NULL COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统专家分类表' ROW_FORMAT = DYNAMIC;


INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (1, '安全生产类', 0);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (2, '防灾减灾救灾类', 0);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (3, '应急救援类', 0);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (4, '煤矿', 1);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (5, '金属非金属矿山', 1);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (6, '石油天然气开采', 1);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (7, '危险化学品', 1);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (8, '烟花爆竹', 1);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (9, '工贸', 1);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (10, '综合监管', 1);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (11, '森林草原防灭火', 2);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (13, '地质灾害', 2);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (14, '防汛抗旱', 2);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (15, '气象灾害', 2);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (16, '综合防灾减灾', 2);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (17, '安全生产专业救援', 3);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (18, '综合救援', 3);
INSERT INTO `smart_assess`.`sys_expert_classify`(`id`, `classify_name`, `parent_id`) VALUES (24, '地震灾害', 2);
