codecombat/server/achievements/EarnedAchievement.coffee

16 lines
No EOL
408 B
CoffeeScript

mongoose = require 'mongoose'
jsonschema = require '../../app/schemas/models/earned_achievement'
EarnedAchievementSchema = new mongoose.Schema({
created:
type: Date
default: Date.now
changed:
type: Date
default: Date.now
notified:
type: Boolean
default: false
}, {strict:false})
module.exports = EarnedAchievement = mongoose.model('EarnedAchievement', EarnedAchievementSchema)