Skip to content

Instantly share code, notes, and snippets.

@gnuwilliam
Created December 18, 2013 03:50
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 gnuwilliam/8017008 to your computer and use it in GitHub Desktop.
Save gnuwilliam/8017008 to your computer and use it in GitHub Desktop.
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
var categorySchema = new Schema({
name: String
});
module.exports = mongoose.model('Category', categorySchema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment