-
Notifications
You must be signed in to change notification settings - Fork 0
/
church.sql
199 lines (162 loc) · 5.67 KB
/
church.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
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 29, 2019 at 11:04 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.1.25
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: `church`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin_panel`
--
CREATE TABLE `admin_panel` (
`id` int(10) NOT NULL,
`datetime` varchar(50) NOT NULL,
`title` varchar(200) NOT NULL,
`category` varchar(100) NOT NULL,
`author` varchar(100) NOT NULL,
`image` varchar(200) NOT NULL,
`post` varchar(10000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin_panel`
--
INSERT INTO `admin_panel` (`id`, `datetime`, `title`, `category`, `author`, `image`, `post`) VALUES
(16, '23-August-2019 11:27:50', 'PHP', 'anything', 'Machen John', 'Chrysanthemum.jpg', 'flower pic'),
(17, '23-August-2019 12:22:10', 'emjayz', 'anything', 'Machen John', 'Penguins.jpg', 'say anything is good '),
(18, '24-August-2019 12:43:28', 'Learning Hacking', 'mobile phones', 'Machen John', 'Koala.jpg', 'showcase my talent'),
(19, '24-August-2019 12:45:33', 'Linux', 'cat name', 'Machen John', 'Lighthouse.jpg', 'Learning the basic of linux operating system');
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE `category` (
`id` int(100) NOT NULL,
`datetime` varchar(50) NOT NULL,
`name` varchar(100) NOT NULL,
`creatorname` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`id`, `datetime`, `name`, `creatorname`) VALUES
(9, '18-August-2019 23:34:00', 'food', 'Machen John'),
(10, '18-August-2019 23:50:53', 'mobile phones', 'Machen John'),
(11, '19-August-2019 00:05:31', 'cat name', 'Machen John'),
(12, '19-August-2019 00:06:10', 'cat name', 'Machen John'),
(14, '19-August-2019 09:59:42', 'anything', 'Machen John');
-- --------------------------------------------------------
--
-- Table structure for table `comment`
--
CREATE TABLE `comment` (
`id` int(10) NOT NULL,
`datetime` varchar(50) NOT NULL,
`name` varchar(200) NOT NULL,
`email` varchar(200) NOT NULL,
`comment` varchar(500) NOT NULL,
`status` varchar(5) NOT NULL,
`admin_panel_id` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `comment`
--
INSERT INTO `comment` (`id`, `datetime`, `name`, `email`, `comment`, `status`, `admin_panel_id`) VALUES
(19, '24-August-2019 18:45:01', 'asasdd', 'safdfasfas@gmail.colm', 'adfsasdfdd', 'OFF', 19),
(20, '24-August-2019 18:49:42', 'adfsadff', 'machenjosephjohn@gmail.com', 'rgdggffg', 'ON', 19),
(22, '26-August-2019 11:05:02', 'joseph john', 'macjayz@gmail.com', 'Glyphs in cursive fonts generally have either joining strokes or other cursive characteristics beyond those of italic typefaces. The glyphs are partially or completely connected, and the result looks more like handwritten pen or brush ', 'ON', 16);
-- --------------------------------------------------------
--
-- Table structure for table `homepage`
--
CREATE TABLE `homepage` (
`id` int(100) NOT NULL,
`logo` varchar(100) NOT NULL,
`welcome` varchar(100) NOT NULL,
`topimage` varchar(100) NOT NULL,
`image1` varchar(100) NOT NULL,
`image2` varchar(100) NOT NULL,
`image3` varchar(100) NOT NULL,
`image4` varchar(100) NOT NULL,
`menus` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `homepage`
--
INSERT INTO `homepage` (`id`, `logo`, `welcome`, `topimage`, `image1`, `image2`, `image3`, `image4`, `menus`) VALUES
(1, 'logo.png', 'Welcome To Celestial Church Of God', 'clouds.jpg', '1.jpg', '2.jpg', '3.jpg', '4.jpg', 'Home'),
(2, '', '', '', '', '', '', '', 'Church Services'),
(3, '', '', '', '', '', '', '', 'Community'),
(4, '', '', '', '', '', '', '', 'Bible Lessons'),
(5, '', '', '', '', '', '', '', 'Shepherds Corner');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin_panel`
--
ALTER TABLE `admin_panel`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `comment`
--
ALTER TABLE `comment`
ADD PRIMARY KEY (`id`),
ADD KEY `admin_panel_id` (`admin_panel_id`);
--
-- Indexes for table `homepage`
--
ALTER TABLE `homepage`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin_panel`
--
ALTER TABLE `admin_panel`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `comment`
--
ALTER TABLE `comment`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `homepage`
--
ALTER TABLE `homepage`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `comment`
--
ALTER TABLE `comment`
ADD CONSTRAINT `foreign key to admin_panel table` FOREIGN KEY (`admin_panel_id`) REFERENCES `admin_panel` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
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 */;