codecombat/server/models/ThangType.coffee

13 lines
369 B
CoffeeScript
Raw Normal View History

2014-01-03 13:32:13 -05:00
mongoose = require('mongoose')
plugins = require('./plugins')
ThangTypeSchema = new mongoose.Schema({
body: String,
}, {strict: false})
ThangTypeSchema.plugin(plugins.NamedPlugin)
ThangTypeSchema.plugin(plugins.VersionedPlugin)
ThangTypeSchema.plugin(plugins.SearchablePlugin, {searchable: ['name']})
module.exports = mongoose.model('thang.type', ThangTypeSchema)