Created
December 16, 2015 18:09
-
-
Save watzon/e6b23db3fd63ec9fd9ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
let mongo = require('mongoose'), | |
Schema = mongo.Schema; | |
let schema = Schema.new({ | |
name: String, | |
_date_added: Date.now(), | |
_date_updated: Date.now() | |
}); | |
// Sample method for the schema | |
// schema.methods.foo = function() { | |
// return true; | |
// }; | |
var Model = mongoose.model('CHANGEME', schema); | |
module.exports = Model; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment