mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
12 lines
438 B
CoffeeScript
12 lines
438 B
CoffeeScript
mongoose = require('mongoose')
|
|
|
|
ScoringTaskSchema = new mongoose.Schema(
|
|
createdAt: {type: Date, expires: 3600} #expire document 1 hour after they are created
|
|
calculator: {type:mongoose.Schema.Types.ObjectId}
|
|
sentDate: {type: Number}
|
|
messageIdentifierString: {type: String}
|
|
calculationTimeMS: {type: Number, default: 0}
|
|
sessions: {type: Array, default: []}
|
|
)
|
|
|
|
module.exports = mongoose.model('scoringTask', ScoringTaskSchema)
|