Add `getTableFields` method for Model.