DROP TABLE IF EXISTS tng_notelinks;
CREATE TABLE `tng_notelinks` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `persfamID` varchar(22) COLLATE utf8mb4_unicode_ci NOT NULL,
  `gedcom` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `xnoteID` int NOT NULL,
  `eventID` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ordernum` float NOT NULL,
  `secret` tinyint NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `notelinks` (`gedcom`,`persfamID`,`eventID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
