-
Notifications
You must be signed in to change notification settings - Fork 1
/
the_news_world.sql
365 lines (295 loc) · 12 KB
/
the_news_world.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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 26, 2018 at 03:02 PM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 5.6.32
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: `the_news_world`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin_user`
--
CREATE TABLE `admin_user` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`register_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin_user`
--
INSERT INTO `admin_user` (`id`, `name`, `email`, `username`, `password`, `register_date`) VALUES
(1, 'bislara', '[email protected]', '123', '827ccb0eea8a706c4c34a16891f84e7b', '2018-06-28 07:47:47');
-- --------------------------------------------------------
--
-- Table structure for table `answers`
--
CREATE TABLE `answers` (
`id` int(11) NOT NULL,
`post_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`body` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `answers`
--
INSERT INTO `answers` (`id`, `post_id`, `name`, `body`, `created_at`) VALUES
(1, 1, 'lara', 'Go through the NITR website', '2018-07-05 10:16:56'),
(2, 2, 'john', 'Get a permission letter from doctor', '2018-07-05 10:17:59');
-- --------------------------------------------------------
--
-- Table structure for table `ask_a_question`
--
CREATE TABLE `ask_a_question` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`question` varchar(255) NOT NULL,
`authority` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ask_a_question`
--
INSERT INTO `ask_a_question` (`id`, `user_id`, `name`, `question`, `authority`) VALUES
(1, 2, 'lara', 'how to I book guest house', 'FacAd'),
(2, 2, 'john', 'How to apply for medical leave?', 'H.O.D');
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`, `created_at`) VALUES
(1, 'Technology', '2018-06-03 11:10:27'),
(2, 'Entertainment', '2018-06-03 11:10:27');
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`id` int(11) NOT NULL,
`post_id` int(11) NOT NULL DEFAULT '0',
`status` int(11) NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`body` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `comments`
--
INSERT INTO `comments` (`id`, `post_id`, `status`, `name`, `email`, `body`, `created_at`) VALUES
(3, 3, 0, 'john', '[email protected]', 'nice one', '2018-06-05 15:52:49'),
(4, 10, 0, 'sambit', '[email protected]', 'awesome man..grand salute', '2018-06-06 18:15:29'),
(5, 8, 1, 'lara', '[email protected]', 'good', '2018-06-06 20:07:20'),
(6, 8, 0, 'unknown', '[email protected]', 'not good', '2018-06-06 20:08:48'),
(7, 10, 0, 'parida', '[email protected]', 'good..', '2018-06-06 20:35:32'),
(9, 3, 1, 'malkhan', '[email protected]', 'This comment api test', '2018-07-03 14:01:48'),
(14, 11, 1, 'samba', '[email protected]', 'this is a comment of local post.. ', '2018-07-09 04:45:13');
-- --------------------------------------------------------
--
-- Table structure for table `discuss`
--
CREATE TABLE `discuss` (
`id` int(11) NOT NULL,
`forum_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`body` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `discuss`
--
INSERT INTO `discuss` (`id`, `forum_id`, `name`, `body`, `created_at`) VALUES
(1, 1, 'roshan', 'Is it easy?How many from a branch are allowed to change?How many to a branch are allowed to change?\r\nI wish to change to ECE from Food technology ', '2018-06-21 12:29:29'),
(2, 2, 'Subham', 'This is the best fest..welcome to NITR..well done..hope to see u soon..', '2018-06-24 06:54:47'),
(3, 2, 'sk patra', 'hiiiiiiiiiiiiiiiiiiiiiiiii', '2018-06-24 07:00:54'),
(4, 2, 'lara sahoo', 'byeeeee...', '2018-06-24 07:16:08'),
(5, 3, 'samba', 'mess food is not good..Go to Jo\'z.. n enjoy.', '2018-07-09 04:52:24');
-- --------------------------------------------------------
--
-- Table structure for table `forum`
--
CREATE TABLE `forum` (
`id` int(11) NOT NULL,
`reply` int(11) NOT NULL DEFAULT '0',
`title` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`body` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `forum`
--
INSERT INTO `forum` (`id`, `reply`, `title`, `username`, `slug`, `body`, `created_at`) VALUES
(1, 1, 'Branch change and difficulties', 'rocky', 'one', 'JEE Main Counselling & Seat Allotment is scheduled to start in the month of June 2018. JEE Main Counselling is held concurrently with JEE Advanced 2018 Counselling and is called as JoSAA. Joint Seat Allocation Authority (JoSAA) will handle the JEE Main counseling and seat allotment for the year 2018. By qualifying JEE Main 2018 Engineering Entrance Exam, candidates can get admission in various Under Graduate Courses in the field of engineering & architecture. The previous year, a number of 97 colleges and institutes participated in counselling held by JoSAA. Top Indian colleges like IITs, NITs & other institutions consider JEE Main score for granting admissions to applicants. To get an admission to any IITâ ', '2018-06-19 13:37:03'),
(2, 3, 'Nitrutasav 2018', 'subham', 'two', 'Why the article \"Rewinding the tape:Nitrutsav 2k18\" is removed from the website.It was a very good work from team MM for bringing the truth in front of NITR junta. ', '2018-06-19 13:39:12'),
(3, 1, 'Mess Food in Hostel', 'Sahoo', 'Mess-Food-in-Hostel', 'Mess food is becoming too worst day by day. It was also observed that caterers are not changed since long time but they just changed halls. I think losing the contract fear in catrer may increase food quality and food taste. Let us have a discussion on this topic ', '2018-06-20 10:50:07');
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`featured` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL,
`views` int(11) NOT NULL DEFAULT '0',
`comments` int(11) NOT NULL DEFAULT '0',
`title` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`post_image` varchar(255) NOT NULL DEFAULT 'noimage.jpg',
`body` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `posts`
--
INSERT INTO `posts` (`id`, `category_id`, `featured`, `user_id`, `views`, `comments`, `title`, `slug`, `post_image`, `body`, `created_at`) VALUES
(3, 2, 1, 0, 5, 2, 'Post Four', 'Post-Four', 'noimage.jpg', '<p><strong>Hello</strong><strong> World I am Biswajeet Sahoo. this is edited.</strong>...... hey bye."Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>\r\n', '2018-06-02 05:10:03'),
(8, 1, 0, 2, 6, 0, 'post one', 'post-one', 'ask-question.jpg', '<p>this is post one</p>\r\n', '2018-06-05 15:55:59'),
(10, 2, 1, 2, 4, 2, 'post Two', 'post-Two', 'noimage.jpg', '<p><em><strong>Hello everyone...this is post two...</strong></em></p>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n\r\n<p>bye everyone..have a good day....kakdkaai</p>\r\n', '2018-06-06 18:14:19'),
(11, 1, 0, 3, 10, 1, 'local', 'local', 'baidu.jpg', '<p> </p>\r\n\r\n<p>kaodpapskdpa</p>\r\n', '2018-06-07 04:01:19');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`register_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `username`, `password`, `register_date`) VALUES
(1, 'rocky', '[email protected]', 'rock', '827ccb0eea8a706c4c34a16891f84e7b', '2018-06-05 10:20:11'),
(2, 'lara', '[email protected]', 'lara', '827ccb0eea8a706c4c34a16891f84e7b', '2018-06-05 14:03:18'),
(3, 'mahesh rana', '[email protected]', 'mr33325', 'e807f1fcf82d132f9bb018ca6738a19f', '2018-06-07 03:52:27'),
(4, 'bhuban', '[email protected]', 'rebel bhuban', 'ae6aa7365359bd7185be714b6e8270e0', '2018-06-07 15:54:43'),
(5, 'satish', '[email protected]', '117ei0436', '202cb962ac59075b964b07152d234b70', '2018-07-26 05:53:52');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin_user`
--
ALTER TABLE `admin_user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `answers`
--
ALTER TABLE `answers`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ask_a_question`
--
ALTER TABLE `ask_a_question`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `comments`
--
ALTER TABLE `comments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `discuss`
--
ALTER TABLE `discuss`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `forum`
--
ALTER TABLE `forum`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin_user`
--
ALTER TABLE `admin_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `answers`
--
ALTER TABLE `answers`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `ask_a_question`
--
ALTER TABLE `ask_a_question`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `comments`
--
ALTER TABLE `comments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `discuss`
--
ALTER TABLE `discuss`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `forum`
--
ALTER TABLE `forum`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;