diff --git a/productos_frecuentes.sql b/productos_frecuentes.sql index 89bf0b6..da81dc9 100644 --- a/productos_frecuentes.sql +++ b/productos_frecuentes.sql @@ -3,7 +3,7 @@ CREATE TABLE dbo.productos_frecuentes ( sinonimo NVARCHAR(255) NOT NULL, fraccion NVARCHAR(50) NOT NULL, nico NVARCHAR(50) NOT NULL, - numero_parte NVARCHAR(100) NULL, + numero_parte NVARCHAR(300) NULL, descripcion NVARCHAR(MAX) NULL, umc_id INT NOT NULL, -- FK a unidades_medida_apendice7(id) pais_origen_destino NVARCHAR(100) NULL, @@ -25,7 +25,7 @@ CREATE TABLE dbo.productos_frecuentes ( status INT NOT NULL DEFAULT 1, frecuencia_uso INT NOT NULL DEFAULT 1, -- cuántas veces se ha utilizado - -- (puedes ajustar el valor inicial) + CONSTRAINT FK_prodFreq_UMC FOREIGN KEY (umc_id)