DROP TABLE IF EXISTS tng_temp_events;
CREATE TABLE `tng_temp_events` (
  `tempID` int NOT NULL AUTO_INCREMENT,
  `type` char(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  `gedcom` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `personID` varchar(22) COLLATE utf8mb4_unicode_ci NOT NULL,
  `familyID` varchar(22) COLLATE utf8mb4_unicode_ci NOT NULL,
  `eventID` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `eventdate` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `eventplace` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `info` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `note` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `user` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `postdate` datetime NOT NULL,
  PRIMARY KEY (`tempID`),
  KEY `gedtype` (`gedcom`,`type`),
  KEY `user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
