Skip to content

Instantly share code, notes, and snippets.

@prabod
Last active February 9, 2017 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prabod/7e8e52624c3d6fecac89d8b6cdd6dd14 to your computer and use it in GitHub Desktop.
Save prabod/7e8e52624c3d6fecac89d8b6cdd6dd14 to your computer and use it in GitHub Desktop.
// 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