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