codecombat/server/analytics/AnalyticsLogEvent.coffee
Matt Lott a144c5ff0d Update analytics.log.event indexes to match prod
These were applied as single indexes directly in production.
2015-01-06 14:07:22 -08:00

12 lines
370 B
CoffeeScript

mongoose = require 'mongoose'
plugins = require '../plugins/plugins'
AnalyticsLogEventSchema = new mongoose.Schema({
created:
type: Date
'default': Date.now
}, {strict: false})
AnalyticsLogEventSchema.index event: 1
AnalyticsLogEventSchema.index created: -1
module.exports = AnalyticsLogEvent = mongoose.model('analytics.log.event', AnalyticsLogEventSchema)