CREATE TABLE RECEXTRA (
  NRRECEXTRA NUMBER(10) NOT NULL, 
  CDRECEXTRA VARCHAR2(4) NOT NULL, 
  DESCRECEXTRA VARCHAR2(200) NOT NULL, 
  NRORG NUMBER(10) DEFAULT 1 NOT NULL, 
  IDATIVO VARCHAR2(1) DEFAULT 'S' NOT NULL, 
  DTINCLUSAO DATE DEFAULT NULL NULL, 
  DTULTATU DATE DEFAULT NULL NULL, 
  CDOPERINCLUSAO VARCHAR2(12) DEFAULT '1' NULL, 
  NRORGINCLUSAO NUMBER(10) DEFAULT 1 NULL, 
  NRORGULTATU NUMBER(10) DEFAULT 1 NULL, 
  CDOPERULTATU VARCHAR2(12) DEFAULT '1' NULL,
  CONSTRAINT PK_NRRECEXTRA PRIMARY KEY(NRRECEXTRA, NRORG)
)
/
ALTER TABLE RECEXTRA ADD CONSTRAINT CKC_IDATIVO_RECEXTRA CHECK (IDATIVO IN ('S','N'))