2016-10-14 23:31:15 -04:00
|
|
|
"use strict";
|
|
|
|
|
2016-11-20 20:09:50 -05:00
|
|
|
const Promise = require('bluebird'),
|
2016-10-14 23:31:15 -04:00
|
|
|
_ = require('lodash');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Upload Folder schema
|
|
|
|
*
|
|
|
|
* @type {<Mongoose.Schema>}
|
|
|
|
*/
|
2016-11-20 20:09:50 -05:00
|
|
|
var uplFolderSchema = Mongoose.Schema({
|
2016-10-14 23:31:15 -04:00
|
|
|
|
2016-10-16 01:34:34 -04:00
|
|
|
_id: String,
|
|
|
|
|
2016-10-14 23:31:15 -04:00
|
|
|
name: {
|
2016-10-16 01:34:34 -04:00
|
|
|
type: String,
|
|
|
|
index: true
|
2016-10-14 23:31:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
timestamps: {}
|
|
|
|
});
|
|
|
|
|
2016-11-20 20:09:50 -05:00
|
|
|
module.exports = Mongoose.model('UplFolder', uplFolderSchema);
|