Skip to content

Instantly share code, notes, and snippets.

@newz2000
Created December 12, 2014 06:29
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 newz2000/3ec4384d18601f7afde6 to your computer and use it in GitHub Desktop.
Save newz2000/3ec4384d18601f7afde6 to your computer and use it in GitHub Desktop.
Account model
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
passportLocalMongoose = require('passport-local-mongoose');
var Account = new Schema({
twitterId: String,
nickname: String,
birthdate: Date,
profile: Schema.Types.Mixed
});
Account.plugin(passportLocalMongoose);
module.exports = mongoose.model('Account', Account);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment