ALTER TABLE PARAVEND ADD IDUTWEDIPRICES VARCHAR2(1)
/

CREATE TABLE LOGEXPPROD (
    CDEVENTO       	  VARCHAR2(10)    NOT NULL,
    CDFILIAL       	  VARCHAR2(4)     NOT NULL,
    DTHREVENTO     	  DATE,
    CDPRODUTO      	  VARCHAR2(10)    NOT NULL,
    IDTPEVENTO     	  VARCHAR2(1)     NOT NULL,
    DSEVENTO       	  VARCHAR2(100)   NULL,
    URLEVENTO      	  VARCHAR2(100)   NULL,
    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_LOGEXPPROD CHECK (IDATIVO IN ('S','N')),
	   CONSTRAINT PK_LOGEXPPROD PRIMARY KEY (CDEVENTO)
)
/