9 lines
404 B
MySQL
9 lines
404 B
MySQL
|
CREATE TABLE IF NOT EXISTS vn.productionCountryVolume(
|
||
|
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||
|
countryFk MEDIUMINT(8) UNSIGNED NOT NULL,
|
||
|
estimate DECIMAL(6, 2),
|
||
|
PRIMARY KEY (id),
|
||
|
CONSTRAINT productionCountryVolume_countryFK
|
||
|
FOREIGN KEY (countryFk) REFERENCES vn.country (id)
|
||
|
ON DELETE RESTRICT ON UPDATE CASCADE
|
||
|
) COMMENT = 'Estimación del crecimiento por país'
|