Files
biomedjs/app/model/testRun.js
Dobie Wollert f097af33f5 tweaks
2015-12-28 03:35:59 -08:00

15 lines
350 B
JavaScript

var mongoose = require('mongoose')
Schema = mongoose.Schema,
ObjectId = Schema.ObjectId;
var testRunSchema = new Schema({
device: { type: ObjectId, ref: 'Device' },
fields: [{}],
date: Date,
result: Boolean,
comments: String,
deleted: { type: Boolean, default: false }
});
module.exports = mongoose.model('TestRun', testRunSchema);