code: function filterData(data) {
          var permittedAttributes = this.prototype.permittedAttributes(),
              filteredData = _.pick(data, permittedAttributes),
              sanitizedData = this.sanitizeData(filteredData);
  
          return sanitizedData;
      }
docs: Filters potentially unsafe model attributes, so you can pass them to Bookshelf / Knex.
  This filter should be called before each insert/update operation.
  
  @param {Object} data Has keys representing the model's attributes/fields in the database.
  @return {Object} The filtered results of the passed in data, containing only what's allowed in the schema.