CREATE TABLE GPE_CLASSESTRANG (
  NRCLASSESTRANG NUMBER(10) NOT NULL, 
  DSCLASSESTRANG VARCHAR2(200) NOT NULL, 
  CDESOCIAL VARCHAR2(2) NOT NULL, 
  NRORG NUMBER(10) DEFAULT 1 NOT NULL,  
  IDATIVO VARCHAR2(1) DEFAULT 'S' NOT NULL, 
  DTINCLUSAO DATE , 
  DTULTATU DATE , 
  NRORGINCLUSAO NUMBER(10) DEFAULT 1 NULL, 
  NRORGULTATU NUMBER(10) DEFAULT 1 NULL, 
  CDOPERINCLUSAO VARCHAR2(12) DEFAULT '1' NULL, 
  CDOPERULTATU VARCHAR2(12) DEFAULT '1' NULL,
  CONSTRAINT PK_GPE_CLASSESTRANG PRIMARY KEY(NRCLASSESTRANG)
)
/
ALTER TABLE GPE_CLASSESTRANG ADD CONSTRAINT CKC_IDATIVO_CLASSESTRANG CHECK (IDATIVO IN ('S','N'))