-
Notifications
You must be signed in to change notification settings - Fork 0
/
autumnhacks.sql
252 lines (205 loc) · 7.01 KB
/
autumnhacks.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
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 13, 2019 at 09:02 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.8
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: `autumnhacks`
--
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE `admins` (
`id` int(30) NOT NULL,
`username` varchar(30) DEFAULT NULL,
`password` varchar(30) DEFAULT NULL,
`category` varchar(30) DEFAULT NULL,
`location` varchar(30) DEFAULT NULL,
`name` varchar(30) DEFAULT NULL,
`temp3` varchar(30) DEFAULT NULL,
`temp4` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admins`
--
INSERT INTO `admins` (`id`, `username`, `password`, `category`, `location`, `name`, `temp3`, `temp4`) VALUES
(1, 'bipul', '123456', 'medical', 'phagwara', 'Bipul poudel', ' ', ' '),
(2, 'subham', '123456', 'emergency', 'phagwara', 'Subham Jaguri', ' ', ' ');
-- --------------------------------------------------------
--
-- Table structure for table `documents`
--
CREATE TABLE `documents` (
`id` int(30) NOT NULL,
`userid` varchar(30) NOT NULL,
`content` varchar(30) NOT NULL,
`temp1` varchar(30) NOT NULL,
`temp2` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `documents`
--
INSERT INTO `documents` (`id`, `userid`, `content`, `temp1`, `temp2`) VALUES
(3, 'bipul', 'docs/driving.jpg', ' ', ' '),
(4, 'bipul', 'docs/DrivingInsurance.jpg', ' ', ' '),
(5, 'bipul', 'docs/pollutionCertificate.jpg', ' ', ' '),
(6, 'bipul', 'docs/rc.jpg', ' ', ' ');
-- --------------------------------------------------------
--
-- Table structure for table `latlong`
--
CREATE TABLE `latlong` (
`name` varchar(30) NOT NULL,
`latitude` varchar(30) NOT NULL,
`longitude` varchar(30) NOT NULL,
`id` int(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `latlong`
--
INSERT INTO `latlong` (`name`, `latitude`, `longitude`, `id`) VALUES
('phagwara', '31.224020', '75.770798', NULL),
('ludhiana', '30.900965', '75.857277', NULL),
('delhi', '28.610001', '77.230003', NULL),
('delhi', '28.610001', '77.230003', NULL),
('nepal', ' 27.700769', '85.300140', NULL),
('nepal2', ' 27.700786', '85.300982', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `longlat`
--
CREATE TABLE `longlat` (
`id` int(30) NOT NULL,
`name` varchar(30) DEFAULT NULL,
`userid` varchar(30) DEFAULT NULL,
`latitude` varchar(30) DEFAULT NULL,
`longitude` varchar(30) DEFAULT NULL,
`temp1` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `longlat`
--
INSERT INTO `longlat` (`id`, `name`, `userid`, `latitude`, `longitude`, `temp1`) VALUES
(1, 'delhi', 'devraj', '28.610001', '77.230003', NULL),
(3, 'ludhiana', 'prathik', '30.900965', '75.857277', NULL),
(4, 'kathmandu', 'biraj', '27.700769', '85.300140', NULL),
(5, 'bhw', 'laxman', '27.700786', '85.300982', NULL),
(6, 'phagwara', 'subham', '31.224020', '75.770798', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `notifications`
--
CREATE TABLE `notifications` (
`id` int(30) NOT NULL,
`userid` varchar(30) DEFAULT NULL,
`content` varchar(300) DEFAULT NULL,
`seen` varchar(30) DEFAULT NULL,
`temp1` varchar(30) DEFAULT NULL,
`temp2` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `notifications`
--
INSERT INTO `notifications` (`id`, `userid`, `content`, `seen`, `temp1`, `temp2`) VALUES
(53, ' ', ' There is an emergency case at Loction : latitude = 31.1471305 and Longitude = 75.34121789999999 ', 'unseen', ' ', ' '),
(54, ' ', ' There is an emergency case at Loction : latitude = 31.1471305 and Longitude = 75.34121789999999 ', 'unseen', ' ', ' '),
(55, ' ', ' There is an emergency case at Loction : latitude = 31.1471305 and Longitude = 75.34121789999999 ', 'unseen', ' ', ' ');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(30) NOT NULL,
`name` varchar(30) DEFAULT NULL,
`username` varchar(30) DEFAULT NULL,
`mname` varchar(30) DEFAULT NULL,
`fname` varchar(30) DEFAULT NULL,
`password` varchar(30) DEFAULT NULL,
`dob` varchar(30) DEFAULT NULL,
`address` varchar(30) DEFAULT NULL,
`gender` varchar(30) DEFAULT NULL,
`phone` varchar(30) DEFAULT NULL,
`image` varchar(30) DEFAULT NULL,
`email` varchar(30) DEFAULT NULL,
`verify` varchar(30) DEFAULT NULL,
`temp4` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `username`, `mname`, `fname`, `password`, `dob`, `address`, `gender`, `phone`, `image`, `email`, `verify`, `temp4`) VALUES
(6, 'Bipul poudel', 'bipul', 'mammi', 'Bipul', '123456', '20/02/2000', 'Bh5,lpu', 'female', '09814270489', 'img/pofile.jpg', 'bipul@123456', '<font color=red > Not verified', ' '),
(7, 'Bipul poudel', 'pinnu', 'mammi', 'Bipul', '123456', '20/02/2000', 'Bh5,lpu', 'male', '09814270489', 'bipul', 'bipul@123456', '<font color=red > Not verified', ' '),
(8, 'prince babu', 'pinnu', 'mammi', 'papa', '123456', '20/02/2000', 'Bh5,lpu', 'male', '09814270489', 'img/pofile.jpg', 'bipul@123456', '<font color=red > Not verified', ' ');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admins`
--
ALTER TABLE `admins`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `documents`
--
ALTER TABLE `documents`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `longlat`
--
ALTER TABLE `longlat`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admins`
--
ALTER TABLE `admins`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `documents`
--
ALTER TABLE `documents`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `longlat`
--
ALTER TABLE `longlat`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
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 */;