Skip to content

Instantly share code, notes, and snippets.

@ilyasozkurt
Created September 24, 2021 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilyasozkurt/ea2cde917b09cbd361b6f23ee4ace551 to your computer and use it in GitHub Desktop.
Save ilyasozkurt/ea2cde917b09cbd361b6f23ee4ace551 to your computer and use it in GitHub Desktop.
-- ----------------------------
-- Table structure for earthquakes
-- ----------------------------
DROP TABLE IF EXISTS `earthquakes`;
CREATE TABLE `earthquakes` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`latitude` double(8,2) NOT NULL,
`longitude` double(8,2) NOT NULL,
`depth` double(8,2) NOT NULL,
`md` double(8,2) DEFAULT NULL,
`ml` double(8,2) NOT NULL,
`mw` double(8,2) DEFAULT NULL,
`region` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`happened_at` timestamp NOT NULL,
`hash` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `hash` (`hash`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment