2014-05-13 16:46:56 -04:00
|
|
|
c = require './../schemas'
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
EarnedAchievementSchema =
|
|
|
|
type: 'object'
|
2014-08-23 18:51:59 -04:00
|
|
|
default:
|
|
|
|
previouslyAchievedAmount: 0
|
|
|
|
|
2014-05-13 16:46:56 -04:00
|
|
|
properties:
|
|
|
|
user: c.objectId
|
|
|
|
links:
|
|
|
|
[
|
|
|
|
{
|
|
|
|
rel: 'extra'
|
2014-06-30 22:16:26 -04:00
|
|
|
href: '/db/user/{($)}'
|
2014-05-13 16:46:56 -04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
achievement: c.objectId
|
|
|
|
links:
|
|
|
|
[
|
|
|
|
{
|
|
|
|
rel: 'extra'
|
2014-05-19 19:25:41 -04:00
|
|
|
href: '/db/achievement/{($)}'
|
2014-05-13 16:46:56 -04:00
|
|
|
}
|
|
|
|
]
|
2014-06-03 06:40:47 -04:00
|
|
|
collection: type: 'string'
|
|
|
|
achievementName: type: 'string'
|
|
|
|
created: type: 'date'
|
|
|
|
changed: type: 'date'
|
|
|
|
achievedAmount: type: 'number'
|
2014-06-03 16:54:56 -04:00
|
|
|
earnedPoints: type: 'number'
|
2014-08-23 18:51:59 -04:00
|
|
|
previouslyAchievedAmount: {type: 'number'}
|
2014-06-03 06:40:47 -04:00
|
|
|
notified: type: 'boolean'
|