codecombat/server/models/UserRemark.coffee
2016-04-07 09:40:53 -07:00

13 lines
371 B
CoffeeScript

mongoose = require 'mongoose'
plugins = require '../plugins/plugins'
jsonschema = require '../../app/schemas/models/user_remark'
UserRemarkSchema = new mongoose.Schema({
created:
type: Date
'default': Date.now
}, {strict: false})
UserRemarkSchema.index({user: 1}, {name: 'User'})
module.exports = UserRemark = mongoose.model('user.remark', UserRemarkSchema)