-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 19, 2024 at 03:06 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_nrbcbanking` -- -- -------------------------------------------------------- -- -- Table structure for table `tbl_account` -- CREATE TABLE `tbl_account` ( `account_number` int(11) NOT NULL, `branch_name` varchar(255) NOT NULL, `balance` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_account` -- INSERT INTO `tbl_account` (`account_number`, `branch_name`, `balance`) VALUES (260261181, 'Dhanmondi Branch', 3200000), (260264631, 'Uttara Branch', 300000), (260264632, 'Uttara Branch', 35020), (260270001, 'Head Office', 15600745), (260910181, 'Bateshwar Branch', 35000), (260910182, 'Bateshwar Branch', 200000), (260913501, 'Pathantula Sub Branch', 47000), (260913502, 'Pathantula Sub Branch', 124000), (260913551, 'Sylhet Branch', 300000), (260913552, 'Sylhet Branch', 23000), (260913731, 'Sylhet Upashahar Branch', 236000), (260913732, 'Sylhet Upashahar Branch', 560000); -- -------------------------------------------------------- -- -- Table structure for table `tbl_borrower` -- CREATE TABLE `tbl_borrower` ( `borrow_id` int(11) NOT NULL, `customer_id` int(11) NOT NULL, `loan_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_borrower` -- INSERT INTO `tbl_borrower` (`borrow_id`, `customer_id`, `loan_id`) VALUES (1, 100004, 2609111), (2, 100001, 2609121); -- -------------------------------------------------------- -- -- Table structure for table `tbl_branch` -- CREATE TABLE `tbl_branch` ( `branch_name` varchar(255) NOT NULL, `branch_city` varchar(255) NOT NULL, `assets` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_branch` -- INSERT INTO `tbl_branch` (`branch_name`, `branch_city`, `assets`) VALUES ('Bateshwar Branch', 'Sylhet', 10000000), ('Dhanmondi Branch', 'Dhaka', 30000000), ('Head Office', 'Dhaka', 30000000), ('Pathantula Sub Branch', 'Sylhet', 25000000), ('Sylhet Branch', 'Sylhet', 20000000), ('Sylhet Upashahar Branch', 'Sylhet', 9500000), ('Uttara Branch', 'Dhaka', 20000000); -- -------------------------------------------------------- -- -- Table structure for table `tbl_customer` -- CREATE TABLE `tbl_customer` ( `customer_id` int(11) NOT NULL, `customer_name` varchar(255) NOT NULL, `street` varchar(255) NOT NULL, `customer_city` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_customer` -- INSERT INTO `tbl_customer` (`customer_id`, `customer_name`, `street`, `customer_city`) VALUES (100001, 'Chowdhury', 'Amborkhana', 'Sylhet'), (100002, 'Billah', 'Botesshor', 'Sylhet'), (100003, 'Syeda', 'Tilagor', 'Sylhet'), (100004, 'Hoque', 'Nowapara', 'Sylhet'), (100005, 'Khan', 'Shahporan', 'Sylhet'), (100006, 'Ahmed', 'Shahporan', 'Sylhet'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_depositor` -- CREATE TABLE `tbl_depositor` ( `deposit_id` int(11) NOT NULL, `customer_id` int(11) NOT NULL, `account_number` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_depositor` -- INSERT INTO `tbl_depositor` (`deposit_id`, `customer_id`, `account_number`) VALUES (1, 100001, 260913551), (2, 100001, 260913732), (3, 100001, 260913501), (4, 100001, 260910181), (5, 100002, 260261181), (6, 100002, 260270001), (7, 100002, 260913502), (8, 100003, 260264631), (9, 100004, 260264632), (10, 100005, 260910182), (11, 100005, 260913552), (12, 100006, 260913731); -- -------------------------------------------------------- -- -- Table structure for table `tbl_loan` -- CREATE TABLE `tbl_loan` ( `loan_id` int(11) NOT NULL, `branch_name` varchar(255) NOT NULL, `amount` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_loan` -- INSERT INTO `tbl_loan` (`loan_id`, `branch_name`, `amount`) VALUES (2609111, 'Sylhet Branch', 10000000), (2609121, 'Pathantula Sub Branch', 950000); -- -- Indexes for dumped tables -- -- -- Indexes for table `tbl_account` -- ALTER TABLE `tbl_account` ADD PRIMARY KEY (`account_number`); -- -- Indexes for table `tbl_borrower` -- ALTER TABLE `tbl_borrower` ADD PRIMARY KEY (`borrow_id`); -- -- Indexes for table `tbl_branch` -- ALTER TABLE `tbl_branch` ADD PRIMARY KEY (`branch_name`); -- -- Indexes for table `tbl_customer` -- ALTER TABLE `tbl_customer` ADD PRIMARY KEY (`customer_id`); -- -- Indexes for table `tbl_depositor` -- ALTER TABLE `tbl_depositor` ADD PRIMARY KEY (`deposit_id`); -- -- Indexes for table `tbl_loan` -- ALTER TABLE `tbl_loan` ADD PRIMARY KEY (`loan_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tbl_borrower` -- ALTER TABLE `tbl_borrower` MODIFY `borrow_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_depositor` -- ALTER TABLE `tbl_depositor` MODIFY `deposit_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;