CREATE TABLE ARQXMLNFEVENTO
(
    NREVENTO         NUMBER NOT NULL,
    NRACESSONFE      VARCHAR2(50) NOT NULL, 
    IDTIPOARQXML     VARCHAR2(6)  NULL,
    DSARQXMLNFE      CLOB         NULL,
	NRORG             NUMBER 	     DEFAULT         SYS_CONTEXT('nrorg_ctx','nrorg') NOT NULL,
    IDATIVO           VARCHAR2(1)     DEFAULT 'S' NOT NULL
      CONSTRAINT CKC_IDATIVO_ARQXMLNFEVENTO CHECK (IDATIVO IN ('S','N')),
    DTINCLUSAO        DATE                  			NULL,
    DTULTATU          DATE                  			NULL,
    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 PK_ARQXMLNFEVENTO PRIMARY KEY (NREVENTO)
)
/ 