mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
16 lines
476 B
CoffeeScript
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
|