codecombat/server/levels/drafts/LevelDraft.coffee

9 lines
246 B
CoffeeScript
Raw Normal View History

2014-01-03 13:32:13 -05:00
mongoose = require('mongoose')
Level = require('../Level')
2014-01-03 13:32:13 -05:00
LevelDraftSchema = new mongoose.Schema(
user: {type: mongoose.Schema.ObjectId, ref: 'User'}
level: {}
)
module.exports = LevelDraft = mongoose.model('level.draft', LevelDraftSchema)