'use strict';

var mongoose = require('mongoose');

var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var runSchema = new Schema({
    time: Date,
    participants: [ String ],
    results: [{
        season: Number,
        fishStart: Number,
        fishEnd: Number,
        groupRestraint: Number,
        groupEfficiency: Number,
        fishers: [{
            name: String,
            type: {type: String},
            fishTaken: Number,
            profit: Number,
            greed: Number,
            individualRestraint: Number,
            individualEfficiency: Number
        }]
    }],
    log: [ String ],
    microworld: {}
});

exports.Run = mongoose.model('Run', runSchema);

'use strict';

var mongoose = require('mongoose');

var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var runSchema = new Schema({
    time: Date,
    participants: [ String ],
    results: [{
        season: Number,
        fishStart: Number,
        fishEnd: Number,
        groupRestraint: Number,
        groupEfficiency: Number,
        fishers: [{
            name: String,
            type: {type: String},
            fishTaken: Number,
            profit: Number,
            greed: Number,
            greedSpread: Number,
            individualRestraint: Number,
            individualEfficiency: Number
        }]
    }],
    log: [ String ],
    microworld: {}
});

exports.Run = mongoose.model('Run', runSchema);

Add greedSpread to Run Model
Add greedSpread to Run Model
