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