Skip to content

Instantly share code, notes, and snippets.

@artemis15
Created September 10, 2019 04:38
Show Gist options
  • Save artemis15/1a78d700116b902626c5e41d3273982a to your computer and use it in GitHub Desktop.
Save artemis15/1a78d700116b902626c5e41d3273982a to your computer and use it in GitHub Desktop.
User Schema
let mongoose = require('mongoose');
let userSchema = mongoose.Schema({
name: String,
email: String
});
let User = mongoose.model('User', userSchema);
module.exports = User;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment