"use strict";

module.exports = function(sequelize, DataTypes) {
  var Paper = sequelize.define("Paper", {
    title: DataTypes.STRING,
    summary: DataTypes.STRING,
    accepted: DataTypes.BOOLEAN
  }, {
    classMethods: {
      associate: function(models) {
        Paper.belongsTo(models.User);
        Paper.hasMany(models.PaperVote);
      }
    }
  });

  return Paper;
};

"use strict";

module.exports = function(sequelize, DataTypes) {
  var Paper = sequelize.define("Paper", {
    title: DataTypes.STRING,
    summary: DataTypes.TEXT,
    accepted: DataTypes.BOOLEAN
  }, {
    classMethods: {
      associate: function(models) {
        Paper.belongsTo(models.User);
        Paper.hasMany(models.PaperVote);
      }
    }
  });

  return Paper;
};

Allow unlimited length for summaries
Allow unlimited length for summaries

Signed-off-by: Patrick Uiterwijk <bd6d5394796bee9cca2245486eb583fd64b70226@redhat.com>
