-
Notifications
You must be signed in to change notification settings - Fork 109
/
myhmsdb.sql
executable file
·237 lines (196 loc) · 8.41 KB
/
myhmsdb.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 16, 2020 at 02:34 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.4
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: `myhmsdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `admintb`
--
CREATE TABLE `admintb` (
`username` varchar(50) NOT NULL,
`password` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admintb`
--
INSERT INTO `admintb` (`username`, `password`) VALUES
('admin', 'admin123');
-- --------------------------------------------------------
--
-- Table structure for table `appointmenttb`
--
CREATE TABLE `appointmenttb` (
`pid` int(11) NOT NULL,
`ID` int(11) NOT NULL,
`fname` varchar(20) NOT NULL,
`lname` varchar(20) NOT NULL,
`gender` varchar(10) NOT NULL,
`email` varchar(30) NOT NULL,
`contact` varchar(10) NOT NULL,
`doctor` varchar(30) NOT NULL,
`docFees` int(5) NOT NULL,
`appdate` date NOT NULL,
`apptime` time NOT NULL,
`userStatus` int(5) NOT NULL,
`doctorStatus` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `appointmenttb`
--
INSERT INTO `appointmenttb` (`pid`, `ID`, `fname`, `lname`, `gender`, `email`, `contact`, `doctor`, `docFees`, `appdate`, `apptime`, `userStatus`, `doctorStatus`) VALUES
(4, 1, 'Kishan', 'Lal', 'Male', '[email protected]', '8838489464', 'Ganesh', 550, '2020-02-14', '10:00:00', 1, 0),
(4, 2, 'Kishan', 'Lal', 'Male', '[email protected]', '8838489464', 'Dinesh', 700, '2020-02-28', '10:00:00', 0, 1),
(4, 3, 'Kishan', 'Lal', 'Male', '[email protected]', '8838489464', 'Amit', 1000, '2020-02-19', '03:00:00', 0, 1),
(11, 4, 'Shraddha', 'Kapoor', 'Female', '[email protected]', '9768946252', 'ashok', 500, '2020-02-29', '20:00:00', 1, 1),
(4, 5, 'Kishan', 'Lal', 'Male', '[email protected]', '8838489464', 'Dinesh', 700, '2020-02-28', '12:00:00', 1, 1),
(4, 6, 'Kishan', 'Lal', 'Male', '[email protected]', '8838489464', 'Ganesh', 550, '2020-02-26', '15:00:00', 0, 1),
(2, 8, 'Alia', 'Bhatt', 'Female', '[email protected]', '8976897689', 'Ganesh', 550, '2020-03-21', '10:00:00', 1, 1),
(5, 9, 'Gautam', 'Shankararam', 'Male', '[email protected]', '9070897653', 'Ganesh', 550, '2020-03-19', '20:00:00', 1, 0),
(4, 10, 'Kishan', 'Lal', 'Male', '[email protected]', '8838489464', 'Ganesh', 550, '0000-00-00', '14:00:00', 1, 0),
(4, 11, 'Kishan', 'Lal', 'Male', '[email protected]', '8838489464', 'Dinesh', 700, '2020-03-27', '15:00:00', 1, 1),
(9, 12, 'William', 'Blake', 'Male', '[email protected]', '8683619153', 'Kumar', 800, '2020-03-26', '12:00:00', 1, 1),
(9, 13, 'William', 'Blake', 'Male', '[email protected]', '8683619153', 'Tiwary', 450, '2020-03-26', '14:00:00', 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `contact`
--
CREATE TABLE `contact` (
`name` varchar(30) NOT NULL,
`email` text NOT NULL,
`contact` varchar(10) NOT NULL,
`message` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `contact`
--
INSERT INTO `contact` (`name`, `email`, `contact`, `message`) VALUES
('Anu', '[email protected]', '7896677554', 'Hey Admin'),
(' Viki', '[email protected]', '9899778865', 'Good Job, Pal'),
('Ananya', '[email protected]', '9997888879', 'How can I reach you?'),
('Aakash', '[email protected]', '8788979967', 'Love your site'),
('Mani', '[email protected]', '8977768978', 'Want some coffee?'),
('Karthick', '[email protected]', '9898989898', 'Good service'),
('Abbis', '[email protected]', '8979776868', 'Love your service'),
('Asiq', '[email protected]', '9087897564', 'Love your service. Thank you!'),
('Jane', '[email protected]', '7869869757', 'I love your service!');
-- --------------------------------------------------------
--
-- Table structure for table `doctb`
--
CREATE TABLE `doctb` (
`username` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`spec` varchar(50) NOT NULL,
`docFees` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `doctb`
--
INSERT INTO `doctb` (`username`, `password`, `email`, `spec`, `docFees`) VALUES
('ashok', 'ashok123', '[email protected]', 'General', 500),
('arun', 'arun123', '[email protected]', 'Cardiologist', 600),
('Dinesh', 'dinesh123', '[email protected]', 'General', 700),
('Ganesh', 'ganesh123', '[email protected]', 'Pediatrician', 550),
('Kumar', 'kumar123', '[email protected]', 'Pediatrician', 800),
('Amit', 'amit123', '[email protected]', 'Cardiologist', 1000),
('Abbis', 'abbis123', '[email protected]', 'Neurologist', 1500),
('Tiwary', 'tiwary123', '[email protected]', 'Pediatrician', 450);
-- --------------------------------------------------------
--
-- Table structure for table `patreg`
--
CREATE TABLE `patreg` (
`pid` int(11) NOT NULL,
`fname` varchar(20) NOT NULL,
`lname` varchar(20) NOT NULL,
`gender` varchar(10) NOT NULL,
`email` varchar(30) NOT NULL,
`contact` varchar(10) NOT NULL,
`password` varchar(30) NOT NULL,
`cpassword` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `patreg`
--
INSERT INTO `patreg` (`pid`, `fname`, `lname`, `gender`, `email`, `contact`, `password`, `cpassword`) VALUES
(1, 'Ram', 'Kumar', 'Male', '[email protected]', '9876543210', 'ram123', 'ram123'),
(2, 'Alia', 'Bhatt', 'Female', '[email protected]', '8976897689', 'alia123', 'alia123'),
(3, 'Shahrukh', 'khan', 'Male', '[email protected]', '8976898463', 'shahrukh123', 'shahrukh123'),
(4, 'Kishan', 'Lal', 'Male', '[email protected]', '8838489464', 'kishan123', 'kishan123'),
(5, 'Gautam', 'Shankararam', 'Male', '[email protected]', '9070897653', 'gautam123', 'gautam123'),
(6, 'Sushant', 'Singh', 'Male', '[email protected]', '9059986865', 'sushant123', 'sushant123'),
(7, 'Nancy', 'Deborah', 'Female', '[email protected]', '9128972454', 'nancy123', 'nancy123'),
(8, 'Kenny', 'Sebastian', 'Male', '[email protected]', '9809879868', 'kenny123', 'kenny123'),
(9, 'William', 'Blake', 'Male', '[email protected]', '8683619153', 'william123', 'william123'),
(10, 'Peter', 'Norvig', 'Male', '[email protected]', '9609362815', 'peter123', 'peter123'),
(11, 'Shraddha', 'Kapoor', 'Female', '[email protected]', '9768946252', 'shraddha123', 'shraddha123');
-- --------------------------------------------------------
--
-- Table structure for table `prestb`
--
CREATE TABLE `prestb` (
`doctor` varchar(50) NOT NULL,
`pid` int(11) NOT NULL,
`ID` int(11) NOT NULL,
`fname` varchar(50) NOT NULL,
`lname` varchar(50) NOT NULL,
`appdate` date NOT NULL,
`apptime` time NOT NULL,
`disease` varchar(250) NOT NULL,
`allergy` varchar(250) NOT NULL,
`prescription` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `prestb`
--
INSERT INTO `prestb` (`doctor`, `pid`, `ID`, `fname`, `lname`, `appdate`, `apptime`, `disease`, `allergy`, `prescription`) VALUES
('Dinesh', 4, 11, 'Kishan', 'Lal', '2020-03-27', '15:00:00', 'Cough', 'Nothing', 'Just take a teaspoon of Benadryl every night'),
('Ganesh', 2, 8, 'Alia', 'Bhatt', '2020-03-21', '10:00:00', 'Severe Fever', 'Nothing', 'Take bed rest'),
('Kumar', 9, 12, 'William', 'Blake', '2020-03-26', '12:00:00', 'Sever fever', 'nothing', 'Paracetamol -> 1 every morning and night'),
('Tiwary', 9, 13, 'William', 'Blake', '2020-03-26', '14:00:00', 'Cough', 'Skin dryness', 'Intake fruits with more water content');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `appointmenttb`
--
ALTER TABLE `appointmenttb`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `patreg`
--
ALTER TABLE `patreg`
ADD PRIMARY KEY (`pid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `appointmenttb`
--
ALTER TABLE `appointmenttb`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `patreg`
--
ALTER TABLE `patreg`
MODIFY `pid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
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 */;