DROP TABLE IF EXISTS tng_citations;
CREATE TABLE `tng_citations` (
  `citationID` int NOT NULL AUTO_INCREMENT,
  `gedcom` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `persfamID` varchar(22) COLLATE utf8mb4_unicode_ci NOT NULL,
  `eventID` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sourceID` varchar(22) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ordernum` float NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `citedate` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `citedatetr` date NOT NULL,
  `citetext` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `page` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `quay` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL,
  `note` text COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`citationID`),
  KEY `citation` (`gedcom`,`persfamID`,`eventID`,`sourceID`,`description`(20))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
