-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitclubdb.sql
307 lines (246 loc) · 7.48 KB
/
bitclubdb.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
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 17, 2021 at 11:15 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.34
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: `bitclubdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`) VALUES
(1, 'Administrative Notification'),
(2, 'Academic Notification'),
(3, 'Event Notification');
-- --------------------------------------------------------
--
-- Table structure for table `dept`
--
CREATE TABLE `dept` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `dept`
--
INSERT INTO `dept` (`id`, `name`) VALUES
(1, 'ALL'),
(2, 'CSE'),
(3, 'ISE'),
(4, 'EEE'),
(5, 'ECE'),
(6, 'CIVIL'),
(7, 'MECHANICAL');
-- --------------------------------------------------------
--
-- Table structure for table `events`
--
CREATE TABLE `events` (
`id` int(11) NOT NULL,
`category_id` varchar(35) NOT NULL,
`dept` varchar(35) NOT NULL,
`sem` varchar(35) NOT NULL,
`sec` varchar(35) NOT NULL,
`event_title` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`contact_user` varchar(255) NOT NULL,
`contact_email` varchar(255) NOT NULL,
`post_date` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `events`
--
INSERT INTO `events` (`id`, `category_id`, `dept`, `sem`, `sec`, `event_title`, `description`, `contact_user`, `contact_email`, `post_date`) VALUES
(20, 'Event Notification', 'CSE', 'VII SEM', 'ALL', 'Industry Talk On Machine Learning', 'Talk by industry professional on Machine Learning Evaluation Techniques on 15th Jan 2021. ', 'HOD, CSE', '[email protected]', '2021-01-10 15:04:23'),
(21, 'Administrative Notification', 'ALL', 'ALL', 'ALL', 'VTU Exam Fee Payment', 'All students are instructed to pay the VTU Fees on or before 12th January 2021. ', 'BIT CASH SECTION', '[email protected]', '2021-01-12 14:36:35'),
(22, 'Academic Notification', 'EEE', 'IV SEM', 'ALL', 'attend online classes', 'All students are requested to attend classes on saturday 20th Jan 2021', 'HOD', '[email protected]', '2021-01-13 09:00:05'),
(24, 'Academic Notification', 'CSE', 'VII SEM', 'ALL', 'Time table', 'Exams have been scheduled from 25th January 2021. Check the files tab for the full schedule ', 'Dr. Gunavathi H.S', '[email protected]', '2021-01-17 19:51:51'),
(26, 'Academic Notification', 'CSE', 'VII SEM', '0', 'Time Table For Lab Examination', 'Lab exam for the 7th semester students of Computer Science and Engineering is schedule from 25th January Onwards. Check the file section for further details. ', 'Dr. Gunavathi H.S', '[email protected]', '2021-01-17 21:46:16');
-- --------------------------------------------------------
--
-- Table structure for table `files`
--
CREATE TABLE `files` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`size` int(11) NOT NULL,
`downloads` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `files`
--
INSERT INTO `files` (`id`, `name`, `size`, `downloads`) VALUES
(5, '7sem CSE Time Table.docx', 8369, 2);
-- --------------------------------------------------------
--
-- Table structure for table `registrations`
--
CREATE TABLE `registrations` (
`usn` varchar(30) NOT NULL,
`name` varchar(30) NOT NULL,
`email` varchar(30) NOT NULL,
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `registrations`
--
INSERT INTO `registrations` (`usn`, `name`, `email`, `id`) VALUES
('1bi17cs034', 'Chandan B S D', '[email protected]', 0),
('1BI17CS034', 'Chandan B S D', '[email protected]', 0),
('1BI17CS034', 'Chandan B S D', '[email protected]', 9),
('1bi17cs024', 'Pritosh', '[email protected]', 9),
('1BI17CS034', 'CHANDAN B S D', '[email protected]', 20),
('1BI17CS024', 'B K Paritosh', '[email protected]', 20),
('1BI17CS001', 'Rahul', '[email protected]', 20),
('1BI17CS060', 'Poorna', '[email protected]', 20),
('1BI17CS024', 'Paritosh', '[email protected]', 23);
-- --------------------------------------------------------
--
-- Table structure for table `sec`
--
CREATE TABLE `sec` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sec`
--
INSERT INTO `sec` (`id`, `name`) VALUES
(1, 'ALL'),
(2, 'A'),
(3, 'B'),
(4, 'C');
-- --------------------------------------------------------
--
-- Table structure for table `sem`
--
CREATE TABLE `sem` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sem`
--
INSERT INTO `sem` (`id`, `name`) VALUES
(1, 'ALL'),
(2, 'I SEM'),
(3, 'II SEM'),
(4, 'III SEM'),
(5, 'IV SEM'),
(6, 'V SEM'),
(7, 'VI SEM'),
(8, 'VII SEM'),
(9, 'VIII SEM');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(3) NOT NULL,
`username` varchar(30) NOT NULL,
`password` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`) VALUES
(1, 'test', 'test');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `dept`
--
ALTER TABLE `dept`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `events`
--
ALTER TABLE `events`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `files`
--
ALTER TABLE `files`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sec`
--
ALTER TABLE `sec`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sem`
--
ALTER TABLE `sem`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `dept`
--
ALTER TABLE `dept`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
--
-- AUTO_INCREMENT for table `files`
--
ALTER TABLE `files`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `sec`
--
ALTER TABLE `sec`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `sem`
--
ALTER TABLE `sem`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
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 */;