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

	CREATE TABLE EST_PROD_ECOMMERCE_KEY (
	CD_PROD int DEFAULT 0 NOT NULL,
	CD_PROD_ECOMMERCE bigint DEFAULT 0 NOT NULL,
	CD_EMP int DEFAULT 0 NOT NULL,
	ID_ECOMMERCE varchar(100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
	CONSTRAINT PK_EST_PROD_ECOMMERCE_KEY PRIMARY KEY (CD_PROD,CD_PROD_ECOMMERCE),
	CONSTRAINT EST_PROD_ECOMMERCE_KEY_FK FOREIGN KEY (CD_EMP,CD_PROD) REFERENCES EST_PROD(CD_EMP,CD_PROD) ON DELETE CASCADE
	);

END