CREATE TABLE IF NOT EXISTS `CaracteristicCategory` ( 
`Id` int(11) NOT NULL AUTO_INCREMENT, 
`Name` varchar(200) NOT NULL, 
`AppName` varchar(200) NULL, 
PRIMARY KEY (`Id`)
) ENGINE=InnoDB  DEFAULT CHARACTER SET `utf8`; 

CREATE TABLE IF NOT EXISTS `Caracteristic` ( 
`Id` int(11) NOT NULL AUTO_INCREMENT, 
`Name` varchar(200) NOT NULL, 
`Description` Text NULL,
`CategoryId` int(11) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB  DEFAULT CHARACTER SET `utf8`; 

CREATE TABLE IF NOT EXISTS `CaracteristicEntity` ( 
`Id` int(11) NOT NULL AUTO_INCREMENT, 
`EntityName` Text NOT NULL, 
`EntityId` int(11) NOT NULL, 
`CaracteristicId` int(11) NOT NULL,
`Description` Text NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB  DEFAULT CHARACTER SET `utf8`; 