mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 18:45:48 -05:00
e79cadc761
_id field already has created data: http://docs.mongodb.org/manual/reference/object-id/ Also some misc analytics cleanup.
7 lines
288 B
CoffeeScript
7 lines
288 B
CoffeeScript
mongoose = require 'mongoose'
|
|
plugins = require '../plugins/plugins'
|
|
|
|
AnalyticsLogEventSchema = new mongoose.Schema({}, {strict: false})
|
|
AnalyticsLogEventSchema.index({event: 1, _id: 1})
|
|
|
|
module.exports = AnalyticsLogEvent = mongoose.model('analytics.log.event', AnalyticsLogEventSchema)
|