DROP TABLE IF EXISTS tng_albumplinks;
CREATE TABLE `tng_albumplinks` (
  `alinkID` int(11) NOT NULL AUTO_INCREMENT,
  `gedcom` varchar(20) NOT NULL,
  `linktype` char(1) NOT NULL,
  `entityID` varchar(100) NOT NULL,
  `eventID` varchar(10) NOT NULL,
  `albumID` int(11) NOT NULL,
  `ordernum` float NOT NULL,
  PRIMARY KEY (`alinkID`),
  UNIQUE KEY `alinkID` (`gedcom`,`entityID`,`albumID`),
  KEY `entityID` (`gedcom`,`entityID`,`ordernum`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
