mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-12 08:41:46 -05:00
34 lines
No EOL
673 B
CoffeeScript
34 lines
No EOL
673 B
CoffeeScript
c = require './../schemas'
|
|
|
|
module.exports =
|
|
EarnedAchievementSchema =
|
|
type: 'object'
|
|
properties:
|
|
user: c.objectId
|
|
links:
|
|
[
|
|
{
|
|
rel: 'extra'
|
|
href: "/db/user/{($)}"
|
|
}
|
|
]
|
|
achievement: c.objectId
|
|
links:
|
|
[
|
|
{
|
|
rel: 'extra'
|
|
href: '/db/achievement/{($)}'
|
|
}
|
|
]
|
|
collection:
|
|
type: 'string'
|
|
achievementName:
|
|
type: 'string'
|
|
created:
|
|
type: 'date'
|
|
changed:
|
|
type: 'date'
|
|
achievedAmount:
|
|
type: 'number'
|
|
notified:
|
|
type: 'boolean' |