declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
  execute immediate
	'CREATE TABLE EMPRESA_CIELOLINK_CONFIG
	(
	  EMPRESACIELOLINK_ID NUMBER(7, 0) NOT NULL 
	, EMPRESA_ID NUMBER(7, 0) 
	, CLIENT_ID VARCHAR2(50 BYTE) 
	, MERCHANT_ID VARCHAR2(50 BYTE) 
	, SECRET VARCHAR2(50 BYTE)
    , MINUTOS_CANCELA NUMBER(7,0)
	, URL VARCHAR2(50 BYTE) 
	, ACTIVO NUMBER(1,0) 
	, FECMODIF DATE
	, USUARIO_ID NUMBER(7,0)
	, CONSTRAINT EMPRESA_CIELOLINK_CONFIG PRIMARY KEY  ( EMPRESACIELOLINK_ID ) ENABLE ) ';
	
  exception when object_exists then null;
end;
/
declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
  execute immediate
  	'CREATE SEQUENCE EMP_CIELOLINK_CONFIG_SEQ';	
  exception when object_exists then null;
end;
