codecombat/server/levels/feedbacks/LevelFeedback.coffee
Matt Lott 3d32c8a5e7 Document missing database schema indexes
These indexes are on the production database but not set in our
mongoose schemas.
2015-01-27 10:02:51 -08:00

16 lines
536 B
CoffeeScript

# TODO: not updated since rename from level_instance, or since we redid how all models are done; probably busted
mongoose = require 'mongoose'
plugins = require '../../plugins/plugins'
jsonschema = require '../../../app/schemas/models/level_feedback'
LevelFeedbackSchema = new mongoose.Schema({
created:
type: Date
'default': Date.now
}, {strict: false})
LevelFeedbackSchema.index({created: 1})
LevelFeedbackSchema.index({creator: 1})
module.exports = LevelFeedback = mongoose.model('level.feedback', LevelFeedbackSchema)