mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
19 lines
485 B
JavaScript
19 lines
485 B
JavaScript
var mongoose = require('mongoose')
|
|
Schema = mongoose.Schema,
|
|
ObjectId = Schema.ObjectId;
|
|
|
|
var deviceTypeSchema = new Schema({
|
|
category: String,
|
|
make: String,
|
|
model: String,
|
|
technicalData: String,
|
|
links: String,
|
|
partsRecommended: String,
|
|
testEquipmentRecommended: String,
|
|
images: [{ type: String }],
|
|
checkList: { type: ObjectId, ref: 'CheckList' },
|
|
deleted: { type: Boolean, default: false }
|
|
});
|
|
|
|
module.exports = mongoose.model('DeviceType', deviceTypeSchema);
|