-
Notifications
You must be signed in to change notification settings - Fork 1
/
medical.sql
259 lines (216 loc) · 7.3 KB
/
medical.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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
-- phpMyAdmin SQL Dump
-- version 4.4.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Aug 15, 2016 at 09:35 PM
-- Server version: 5.6.25
-- PHP Version: 5.6.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `ru_medical`
--
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
CREATE TABLE IF NOT EXISTS `departments` (
`id` int(5) NOT NULL,
`name` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `doctors`
--
CREATE TABLE IF NOT EXISTS `doctors` (
`id` int(5) NOT NULL,
`name` text NOT NULL,
`phone` text NOT NULL,
`email` text NOT NULL,
`dept` text NOT NULL,
`institute` text NOT NULL,
`degree` text NOT NULL,
`room` int(5) NOT NULL,
`time` text NOT NULL,
`day` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `doctors`
--
INSERT INTO `doctors` (`id`, `name`, `phone`, `email`, `dept`, `institute`, `degree`, `room`, `time`, `day`) VALUES
(1, 'Rafiq', '03583459345', 'sdfh@azmol.net', 'Eye Speacialist', 'RMC', 'MBBS', 0, '09:00-12:00', 'Sunday, Tuesday, Friday'),
(2, 'Rafiq', '03583459345', 'sdfh@azmol.net', 'Eye Speacialist', 'RMC', 'MBBS', 107, '09:00-12:00', 'Sunday, Tuesday, Friday'),
(3, 'Rafiq', '03583459345', 'sdfh@azmol.net', 'Eye Speacialist', 'RMC', 'MBBS', 109, '09:00-12:00', 'Sunday, Tuesday, Friday');
-- --------------------------------------------------------
--
-- Table structure for table `employee`
--
CREATE TABLE IF NOT EXISTS `employee` (
`id` int(5) NOT NULL,
`name` text NOT NULL,
`phone` text NOT NULL,
`email` text NOT NULL,
`position` text NOT NULL,
`time` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `instruments`
--
CREATE TABLE IF NOT EXISTS `instruments` (
`id` int(9) NOT NULL,
`name` text NOT NULL,
`quantity` int(9) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `instruments`
--
INSERT INTO `instruments` (`id`, `name`, `quantity`) VALUES
(1, 'Ambulance', 2),
(2, 'Bed', 5),
(3, 'Chair', 50),
(4, 'Table', 30);
-- --------------------------------------------------------
--
-- Table structure for table `patients`
--
CREATE TABLE IF NOT EXISTS `patients` (
`id` int(9) NOT NULL,
`name` text NOT NULL,
`age` int(3) NOT NULL,
`phone` text NOT NULL,
`roll` text NOT NULL,
`email` text NOT NULL,
`dept` text NOT NULL,
`hall` text NOT NULL,
`blood_group` text NOT NULL,
`weight` text NOT NULL,
`height` text NOT NULL,
`symptoms` text NOT NULL,
`analysis` text NOT NULL,
`rx` text NOT NULL,
`doctor_id` int(5) NOT NULL,
`status` int(2) NOT NULL,
`status_medicine` int(2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `patients`
--
INSERT INTO `patients` (`id`, `name`, `age`, `phone`, `roll`, `email`, `dept`, `hall`, `blood_group`, `weight`, `height`, `symptoms`, `analysis`, `rx`, `doctor_id`, `status`, `status_medicine`) VALUES
(1, 'sdfsdf', 25, '456', '453453', 'sdfg', '', '', 'B+', '70', '1.33', 'xgv54sx4 ,sdvgsdv45sd8vg47@b cfbh5467415454\nsdfsd\n\nsdfsdf', 'a', 'p', 2, 1, 1),
(2, 'Rafiqul Islam', 25, '01715145151', '12045404', 'sdfsd@fgdsg.dfg', 'CSE', 'Amir Ali', 'B+', '60', '1.2', 'sgsg,sgsfg sgdfsdg\r\nsdgsdgsdg,\r\n\r\nsgsdgsdg sd,gsd,g,sdg sdgsdgsdg', 'dfhgfh', 'fghfghfghfgh\r\nfgh\r\nfg\r\nhfg\r\nh\r\nfg\r\nh\r\nfgh\r\nfg\r\nh\r\nfgh\r\nfg\r\nh\r\nfgh\r\nfghfgh', 2, 1, 1),
(3, 'xdvsdf', 25, '4565464', '74577', '5sdfgsd@fgh', '', '', 'sdgsg', '5635', '4536453', 'fdhdfhdfh\r\ndfh\r\ndfh', 'fg', 'fdgfdg', 2, 1, 1),
(4, 'Rafiqul Islam 2', 25, '01715145151', '120454504', 'sdfsd@fgdsg.dfg', 'CSE', 'Amir Ali', 'B+', '60', '1.2', 'sgsg,sgsfg sgdfsdg\r\nsdgsdgsdg,\r\n\r\nsgsdgsdg sd,gsd,g,sdg sdgsdgsdg', 'fgfdg', 'fdgfdgdfgdfg b\r\nfdgfdgdfg', 2, 1, 1),
(5, 'sdfsdf sdfgsdf', 25, '01715145151', '120454504', 'sdfsd@fgdsg.dfg', 'CSE', 'Amir Ali', 'B+', '60', '1.2', 'sgsg,sgsfg sgdfsdg\r\nsdgsdgsdg,\r\n\r\nsgsdgsdg sd,gsd,g,sdg sdgsdgsdg', 'sdfgsdfgsdfgsdg\r\ng\r\nsdgsdgsdg', 'sdg 2\r\nsdgsdg 2\r\nsdgsdg 3fsdgsfdg\r\ndfsgsdfg4', 2, 0, 0),
(6, 'sfsdaf sdfsdfd', 25, '01715145151', '1204404', 'sdfsd@fgdsg.dfg', 'CSE', 'Amir Ali', 'B+', '60', '1.2', 'sgsg,sgsfg sgdfsdg\r\nsdgsdgsdg,\r\n\r\nsgsdgsdg sd,gsd,g,sdg sdgsdgsdg', 'sdfgsdfgsdfgsdg\r\ng\r\nsdgsdgsdg', 'sdg 2\r\nsdgsdg 2\r\nsdgsdg 3fsdgsfdg\r\ndfsgsdfg4', 2, 0, 0),
(7, 'xfgvfdxg', 456, '456456', '5654', '456456', '', '', 'fgfdg', '4563456', '546456', '456456546', '', '', 1, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `room`
--
CREATE TABLE IF NOT EXISTS `room` (
`id` int(5) NOT NULL,
`room_number` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(5) NOT NULL,
`username` text NOT NULL,
`password` text NOT NULL,
`status` int(2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `status`) VALUES
(1, 'mda', 'mda', 1),
(2, 'doc', 'doc', 2),
(3, 'med', 'med', 3),
(4, 'admin', 'admin', 4);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `doctors`
--
ALTER TABLE `doctors`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `employee`
--
ALTER TABLE `employee`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `instruments`
--
ALTER TABLE `instruments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `patients`
--
ALTER TABLE `patients`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `room`
--
ALTER TABLE `room`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `doctors`
--
ALTER TABLE `doctors`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `employee`
--
ALTER TABLE `employee`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `instruments`
--
ALTER TABLE `instruments`
MODIFY `id` int(9) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `patients`
--
ALTER TABLE `patients`
MODIFY `id` int(9) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `room`
--
ALTER TABLE `room`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
/*!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 */;