IF   EXISTS (SELECT * FROM sys.objects 
					WHERE object_id = OBJECT_ID(N'[dbo].[RC_DEB_POSICAO_FINANCEIRA_PROCESSAR]') 
					AND type in (N'U')) 
BEGIN
	DROP TABLE RC_DEB_POSICAO_FINANCEIRA_PROCESSAR
END
GO
CREATE TABLE [dbo].[RC_DEB_POSICAO_FINANCEIRA_PROCESSAR](
	[CD_CTR] [int] IDENTITY(1,1) NOT NULL,
	[CD_EMP] [int] NOT NULL,
	[CD_FILIAL] [int] NOT NULL,
	[DT_PROC] [datetime] NOT NULL,
	[DT_CAD] [datetime] NOT NULL,
	[ORIGEM] [varchar](150) NOT NULL,
 CONSTRAINT [PK_RC_DEB_POSICAO_FINANCEIRA_PROCESSAR] PRIMARY KEY CLUSTERED 
(
	[CD_CTR] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
 CONSTRAINT [IX_RC_DEB_POSICAO_FINANCEIRA_PROCESSAR] UNIQUE NONCLUSTERED 
(
	[DT_PROC] ASC,
	[CD_FILIAL] ASC,
	[CD_EMP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]



