Files
asan-service/server/models/GPS.InstalledDevice.js
T
morteza-mortezai 536944c51d up
2025-12-03 14:58:44 +03:30

40 lines
643 B
JavaScript

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