mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
9 lines
260 B
CoffeeScript
9 lines
260 B
CoffeeScript
|
mongoose = require('mongoose')
|
||
|
plugins = require('./plugins')
|
||
|
|
||
|
FileSchema = new mongoose.Schema()
|
||
|
|
||
|
FileSchema.plugin(plugins.SearchablePlugin, {searchable: ['metadata.description', 'metadata.name']})
|
||
|
|
||
|
module.exports = mongoose.model('media.files', FileSchema)
|