npm workspace integration
This commit is contained in:
9
shared-stuff/models/ScanResult.js
Normal file
9
shared-stuff/models/ScanResult.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
const scanResultSchema = new mongoose.Schema({
|
||||
name: String,
|
||||
partsPrice: Number,
|
||||
setPrice: Number
|
||||
})
|
||||
|
||||
module.exports = mongoose.models.ScanResult || mongoose.model('ScanResult', scanResultSchema)
|
||||
Reference in New Issue
Block a user