wikijs-fork/server/models/comment.js
2017-10-08 17:21:36 -04:00

17 lines
275 B
JavaScript

/**
* Comment schema
*/
module.exports = (sequelize, DataTypes) => {
let commentSchema = sequelize.define('comment', {
content: {
type: DataTypes.STRING,
allowNull: false
}
}, {
timestamps: true,
version: true
})
return commentSchema
}