Split user
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
const BankSchema = mongoose.Schema({
|
||||
holderName:String,
|
||||
PAN:{
|
||||
type:Number,
|
||||
},
|
||||
IBAN:{
|
||||
type:String,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
const UserSchema = mongoose.Schema({
|
||||
// for admins
|
||||
@@ -54,31 +44,6 @@ const UserSchema = mongoose.Schema({
|
||||
last_name: String,
|
||||
password: String,
|
||||
|
||||
// for GPS
|
||||
profilePic:{
|
||||
type:String,
|
||||
default:"noPic"
|
||||
},
|
||||
shopName:String,
|
||||
shopNumber:String,
|
||||
shopAddress:String,
|
||||
birthDate:String,
|
||||
walletBalance:{
|
||||
type:Number,
|
||||
min:0,
|
||||
default:0
|
||||
},
|
||||
dollarBalance:{
|
||||
type:Number,
|
||||
min:0,
|
||||
default:0
|
||||
},
|
||||
score:{
|
||||
type:Number,
|
||||
min:0,
|
||||
default:0
|
||||
},
|
||||
cardBank:[BankSchema],
|
||||
|
||||
|
||||
/// //////////////////////////////// user confirmations
|
||||
|
||||
Reference in New Issue
Block a user