mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -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)
|