IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE NAME = 'EST_SNGPC_ENT_NF_AUDIT')
BEGIN 
	CREATE TABLE [DBO].[EST_SNGPC_ENT_NF_AUDIT] (
	  [CD_AUDIT]	INT IDENTITY(1, 1) NOT NULL,
	  [CD_EMP]		INT NOT NULL,
	  [CD_FILIAL]	INT NOT NULL,
	  [CD_NF]		INT NOT NULL,
	  [CD_PROD]		INT NOT NULL,
	  [CD_LOTE]		INT NOT NULL,
	  [CD_ENT_SNGPC] INT NULL,
	  [DT_CAD]		 DATETIME NULL,
	  [CD_USU]		INT NOT NULL,
	  [TP_ACAO]		INT NULL,
	  ID_ESTACAO	VARCHAR(50)  COLLATE SQL_LATIN1_GENERAL_CP1_CI_AS, 
	  [DS_ACAO]		VARCHAR(255) COLLATE SQL_LATIN1_GENERAL_CP1_CI_AS NULL,
	  CONSTRAINT PK_EST_SNGP_ENT_NF_AUDIT PRIMARY KEY CLUSTERED ([CD_AUDIT])
	)
	ON [PRIMARY]
END 