Skip to content

Instantly share code, notes, and snippets.

@shivasurya
Created August 16, 2014 08:54
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 shivasurya/ca8c9ce0c7ed6677b899 to your computer and use it in GitHub Desktop.
Save shivasurya/ca8c9ce0c7ed6677b899 to your computer and use it in GitHub Desktop.
var mongoose = require('mongoose');
var userSchema = mongoose.Schema({
recent : {
film : String,
director : String,
musicdir :String,
rating :String,
genre :String,
thumbnail : String,
},
year2014 : {
film : String,
director : String,
musicdir :String,
rating :String,
genre :String,
thumbnail : String,
} ,
year2013 : {
film : String,
director : String,
musicdir :String,
rating :String,
genre :String,
thumbnail : String,
}
});
module.exports = mongoose.model('film', userSchema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment