codecombat/app/schemas/models/earned_achievement.coffee

34 lines
673 B
CoffeeScript
Raw Normal View History

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'
2014-05-18 15:14:22 -04:00
changed:
type: 'date'
achievedAmount:
type: 'number'
notified:
type: 'boolean'