


IF NOT EXISTS (SELECT NAME  FROM SYS.OBJECTS WHERE NAME  ='EST_PROD_CD_BARRA_PMPF_EXCLUSAO_AUDIT')
BEGIN 
	CREATE TABLE EST_PROD_CD_BARRA_PMPF_EXCLUSAO_AUDIT (
		CD_EMP     INT		 NOT NULL,
		CD_PROD    INT		 NOT NULL,
		CD_BARRA   VARCHAR (50) COLLATE SQL_LATIN1_GENERAL_CP1_CI_AS NOT NULL,
		CD_CTR     INT		 NULL,
		CD_USU     INT		 NULL,
		DT_ALT     DATETIME  NULL,
		HR_ALT     DATETIME  NULL,
		CONSTRAINT [PK_EST_PROD_CD_BARRA_PMPF_EXCLUSAO_AUDIT] PRIMARY KEY CLUSTERED (CD_EMP,CD_PROD,CD_BARRA))
END 