CREATE TABLE LOG_GERAL
  (
    ID           	  NUMBER(10) 			NOT NULL,
    TIPO_MODIFICA  	  VARCHAR2(1) 			NOT NULL,
	NMTABELA		  VARCHAR2(50) 			NOT NULL,
    TABELA_PK    	  VARCHAR2(100) 			NULL,
    COL_MODFICADA  	  VARCHAR2(50)  		NULL,
	SISTEMA			  VARCHAR2(50)  		NULL,
	TELA			  VARCHAR2(50)  		NULL,
	URL				  VARCHAR2(100)  		NULL,
	PROJECT_ID		  VARCHAR2(50)  		NULL,
    VAL_ANTIGO    	  VARCHAR2(4000)  		NULL,
    VAL_NOVO    	  VARCHAR2(4000) 		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_LOG_GERAL CHECK (IDATIVO IN ('S','N')),
		CONSTRAINT CKC_TIPO_MOD_LOG_GERAL CHECK (TIPO_MODIFICA IN ('U','I','D')),
		CONSTRAINT PK_LOG_GERAL PRIMARY KEY(ID)
)