ALTER TABLE permissoes
    ADD CONSTRAINT permissoes_users_fk FOREIGN KEY ( user_id )
        REFERENCES users ( id );