wikijs-fork/models/entry.js
2017-03-25 17:03:09 -04:00

32 lines
390 B
JavaScript

'use strict'
/**
* Entry schema
*
* @type {<Mongoose.Schema>}
*/
var entrySchema = Mongoose.Schema({
_id: String,
title: {
type: String,
required: true,
minlength: 2
},
subtitle: {
type: String,
default: ''
},
parent: {
type: String,
default: ''
}
},
{
timestamps: {}
})
module.exports = Mongoose.model('Entry', entrySchema)