CREATE TABLE INTG_ITEMNOTAFISC
(
    NRSEQITNOTAFISC   VARCHAR2(4),
    NRACESSONFE 	  VARCHAR2(50),
    NRACESSONFEREFER  VARCHAR2(50),
    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_INTG_ITEMNOTAFISC CHECK (IDATIVO IN ('S','N')),
		CONSTRAINT PK_INTG_ITEMNOTAFISC PRIMARY KEY (NRACESSONFE, NRSEQITNOTAFISC)
)
/