This commit is contained in:
Mr Swift
2024-08-06 17:24:42 +03:30
parent 629fb47a39
commit d4cffdb044
7 changed files with 128 additions and 13 deletions
+8 -3
View File
@@ -3,10 +3,10 @@ const mongoose = require('mongoose')
const BankSchema = mongoose.Schema({
holderName:String,
cardNumber:{
PAN:{
type:Number,
},
shabaNumber:{
IBAN:{
type:Number,
}
})
@@ -18,6 +18,10 @@ const WithdrawSchema = mongoose.Schema({
type:Number,
min:0
},
dollarAmount:{
type:Number,
min:0
},
userId:{
type:String,
ref:'User'
@@ -30,7 +34,8 @@ const WithdrawSchema = mongoose.Schema({
2, // deposited
]
},
depositDate:Date
depositDate:Date,
trackingNumber:String
})
module.exports = mongoose.model('Withdraw', WithdrawSchema)