INIT models

This commit is contained in:
Mr Swift
2024-08-05 15:25:30 +03:30
parent 5e46989357
commit f708d708d1
5 changed files with 40 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
const mongoose = require('mongoose')
const ScoreSchema = mongoose.Schema({
deviceId:{
type:String,
ref:'Device'
},
renewDate:Date,
renewType:{
type:String,
},
price:{
type:Number,
min:0
},
profit:{
type:Number,
min:0
},
dollarProfit:{
type:Number,
min:0
},
})
module.exports = mongoose.model('Score', ScoreSchema)