BookshelfJS: all ints are being returned as strings [pg]
<p><code>bool</code> seems to work as expected, as does <code>json</code> type (postgres), but all of my id cols populate as strings (breaking the front-end code)</p>

<p>Is there a way to a. fix it, or b. tell bookshelf that that field is an integer?</p>

<p><strong>Update</strong></p>

<p>By request, here's some code snippets. I'm just testing the waters with node/bookshelf, so this isn't complicated code; it's mostly right out of the getting started guide. The database is an existing one we've been using for 2ish years, the <code>id</code> cols are definitely <code>int</code> for all tables</p>

<p>One good example, Calendars and </p>

<pre><code>var Appointment = bs.Model.extend({
    tableName: 'ec__appointments',
});

var Calendar = bs.Model.extend({
    tableName: 'ec__calendars',

    appointments: function() {
        return this.hasMany(Appointment, 'calendar_id');
    },
});
</code></pre>

<p>For this one, the calendar ids come down as <code>int</code>, but when I <code>fetch({withRelated:['appointments']})</code>, the <code>appointment.id</code> is a string.</p>

<pre><code>{
  "calendars": [
    {
      "id": 2,
      "name": "Default Calendar",
      "created_at": "2015-03-06T09:35:58.000Z",
      "updated_at": "2016-03-23T03:28:07.000Z",
      "appointments": [
        {
          "id": "107",
          "calendar_id": "2",
          "name": "Test",
          "starts_at": null,
          "ends_at": null,
          "created_at": "2015-05-29T23:13:20.000Z",
          "updated_at": "2015-05-29T23:13:20.000Z",
        },
</code></pre>