
/*------ ATD 395923 ------*/
IF NOT EXISTS (SELECT 1 FROM SYSOBJECTS WHERE NAME = 'ItemCliConjunto' AND XTYPE = 'U')
BEGIN
	CREATE TABLE ItemCliConjunto (
		ID INT NOT NULL IDENTITY,
		NumPed INT,
		Item INT,
		CodProConj CHAR(5),
		CodProComp CHAR(5),
		QuantComp DECIMAL(15, 3),
		NumOrdSaida INT,
		NumOrdEntrada INT
	)
	ALTER TABLE ItemCliConjunto ADD CONSTRAINT PK_ItemCliConjunto PRIMARY KEY(ID)
END
GO