CREATE TABLE MENSERROPEDAF
(
 NRAUTOFORN   		VARCHAR2(10),
 MENSERRO   		VARCHAR2(1000),
 NRORG 			 	NUMBER		    DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg') 		NOT NULL,
 IDATIVO            VARCHAR2(1)   	DEFAULT 'S' 									NOT NULL,
    CONSTRAINT CKC_IDATIVO_MENSERROPEDAF CHECK (IDATIVO IN ('S','N')),
 DTINCLUSAO        	DATE                   											NULL,
 DTULTATU          	DATE                 											NULL,
 NRORGINCLUSAO     	NUMBER        	DEFAULT 1 										NULL,
 CDOPERINCLUSAO    	VARCHAR2(12)  	DEFAULT '1' 									NULL,
 NRORGULTATU       	NUMBER        	DEFAULT 1 										NULL,
 CDOPERULTATU 	 	VARCHAR2(12)  	DEFAULT '1'
)
/
ALTER TABLE MENSERROPEDAF
  ADD CONSTRAINT FKPED00431MENSERRO FOREIGN KEY (NRAUTOFORN)
REFERENCES IMPERROPEDAF(NRAUTOFORN) ON DELETE CASCADE