ALTER TABLE NOCASHPARAMS ADD URLAPIFINANCEIRO VARCHAR2(500)
/
ALTER TABLE NOCASHPARAMS ADD URLTERMORESP VARCHAR2(500)
/
ALTER TABLE NOCASHPARAMS ADD EMAILOPERFIN  VARCHAR2(500)
/
ALTER TABLE NOCASHPARAMS ADD SENHAOPERFIN VARCHAR2(500)
/

CREATE TABLE NOCASHPARAMSFILI(
	CDCLIENTE 		  VARCHAR2(21) NOT NULL,
	CDFILIAL 		  VARCHAR2(4) NOT NULL,
	PAGHABJSON 		  VARCHAR2(4000),
	NRORG             NUMBER 	      DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg') 		NOT NULL,
    IDATIVO           VARCHAR2(1)     DEFAULT 'S'					NOT NULL,
    DTINCLUSAO        DATE            DEFAULT SYSDATE,
    DTULTATU          DATE            DEFAULT SYSDATE,
    NRORGINCLUSAO     NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
    CDOPERINCLUSAO    VARCHAR2(12)    DEFAULT '1' 					NULL,
    NRORGULTATU       NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
    CDOPERULTATU      VARCHAR2(12)    DEFAULT '1',
		CONSTRAINT CKC_IDATIVO_NOCASHPARAMSFILI CHECK (IDATIVO IN ('S','N'))
)
/
ALTER TABLE NOCASHPARAMSFILI ADD CONSTRAINT PK_NOCASHPARAMSFILI PRIMARY KEY (CDCLIENTE, CDFILIAL)
/