DROP TABLE IF EXISTS tng_image_tags;
CREATE TABLE `tng_image_tags` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `mediaID` int(11) NOT NULL,
  `rtop` int(11) NOT NULL,
  `rleft` int(11) NOT NULL,
  `rheight` int(11) NOT NULL,
  `rwidth` int(11) NOT NULL,
  `gedcom` varchar(20) NOT NULL,
  `linktype` char(1) NOT NULL,
  `persfamID` varchar(100) NOT NULL,
  `label` varchar(64) NOT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `mediaID` (`mediaID`,`gedcom`,`persfamID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
