Last active
February 9, 2017 05:26
-
-
Save prabod/7e8e52624c3d6fecac89d8b6cdd6dd14 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// define the schema for our user model | |
var userSchema = mongoose.Schema({ | |
local : { | |
first_name : String, | |
last_name : String, | |
email : String, | |
password : String, | |
}, | |
facebook : { | |
id : String, | |
token : String, | |
email : String, | |
name : String | |
}, | |
twitter : { | |
id : String, | |
token : String, | |
displayName : String, | |
username : String | |
}, | |
google : { | |
id : String, | |
token : String, | |
email : String, | |
name : String | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment