Skip to content

Instantly share code, notes, and snippets.

@vatson
Created March 2, 2013 00:18
Show Gist options
  • Save vatson/5068982 to your computer and use it in GitHub Desktop.
Save vatson/5068982 to your computer and use it in GitHub Desktop.
mongoose = require('mongoose')
timestamp = require('mongoose-time')
scheme = new mongoose.Schema
title: String
user: String
scheme.plugin(timestamp())
model = mongoose.model('Article', scheme)
module.exports = model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment