-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathblog.sql
247 lines (196 loc) · 8.65 KB
/
blog.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
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 16, 2018 at 10:52 AM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 5.6.33
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: `blog`
--
-- --------------------------------------------------------
--
-- Table structure for table `account`
--
CREATE TABLE `account` (
`ID` int(11) NOT NULL,
`Fullname` varchar(255) NOT NULL,
`Email` varchar(255) NOT NULL,
`Username` varchar(255) NOT NULL,
`Phone` varchar(255) NOT NULL,
`Message` text NOT NULL,
`Country` varchar(255) NOT NULL,
`Role` varchar(255) NOT NULL,
`Password` varchar(255) NOT NULL,
`Created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `account`
--
INSERT INTO `account` (`ID`, `Fullname`, `Email`, `Username`, `Phone`, `Message`, `Country`, `Role`, `Password`, `Created_at`) VALUES
(1, 'Muhammad Muhaddis', 'Muhaddisshah@gmail.com', 'MuhaddiMu', '03346016010', 'Muhaddis.Info', 'PK', 'Admin', '$2y$10$KmhRxwp7FDQzt5hHEG0Avey1bkJVgOU/z9TsuZyKVDxrx4Husfmdy', '2018-09-03 08:05:33'),
(2, 'Brad Hussey', 'brad@bradhussey.ca', 'BradHussey', '11152052055', 'bradhussey.ca', 'PK', 'Admin', '$2y$10$F17QCkpeIFVkg8NvcfJVjOp.7WstdINu6TvlnTBENHcH9REsoDbn2', '2018-09-03 08:05:33');
-- --------------------------------------------------------
--
-- Table structure for table `blog_post`
--
CREATE TABLE `blog_post` (
`Post_ID` int(11) NOT NULL,
`Post_Tag` varchar(256) NOT NULL,
`Post_Title` text NOT NULL,
`Post_Feature_Image` varchar(256) NOT NULL,
`Post_Content` text NOT NULL,
`Posted_By` int(11) NOT NULL,
`Post_Date` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `blog_post`
--
INSERT INTO `blog_post` (`Post_ID`, `Post_Tag`, `Post_Title`, `Post_Feature_Image`, `Post_Content`, `Posted_By`, `Post_Date`) VALUES
(1, '5', 'We Design Stunning Websites!!!', 'http://127.0.0.1/My-Blog/Admin/plugins/images/BlogImages/5b9e17aebed925b9e17aebed92.jpg', '<p>Web designers don’t just thrive on creativity and out-of-the-box ideas. They need a strong set of tools that can help them bring a vision to life. If you are looking for one tool that does it all, look no further than bootstrap. This open-source, front-end framework helps you in creating websites and applications that will blow your mind away. You can bring your vision to life with awe-inspiring <a href=\"https://wrappixel.com/templates/category/bootstrap-admin-templates/\">bootstrap admin templates</a>available on Wrap Pixel.</p>\r\n\r\n<p>Instead of working from scratch, select from a wide variety of free bootstrap themes available on Wrap Pixel. The creative, beautifully designed and highly responsive themes available on this platform will be a dream come true for any developer. Name a genre, a color scheme or any design basic- you will have it all covered in these themes. The selection of free themes is so wide and varied that creating several wonderful websites will be as easy as 1-2-3.</p>\r\n\r\n<p><img alt=\"bootstrap-admin-templates-ingographic\" src=\"https://wrappixel.com/wp-content/uploads/2018/08/wrappixel-bootstrap-admin-templates.jpg\" style=\"height:3439px; width:780px\" /> </p>\r\n\r\n<p>If you are looking for extra customizations and advanced functionalities, switch to the premium <a href=\"https://wrappixel.com/templates/category/angular-templates/\"><strong>angular admin templates</strong></a>. Complete with <a href=\"https://wrappixel.com/templates/category/ui-kit/\">UI kits</a>, these extensive themes will provide extra features, more customization options and help you in creating a website your clients will be impressed with.</p>\r\n\r\n<p>Don’t wait anymore and visit <a href=\"https://wrappixel.com/\">WrapPixel</a> for finding your next breathtaking website design. Find a design that truly reflects your vision, make some quick customizations, and add content, links and applications and you are ready to go. Web designing has never been this simple but then, you didn’t know about the powerful and user-friendly Wrap Pixel platform too.</p>\r\n\r\n<p>Join the community and impress your clients with designs they can’t get their eyes off!</p>\r\n', 1, '2018-09-16 08:46:24');
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`Comment_ID` int(11) NOT NULL,
`CommentPost_ID` int(11) NOT NULL,
`Comment_Author` varchar(255) NOT NULL,
`Comment` text NOT NULL,
`Comment_Date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `comments`
--
INSERT INTO `comments` (`Comment_ID`, `CommentPost_ID`, `Comment_Author`, `Comment`, `Comment_Date`) VALUES
(1, 1, 'Jany Adnrews', 'Wow! I'd love to download it, Thanks for sharing!', '2018-09-16 08:50:54');
-- --------------------------------------------------------
--
-- Table structure for table `homepage`
--
CREATE TABLE `homepage` (
`Homepage_Image` varchar(100) NOT NULL,
`Homepage_Name` varchar(255) NOT NULL,
`Homepage_Message` text NOT NULL,
`Homepage_Description` text NOT NULL,
`Homepage_Footer_Text` varchar(255) NOT NULL,
`Homepage_Footer_Link` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `homepage`
--
INSERT INTO `homepage` (`Homepage_Image`, `Homepage_Name`, `Homepage_Message`, `Homepage_Description`, `Homepage_Footer_Text`, `Homepage_Footer_Link`) VALUES
('http://127.0.0.1/My-Blog/Admin/plugins/images/UserAvatar.jpg', 'Muhammad Muhaddis', 'Just me, myself and I, exploring the universe of uknownment. I have a heart of love and a interest of lorem ipsum and mauris neque quam blog. I want to share my world with yours. ~Muhaddis', 'Welcome to the blog of CYBER SECURITY', 'Muhaddis', 'https://www.muhaddis.info/');
-- --------------------------------------------------------
--
-- Table structure for table `post_visits`
--
CREATE TABLE `post_visits` (
`Post_ID` int(11) NOT NULL,
`Post_Visits` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `post_visits`
--
INSERT INTO `post_visits` (`Post_ID`, `Post_Visits`) VALUES
(1, 19);
-- --------------------------------------------------------
--
-- Table structure for table `tags`
--
CREATE TABLE `tags` (
`Tag_ID` int(11) NOT NULL,
`Tag` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tags`
--
INSERT INTO `tags` (`Tag_ID`, `Tag`) VALUES
(1, 'Tag 1'),
(2, 'Tag 2'),
(3, 'Tag 3'),
(4, 'Tag 4'),
(5, 'Web Design'),
(6, 'Web Development'),
(7, 'App Security'),
(8, 'Code Audit'),
(9, 'Responsive Design'),
(10, 'Information Security'),
(11, 'Application Development'),
(12, 'Hosting Services');
-- --------------------------------------------------------
--
-- Table structure for table `total_visits`
--
CREATE TABLE `total_visits` (
`Total_Visits` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `total_visits`
--
INSERT INTO `total_visits` (`Total_Visits`) VALUES
(440);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `account`
--
ALTER TABLE `account`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `blog_post`
--
ALTER TABLE `blog_post`
ADD PRIMARY KEY (`Post_ID`);
--
-- Indexes for table `comments`
--
ALTER TABLE `comments`
ADD PRIMARY KEY (`Comment_ID`);
--
-- Indexes for table `post_visits`
--
ALTER TABLE `post_visits`
ADD PRIMARY KEY (`Post_ID`);
--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
ADD PRIMARY KEY (`Tag_ID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `account`
--
ALTER TABLE `account`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `blog_post`
--
ALTER TABLE `blog_post`
MODIFY `Post_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `comments`
--
ALTER TABLE `comments`
MODIFY `Comment_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
MODIFY `Tag_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
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 */;