codecombat/server/models/ThangType.coffee
2014-01-03 10:32:13 -08:00

12 lines
369 B
CoffeeScript

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)