comment.js 275 Bytes
Newer Older
NGPixel's avatar
NGPixel committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/**
 * Comment schema
 */
module.exports = (sequelize, DataTypes) => {
  let commentSchema = sequelize.define('comment', {
    content: {
      type: DataTypes.STRING,
      allowNull: false
    }
  }, {
    timestamps: true,
    version: true
  })

  return commentSchema
}