forked from Dhaarini6300/Basic-Banking-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spark.sql
117 lines (96 loc) · 2.95 KB
/
spark.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
111
112
113
114
115
116
117
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 20, 2021 at 03:50 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `spark`
--
-- --------------------------------------------------------
--
-- Table structure for table `transaction`
--
CREATE TABLE `transaction` (
`sno` int(3) NOT NULL,
`sender` text NOT NULL,
`receiver` text NOT NULL,
`balance` int(8) NOT NULL,
`datetime` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `transaction`
--
INSERT INTO `transaction` (`sno`, `sender`, `receiver`, `balance`, `datetime`) VALUES
(1, 'Dafny', 'Bharath', 3456, '2021-03-20 06:46:25'),
(2, 'Bharath', 'Ram', 23634, '2021-03-20 05:19:00'),
(3, 'Iswarya', 'Dafny', 23880, '2021-03-20 04:50:25'),
(4, 'Priya', 'Raj', 12000, '2021-03-20 03:19:15'),
(5, 'Ramya', 'Dhaarini', 53020, '2021-03-20 06:19:25'),
(6, 'Ramya', 'Kavya', 53020, '2021-03-20 06:19:25'),
(7, 'Kavya', 'Iswarya', 23400, '2021-03-20 06:23:46'),
(8, 'Ram', 'Dafny', 85000, '2021-03-20 06:25:07'),
(9, 'Iswarya', 'Kavya', 450, '2021-03-20 17:34:14');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(3) NOT NULL,
`name` text NOT NULL,
`email` varchar(30) NOT NULL,
`balance` int(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `balance`) VALUES
(1, 'Dhaarini', '[email protected]', 6632),
(2, 'Akshaya', '[email protected]', 87400),
(3, 'Dafny', '[email protected]', 3456),
(4, 'Bharath', '[email protected]', 23868),
(5, 'Iswarya', '[email protected]', 23430),
(6, 'Priya', '[email protected]', 12000),
(7, 'Ramya', '[email protected]', 53020),
(8, 'Kavya', '[email protected]', 23850),
(9, 'Ram', '[email protected]', 85000),
(10, 'Raj', '[email protected]', 7320);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `transaction`
--
ALTER TABLE `transaction`
ADD PRIMARY KEY (`sno`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `transaction`
--
ALTER TABLE `transaction`
MODIFY `sno` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
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 */;