Work on All Pages section

This commit is contained in:
NGPixel
2017-04-17 22:44:04 -04:00
parent d02b4a3591
commit 1d8285fb6a
9 changed files with 122 additions and 126 deletions

View File

@@ -6,7 +6,6 @@
* @type {<Mongoose.Schema>}
*/
var entrySchema = Mongoose.Schema({
_id: String,
title: {
@@ -18,18 +17,20 @@ var entrySchema = Mongoose.Schema({
type: String,
default: ''
},
parent: {
parentTitle: {
type: String,
default: ''
},
parentPath: {
type: String,
default: ''
},
isDirectory: {
type: Boolean,
default: false
}
},
{
timestamps: {}
})
}, {
timestamps: {}
})
module.exports = Mongoose.model('Entry', entrySchema)