-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagazine.sql
264 lines (213 loc) · 10.7 KB
/
magazine.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
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 27, 2023 at 07:45 AM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 7.4.29
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: `magazine`
--
-- --------------------------------------------------------
--
-- Table structure for table `care_tz_news`
--
CREATE TABLE `care_tz_news` (
`image_name` varchar(255) NOT NULL,
`image_path` varchar(255) DEFAULT NULL,
`article` longtext NOT NULL,
`tarehe` datetime NOT NULL,
`publisher` varchar(255) DEFAULT NULL,
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `care_tz_news`
--
INSERT INTO `care_tz_news` (`image_name`, `image_path`, `article`, `tarehe`, `publisher`, `id`) VALUES
('musk.png', 'news_images/musk.png', '<p>this is article 1</p>\n', '2023-01-24 13:56:01', 'Israel', 1),
('gate.png', 'news_images/gate.png', '<p>this is article 2</p>\n', '2023-01-19 17:45:37', 'Israel', 2),
('musk.png', 'news_images/musk.png', '<p>this is article 3</p>\n', '2023-01-19 17:47:48', 'Israel', 3),
('', '', '', '2023-01-24 13:53:37', 'Israel', 4);
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`C_ID` int(11) NOT NULL,
`D_ID` int(11) NOT NULL,
`Comment` longtext NOT NULL,
`user` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `conversations`
--
CREATE TABLE `conversations` (
`ID` int(255) NOT NULL,
`USERID` int(255) NOT NULL,
`TEXT` longtext NOT NULL,
`User` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `con_heads`
--
CREATE TABLE `con_heads` (
`ID` int(255) NOT NULL,
`R_name` varchar(255) NOT NULL,
`S_name` varchar(255) NOT NULL,
`Conuniq` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `discussion`
--
CREATE TABLE `discussion` (
`D_ID` int(255) NOT NULL,
`D_Head` varchar(255) NOT NULL,
`Admin` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `thouts`
--
CREATE TABLE `thouts` (
`TID` int(255) NOT NULL,
`Thouts` varchar(255) NOT NULL,
`user` varchar(255) NOT NULL,
`PID` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `uploads`
--
CREATE TABLE `uploads` (
`UP_ID` int(255) NOT NULL,
`APPROVE` varchar(10) DEFAULT 'PENDING',
`UPLOAD_DATE` date NOT NULL,
`IMAGES` varchar(255) NOT NULL,
`CATEGORIES` varchar(255) NOT NULL,
`BREAKING` varchar(1) DEFAULT '0',
`TOP` varchar(1) DEFAULT '0',
`HEADING` text NOT NULL,
`STORY` longtext NOT NULL,
`VIDEO` longtext DEFAULT NULL,
`ST_by` varchar(100) NOT NULL,
`APPROVED_BY` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `uploads`
--
INSERT INTO `uploads` (`UP_ID`, `APPROVE`, `UPLOAD_DATE`, `IMAGES`, `CATEGORIES`, `BREAKING`, `TOP`, `HEADING`, `STORY`, `VIDEO`, `ST_by`, `APPROVED_BY`) VALUES
(1, 'BLOCKED', '2022-12-10', 'logo.png', 'Technology', '1', '1', '', '<p><u><strong>Testing Bold And Underline</strong></u></p>\r\n\r\n<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Repellat eveniet maiores non unde omnis excepturi quidem quisquam perspiciatis ullam eum laudantium odit, consequatur totam, vero eaque dignissimos fuga autem modi.<br />\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Fuga quo dolorem id, nesciunt? Vero sapiente voluptates a dignissimos, ipsa sunt laudantium repellat voluptate, et excepturi praesentium nulla porro. Modi, unde. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod<br />\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,<br />\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo<br />\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse<br />\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non<br />\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus corporis, consectetur laudantium sit hic reprehenderit libero. Dicta, id, ad. Sit animi sunt facilis illum eum officia perspiciatis soluta harum maxime. Lorem ipsum, dolor sit amet consectetur adipisicing elit. Distinctio saepe amet ad quis itaque impedit neque vel, porro repellendus commodi, vero hic inventore asperiores, delectus, esse. Incidunt, facilis, error! Deleniti.</p>\r\n', '', 'JoelPeter98', NULL),
(2, 'BLOCKED', '2022-12-10', 'images.jpg', 'Agriculture', '1', '1', '', '<p><u><strong>Testing Bold And Underline</strong></u></p>\r\n\r\n<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Repellat eveniet maiores non unde omnis excepturi quidem quisquam perspiciatis ullam eum laudantium odit, consequatur totam, vero eaque dignissimos fuga autem modi.<br />\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Fuga quo dolorem id, nesciunt? Vero sapiente voluptates a dignissimos, ipsa sunt laudantium repellat voluptate, et excepturi praesentium nulla porro. Modi, unde. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod<br />\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,<br />\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo<br />\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse<br />\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non<br />\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus corporis, consectetur laudantium sit hic reprehenderit libero. Dicta, id, ad. Sit animi sunt facilis illum eum officia perspiciatis soluta harum maxime. Lorem ipsum, dolor sit amet consectetur adipisicing elit. Distinctio saepe amet ad quis itaque impedit neque vel, porro repellendus commodi, vero hic inventore asperiores, delectus, esse. Incidunt, facilis, error! Deleniti.</p>\r\n', '', 'JoelPeter98', NULL),
(3, 'OK', '2022-12-10', 'images.jpg', 'Business', '1', '1', 'hatari new name', '<p><u><strong>Testing Bold And Underline</strong></u></p>\r\n\r\n<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Repellat eveniet maiores non unde omnis excepturi quidem quisquam perspiciatis ullam eum laudantium odit, consequatur totam, vero eaque dignissimos fuga autem modi.<br />\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Fuga quo dolorem id, nesciunt? Vero sapiente voluptates a dignissimos, ipsa sunt laudantium repellat voluptate, et excepturi praesentium nulla porro. Modi, unde. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod<br />\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,<br />\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo<br />\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse<br />\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non<br />\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus corporis, consectetur laudantium sit hic reprehenderit libero. Dicta, id, ad. Sit animi sunt facilis illum eum officia perspiciatis soluta harum maxime. Lorem ipsum, dolor sit amet consectetur adipisicing elit. Distinctio saepe amet ad quis itaque impedit neque vel, porro repellendus commodi, vero hic inventore asperiores, delectus, esse. Incidunt, facilis, error! Deleniti.</p>\r\n', '', 'JoelPeter98', 'JoelPeter98');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`ID` int(255) NOT NULL,
`Name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`Username` varchar(255) NOT NULL,
`Password` varchar(255) NOT NULL,
`Level` varchar(100) NOT NULL DEFAULT 'Two',
`Master` varchar(255) DEFAULT NULL,
`Status` enum('Blocked','Unblocked') DEFAULT 'Unblocked'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`ID`, `Name`, `email`, `Username`, `Password`, `Level`, `Master`, `Status`) VALUES
(1, 'Joel Peter Kiwalaka', '[email protected]', 'JoelPeter98', 'UEVPUExF', 'One', 'Master', 'Unblocked');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `comments`
--
ALTER TABLE `comments`
ADD PRIMARY KEY (`C_ID`);
--
-- Indexes for table `conversations`
--
ALTER TABLE `conversations`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `con_heads`
--
ALTER TABLE `con_heads`
ADD PRIMARY KEY (`ID`),
ADD UNIQUE KEY `unique` (`Conuniq`);
--
-- Indexes for table `discussion`
--
ALTER TABLE `discussion`
ADD PRIMARY KEY (`D_ID`);
--
-- Indexes for table `thouts`
--
ALTER TABLE `thouts`
ADD PRIMARY KEY (`TID`);
--
-- Indexes for table `uploads`
--
ALTER TABLE `uploads`
ADD PRIMARY KEY (`UP_ID`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`ID`),
ADD UNIQUE KEY `Username` (`Username`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `comments`
--
ALTER TABLE `comments`
MODIFY `C_ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `conversations`
--
ALTER TABLE `conversations`
MODIFY `ID` int(255) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `con_heads`
--
ALTER TABLE `con_heads`
MODIFY `ID` int(255) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `discussion`
--
ALTER TABLE `discussion`
MODIFY `D_ID` int(255) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `thouts`
--
ALTER TABLE `thouts`
MODIFY `TID` int(255) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `uploads`
--
ALTER TABLE `uploads`
MODIFY `UP_ID` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `ID` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
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 */;