IF NOT EXISTS (
    SELECT 1 
    FROM sys.objects 
    WHERE object_id = OBJECT_ID('dbo.EST_NFE_INF_EFET_PGTO_INTEG_EST_NFE_LOTE') 
      AND type = 'U'
)
BEGIN
	CREATE TABLE [dbo].[EST_NFE_INF_EFET_PGTO_INTEG_EST_NFE_LOTE](
		[CD_NFE_LOTE] [int] NOT NULL,
		[CD_CTR_INF_EFET_PGTO_INTEG] [int] NOT NULL,
		[DT_CAD] [datetime] NOT NULL,
		[HR_CAD] [datetime] NOT NULL,
		[CD_USU] [int] NOT NULL,
	 CONSTRAINT [PK_EST_NFE_INF_EFET_PGTO_INTEG_EST_NFE_LOTE] PRIMARY KEY 
	(
		[CD_NFE_LOTE] ASC,
		[CD_CTR_INF_EFET_PGTO_INTEG] ASC
	)
	)
END;
GO