withdraw
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user