declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
  execute immediate
	'CREATE TABLE EMPRESA_EREDE_CONFIG
	(
	  EMPRESAEREDE_ID NUMBER(7, 0) NOT NULL 
	, EMPRESA_ID NUMBER(7, 0) 
	, FILIATION VARCHAR2(50 BYTE) 
	, TOKEN VARCHAR2(100 BYTE) 
	, INDPRODUCAO NUMBER(1,0) 
	, ACTIVO NUMBER(1,0) 
	, FECMODIF DATE
	, USUARIO_ID NUMBER(7,0)
	, CONSTRAINT EMPRESA_EREDE_CONFIG PRIMARY KEY  ( EMPRESAEREDE_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_EREDE_CONFIG_SEQ';	
  exception when object_exists then null;
end;
