Latest Code

This commit is contained in:
Dobie Wollert
2015-04-06 03:28:20 -04:00
parent 966152a631
commit d3089dcd17
105 changed files with 8731 additions and 96 deletions

View File

@ -5,13 +5,17 @@ var mongoose = require('mongoose'),
var postSchema = new Schema({
title: { type: String },
preview: { type: String },
previewHtml: { type: String },
details: { type: String },
detailsHtml: { type: String },
image: { type: String },
gallery: [{ type: String }],
status: { type: String },
createdOn: { type: Date },
postedOn: { type: Date },
author: { type: ObjectId, ref: 'User' }
author: { type: ObjectId, ref: 'User' },
tags: [{ type: String }],
pages: [{ type: String }]
});
var Post = module.exports = mongoose.model('Post', postSchema);