CREATE TABLE IMPORTACAONFSETECNOSPEED ( 
    IDIMPORTACAONFSE    INTEGER NOT NULL,
    DTINICIAL           DATE,
    DTFINAL             DATE,
    IDINSCJURTOMA       VARCHAR(30),
    IDINSCMUNTOMA       VARCHAR(30),
    CDMUNICIBGETOMA     VARCHAR(30),   
    IDINSCJURPRES       VARCHAR(30),
    IDINSCMUNPRES       VARCHAR(30),
    NRPROTECNOSPEED     VARCHAR(100),
    NRTOTALNOTASPROT    INT,
    IDSTATUSPROTNFSE    VARCHAR(30),
    DSSTATUSPROTNFSE    VARCHAR(4000),
	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_IMPORTANFETCNOSPED CHECK (IDATIVO IN ('S','N'))
)
/
CREATE SEQUENCE IMPORTNFETCNOSPED_IDIMPORTCNFS MINVALUE 0 INCREMENT BY 1 START WITH 0 CACHE 80 NOCYCLE