Skip to content

Instantly share code, notes, and snippets.

@sanath-kumar
Created July 19, 2018 11:47
Show Gist options
  • Select an option

  • Save sanath-kumar/ace4ab170c801b39a9c777dfd7e5ea80 to your computer and use it in GitHub Desktop.

Select an option

Save sanath-kumar/ace4ab170c801b39a9c777dfd7e5ea80 to your computer and use it in GitHub Desktop.
const mongoose = require('mongoose');
const {Schema} = mongoose;
const MessageSchema = new Schema({
'handle' : String,
'message' : String,
'created' : Date
})
module.exports = mongoose.model('message',MessageSchema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment