codecombat/server/user_code_problems/UserCodeProblem.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

12 lines
300 B
CoffeeScript

mongoose = require 'mongoose'
plugins = require '../plugins/plugins'
UserCodeProblemSchema = new mongoose.Schema({
created:
type: Date
'default': Date.now
}, {strict: false})
# TODO: add index
module.exports = UserCodeProblem = mongoose.model('user.code.problem', UserCodeProblemSchema)