var mongoose = require('mongoose');

var hitSchema = mongoose.Schema({
    name: String,
    condition: { 
        // i.e. basic, training, fast
        firstTask: String,
        // Note that 'feedback' is extra decoration on top of 
        // a task, so specifying this condition will pair it based on
        // the firstTask. If firstTask is 'fast', the feedback will be
        // paired with the fast design; otherwise, it is paired with
        // the basic design 
        laterTasks:String  // i.e. basic, feedback, training, fast
    },
    type: String, // e.g. Image tagging
    items: [Number],
    // The name of the model for items, e.g. 'pin'.
    // Should correspond to a mondel in models/{{itemModel}}.js
    itemModel: String,
    setsPerItem: Number,
    maxSetSize: Number,
    // Used for estimating how long the task will take
    // Not used for the 'fast' condition, because the timer
    // time is the best estimate
    itemTimeEstimate: Number,
    // Specifies the task-completion timer in 'fast' condition
    timer: { type: Number, default: null },
});

var Hit = mongoose.connection.model('Hit', hitSchema);

module.exports = Hit; 

@@ -541,16 +541,316 @@
 %0A    %7D,%0A
+    payment: Number, // In dollars%0A    // Bonus, in dollars%0A    bonus: %7B%0A        task:Number,%0A        // Nth array value corresponds to Nth task item. Last value will%0A        // repeat if there are more items (so a constant bonus would be%0A        // an array of length 1%0A        item:%5BNumber%5D%0A    %7D,%0A
     type
@@ -1373,17 +1373,16 @@
 : null %7D
-,
 %0A%7D);%0A%0Ava

Add payment info to db representation of HIT