IF OBJECT_ID('EST_NF_ENT_DANFE_PROVISORIO_CHECKIN_ENTRADA_CPL_RESTORE') IS NULL
BEGIN
CREATE TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_CHECKIN_ENTRADA_CPL_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_PROD] [int] NOT NULL,
	[QT_IT_CHECK] [money] NOT NULL,
	[VERSAO] [varchar](20) NULL,
 CONSTRAINT [PK_EST_NF_ENT_DANFE_PROVISORIO_CHECKIN_ENTRADA_CPL_RESTORE] PRIMARY KEY CLUSTERED 
(
	[CD_EMP] ASC,
	[CD_FILIAL] ASC,
	[CD_FORN] ASC,
	[NR_NF] ASC,
	[DT_EMIS_NF] ASC,
	[CD_PROD] 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