latest changes

This commit is contained in:
Dobie Wollert
2015-07-19 21:31:10 -04:00
parent 4496b9c240
commit 24f4acc1d3
15 changed files with 671 additions and 13 deletions

16
app/model/device.js Normal file
View File

@ -0,0 +1,16 @@
var mongoose = require('mongoose')
Schema = mongoose.Schema,
ObjectId = Schema.ObjectId;
var deviceSchema = new Schema({
deviceType: String,
make: String,
model: String,
technicalData: String,
links: String,
partsRecommended: String,
images: [{ type: String }],
deleted: { type: Boolean, default: false }
});
module.exports = mongoose.model('Device', deviceSchema);