DROP TABLE IF EXISTS tng_children;
CREATE TABLE `tng_children` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `gedcom` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `familyID` varchar(22) COLLATE utf8mb4_unicode_ci NOT NULL,
  `personID` varchar(22) COLLATE utf8mb4_unicode_ci NOT NULL,
  `frel` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `mrel` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sealdate` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sealdatetr` date NOT NULL,
  `sealplace` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `haskids` tinyint NOT NULL,
  `ordernum` smallint NOT NULL,
  `parentorder` tinyint NOT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `familyID` (`gedcom`,`familyID`,`personID`),
  KEY `personID` (`gedcom`,`personID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
