mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
3d32c8a5e7
These indexes are on the production database but not set in our mongoose schemas.
13 lines
396 B
CoffeeScript
13 lines
396 B
CoffeeScript
mongoose = require 'mongoose'
|
|
plugins = require '../plugins/plugins'
|
|
|
|
AnalyticsUsersActiveSchema = new mongoose.Schema({
|
|
created:
|
|
type: Date
|
|
'default': Date.now
|
|
}, {strict: false})
|
|
|
|
AnalyticsUsersActiveSchema.index({created: 1})
|
|
AnalyticsUsersActiveSchema.index({creator: 1})
|
|
|
|
module.exports = AnalyticsUsersActive = mongoose.model('analytics.users.active', AnalyticsUsersActiveSchema)
|