codecombat/server/user_code_problems/UserCodeProblem.coffee
2015-03-21 21:49:32 -04:00

11 lines
347 B
CoffeeScript

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