 
IF  NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RC_CONC_PDV_CUPOM_NAO_FISCAL_TEF]') AND type in (N'U'))
begin
CREATE TABLE [dbo].[RC_CONC_PDV_CUPOM_NAO_FISCAL_TEF](
	[CD_EMP] [int] NOT NULL default 0,
	[CD_CTR_LOTE] [int] NOT NULL default 0,
	[CD_FILIAL] [int] NOT NULL default 0,
	[CD_VD] [int] NOT NULL default 0,
	[DS_LOTE] [varchar](50) NOT NULL default '',
	[NM_FILIAL] [varchar](50) NOT NULL default '',
	[CD_ESTABELECIMENTO] [varchar](50) NOT NULL default '',
	[DT_VD] [datetime] NOT NULL,
	[CD_ADM_CARTAO] [int] NOT NULL default 0,
	[CD_REDE] [int] NOT NULL default 0,
	[CD_BANDEIRA] [int] NOT NULL default 0,
	[NM_ADM_CARTAO] [varchar](50) NOT NULL default '',
	[TP_ADM] [int] NOT NULL default 0,
	[PARC] [int] NOT NULL default 0,
	[NR_NSU] [money] NOT NULL ,
	[NR_AUTORIZACAO] [nvarchar](50) NOT NULL default '',
	[NR_COO] [int] NOT NULL default 0,
	[CHAVE] [varchar](20) NOT NULL default '',
	[CD_USU] [int] NOT NULL default 0,
	[DT_CAD] [datetime] NULL,
	[CD_CTR] [int] NOT NULL default 0,
	[VLR_CARTAO] [money] NULL  DEFAULT ((0)),
	[NR_COMPROVANTE] [varchar](150) NULL  DEFAULT (''),
 CONSTRAINT [PK_RC_CONC_PDV_CUPOM_NAO_FISCAL_TEF] PRIMARY KEY CLUSTERED 
(
	[CD_EMP] ASC,
	[CD_CTR_LOTE] ASC,
	[CD_FILIAL] ASC,
	[CD_VD] ASC,
	[CD_CTR] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90  ) 
 )
end