-
Notifications
You must be signed in to change notification settings - Fork 0
/
protibaad.sql
280 lines (226 loc) · 11.9 KB
/
protibaad.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
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 20, 2022 at 08:00 PM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 7.4.20
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: `protibaad`
--
-- --------------------------------------------------------
--
-- Table structure for table `blogs`
--
CREATE TABLE `blogs` (
`id` int(20) NOT NULL,
`title` varchar(255) NOT NULL,
`description` text NOT NULL,
`image` varchar(255) NOT NULL,
`posted_by` int(20) NOT NULL,
`posted_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `blogs`
--
INSERT INTO `blogs` (`id`, `title`, `description`, `image`, `posted_by`, `posted_at`) VALUES
(22, 'BCL leader, five others held for cheating in teachers’ recruitment test', 'Police arrested six people including a local leader of Bangladesh Chhatra League (BCL) from Magura town for their involvement in cheating in the teachers’ recruitment test on Friday.\r\nThe arrestees are BCL president of the Hossain Shaheed government Suhrawardy College wing Fahim Faisal Rabbi, his cousin Iftekharul Islam Tito, four examinees- Tarana Afroz, Amirul Islam Sohail, Ismat Ara Jharna, and Shahnaz Begum.\r\nAccording to police, a mobile conferencing device in the form of a banking credit card was recovered after searching examinee Tarana Afroz at AG Academy School exam center in Magura Sadar upazila on Friday. Others were arrested on the basis of her information.\r\n', 'uploads/blog/blog1.jpeg', 10, '2022-04-23 14:38:00'),
(23, 'Hijab row: Sylhet teacher in hiding for a month over ‘false’ allegation', 'A Hindu teacher in Golapganj upazila of Sylhet has been in hiding for the last one month after being framed in a smear campaign that turned his request to remove the niqab (veil on face) into “forced removal” and defamation of Islam.\r\nThe campaign, spearheaded by a classmate of the girl in question on Facebook, sparked an uproar on social media and among locals as the teacher was accused of making derogatory remarks about the Islamic attire for women during a class on March 15.\r\nThe outrage prompted the authorities to form two probe bodies – one under the school governing body and the other by the upazila administration. But the teacher had to flee the area for safety.\r\n', 'uploads/blog/blog2.jpeg', 10, '2022-04-23 14:38:28'),
(24, 'Police ordered to stop arbitrarily search of goods-laden vehicles', 'Field-level police members have been instructed not to stop or impede vehicles carrying goods on the highways or roads without any specific complaint or information.\r\nThe instruction was given during the monthly crime review meeting for the month of February 2022, held at the Police Headquarters in Dhaka on Tuesday.\r\nThe meeting was attended by all the metropolitan commissioners, Range DIGs and district police superintendents with Additional IG (Crime and Operations) M Khurshid Hossain in the chair.\r\n\r\nMentioning the directive, Khurshid Hossain said police are in a tough position to curb extortion during the holy month of Ramadan and the upcoming Eid.\r\nHe also said that the security of shopping malls and markets has to be strengthened with a focus on Ramadan and Eid.\r\nHe stressed the importance of strengthening traffic management to keep the traffic flowing normally.\r\n', 'uploads/blog/blog3.jpeg', 10, '2022-04-23 14:38:57');
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`comment_id` int(8) NOT NULL,
`comment_content` varchar(1000) NOT NULL,
`thread_id` int(11) NOT NULL,
`comment_by` int(11) NOT NULL,
`comment_time` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `crimes`
--
CREATE TABLE `crimes` (
`id` int(20) NOT NULL,
`title` varchar(255) NOT NULL,
`description` varchar(500) NOT NULL,
`image` varchar(255) DEFAULT NULL,
`location` varchar(255) NOT NULL,
`posted_by` int(20) NOT NULL,
`posted_at` datetime NOT NULL,
`iv` text NOT NULL,
`approve_status` int(5) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `crimes`
--
INSERT INTO `crimes` (`id`, `title`, `description`, `image`, `location`, `posted_by`, `posted_at`, `iv`, `approve_status`) VALUES
(10, 'Fresh clashes erupt between Dhaka College students, New Market traders', 'Fresh clashes erupted between Dhaka College students and New Market traders on Tuesday morning following the confrontation in the wee hours of the day.\r\nWitnesses reported running battles between students and shopkeepers with crude bombs being exploded.\r\n', 'uploads/crime/alert1.jpg', 'New market', 12, '2022-04-23 20:52:22', '', 1),
(25, 'WAG/FMJEGnvLq6lGeJpo4MvkqcdWF3+m99FVhmXzSxl073Dle43R5kk6PYiaox4xMMd00olcNynJACymj+wIn8hZL+h0dg==', '7e5RNtPU6cLZ5YEPYJcn0ZvFqdEXHjb11tZIxEm3IANz/XDPZw4+DBp7HYPO4D5jGtR21sQRoYkgSAHnqfERn8h5O/F1Kgi83aCKLiev7hqB1+GlUBK1dQZZLNMnSyMO+7MUIso/OmaA9u7K8upP50YnJ00ew9iVNu9wpkEaAQXJRDs4Ee2AYCBlAQ/Q9yRjtMJy9I+mzViFmio/FL1yVTIe8G1LrbsNg6K86mutAmondTq3OfgEFqnYEQU//8dbrdfwxv2OEqfUkkqmgy8BA1JjGZpham7luls5Dpp8TSHhelaq6R1oEGXg6R6xfOFBU7ZIiThnq0oNgWHBPLllYFozEStVy0ZDRMLr+D9CvTfdVGEgjavj62ZF86HLA3ZlSlyYTqa5hfICM9wGP6QwkvWZM7bFUKj4O0KL4OJkE46y2qBQfhdQ/epA/3Q6lHOBzJKIZN1y3k/5nFSoIorFVpGE5WF6LIEgEWDbRH7DcJh346ivYNWW', 'uploads/crime/flower.jpeg', '+OBNOtrH/ofL4w==', 20, '2022-05-15 11:38:39', '', 1);
-- --------------------------------------------------------
--
-- Table structure for table `missings`
--
CREATE TABLE `missings` (
`id` int(20) NOT NULL,
`name` varchar(255) NOT NULL,
`age` varchar(255) NOT NULL,
`description` text NOT NULL,
`image` varchar(255) DEFAULT NULL,
`concern_contact` varchar(255) NOT NULL,
`approve_status` int(20) NOT NULL DEFAULT 0,
`posted_by` int(20) NOT NULL,
`posted_at` datetime(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `missings`
--
INSERT INTO `missings` (`id`, `name`, `age`, `description`, `image`, `concern_contact`, `approve_status`, `posted_by`, `posted_at`) VALUES
(3, 'Jobayer Rahman', '24', 'This guy is missing for the last few weeks .If anyone see him please contact \r\n\r\n', 'uploads/missing/jubayer.jpg', '01712345678', 1, 11, '2022-04-23 20:32:48.00000'),
(5, 'Swapmil Biswas', '23', 'This guy is missing for the last few weeks .If anyone see him please contact ', 'uploads/missing/swapnil.jpg', '01712345678', 1, 11, '2022-04-23 20:43:59.00000'),
(10, 'Mizanur Rahman', '24', 'Missing', 'uploads/missing/mizan.jpg', '01712345678', 1, 12, '2022-04-23 22:50:27.00000');
-- --------------------------------------------------------
--
-- Table structure for table `polls`
--
CREATE TABLE `polls` (
`id` int(11) NOT NULL,
`title` text NOT NULL,
`description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `poll_answers`
--
CREATE TABLE `poll_answers` (
`id` int(11) NOT NULL,
`poll_id` int(11) NOT NULL,
`title` text NOT NULL,
`votes` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `q_category`
--
CREATE TABLE `q_category` (
`q_category_id` int(8) NOT NULL,
`q_category_name` varchar(300) NOT NULL,
`q_category_des` varchar(400) NOT NULL,
`q_category_date` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `q_category`
--
INSERT INTO `q_category` (`q_category_id`, `q_category_name`, `q_category_des`, `q_category_date`) VALUES
(1, 'Educational', 'Educational', '2021-09-17 14:06:34'),
(2, 'Social', 'Social', '2021-09-17 14:07:08'),
(3, 'Civil Rights', 'Civil Rights', '2021-09-17 14:08:13'),
(4, 'Health Care Availability', 'test', '2022-01-23 01:41:42');
-- --------------------------------------------------------
--
-- Table structure for table `threads`
--
CREATE TABLE `threads` (
`thread_id` int(7) NOT NULL,
`thread_title` varchar(300) NOT NULL,
`thread_desc` text NOT NULL,
`thread_cat_id` int(7) NOT NULL,
`thread_date` datetime NOT NULL DEFAULT current_timestamp(),
`thread_user_id` int(7) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `threads`
--
INSERT INTO `threads` (`thread_id`, `thread_title`, `thread_desc`, `thread_cat_id`, `thread_date`, `thread_user_id`) VALUES
(0, 'hello', '123', 2, '2022-05-20 23:45:44', 25);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`iv` text NOT NULL,
`role` varchar(191) NOT NULL DEFAULT 'user'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `email`, `password`, `iv`, `role`) VALUES
(9, 'sharif', '[email protected]', '25d55ad283aa400af464c76d713c07ad', '', 'user'),
(10, 'admin', '[email protected]', '25d55ad283aa400af464c76d713c07ad', '', 'admin'),
(11, 'Shakil', '[email protected]', '25d55ad283aa400af464c76d713c07ad', '', 'user'),
(12, 'hello', '[email protected]', '25d55ad283aa400af464c76d713c07ad', '', 'user'),
(13, 'jobayer', '[email protected]', 'e10adc3949ba59abbe56e057f20f883e', '', 'user'),
(14, 'pro', '[email protected]', 'e10adc3949ba59abbe56e057f20f883e', '', 'user'),
(15, 's3I=', 'rGuNYQ4t+NwNs4lo', '81dc9bdb52d04dc20036dbd8313ed055', '', 'user'),
(16, 'Pw==', 'P5jgT7ZpIa/4aeygqw==', 'e10adc3949ba59abbe56e057f20f883e', '??D???^F?{??7?s', 'user'),
(17, 'noui', 'gZKNU8xDwuPjVHr2', '827ccb0eea8a706c4c34a16891f84e7b', 'b5273647e9553f046b78bbd39fa6b693', 'user'),
(18, '9mZz+7E=', '9mZz+7HANr7isSyeyRkm', '827ccb0eea8a706c4c34a16891f84e7b', '5b5876b91117f3ec13a730bd70563653', 'user'),
(19, 'pro', '0SmFyy5TH0NLHPRv0ZYS+KjeqpZDzSM=', 'e10adc3949ba59abbe56e057f20f883e', 'c0d566ab4e6e9e47ff6af4ee969a15e8', 'user'),
(20, 'j', 'VEznInRNSNhmiVA=', '25d55ad283aa400af464c76d713c07ad', '0c859ccad2276a1410af80d812e15522', 'user'),
(21, 'okk', 'QXq0GXyD9MEi0wSFP2QK', 'e10adc3949ba59abbe56e057f20f883e', '6e083aa153cf841249e08f1ce6418ba9', 'user'),
(22, 'shakil24', 'vnva7Zcxk3acwUgEZoZFxQ==', 'e10adc3949ba59abbe56e057f20f883e', 'dbdce77df6056f02afe5b16703c9c7b2', 'user'),
(25, 'police', '[email protected]', '25d55ad283aa400af464c76d713c07ad', '', 'police');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `blogs`
--
ALTER TABLE `blogs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `crimes`
--
ALTER TABLE `crimes`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `missings`
--
ALTER TABLE `missings`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `blogs`
--
ALTER TABLE `blogs`
MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `crimes`
--
ALTER TABLE `crimes`
MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `missings`
--
ALTER TABLE `missings`
MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
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 */;