InstalledDevice

This commit is contained in:
Mr Swift
2024-08-05 15:05:31 +03:30
parent 0630702505
commit 5e46989357
2 changed files with 22 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
const mongoose = require('mongoose')
const InstalledDeviceSchema = mongoose.Schema({
deviceId:{
type:String,
ref:"Device"
},
status:{
type:Number,
enum:[
0, // Pending
1, // Accepted
2, // Rejected
]
},
registerDate:Date,
installationDate:Date
})
module.exports = mongoose.model('InstalledDevice', InstalledDeviceSchema)