-
Notifications
You must be signed in to change notification settings - Fork 0
/
bank.sql
112 lines (89 loc) · 2.84 KB
/
bank.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 15, 2020 at 08:17 AM
-- Server version: 8.0.18
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
--
-- Database: `bank`
--
-- --------------------------------------------------------
--
-- Table structure for table `customer_details`
--
CREATE TABLE `customer_details` (
`c_id` int(11) NOT NULL,
`c_name` varchar(255) NOT NULL,
`c_email` varchar(255) NOT NULL,
`c_balance` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Dumping data for table `customer_details`
--
INSERT INTO `customer_details` (`c_id`, `c_name`, `c_email`, `c_balance`) VALUES
(1, 'Vishesh Hasoriya', '[email protected]', 3300),
(2, 'Sagar Verma', '[email protected]', -164050),
(3, 'Ranjit Sharma', '[email protected]', 241000),
(4, 'Aditya Verma', '[email protected]', 9488),
(5, 'Raju Rastogi', '[email protected]', 15620),
(6, 'Sandhu Pari', '[email protected]', 21580),
(7, 'Vaish wakhre', 'Vasih23.com', 14000),
(8, 'Ayush Dalal', '[email protected]', 15000),
(9, 'Abhi Kohli', 'abhis.com', 19990),
(10, 'Ria singh', 'Ria123.com', 19000);
-- --------------------------------------------------------
--
-- Table structure for table `transfer_history`
--
CREATE TABLE `transfer_history` (
`t_id` int(11) NOT NULL,
`t_sender` varchar(255) NOT NULL,
`t_receiver` varchar(255) NOT NULL,
`t_amount` int(11) NOT NULL,
`t_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Dumping data for table `transfer_history`
--
INSERT INTO `transfer_history` (`t_id`, `t_sender`, `t_receiver`, `t_amount`, `t_time`) VALUES
(23, 'Ranjit Sharma', 'Sagar Verma', 300, '2020-11-13 14:50:30'),
(33, 'Vishesh Hasoriya', 'Sagar Verma', 10, '2020-11-13 16:06:53'),
(35, 'Vaish wakhre', 'Raju Rastogi', 4000, '2020-11-14 00:56:48'),
(36, 'Raju Rastogi', 'Ranjit Sharma', 500, '2020-11-14 01:16:46'),
(37, 'Raju Rastogi', 'Sandhu Pari', 600, '2020-11-14 01:21:12'),
(38, 'Vishesh Hasoriya', 'Aditya Verma', 300, '2020-11-15 13:19:42');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `customer_details`
--
ALTER TABLE `customer_details`
ADD PRIMARY KEY (`c_id`),
ADD UNIQUE KEY `c_name` (`c_name`),
ADD UNIQUE KEY `c_email` (`c_email`);
--
-- Indexes for table `transfer_history`
--
ALTER TABLE `transfer_history`
ADD PRIMARY KEY (`t_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `customer_details`
--
ALTER TABLE `customer_details`
MODIFY `c_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `transfer_history`
--
ALTER TABLE `transfer_history`
MODIFY `t_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
COMMIT;