CREATE TABLE CONFIGQUICKPASS(
    CORPRIMARIAQP     VARCHAR2(10),
    DSLOGOQP 		  VARCHAR2(100),
    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_CONFIGQUICKPASS CHECK (IDATIVO IN ('S','N'))
)
/

CREATE TABLE PROPAGQP(
    CDPROPQP 	  	  VARCHAR2(5) NOT NULL,
    URLPROPAG 	  	  VARCHAR2(120),
    DSLOGOPROPAG 	  VARCHAR2(100), 
    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_PROPAGQP CHECK (IDATIVO IN ('S','N'))
)
/

ALTER TABLE CONFCUSTOMTAA MODIFY CDLOJA VARCHAR2(10) NULL
/

ALTER TABLE EVENTOVENDA ADD DSURLLOGOAPP VARCHAR2(100)
/
ALTER TABLE EVENTOVENDA ADD IDLOJAABERTA VARCHAR2(1)
/
ALTER TABLE EVENTOVENDA ADD IDEVENTOAPP VARCHAR2(1)
/