mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
12 lines
369 B
CoffeeScript
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)
|