Card bank & wallet
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
const BankSchema = mongoose.Schema({
|
||||
holderName:String,
|
||||
cardNumber:{
|
||||
type:Number,
|
||||
},
|
||||
shabaNumber:{
|
||||
type:Number,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
const UserSchema = mongoose.Schema({
|
||||
// for admins
|
||||
_creator: { type: mongoose.ObjectId, ref: 'User' },
|
||||
@@ -49,6 +60,7 @@ const UserSchema = mongoose.Schema({
|
||||
shopAddress:String,
|
||||
birthDate:String,
|
||||
walletBalance:String,
|
||||
cardBank:[BankSchema],
|
||||
|
||||
|
||||
/// //////////////////////////////// user confirmations
|
||||
|
||||
Reference in New Issue
Block a user