declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
  execute immediate
	'CREATE TABLE CUSTOM
    (
        CUSTOM_ID NUMBER(7) NOT NULL,
		SISTEMA NUMBER(1),
        TIPO NUMBER(1),
        ORDEM NUMBER(3),
        REFERENCIA VARCHAR2(50),
        CHAVE VARCHAR2(100),
        VALOR VARCHAR2(255),
        ACTIVO NUMBER(1),
        FECMODIF DATE,
        USUARIO_ID NUMBER(7),
        PRIMARY KEY (CUSTOM_ID)
    )';
	  
  execute immediate 
	'CREATE SEQUENCE CUSTOM_SEQ INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';	
	
  exception when object_exists then null;
end;