You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
437 B

const Template = require('../__template')
const coll = new Template('media')
coll.customId = true
coll.schema = {
type: 'object',
properties: {
name: { type: 'string' },
originalName: { type: 'string' },
mimetype: { type: 'string' },
extension: { type: 'string' },
path: { type: 'string' },
fileKey: { type: 'object' },
size: { type: 'number' }
}
}
module.exports = function (pCtx) {
return coll
}