wikijs-fork/server/models/upl-folder.js

22 lines
314 B
JavaScript
Raw Normal View History

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