Device Controller

This commit is contained in:
Mr Swift
2024-08-07 13:26:20 +03:30
parent a3a54a0d83
commit d2c4bd4a30
9 changed files with 158 additions and 13 deletions
+7 -3
View File
@@ -4,14 +4,14 @@ const deviceSchema = mongoose.Schema({
model:String,
IMEI:{
type:String,
unique:true
unique:[true,"این ایدی در سامانه موجود است"]
},
dollarPrice:{
tomanPrice:{
type:Number,
min:0,
default:0
},
tomanPrice:{
dollarProfit:{
type:Number,
min:0,
default:0
@@ -25,6 +25,10 @@ const deviceSchema = mongoose.Schema({
type:Number,
min:0
},
renewalProfit:{
type:Number,
min:0
},
status:{
type:Number,
enum:[