feat: refs #8073 #refs 8073 create vn.productionCountryVolume #3321

Merged
ivanm merged 8 commits from 8073-newTableProductionCountryVolume into dev 2025-01-07 12:19:14 +00:00
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS vn.productionCountry(
countryFk MEDIUMINT(8) UNSIGNED NOT NULL,
ivanm marked this conversation as resolved
Review

Per a que volem un id puguent gastar countryFk com a primary key?

Per a que volem un id puguent gastar countryFk com a primary key?
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
) COMMENT = 'Datos de producción por país'