codecombat/server/models/UserRemark.coffee

14 lines
371 B
CoffeeScript
Raw Permalink Normal View History

2014-06-30 22:16:26 -04:00
mongoose = require 'mongoose'
2016-04-07 12:40:53 -04:00
plugins = require '../plugins/plugins'
jsonschema = require '../../app/schemas/models/user_remark'
2014-06-17 16:03:08 -04:00
UserRemarkSchema = new mongoose.Schema({
created:
type: Date
'default': Date.now
}, {strict: false})
2014-06-17 16:03:08 -04:00
UserRemarkSchema.index({user: 1}, {name: 'User'})
2014-06-17 16:03:08 -04:00
module.exports = UserRemark = mongoose.model('user.remark', UserRemarkSchema)