Skip to content

Instantly share code, notes, and snippets.

@freekrai
Last active December 21, 2015 21:47
Show Gist options
  • Save freekrai/635f3f15345b0a7c7d2c to your computer and use it in GitHub Desktop.
Save freekrai/635f3f15345b0a7c7d2c to your computer and use it in GitHub Desktop.
// 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