CREATE TABLE `depersondatasource` (
  `depersondatasource_id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(64) NOT NULL,
  PRIMARY KEY (`depersondatasource_id`),
  UNIQUE KEY `code` (`code`)
) AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

CREATE TABLE `depersontable` (
  `depersontable_id` int(11) NOT NULL AUTO_INCREMENT,
  `originalvaluetype` int(11) NOT NULL,
  `originalvalue` text NOT NULL,
  `depersonvalue` text NOT NULL,
  `depersondatasource_id` int(11) NOT NULL,
  PRIMARY KEY (`depersontable_id`),
  KEY `depersondatasource_id` (`depersondatasource_id`),
  CONSTRAINT `FK_depersontable_datasource` FOREIGN KEY (`depersondatasource_id`) REFERENCES `depersondatasource` (`depersondatasource_id`)
) AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
