mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 00:28:31 -05:00
17 lines
464 B
CoffeeScript
17 lines
464 B
CoffeeScript
|
c = require './../schemas'
|
||
|
|
||
|
AnalyticsUsersActiveSchema = c.object {
|
||
|
title: 'Analytics Users Active'
|
||
|
description: 'Active users data.'
|
||
|
}
|
||
|
|
||
|
_.extend AnalyticsUsersActiveSchema.properties,
|
||
|
creator: c.objectId(links: [{rel: 'extra', href: '/db/user/{($)}'}])
|
||
|
created: c.date({title: 'Created', readOnly: true})
|
||
|
|
||
|
event: {type: 'string'}
|
||
|
|
||
|
c.extendBasicProperties AnalyticsUsersActiveSchema, 'analytics.users.active'
|
||
|
|
||
|
module.exports = AnalyticsUsersActiveSchema
|