· 6 years ago · Oct 14, 2019, 06:38 PM
1-- Structuur van tabel bots.seismic_events wordt geschreven
2CREATE TABLE IF NOT EXISTS `seismic_events` (
3 `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
4 `long` double NOT NULL,
5 `lat` double NOT NULL,
6 `mag` double NOT NULL,
7 `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
8 `date` date NOT NULL,
9 `place` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
10 `hash` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
11 `created_at` timestamp NULL DEFAULT NULL,
12 `updated_at` timestamp NULL DEFAULT NULL,
13 PRIMARY KEY (`id`),
14 UNIQUE KEY `seismic_events_hash_unique` (`hash`)
15) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;