InstalledDevice
This commit is contained in:
@@ -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)
|
||||||
@@ -26,7 +26,8 @@ const WithdrawSchema = mongoose.Schema({
|
|||||||
1, // Accepted
|
1, // Accepted
|
||||||
2, // deposited
|
2, // deposited
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
depositDate:Date
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = mongoose.model('Withdraw', WithdrawSchema)
|
module.exports = mongoose.model('Withdraw', WithdrawSchema)
|
||||||
|
|||||||
Reference in New Issue
Block a user