IF OBJECT_ID('EST_NF_ENT_DANFE_PROVISORIO_EST_NF_ENT_PRE_ENTRADA_RESTORE') IS NULL
BEGIN
CREATE TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_EST_NF_ENT_PRE_ENTRADA_RESTORE](
	[CD_EMP] [int] NOT NULL,
	[CD_FILIAL] [int] NOT NULL,
	[CD_FORN] [int] NOT NULL,
	[NR_NF] [int] NOT NULL,
	[DT_EMIS_NF] [datetime] NOT NULL,
	[CD_CTR_PRE_ENTRADA] [int] NOT NULL,
	[VERSAO] [varchar](20) NULL,
 CONSTRAINT [PK_EST_NF_ENT_DANFE_PROVISORIO_EST_NF_ENT_PRE_ENTRADA_RESTORE] PRIMARY KEY CLUSTERED 
(
	[CD_EMP] ASC,
	[CD_FILIAL] ASC,
	[CD_FORN] ASC,
	[NR_NF] ASC,
	[DT_EMIS_NF] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
END