codecombat/server/user_code_problems/UserCodeProblem.coffee
Matt Lott b78a35f5f0 📝No extra index needed for user.code.problems
We only query via _id currently, so the default index will do.
2015-01-27 10:46:37 -08:00

10 lines
281 B
CoffeeScript

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