Add new endpoint

This commit is contained in:
Mr Swift
2024-10-27 16:33:16 +03:30
parent 15ba0fab47
commit 03f9c164db
7 changed files with 202 additions and 27 deletions
+3 -4
View File
@@ -5,6 +5,9 @@ const RenewalSchema = mongoose.Schema({
type: String,
ref: 'Device'
},
IMEI: {
type: String,
},
renewDate: Date,
renewType: {
type: String,
@@ -20,10 +23,6 @@ const RenewalSchema = mongoose.Schema({
default: 0,
required: true
},
dollarProfit: {
type: Number,
min: 0
},
userId: {
type: String,
ref: 'UserGPS'