ALTER TABLE rotinas
    ADD CONSTRAINT rotinas_sistemas_fk FOREIGN KEY ( sistema_id )
        REFERENCES sistemas ( id );