CREATE TABLE NUTRICIOALANDAR (
  NRNUTRICIOALANDAR NUMBER(10) NOT NULL, 
  CDFILIAL VARCHAR2(4) NOT NULL, 
  CDANDAR VARCHAR2(20) NOT NULL, 
  CDALA VARCHAR2(12) NOT NULL, 
  CDNUTRICIO VARCHAR2(12) NOT NULL, 
  NRORG NUMBER(10) DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg') NOT NULL, 
  IDATIVO VARCHAR2(1) DEFAULT 'S' NOT NULL, 
  DTINCLUSAO DATE DEFAULT NULL NULL, 
  DTULTATU DATE DEFAULT NULL NULL, 
  NRORGINCLUSAO NUMBER(10) DEFAULT 1 NULL, 
  CDOPERINCLUSAO VARCHAR2(12) DEFAULT '1' NULL, 
  NRORGULTATU NUMBER(10) DEFAULT 1 NULL, 
  CDOPERULTATU VARCHAR2(12) DEFAULT '1' NULL,
  CONSTRAINT PK_NUTRICIOALANDAR PRIMARY KEY(NRNUTRICIOALANDAR)
)
/
ALTER TABLE NUTRICIOALANDAR ADD CONSTRAINT CKC_IDATIVO_NUTRICIOALANDAR CHECK (IDATIVO IN ('S', 'N'))