mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
15 lines
350 B
JavaScript
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);
|