codecombat/server/analytics/AnalyticsLogEvent.coffee

12 lines
360 B
CoffeeScript
Raw Normal View History

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