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.

10 lines
266 B

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. var thoughtSchema = new Schema({
  4. time: { type: String },
  5. content: { type: String },
  6. authorname: { type: String }
  7. })
  8. module.exports = mongoose.model('thoughtModel', thoughtSchema);