Migrate to yarn
This commit is contained in:
15
shared-stuff/models/ScanResult.ts
Normal file
15
shared-stuff/models/ScanResult.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import mongoose from 'mongoose'
|
||||
|
||||
const scanResultSchema = new mongoose.Schema({
|
||||
name: String,
|
||||
fullName: String,
|
||||
url: String,
|
||||
partsPrice: Number,
|
||||
setPrice: Number,
|
||||
difference: Number
|
||||
},
|
||||
{
|
||||
timestamps: true
|
||||
})
|
||||
|
||||
export default mongoose.models.ScanResult || mongoose.model('ScanResult', scanResultSchema)
|
||||
Reference in New Issue
Block a user