You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
275 B

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