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.

18 lines
289 B

  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. }