IF OBJECT_ID('EST_NF_ENT_DANFE_PROVISORIO_EST_PED_CP_RESTORE') IS NULL
BEGIN
CREATE TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_EST_PED_CP_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_PED] [int] NULL,
	[CD_USU] [int] NULL,
	[VERSAO] [varchar](50) NULL,
 CONSTRAINT [PK_EST_NF_ENT_DANFE_PROVISORIO_EST_PED_CP_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
