/**
 * hive.js
 * Copyright (C) 2013-2016 Marcel Klehr <mklehr@gmx.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the Mozilla Public License version 2
 * as published by the Mozilla Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the Mozilla Public License
 * along with this program.  If not, see <https://www.mozilla.org/en-US/MPL/2.0/>.
 */
/**
 * Snapshot
 */
module.exports = {
  identity: 'snapshot'
, connection: 'default'
, autoPK: false

, attributes: {
    id: {
      type: 'string'
    , primaryKey: true
    }

    // the changeset
  , changes: 'text'

    // the content resulting from the changes
  , contents: 'text'

    // belongsTo a document
  , document: {
      model: 'document'
    }

    // belongsTo an author
  , author: {
      model: 'user'
    }

  , parent: {
      model: 'snapshot'
    }

    //Automagically created:
//, createdAt
//, updatedAt

  }

// Class methods

, post: function*() {
    this.throw(403)
  }
}

/**
 * hive.js
 * Copyright (C) 2013-2016 Marcel Klehr <mklehr@gmx.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the Mozilla Public License version 2
 * as published by the Mozilla Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.te
 *
 * You should have received a copy of the Mozilla Public License
 * along with this program.  If not, see <https://www.mozilla.org/en-US/MPL/2.0/>.
 */
/**
 * Snapshot
 */
module.exports = {
  identity: 'snapshot'
, connection: 'default'
, autoPK: false

, attributes: {
    id: {
      type: 'string'
    , primaryKey: true
    }

    // the changeset
  , changes: 'mediumtext'

    // the content resulting from the changes
  , contents: 'mediumtext'

    // belongsTo a document
  , document: {
      model: 'document'
    }

    // belongsTo an author
  , author: {
      model: 'user'
    }

  , parent: {
      model: 'snapshot'
    }

    //Automagically created:
//, createdAt
//, updatedAt

  }

// Class methods

, post: function*() {
    this.throw(403)
  }
}

Use mediumtext instead of text