
IF  NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EST_PROD_CATEGORIA_ECOMMERCE]') AND type in (N'U'))
BEGIN
	CREATE TABLE [dbo].[EST_PROD_CATEGORIA_ECOMMERCE](
		[CD_CATEG] [int] NOT NULL,
		[DS_CATEG] [varchar](50) NULL,
	 CONSTRAINT [PK_EST_PROD_CATEGORIA_ECOMMERCE] PRIMARY KEY CLUSTERED 
	(
		[CD_CATEG] ASC
	)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
	) ON [PRIMARY]

	ALTER TABLE [dbo].[EST_PROD_CATEGORIA_ECOMMERCE] ADD  CONSTRAINT [DF_EST_PROD_CATEGORIA_ECOMMERCE_CD_CATEG]  DEFAULT ((0)) FOR [CD_CATEG]
	INSERT INTO EST_PROD_CATEGORIA_ECOMMERCE VALUES(0,'NAO INFORMADO')
END

	