Expanded mongo model

This commit is contained in:
2022-03-14 01:41:52 +03:00
parent beb5ff052f
commit 946a9afeac
5 changed files with 38 additions and 14 deletions

View File

@@ -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)