CREATE TABLE NOTIFICACAO_GERAL
  (
    ID           	  NUMBER(10) 	  NOT NULL,
    CDNOTIFICACAO	  VARCHAR2(50) 	  NOT NULL,
    DSTPENVIO		  VARCHAR2(50) 	  NOT NULL,
    IDPERENVIO		  VARCHAR2(1) 	  NOT NULL,	
	NMTABELA 		  VARCHAR2(50) 	  NOT NULL,
    CDTABELA    	  VARCHAR2(100)   NULL,
	IDPRODUTO		  VARCHAR2(50)    NOT NULL,
    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_NOTIFICACAO_GERAL CHECK (IDATIVO IN ('S','N')),
		CONSTRAINT CKC_IDPEREN_NOTI_GERAL CHECK (IDPERENVIO IN ('S','N')),
		CONSTRAINT CKC_IDATIVO_NOTI_GREAL  CHECK (IDATIVO  IN ('S','N')),
		CONSTRAINT PK_NOTIFICACAO_GERAL PRIMARY KEY(ID)
  )