Added a bunch of stuff

This commit is contained in:
Dobie Wollert
2015-08-05 06:03:02 -07:00
parent b4e727c0e6
commit fdc8727044
35 changed files with 1815 additions and 276 deletions

14
app/model/testRun.js Normal file
View File

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