Files
asan-service/server/models/GPS.InstalledDevice.js
T
2024-08-22 13:58:09 +03:30

27 lines
535 B
JavaScript

const mongoose = require('mongoose')
const InstalledDeviceSchema = mongoose.Schema({
deviceId: {
type: String,
ref: "Device"
},
IMEI:String,
status: {
type: Number,
enum: [
0, // Pending
1, // Accepted
2, // Rejected
],
default: 0
},
registerDate: Date,
installationDate: Date,
userId: {
type: String,
ref: 'UserGPS'
},
})
module.exports = mongoose.model('InstalledDevice', InstalledDeviceSchema)