-
Notifications
You must be signed in to change notification settings - Fork 0
/
dragonhousedb.sql
332 lines (263 loc) · 9.33 KB
/
dragonhousedb.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
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 21, 2017 at 06:16 AM
-- Server version: 5.5.8
-- PHP Version: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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 utf8 */;
--
-- Database: `dragonhousedb`
--
-- --------------------------------------------------------
--
-- Table structure for table `tblaccomodation`
--
CREATE TABLE IF NOT EXISTS `tblaccomodation` (
`ACCOMID` int(11) NOT NULL AUTO_INCREMENT,
`ACCOMODATION` varchar(30) NOT NULL,
`ACCOMDESC` varchar(90) NOT NULL,
PRIMARY KEY (`ACCOMID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
--
-- Dumping data for table `tblaccomodation`
--
INSERT INTO `tblaccomodation` (`ACCOMID`, `ACCOMODATION`, `ACCOMDESC`) VALUES
(12, 'Standard Room', 'max 22hrs.'),
(13, 'Travelers Time', 'max of 12hrs.'),
(15, 'Bayanihan Room', 'max 22hrs.');
-- --------------------------------------------------------
--
-- Table structure for table `tblauto`
--
CREATE TABLE IF NOT EXISTS `tblauto` (
`autoid` int(11) NOT NULL AUTO_INCREMENT,
`start` int(11) NOT NULL,
`end` int(11) NOT NULL,
PRIMARY KEY (`autoid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tblauto`
--
INSERT INTO `tblauto` (`autoid`, `start`, `end`) VALUES
(1, 11122, 1);
-- --------------------------------------------------------
--
-- Table structure for table `tblfirstpartition`
--
CREATE TABLE IF NOT EXISTS `tblfirstpartition` (
`FirstPID` int(11) NOT NULL AUTO_INCREMENT,
`FirstPTitle` text NOT NULL,
`FirstPImage` varchar(99) NOT NULL,
`FirstPSubTitle` text NOT NULL,
`FirstPDescription` text NOT NULL,
PRIMARY KEY (`FirstPID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tblfirstpartition`
--
INSERT INTO `tblfirstpartition` (`FirstPID`, `FirstPTitle`, `FirstPImage`, `FirstPSubTitle`, `FirstPDescription`) VALUES
(1, 'Welcome to Dragon House', '5page-img1.png', 'In our Hotel', 'Located on the hills of Nice, a short distance from the famous Promenade des Anglais, Hotel Anis is one of the hotels in the Costa Azzurra (or Blue Coast) able to satisfy the different needs of its guests with comfort and first rate services. It is only 2 km from the airport and from highway exits. The hotel has a large parking area , a real luxury in a city like Nice.');
-- --------------------------------------------------------
--
-- Table structure for table `tblguest`
--
CREATE TABLE IF NOT EXISTS `tblguest` (
`GUESTID` int(11) NOT NULL AUTO_INCREMENT,
`REFNO` int(11) NOT NULL,
`G_FNAME` varchar(30) NOT NULL,
`G_LNAME` varchar(30) NOT NULL,
`G_CITY` varchar(90) NOT NULL,
`G_ADDRESS` varchar(90) NOT NULL,
`DBIRTH` date NOT NULL,
`G_PHONE` varchar(20) NOT NULL,
`G_NATIONALITY` varchar(30) NOT NULL,
`G_COMPANY` varchar(90) NOT NULL,
`G_CADDRESS` varchar(90) NOT NULL,
`G_TERMS` tinyint(4) NOT NULL,
`G_EMAIL` varchar(99) NOT NULL,
`G_UNAME` varchar(255) NOT NULL,
`G_PASS` varchar(255) NOT NULL,
`ZIP` int(11) NOT NULL,
`LOCATION` varchar(125) NOT NULL,
PRIMARY KEY (`GUESTID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `tblguest`
--
-- --------------------------------------------------------
--
-- Table structure for table `tblmeal`
--
CREATE TABLE IF NOT EXISTS `tblmeal` (
`MealID` int(11) NOT NULL AUTO_INCREMENT,
`MealType` varchar(90) NOT NULL,
`MealPrice` double NOT NULL,
PRIMARY KEY (`MealID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `tblmeal`
--
INSERT INTO `tblmeal` (`MealID`, `MealType`, `MealPrice`) VALUES
(4, 'Lunch', 10),
(7, 'HB', 10);
-- --------------------------------------------------------
--
-- Table structure for table `tblpayment`
--
CREATE TABLE IF NOT EXISTS `tblpayment` (
`SUMMARYID` int(11) NOT NULL AUTO_INCREMENT,
`TRANSDATE` datetime NOT NULL,
`CONFIRMATIONCODE` varchar(30) NOT NULL,
`PQTY` int(11) NOT NULL,
`GUESTID` int(11) NOT NULL,
`SPRICE` double NOT NULL,
`MSGVIEW` tinyint(1) NOT NULL,
`STATUS` varchar(30) NOT NULL,
PRIMARY KEY (`SUMMARYID`),
UNIQUE KEY `CONFIRMATIONCODE` (`CONFIRMATIONCODE`),
KEY `GUESTID` (`GUESTID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `tblpayment`
--
-- --------------------------------------------------------
--
-- Table structure for table `tblreservation`
--
CREATE TABLE IF NOT EXISTS `tblreservation` (
`RESERVEID` int(11) NOT NULL AUTO_INCREMENT,
`CONFIRMATIONCODE` varchar(50) NOT NULL,
`TRANSDATE` date NOT NULL,
`ROOMID` int(11) NOT NULL,
`ARRIVAL` datetime NOT NULL,
`DEPARTURE` datetime NOT NULL,
`RPRICE` double NOT NULL,
`GUESTID` int(11) NOT NULL,
`PRORPOSE` varchar(30) NOT NULL,
`STATUS` varchar(11) NOT NULL,
`BOOKDATE` datetime NOT NULL,
`REMARKS` text NOT NULL,
`USERID` int(11) NOT NULL,
PRIMARY KEY (`RESERVEID`),
KEY `ROOMID` (`ROOMID`),
KEY `GUESTID` (`GUESTID`),
KEY `CONFIRMATIONCODE` (`CONFIRMATIONCODE`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `tblreservation`
--
-- --------------------------------------------------------
--
-- Table structure for table `tblroom`
--
CREATE TABLE IF NOT EXISTS `tblroom` (
`ROOMID` int(11) NOT NULL AUTO_INCREMENT,
`ROOMNUM` int(11) NOT NULL,
`ACCOMID` int(11) NOT NULL,
`ROOM` varchar(30) NOT NULL,
`ROOMDESC` varchar(255) NOT NULL,
`NUMPERSON` int(11) NOT NULL,
`PRICE` double NOT NULL,
`ROOMIMAGE` varchar(255) NOT NULL,
`OROOMNUM` int(11) NOT NULL,
`RoomTypeID` int(11) NOT NULL,
PRIMARY KEY (`ROOMID`),
KEY `ACCOMID` (`ACCOMID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
--
-- Dumping data for table `tblroom`
--
INSERT INTO `tblroom` (`ROOMID`, `ROOMNUM`, `ACCOMID`, `ROOM`, `ROOMDESC`, `NUMPERSON`, `PRICE`, `ROOMIMAGE`, `OROOMNUM`, `RoomTypeID`) VALUES
(11, 0, 12, 'Wing A', 'without TV', 1, 10, 'rooms/1.jpg', 1, 0),
(12, 0, 12, 'Wing A', 'Without TV', 2, 15, 'rooms/1.jpg', 1, 0),
(13, 1, 13, 'Wing A', 'Without TV', 1, 445, 'rooms/2.jpg', 3, 0),
(14, 2, 13, 'Wing A', 'Without TV', 2, 495, 'rooms/3.jpg', 4, 0),
(15, 1, 15, 'Wing A', 'Without TV | for groups - minimum of 5 pax | 250php per person', 5, 1250, 'rooms/4.jpg', 1, 0),
(16, -2, 12, 'Wing B and Ground Floor', 'With TV', 1, 725, 'rooms/3page-img13.jpg', 1, 0);
-- --------------------------------------------------------
--
-- Table structure for table `tblroomtype`
--
CREATE TABLE IF NOT EXISTS `tblroomtype` (
`RoomTypeID` int(11) NOT NULL AUTO_INCREMENT,
`RoomType` varchar(30) NOT NULL,
PRIMARY KEY (`RoomTypeID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `tblroomtype`
--
-- --------------------------------------------------------
--
-- Table structure for table `tblslideshow`
--
CREATE TABLE IF NOT EXISTS `tblslideshow` (
`SlideID` int(11) NOT NULL AUTO_INCREMENT,
`SlideImage` text NOT NULL,
`SlideCaption` text NOT NULL,
PRIMARY KEY (`SlideID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
--
-- Dumping data for table `tblslideshow`
--
INSERT INTO `tblslideshow` (`SlideID`, `SlideImage`, `SlideCaption`) VALUES
(15, 'images.jpg', ''),
(16, 'slide-image-3.jpg', ''),
(17, 'header-bg1.jpg', ''),
(18, 'slide-image-3.jpg', ''),
(19, 'Desert.jpg', ''),
(20, 'Koala.jpg', '');
-- --------------------------------------------------------
--
-- Table structure for table `tbltitle`
--
CREATE TABLE IF NOT EXISTS `tbltitle` (
`TItleID` int(11) NOT NULL AUTO_INCREMENT,
`Title` text NOT NULL,
`Subtitle` text NOT NULL,
PRIMARY KEY (`TItleID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tbltitle`
--
INSERT INTO `tbltitle` (`TItleID`, `Title`, `Subtitle`) VALUES
(1, 'Dragon House', '24hrs.');
-- --------------------------------------------------------
--
-- Table structure for table `tbluseraccount`
--
CREATE TABLE IF NOT EXISTS `tbluseraccount` (
`USERID` int(11) NOT NULL AUTO_INCREMENT,
`UNAME` varchar(30) NOT NULL,
`USER_NAME` varchar(30) NOT NULL,
`UPASS` varchar(90) NOT NULL,
`ROLE` varchar(30) NOT NULL,
`PHONE` int(11) NOT NULL,
PRIMARY KEY (`USERID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tbluseraccount`
--
INSERT INTO `tbluseraccount` (`USERID`, `UNAME`, `USER_NAME`, `UPASS`, `ROLE`, `PHONE`) VALUES
(1, 'Anonymous', 'admin', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'Administrator', 912856478);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_setting_contact`
--
CREATE TABLE IF NOT EXISTS `tbl_setting_contact` (
`SetCon_ID` int(11) NOT NULL AUTO_INCREMENT,
`SetConLocation` varchar(99) NOT NULL,
`SetConEmail` varchar(99) NOT NULL,
`SetConContactNo` varchar(99) NOT NULL,
PRIMARY KEY (`SetCon_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tbl_setting_contact`
--
INSERT INTO `tbl_setting_contact` (`SetCon_ID`, `SetConLocation`, `SetConEmail`, `SetConContactNo`) VALUES
(1, 'Guanzon Street, Kabankalan Catholic College Kabankalan City, 6111 philippines', '[email protected]', '(034)471-24-79');