CREATE TABLE PARAMEMPREINFH 
(
  CDEMPRESA           		VARCHAR2(02) 		NOT NULL, 
  NRSEQHIST           		NUMBER      		NOT NULL,
  DTHISTORICO         		DATE        			NOT NULL, 
  DTINIVALIDADE     		DATE 			NOT NULL,
  DTFINVALIDADE  		DATE 			NULL,
  NRCLASSTRIBUT       		NUMBER      		NULL,  
  IDESCRITURECD       		VARCHAR2(01) 		DEFAULT '0' NOT NULL
      CONSTRAINT CKC_IDESCRITURECD_PARAMEH CHECK(IDESCRITURECD in ('0','1')),   
  IDDESONERACAO       	VARCHAR2(01) 		DEFAULT '0' NOT NULL
      CONSTRAINT CKC_IDDESONERACAO_PARAMEH CHECK (IDDESONERACAO in ('0','1')),   
  IDACORDISENMULTA    	VARCHAR2(01) 		DEFAULT '0' NOT NULL
      CONSTRAINT CKC_IDACORDISENMULTA_PARAMEH CHECK (IDACORDISENMULTA in ('0','1')),   
  IDSITUPJ            		VARCHAR2(01) 		DEFAULT '0' NOT NULL
      CONSTRAINT CKC_IDSITUPJ_PARAMEH CHECK (IDSITUPJ in ('0','1','2','3','4')),           
  CDREPRES            		VARCHAR2(02) 		NULL,  
  NRORG              		NUMBER  			DEFAULT 1   NOT NULL,
  IDATIVO            		VARCHAR2(1)		DEFAULT 'S' NOT NULL
 	CONSTRAINT CKC_IDATIVO_PARAMEH CHECK (IDATIVO IN ('S','N')),
  DTINCLUSAO         		DATE           		NULL,
  DTULTATU           		DATE           		NULL, 
  NRORGINCLUSAO      	NUMBER         		DEFAULT 1   NULL,
  CDOPERINCLUSAO     	VARCHAR2(12)   		DEFAULT '1' NULL, 
  NRORGULTATU       		 NUMBER         		DEFAULT 1   NULL,
  CDOPERULTATU       		VARCHAR2(12)   		DEFAULT '1',  
    CONSTRAINT PK_PARAMEMPREINFH PRIMARY KEY (CDEMPRESA, NRSEQHIST, NRORG)
)