comment.js 289 B

123456789101112131415161718
  1. 'use strict'
  2. /**
  3. * Comment schema
  4. */
  5. module.exports = (sequelize, DataTypes) => {
  6. let commentSchema = sequelize.define('comment', {
  7. content: {
  8. type: DataTypes.STRING,
  9. allowNull: false
  10. }
  11. }, {
  12. timestamps: true,
  13. version: true
  14. })
  15. return commentSchema
  16. }