CREATE TABLE `icd_file_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ied_name` varchar(45) NOT NULL,
  `ldevice_inst` varchar(45) NOT NULL,
  `ln_class` varchar(45) NOT NULL,
  `do_name` varchar(45) NOT NULL,
  `last_name` varchar(45) DEFAULT NULL,
  `table_name` varchar(45) DEFAULT NULL,
  `col_name` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idxKey` (`ied_name`,`ldevice_inst`,`ln_class`,`do_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `icd_file_config_inst` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `config_id` int(11) NOT NULL,
  `inst` varchar(45) DEFAULT NULL,
  `paramindex` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idxConfigid` (`config_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
