17 lines
275 B
JavaScript
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
|
|
}
|