Skip to content

Instantly share code, notes, and snippets.

@paulomcnally
Created February 7, 2014 09:08
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 paulomcnally/8859434 to your computer and use it in GitHub Desktop.
Save paulomcnally/8859434 to your computer and use it in GitHub Desktop.
UserSchema = mongoose.Schema({
name: String,
email: String,
password: String,
date: { type: Date, default: Date.now },
photo: { type: String, default: "../img/personalImage.jpg" },
facebook:{
access_token: String
email: String,
name: String,
username: String,
photo: String,
gender: String,
locale: String,
posts:[
{
title: String,
content: Sring
}]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment