codecombat/app/schemas/models/analytics_string.coffee
Matt Lott 3fd5f49220 Analytics data revamp
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.
2015-01-14 11:09:01 -08:00

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