codecombat/app/schemas/models/analytics_log_event.coffee
2014-12-15 11:45:12 -08:00

16 lines
476 B
CoffeeScript

c = require './../schemas'
AnalyticsLogEventSchema = c.object {
title: 'Analytics Log Event'
description: 'Analytics event logs.'
}
_.extend AnalyticsLogEventSchema.properties,
created: c.date({title: 'Created', readOnly: true})
user: c.objectId(links: [{rel: 'extra', href: '/db/user/{($)}'}])
event: {type: 'string'}
properties: {type: 'object'}
c.extendBasicProperties AnalyticsLogEventSchema, 'analytics.log.event'
module.exports = AnalyticsLogEventSchema