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