salix/db/versions/11387-whiteDendro/00-firstScript.sql

8 lines
425 B
MySQL
Raw Normal View History

CREATE TABLE IF NOT EXISTS vn.productionCountry(
countryFk MEDIUMINT(8) UNSIGNED NOT NULL,
2024-12-19 13:38:28 +00:00
volumeGrowthEstimatePercent DECIMAL(6, 2) COMMENT 'Porcentaje estimado de crecimiento del volumen',
PRIMARY KEY (countryFk),
CONSTRAINT productionCountryVolume_countryFK
FOREIGN KEY (countryFk) REFERENCES vn.country (id)
ON DELETE RESTRICT ON UPDATE CASCADE
2024-12-19 13:38:28 +00:00
) COMMENT = 'Datos de producción por país'