Created
October 19, 2015 16:41
-
-
Save chanakaDe/6c34d20664e83bfcf514 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
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
/** | |
* Creating Story Schema. | |
* @type {*|Schema} | |
*/ | |
var StorySchema = new Schema({ | |
owner: String, | |
title: String, | |
content: String, | |
created: {type: Date, default: Date.now} | |
}); | |
module.exports = mongoose.model('Story', StorySchema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment