mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-25 06:52:21 -05:00
c5977c00fe
We’ll remove the old long fields after we’ve got enough data to switch over our analytics queries without complication.
20 lines
635 B
CoffeeScript
20 lines
635 B
CoffeeScript
c = require './../schemas'
|
|
|
|
AnalyticsLogEventSchema = c.object {
|
|
title: 'Analytics Log Event'
|
|
description: 'Analytics event logs.'
|
|
}
|
|
|
|
_.extend AnalyticsLogEventSchema.properties,
|
|
u: c.objectId(links: [{rel: 'extra', href: '/db/user/{($)}'}])
|
|
e: {type: 'integer'}
|
|
p: {type: 'object'}
|
|
|
|
# TODO: Remove these legacy properties after we stop querying for them (probably 30 days, ~2/16/15)
|
|
user: c.objectId(links: [{rel: 'extra', href: '/db/user/{($)}'}])
|
|
event: {type: 'string'}
|
|
properties: {type: 'object'}
|
|
|
|
c.extendBasicProperties AnalyticsLogEventSchema, 'analytics.log.event'
|
|
|
|
module.exports = AnalyticsLogEventSchema
|