mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
33 lines
764 B
CoffeeScript
33 lines
764 B
CoffeeScript
c = require './../schemas'
|
|
|
|
module.exports =
|
|
EarnedAchievementSchema =
|
|
type: 'object'
|
|
default:
|
|
previouslyAchievedAmount: 0
|
|
|
|
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'
|
|
earnedPoints: type: 'number'
|
|
previouslyAchievedAmount: {type: 'number'}
|
|
notified: type: 'boolean'
|