IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES
			 WHERE TABLE_NAME='EST_PROD_CATEGORIA_ECOMMERCE_KEY')
			 
BEGIN

	CREATE TABLE EST_PROD_CATEGORIA_ECOMMERCE_KEY (
	CD_CATEG int DEFAULT 0 NOT NULL,
	CD_CATEG_ECOMMERCE bigint DEFAULT 0 NOT NULL,
	ID_ECOMMERCE varchar(100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
	CONSTRAINT PK_EST_PROD_CATEGORIA_ECOMMERCE_KEY PRIMARY KEY (CD_CATEG,CD_CATEG_ECOMMERCE),
	CONSTRAINT EST_PROD_CATEGORIA_ECOMMERCE_KEY_FK FOREIGN KEY (CD_CATEG) REFERENCES EST_PROD_CATEGORIA_ECOMMERCE(CD_CATEG) ON DELETE CASCADE
	);

END