mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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)
|