From aac261fe816589840bd040fcad5147815af98908 Mon Sep 17 00:00:00 2001 From: ernestohc21 Date: Mon, 23 Jun 2025 07:34:17 -0600 Subject: [PATCH] update numero_parte --- productos_frecuentes.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)