mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 18:45:48 -05:00
3fd5f49220
Add analytics per-day aggregation collection. Add analytics strings collection. Add per-day aggregation mongo insertion script. Update campaign editor to use aggregation collection. Update queries to use _id instead of created field.
13 lines
344 B
CoffeeScript
13 lines
344 B
CoffeeScript
c = require './../schemas'
|
|
|
|
AnalyticsStringSchema = c.object {
|
|
title: 'Analytics String'
|
|
description: 'Maps strings to number IDs for improved performance.'
|
|
}
|
|
|
|
_.extend AnalyticsStringSchema.properties,
|
|
v: {type: 'string'} # value
|
|
|
|
c.extendBasicProperties AnalyticsStringSchema, 'analytics.string'
|
|
|
|
module.exports = AnalyticsStringSchema
|