Add description and preview_img to setup.sql
This commit is contained in:
parent
b0f5defe1c
commit
61796b1b50
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user