DROP TABLE IF EXISTS tng_places;
CREATE TABLE `tng_places` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `gedcom` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `place` varchar(248) COLLATE utf8mb4_unicode_ci NOT NULL,
  `longitude` varchar(22) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `latitude` varchar(22) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zoom` tinyint DEFAULT NULL,
  `placelevel` tinyint DEFAULT NULL,
  `temple` tinyint NOT NULL,
  `geoignore` tinyint NOT NULL,
  `notes` text COLLATE utf8mb4_unicode_ci,
  `changedate` datetime NOT NULL,
  `changedby` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `place` (`gedcom`,`place`),
  KEY `temple` (`temple`,`gedcom`,`place`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
