ALTER TABLE FCT_RELACSERVICO ADD CONSTRAINT FKSM00309FCT_SERVORCA_SERVREL
    FOREIGN KEY (CDSERVORCARELAC) REFERENCES FCT_SERVICOORCA (CDSERVORCA)
/

CREATE INDEX SM00309_FK ON FCT_RELACSERVICO (CDSERVORCARELAC ASC)
/

ALTER TABLE FCT_TRABSERVCONTRATO DROP CONSTRAINT FKSM00253CONT_TRABSERVCONT
/

ALTER TABLE FCT_TRABSERVCONTRATO ADD CONSTRAINT FKSM00253CONT_TRABSERVCONT
    FOREIGN KEY (NRSEQCONTRATO) REFERENCES FCT_CONTRATO (NRSEQCONTRATO) ON DELETE CASCADE
/

ALTER TABLE FCT_COMPSERVCONTRATO DROP CONSTRAINT FKSM00260CONT_COMPSERVCONT
/

ALTER TABLE FCT_COMPSERVCONTRATO ADD CONSTRAINT FKSM00260CONT_COMPSERVCONT
    FOREIGN KEY (NRSEQCONTRATO) REFERENCES FCT_CONTRATO (NRSEQCONTRATO) ON DELETE CASCADE
/

ALTER TABLE FCT_RELACMEDIDACONTRATO DROP CONSTRAINT FKSM00259CONT_RELACMEDCONT
/

ALTER TABLE FCT_RELACMEDIDACONTRATO ADD CONSTRAINT FKSM00259CONT_RELACMEDCONT
    FOREIGN KEY (NRSEQCONTRATO) REFERENCES FCT_CONTRATO (NRSEQCONTRATO) ON DELETE CASCADE
/

ALTER TABLE FCT_VARPRECBASESERVCONT DROP CONSTRAINT FKSM00263CONT_VPRBASERCONT
/

ALTER TABLE FCT_VARPRECBASESERVCONT ADD CONSTRAINT FKSM00263CONT_VPRBASERCONT
    FOREIGN KEY (NRSEQCONTRATO) REFERENCES FCT_CONTRATO (NRSEQCONTRATO) ON DELETE CASCADE
/