IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='INTEGRA_ECOMMERCE_REGIAO') 
BEGIN
CREATE TABLE [dbo].[INTEGRA_ECOMMERCE_REGIAO](
	[CD_REGIAO] [int] NOT NULL,
	[CD_FILIAL] [int] NULL,
	[DS_REGIAO] [varchar](100) NULL,
 CONSTRAINT [PK_INTEGRA_ECOMMERCE_REGIAO] PRIMARY KEY CLUSTERED 
(
	[CD_REGIAO] ASC
)WITH (PAD_INDEX = OFF) ON [PRIMARY],
 CONSTRAINT [UK_INTEGRA_ECOMMERCE_REGIAO_FILIAL] UNIQUE NONCLUSTERED 
(
	[CD_REGIAO] ASC,
	[CD_FILIAL] ASC
)WITH (PAD_INDEX = OFF) ON [PRIMARY]
) ON [PRIMARY];
END

