From 629fb47a396ac7111b49dec3ce62227078ce13b1 Mon Sep 17 00:00:00 2001 From: Mr Swift Date: Mon, 5 Aug 2024 19:28:03 +0330 Subject: [PATCH] withdraw --- server/controllers/GPS.Withdraw.js | 6 ++++++ server/models/GPS.Withdraw.js | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 server/controllers/GPS.Withdraw.js diff --git a/server/controllers/GPS.Withdraw.js b/server/controllers/GPS.Withdraw.js new file mode 100644 index 0000000..fb3d145 --- /dev/null +++ b/server/controllers/GPS.Withdraw.js @@ -0,0 +1,6 @@ +const { body, param, validationResult } = require('express-validator'); +const { _sr } = require('../plugins/serverResponses'); +const { checkValidations } = require('../plugins/controllersHelperFunctions'); +const User = require('../models/User'); +const Withdraw = require('../models/GPS.Withdraw'); + diff --git a/server/models/GPS.Withdraw.js b/server/models/GPS.Withdraw.js index 475d156..13ac0e6 100644 --- a/server/models/GPS.Withdraw.js +++ b/server/models/GPS.Withdraw.js @@ -1,4 +1,6 @@ const mongoose = require('mongoose') + + const BankSchema = mongoose.Schema({ holderName:String, cardNumber:{ @@ -9,6 +11,7 @@ const BankSchema = mongoose.Schema({ } }) +/// ///////////////////////////////////////////////////// const WithdrawSchema = mongoose.Schema({ card:BankSchema, amount:{