Expanded mongo model
This commit is contained in:
@@ -2,8 +2,14 @@ const mongoose = require('mongoose')
|
||||
|
||||
const scanResultSchema = new mongoose.Schema({
|
||||
name: String,
|
||||
fullName: String,
|
||||
url: String,
|
||||
partsPrice: Number,
|
||||
setPrice: Number
|
||||
setPrice: Number,
|
||||
difference: Number
|
||||
},
|
||||
{
|
||||
timestamps: true
|
||||
})
|
||||
|
||||
module.exports = mongoose.models.ScanResult || mongoose.model('ScanResult', scanResultSchema)
|
||||
|
||||
Reference in New Issue
Block a user