wikijs-fork/server/models/comment.js
2017-08-12 17:26:27 -04:00

19 lines
289 B
JavaScript

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