mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
3d32c8a5e7
These indexes are on the production database but not set in our mongoose schemas.
13 lines
377 B
CoffeeScript
13 lines
377 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)
|