
IF OBJECT_ID('EST_SNGPC_PEND_SAIDA_TRANSF_AUDIT')IS NULL 
BEGIN 
	CREATE TABLE [DBO].[EST_SNGPC_PEND_SAIDA_TRANSF_AUDIT] (
	[CD_AUDIT] 		BIGINT 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_IT] 		INT NOT NULL,
	[NR_LOTE] 		VARCHAR(30) COLLATE SQL_LATIN1_GENERAL_CP1_CI_AS NULL,
	[DT_CAD] 		DATETIME NULL,
	[DS_ERRO] 		VARCHAR(255) COLLATE SQL_LATIN1_GENERAL_CP1_CI_AS NULL,
	CONSTRAINT [EST_SNGPC_PEND_SAIDA_TRANSF_AUDIT_PK1] PRIMARY KEY CLUSTERED ([CD_AUDIT])
	)
	ON [PRIMARY]
END 