wikijs-fork/server/models/comment.js

17 lines
275 B
JavaScript
Raw Normal View History

2017-07-29 04:11:22 +00:00
/**
* Comment schema
*/
module.exports = (sequelize, DataTypes) => {
let commentSchema = sequelize.define('comment', {
content: {
type: DataTypes.STRING,
allowNull: false
}
}, {
timestamps: true,
version: true
})
return commentSchema
}