ALTER TABLE permissoes
    ADD CONSTRAINT permissoes_rotinas_fk FOREIGN KEY ( rotina_id )
        REFERENCES rotinas ( id );