-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
313 lines (257 loc) · 11.2 KB
/
database.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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3307
-- Generation Time: Nov 25, 2022 at 03:07 AM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 8.1.6
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: `aastha`
--
-- --------------------------------------------------------
--
-- Table structure for table `about_us`
--
CREATE TABLE `about_us` (
`about_us` varchar(10000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `about_us`
--
INSERT INTO `about_us` (`about_us`) VALUES
('Aastha,Blood Bank Management System,is a browser based solution that is designed to store,process, retrieve and analyze information concerned with the administrative, inventory\r\nmanagement and clinical aspects of providing services within a blood bank.The application allows the users to store the donor details in the\r\napplication itself.System allows the user to store physical and medical\r\ndetails of the donor at the time of the registration.Aastha is an energency management service that helps people to search for blood during medical emergencies');
-- --------------------------------------------------------
--
-- Table structure for table `address`
--
CREATE TABLE `address` (
`id` int(11) NOT NULL,
`division` varchar(100) NOT NULL,
`district` varchar(100) NOT NULL,
`city` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `address`
--
INSERT INTO `address` (`id`, `division`, `district`, `city`) VALUES
(1, 'Dhaka', 'Dhaka', 'Mirpur'),
(2, 'Dhaka', 'Dhaka', 'Banani'),
(3, 'Dhaka', 'Dhaka', 'Gulshan'),
(4, 'Dhaka', 'Gazipur', 'Boardbazar'),
(5, 'Khulna', 'Khulna', 'Rupsha');
-- --------------------------------------------------------
--
-- Table structure for table `add_blood_requst`
--
CREATE TABLE `add_blood_requst` (
`id` int(11) NOT NULL,
`user_email` varchar(255) NOT NULL,
`time` date NOT NULL DEFAULT current_timestamp(),
`pname` varchar(255) NOT NULL,
`c_number` text NOT NULL,
`complications` varchar(255) DEFAULT NULL,
`date` date NOT NULL,
`b_g` varchar(11) NOT NULL,
`quantity` int(11) NOT NULL,
`add_requirement` varchar(255) DEFAULT NULL,
`organization` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `my_donation`
--
CREATE TABLE `my_donation` (
`id` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`pname` varchar(255) NOT NULL,
`cname` varchar(255) NOT NULL,
`c_number` int(12) NOT NULL,
`complications` varchar(255) NOT NULL,
`date` date NOT NULL,
`organization` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `my_donation`
--
INSERT INTO `my_donation` (`id`, `email`, `pname`, `cname`, `c_number`, `complications`, `date`, `organization`, `address`) VALUES
(4, '[email protected]', 'Rakin Absar', 'Sakif Ahbab', 1771089194, 'come before 1a.m', '2022-11-29', 'Dhaka Medical', 'Dhaka');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`fname` varchar(255) NOT NULL,
`lname` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `fname`, `lname`, `email`, `password`) VALUES
(38, 'Rakin', 'Abrar', '[email protected]', '$2a$08$DbkOrTAAI9.rwjMJejAI9eX3YB1v./s/Ie5ps0SgfnLcqUnUxroIi'),
(39, 'Rakin', 'Abrar', '[email protected]', '$2a$08$GqH0IzBN2hj0GkQ15VSb7uKlKr/7XHKBPCUp1pl9Y3jBTDoJB0aai'),
(40, 'Sabah ', 'Nushra', '[email protected]', '$2a$08$U6ebc8zHvvKQ.8Yh2LJwe.vd7mKf1njQPm.cfje0X5ulJ5phXgHxe'),
(43, 'Tahmid', 'Rahman', '[email protected]', '$2a$08$92oGra8yT0xJnMh3/wsdv.FKch3NVjN9cscYgB9tbKLxqNJNaN7C2'),
(44, 'Prottoy', 'Rafi', '[email protected]', '$2a$08$PdALh30f.WQ0bUjaf584EOIAwDCh2JLAW5iADGLg4ehWrmmkDGsSi'),
(45, 'Rafid Nahiyan', 'Farabi', '[email protected]', '$2a$08$cWoV/HJLi/L4z5y.fCYr4Or.kzb1FEGPtjOg2RxMx0GIVikc/gOyu');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`f_name` varchar(30) NOT NULL,
`l_name` varchar(30) NOT NULL,
`c_number` varchar(30) NOT NULL,
`address` varchar(150) DEFAULT NULL,
`email` varchar(100) NOT NULL,
`profession` varchar(60) DEFAULT NULL,
`d_o_b` varchar(100) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
`gender` varchar(50) DEFAULT NULL,
`password` varchar(60) NOT NULL,
`passwordConfirm` varchar(60) NOT NULL,
`bg` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`f_name`, `l_name`, `c_number`, `address`, `email`, `profession`, `d_o_b`, `age`, `gender`, `password`, `passwordConfirm`, `bg`) VALUES
('md', 'sayem', '01621786508', 'Dhaka ', '[email protected]', 'software Developer ', '20 dec', 21, 'male', '$2a$08$lDhkcMpwfvJuTFOaSoSuY.mRd8BIlj2osVxMCpsvDgeWZmTeoC8G.', 'iopjkl', '0+'),
('Fahim', 'Khan', '01837453892', 'Dhaka ', '[email protected]', 'software Developer ', '12 jan', 23, 'male', '$2a$08$3XVjMCHx/W41c0Q2G11RCOpsgxZctOVfbhfAco1HrMfRjnajC9Toa', '12345', 'B-'),
('md', 'sayem', '01621786509', 'Dhaka ', '[email protected]', 'software Developer ', '20 dec', 21, 'male', '$2a$08$LupjLg4jnF0eKsc1e3wSneDXHVXI37qDejUzQWbwhax5HgZXw0YTy', 'iopjkl', '0+'),
('mahin', 'abrar', '01771089194', 'dhaka', '[email protected]', 'student', '14-02-2002', 20, 'male', '$2a$08$r.ibbocv.y09FooeCd6oGOhm6i6OtsN1wvM.i6w35m21Ki9qTK1ey', '1234', 'o-'),
('rakin', 'abrar', '01771089194', 'dhaka', '[email protected]', 'student', '14-02-2002', 20, 'male', '$2a$08$Pq2sb.I3iStDKimMtzSRSOYKkKCQLKxoZrmVQQ19teHUw0Aha.zvy', '1234', '0-'),
('rakin', 'fff', '01771089194', '531/A West Shewrapara', '[email protected]', 'student', '14-02-2002', 24, 'male', '$2a$08$l43kPv658.ZdRpzh9efDx.j93i3/Pjoo7ZvgAgqKd.W18zEgOYw5i', '1234', '0-'),
('rakin', 'fff', '01771089194', '531/A West Shewrapara', '[email protected]', 'student', '14-02-2002', 24, 'male', '$2a$08$invkSoCQjNc5I86KI2vLZOIfNeYhfWuiCJP0/GVxEjGzvnLKUL.iG', '1234', '0-'),
('rakin', 'fff', '01771089194', '531/A West Shewrapara', '[email protected]', 'student', '14-02-2002', 24, 'male', '$2a$08$C7eiFdmPm4HVnZ4MIPIfiuP1Lx1NybrRd06leS8E9KpIrDdFutsWq', '1234', '0-'),
('Rakin', 'Khan', '01988346272', 'Dhaka ', '[email protected]', 'software Developer ', '12 jan', 22, 'male', '$2a$08$WCwQ.ivaOlw5HTrKP/EbbeCmJmRleFIfR/Z2qx9JUNjvQc.DP3zTG', '12345', 'o+'),
('Rakin', 'AB', '01837453892', 'Rajshahi', '[email protected]', 'software Developer ', '20 dec', 23, 'male', '$2a$08$wA.EnqR3R3IckuybgrwZ.eAcyslmIIPekUfrO0kr4NRH/ynz3kPPe', '1234', 'B-'),
('Zarif', 'Khan', '01785746537', 'Rajshahi', '[email protected]', 'software Developer ', '12 jan', 22, 'male', '$2a$08$vg8yxPViNU9z84OvfOLsKOTAaXt4L2CFjMPkZfbai.gT9iXOFCFj6', '123456', 'o-');
-- --------------------------------------------------------
--
-- Table structure for table `users_image`
--
CREATE TABLE `users_image` (
`id` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`image_name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `user_info`
--
CREATE TABLE `user_info` (
`id` int(11) NOT NULL,
`fname` varchar(255) NOT NULL,
`lname` varchar(255) NOT NULL,
`c_number` varchar(15) NOT NULL,
`email` varchar(255) NOT NULL,
`profession` varchar(255) NOT NULL,
`b_g` varchar(20) NOT NULL,
`dob` date NOT NULL,
`gender` varchar(20) NOT NULL,
`address` varchar(255) NOT NULL,
`street` varchar(255) DEFAULT NULL,
`zip` varchar(255) DEFAULT NULL,
`division` varchar(255) NOT NULL,
`district` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`img` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user_info`
--
INSERT INTO `user_info` (`id`, `fname`, `lname`, `c_number`, `email`, `profession`, `b_g`, `dob`, `gender`, `address`, `street`, `zip`, `division`, `district`, `city`, `img`) VALUES
(19, 'Rakin', 'Abrar', '01771089194', '[email protected]', 'Doctor', 'O+', '2002-02-14', 'Male', '531/A West Shewrapara', '', NULL, 'Dhaka', 'Dhaka', 'Mirpur', '1669217065700.png'),
(20, 'Tanvir', 'Saikat', '01771089194', '[email protected]', 'Student', 'O+', '2002-02-14', 'Male', '531/A West Shewrapara', '', '1216', 'Dhaka', 'Dhaka', 'Banani', '1669294970096.png'),
(21, 'Sabah ', 'Nushra', '01771089194', '[email protected]', 'Student', 'A+', '2002-11-24', 'female', '531/A West Shewrapara', '', NULL, 'Dhaka', 'Dhaka', 'Banani', '1669217459928.png'),
(24, 'Tahmid', 'Rahman', '01771089194', '[email protected]', 'Student', 'O+', '2002-02-09', 'Male', '531/A West Shewrapara', '', '531/A West Shewrapara', 'Dhaka', 'Dhaka', 'Banani', '1669275193748.png'),
(25, 'Prottoy', 'Rafi', '01771089194', '[email protected]', 'Engineer', 'A+', '2002-02-10', 'Male', '531/A West Shewrapara', '', NULL, 'Dhaka', 'Dhaka', 'Gulshan', '1669275376168.png'),
(26, 'Rafid Nahiyan', 'Farabi', '01771089194', '[email protected]', 'Student', 'O+', '2002-02-02', 'Male', '531/A West Shewrapara', '', NULL, 'Dhaka', 'Dhaka', 'Banani', '1669277568268.png');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `address`
--
ALTER TABLE `address`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `add_blood_requst`
--
ALTER TABLE `add_blood_requst`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `my_donation`
--
ALTER TABLE `my_donation`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`email`);
--
-- Indexes for table `users_image`
--
ALTER TABLE `users_image`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_info`
--
ALTER TABLE `user_info`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `address`
--
ALTER TABLE `address`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `add_blood_requst`
--
ALTER TABLE `add_blood_requst`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `my_donation`
--
ALTER TABLE `my_donation`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
--
-- AUTO_INCREMENT for table `users_image`
--
ALTER TABLE `users_image`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_info`
--
ALTER TABLE `user_info`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
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 */;