Last active
December 21, 2015 21:47
-
-
Save freekrai/635f3f15345b0a7c7d2c 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 : { | |
email : String, | |
password : String, | |
resetPasswordToken: String, | |
resetPasswordExpires: Date | |
}, | |
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 | |
}, | |
phone : String, | |
name : String, | |
role : String | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment