Created
September 10, 2019 04:38
-
-
Save artemis15/1a78d700116b902626c5e41d3273982a to your computer and use it in GitHub Desktop.
User Schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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