Add `having` method for Model.