Add description and preview_img to setup.sql

This commit is contained in:
Timo John 2020-06-16 10:09:13 +02:00
parent 9c22609ae1
commit 02e06de22d

View File

@ -80,9 +80,11 @@ CREATE TABLE IF NOT EXISTS `regions` (
`meteostat_id` varchar(11) DEFAULT NULL,
`lon` double(22,0) DEFAULT NULL,
`lat` double(22,0) DEFAULT NULL,
`preview_img` VARCHAR(255) NULL DEFAULT NULL,
`description` VARCHAR(4000) NULL DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`) USING BTREE,
PRIMARY KEY (`id`) USING BTREE,git
KEY `FK_regions_countries` (`country_id`) USING BTREE,
CONSTRAINT `FK_regions_countries` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4;