mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 03:23:42 -05:00
9131d8668f
Will add a prepaid purchase once the prepaid-v2 branch is merged into master.
17 lines
596 B
CoffeeScript
17 lines
596 B
CoffeeScript
mongoose = require 'mongoose'
|
|
config = require '../../server_config'
|
|
plugins = require '../plugins/plugins'
|
|
jsonSchema = require '../../app/schemas/models/course_instance.schema'
|
|
|
|
CourseInstanceSchema = new mongoose.Schema {}, {strict: false, minimize: false, read:config.mongo.readpref}
|
|
|
|
CourseInstanceSchema.statics.privateProperties = []
|
|
CourseInstanceSchema.statics.editableProperties = [
|
|
'description'
|
|
'members'
|
|
'name'
|
|
]
|
|
|
|
CourseInstanceSchema.statics.jsonSchema = jsonSchema
|
|
|
|
module.exports = CourseInstance = mongoose.model 'course.instance', CourseInstanceSchema, 'course.instances'
|