CREATE TABLE TRAVACANCITEMEXP
(
    CDFILIAL            VARCHAR2(4)            NOT NULL,
    NRLANCTONF          VARCHAR2(10)           NOT NULL,
    NRSEQITPROD         VARCHAR2(04)           NOT NULL,
    NRSEQITERRO         VARCHAR2(10)           NOT NULL,
    IDERRO              VARCHAR2(30)           NULL    ,
    CDFILIALIT          VARCHAR2(04)           NULL,
    NRLANCTONFIT        VARCHAR2(10)           NULL,
    CDFILIMOVI          VARCHAR2(04)           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_TRAVACANCITEMEXP CHECK (IDATIVO IN ('S','N')),
		CONSTRAINT PK_TRAVACANCITEMEXP PRIMARY KEY (CDFILIAL, NRLANCTONF, NRSEQITPROD, NRSEQITERRO)
)
/