wikijs-fork/models/upl-folder.js

25 lines
342 B
JavaScript
Raw Normal View History

"use strict";
2016-11-21 01:09:50 +00:00
const Promise = require('bluebird'),
_ = require('lodash');
/**
* Upload Folder schema
*
* @type {<Mongoose.Schema>}
*/
2016-11-21 01:09:50 +00:00
var uplFolderSchema = Mongoose.Schema({
_id: String,
name: {
type: String,
index: true
}
},
{
timestamps: {}
});
2016-11-21 01:09:50 +00:00
module.exports = Mongoose.model('UplFolder', uplFolderSchema);