mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
12 lines
417 B
CoffeeScript
12 lines
417 B
CoffeeScript
mongoose = require('mongoose')
|
|
|
|
ScoringTaskSchema = new mongoose.Schema(
|
|
calculator: {type:mongoose.Schema.Types.ObjectId}
|
|
sentDate: {type: Number}
|
|
messageIdentifierString: {type: String}
|
|
calculationTimeMS: {type: Number, default: 0}
|
|
sessions: {type: Array, default: []}
|
|
)
|
|
|
|
ScoringTaskSchema.set 'capped', 104857600 #100MB capped collection
|
|
module.exports = mongoose.model('scoringTask', ScoringTaskSchema)
|