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