Add description and preview_img to setup.sql
This commit is contained in:
parent
9c22609ae1
commit
02e06de22d
@ -80,9 +80,11 @@ CREATE TABLE IF NOT EXISTS `regions` (
|
|||||||
`meteostat_id` varchar(11) DEFAULT NULL,
|
`meteostat_id` varchar(11) DEFAULT NULL,
|
||||||
`lon` double(22,0) DEFAULT NULL,
|
`lon` double(22,0) DEFAULT NULL,
|
||||||
`lat` 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(),
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE 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,
|
KEY `FK_regions_countries` (`country_id`) USING BTREE,
|
||||||
CONSTRAINT `FK_regions_countries` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON UPDATE CASCADE
|
CONSTRAINT `FK_regions_countries` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON UPDATE CASCADE
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4;
|
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user