update: remove dollor from wallet and unit

This commit is contained in:
mahyargdz
2024-12-30 16:03:02 +03:30
parent 0d8ba394b1
commit cd61741d06
13 changed files with 462 additions and 490 deletions
+30 -31
View File
@@ -1,41 +1,40 @@
const mongoose = require('mongoose')
const BankSchema = mongoose.Schema({
holderName: String,
PAN: {
type: Number,
},
IBAN: {
type: String,
}
holderName: String,
PAN: {
type: Number
},
IBAN: {
type: String
}
})
/// /////////////////////////////////////////////////////
const WithdrawSchema = mongoose.Schema({
card: BankSchema,
amount: {
type: Number,
min: 0
},
dollarAmount: {
type: Number,
min: 0
},
userId: {
type: String,
ref: 'UserGPS'
},
status: {
type: Number,
enum: [
0, // Pending
1, // Accepted
2, // deposited
]
},
depositDate: Date,
trackingNumber: String
card: BankSchema,
amount: {
type: Number,
min: 0
},
// dollarAmount: {
// type: Number,
// min: 0
// },
userId: {
type: String,
ref: 'UserGPS'
},
status: {
type: Number,
enum: [
0, // Pending
1, // Accepted
2 // deposited
]
},
depositDate: Date,
trackingNumber: String
})
module.exports = mongoose.model('Withdraw', WithdrawSchema)