Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created May 7, 2011 17:57
Show Gist options
  • Save johnhamelink/960690 to your computer and use it in GitHub Desktop.
Save johnhamelink/960690 to your computer and use it in GitHub Desktop.
Model
var Pastebin = new m.Schema({
_parent: {type: String},
title: {type: String, required: true, index: {unique: true} },
raw: {type: String, required: true},
formatted: String
});
module.exports = Pastebin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment