ALTER TABLE RATFISNCM DROP CONSTRAINT FKFIS00037_RATEIOPADRAOFIS
/

ALTER TABLE RATFISNCM DROP CONSTRAINT FKFIS00038_CLASFISCAL
/

CREATE INDEX FIS00837_FK ON RATFISNCM (CDRATEIOPADRAO ASC)
/

ALTER TABLE RATFISNCM
   ADD CONSTRAINT FKFIS00837_RATEIOPADRAOFIS FOREIGN KEY (CDRATEIOPADRAO)
       REFERENCES RATEIOPADRAOFIS (CDRATEIOPADRAO) ON DELETE CASCADE
/

CREATE INDEX FIS00838_FK ON RATFISNCM (CDCLASFISC ASC)
/
	   
ALTER TABLE RATFISNCM
   ADD CONSTRAINT FKFIS00838_CLASFISCAL FOREIGN KEY (CDCLASFISC)
      REFERENCES CLASFISCAL (CDCLASFISC)
/	

ALTER TABLE FORMAJUSTFISC DROP CONSTRAINT FKFIS00039_RATEIOPADRAOFIS
/

CREATE INDEX FIS00839_FK ON FORMAJUSTFISC (CDCRITAJUSTE ASC)
/

ALTER TABLE FORMAJUSTFISC
   ADD CONSTRAINT FKFIS00839_RATEIOPADRAOFIS FOREIGN KEY (CDCRITAJUSTE)
      REFERENCES RATEIOPADRAOFIS (CDRATEIOPADRAO)
/

ALTER TABLE AJUSTFISCAUTO DROP CONSTRAINT FKFIS00040_RATEIOPADRAOFIS
/

ALTER TABLE AJUSTFISCAUTO DROP CONSTRAINT FKFIS00041_FORMAJUSTFISC
/

ALTER TABLE AJUSTFISCAUTO DROP CONSTRAINT FKFIS00042_IMPOSTONFE
/

CREATE INDEX FIS00840_FK ON AJUSTFISCAUTO (CDCONTRATEIO ASC)
/

ALTER TABLE AJUSTFISCAUTO
   ADD CONSTRAINT FKFIS00840_RATEIOPADRAOFIS FOREIGN KEY (CDCONTRATEIO)
      REFERENCES RATEIOPADRAOFIS (CDRATEIOPADRAO)
/

CREATE INDEX FIS00841_FK ON AJUSTFISCAUTO (CDFORMULA ASC)
/

ALTER TABLE AJUSTFISCAUTO
   ADD CONSTRAINT FKFIS00841_FORMAJUSTFISC FOREIGN KEY (CDFORMULA)
      REFERENCES FORMAJUSTFISC (CDFORMULA)
/

CREATE INDEX FIS00842_FK ON AJUSTFISCAUTO (CDIMPOSTONFE ASC)
/

ALTER TABLE AJUSTFISCAUTO
   ADD CONSTRAINT FKFIS00842_IMPOSTONFE FOREIGN KEY (CDIMPOSTONFE)
      REFERENCES IMPOSTONFE (CDIMPOSTONFE)
/