feat: refs #8073 #refs 8073 create vn.productionCountryVolume #3321
|
@ -0,0 +1,8 @@
|
||||||
|
CREATE TABLE IF NOT EXISTS vn.productionCountry(
|
||||||
ivanm marked this conversation as resolved
Outdated
|
|||||||
|
countryFk MEDIUMINT(8) UNSIGNED NOT NULL,
|
||||||
ivanm marked this conversation as resolved
guillermo
commented
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',
|
||||||
ivanm marked this conversation as resolved
Outdated
guillermo
commented
Añade un comentario para la columna, aunque con el nombre está muy claro, nunca viene mal poner descripción Añade un comentario para la columna, aunque con el nombre está muy claro, nunca viene mal poner descripción
|
|||||||
|
PRIMARY KEY (countryFk),
|
||||||
ivanm marked this conversation as resolved
Outdated
guillermo
commented
Este comentari va relacionat en el primer. Ficaría: volumeGrowthEstimatePercent Este comentari va relacionat en el primer.
Ficaría: volumeGrowthEstimatePercent
|
|||||||
|
CONSTRAINT productionCountryVolume_countryFK
|
||||||
|
FOREIGN KEY (countryFk) REFERENCES vn.country (id)
|
||||||
|
ON DELETE RESTRICT ON UPDATE CASCADE
|
||||||
|
) COMMENT = 'Datos de producción por país'
|
||||||
ivanm marked this conversation as resolved
Outdated
guillermo
commented
Cambia la descripción a algo más genérico. Cambia la descripción a algo más genérico.
|
Loading…
Reference in New Issue
Ací jo canviaría el nom a productionCountry, perque si en un futur volen ficar mes datos de producció relacionats en el país tindrem que canviar el nom de la taula.