SlideShare a Scribd company logo
Database Implementation plan for Refugio
Web System.
Prepared and created by KMDC2
i | P a g e
Table of Contents
Entity Relationship Diagram for Refugio Web System Project ..................................................1
Logical Database Model for Refugio Web System Project ........................................................2
Data Dictionary for Refugio Web System Project ......................................................................3
Functional Dependency Graph for Refugio Web System Project ..............................................5
SQL Script with Sample Data for Refugio Web System Project .................................................6
Declaration...............................................................................................................................14
1 | P a g e
Entity Relationship Diagram for Refugio Web System Project
Prepared by: KMDC2 Date: 16/01/2015
2 | P a g e
Logical Database Model for Refugio Web System Project
Prepared by: KMDC2 Date: 19/01/2015
3 | P a g e
Data Dictionary for Refugio Web System Project
Prepared by: KMDC2 Date: 16/01/2015
Owner
'Owner_ID'int(10) NOTNULL AUTO_INCREMENT,
'Owner_username'char(25) DEFAULT NOTNULL,
'Owner_full_name'varchar(50) DEFAULT NOT NULL,
'Owner_Password'varchar(50) DEFAULT NOT NULL,
'Owner_Email'varchar(50) DEFAULT NOT NULL,
'Contact_Details'int(30) DEFAULT NOTNULL,
'Responses_ID'int(10) NOTNULL AUTO_INCREMENT,
Registrants
'Reg_id'int(10) NOT NULL AUTO_INCREMENT,
'Reg_UserName'varchar(50) DEFAULT NOT NULL,
'Reg_FullName'varchar(50) DEFAULT NOTNULL,
'Contact_Details'int(30) DEFAULT NOTNULL,
'Reg_Password'varchar (20) DEFAULT NOT NULL,
'Reg_Address'varchar(100) DEFAULT NOT NULL,
Accommodation
'Accom_id' int(10) NOTNULL AUTO_INCREMENT,
'Accom_Description'varchar(500) DEFAULT NOT NULL,
'Accom_Type'varchar(50) DEFAULT NOTNULL,
'Accom_Check_in_Time'time(6)DEFAULTNOTNULL,
'Accom_Check_out_Time'time(6)DEFAULTNOTNULL,
'Accom_Price_Details'varchar(6) DEFAULTNOT NULL,
'Accom_No_Bedrooms'int(2) DEFAULTNOT NULL,
'Accom_No_Minimum_Nights'int(3) DEFAULTNOTNULL,
'Accom_Address'varchar(100) DEFAULT NOT NULL,
'Accom_Location'varchar(50) DEFAULT NOTNULL,
'Accom_Capacity'int(12) DEFAULT NOTNULL,
'Accom_Extra' varchar(45) DEFAULT NOT NULL,
'City_ID' int(10) DEFAULT NOT NULL
Country
'Country_id'int(10) NOT NULL AUTO_INCREMENT,
'Location' varchar(50) DEFAULT NOT NULL,
'Description'varchar(500) DEFAULT NOTNULL,
City
'City_id'int(10) NOT NULL AUTO_INCREMENT,
'Country_id'int(10) DEFAULT NULL,
'City_Name'varchar(50) DEFAULT NOTNULL,
4 | P a g e
Review
'Review_ID'int(10) NOTNULL AUTO_INCREMENT,
'Review_Description'varchar(500) NULL DEFAULT NULL,
'Review_ExperienceMark'int(5) NULLDEFAULT NULL,
'Review_Date'date NULLDEFAULT NULL,
'Review_Time'time(6) NULLDEFAULT NULL,
'Accommodation_ID'int(10) NULL DEFAULT NULL,
'Registrant_ID'int(10) NULL DEFAULT NULL,
'Booking_ID'int(10) NULL DEFAULT NULL,
'Responses_ID'int(10) NULLDEFAULT NULL
Response
'Response_id'int(10) NOTNULL AUTO_INCREMENT,
'Date_of_Response'date DEFAULTNOT NULL,
'Time_of_Response'time(6) DEFAULTNOT NULL,
'Owner_id'int(10) NOT NULL AUTO_INCREMENT,
Booking
'Booking_id'int(10) NOTNULL AUTO_INCREMENT,
'Booking_Arrival_Date'date DEFAULTNOT NULL,
'Booking_Departure_Date'date DEFAULTNOT NULL,
'Booking_No_Nights'int(10) DEFAULTNOT NULL,
'Booking_No_In_Party'int(10) DEFAULTNOT NULL,
'Accom_id' int(10) DEFAULT NULL,
'Registrant_id'int(10) DEFAULT NULL,
Admin
'Admin_Name'varchar(50) DEFAULT NOT NULL,
'Admin_Password'varchar(50) DEFAULT NOTNULL,
5 | P a g e
Functional Dependency Graph for Refugio Web System Project
Prepared by: KMDC2 Date: 16/01/2015
Registrants = 'Reg_id' , 'Reg_UserName','Reg_FullName','Contact_Details' 'Reg_Password',
'Reg_Address'
Owner = 'Owner_ID','Owner_username',`Owner_full_name`'Owner_Password''Owner_Email',
‘Owner_Contact_Details’,‘Responses_ID’
Accommodation = 'Accom_id' ,'Accom_Description','Accom_Type','Accom_Check_in_Time',
'Accom_Check_out_Time','Accom_Price_Details','Accom_No_Bedrooms','Accom_No_Minimum_Nig
hts' , 'Accom_Address','Accom_Location','Accom_Capacity','Accom_Extra' , 'City_ID' ,
Country = 'Country_id','Description' ,'Location'
City = 'City_id','Country_id','City_Name'
Review= 'Review_ID','Review_Description','Review_ExperienceMark','Review_Date'
'Review_Time','Accommodation_ID''Registrant_ID','Booking_ID','Responses_ID'
Response = 'Response_id','Date_of_Response','Time_of_Response','Owner_id'
Booking ='Booking_id','Booking_Arrival_Date','Booking_Departure_Date' ,'Booking_No_Nights',
'Booking_No_In_Party','Accom_id', 'Registrant_id'
Admin= 'Admin_Name','Admin_Password'
6 | P a g e
SQL Script with Sample Data for Refugio Web System Project
Prepared by: KMDC2 Date: 05/03/2015
CREATE DATABASE IF NOT EXISTS `refugio` /*!40100 DEFAULT CHARACTER
SET utf8 */;
USE `refugio`;
-- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86)
--
-- Host: localhost Database: refugio
-- ------------------------------------------------------
-- Server version 5.6.23-log
/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS,
UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,
FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE,
SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `accommodation`
--
DROP TABLE IF EXISTS `accommodation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `accommodation` (
`Accom_id` int(6) NOT NULL AUTO_INCREMENT,
`Accom_description` varchar(500) NOT NULL,
`Accom_check_in_time` time(6) NOT NULL,
`Accom_check_out_time` time(6) NOT NULL,
`Accom_price_details` varchar(50) NOT NULL,
`Accom_no_bedrooms` int(12) NOT NULL,
`Accom_minimun_no_nights` int(10) NOT NULL,
`Accom_address` varchar(100) NOTNULL,
7 | P a g e
`Accom_location` varchar(45) NOT NULL,
`Accom_capacity` int(12) NOT NULL,
`Accom_extras` varchar(45) NOT NULL,
`city_id` int(6) NOT NULL,
`Accom_Type` varchar(50) NOT NULL,
PRIMARY KEY (`Accom_id`),
KEY `city_id_idx` (`city_id`),
CONSTRAINT `city_id` FOREIGN KEY (`city_id`) REFERENCES `city` (`city_id`) ON
DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `accommodation`
--
LOCK TABLES `accommodation` WRITE;
/*!40000 ALTER TABLE `accommodation` DISABLE KEYS */;
INSERT INTO `accommodation` VALUES (1,'Stay in the amazing Excelsior Palace Hotel in
the renouned Italian Riviera for an experience of a lifetime. Situated overlooking the
coastline, Excelsior Palace Hotel is just 10 minutes to all local amenities such as bars, clubs,
shops and so on. Experience the breathtaking views across the Tyrrhenian Sea without
interruption from the comfort of the bedroom. Amenities include: Late bar, restaurant, luxury
spa, pool, jacuzzi, Twin / Double / King / Queen rooms as well as a honeymoon suite
','14:00:00.000000','12:00:00.000000','E255pps',200,1,'Viale Pietro Toselli, 8, 98039
Taormina ME, Italy','Italy',650,'AirCon,Internet,SkyTV',1,'Hotel'),(2,'Here at The Mercure
Nice Promenade des Anglais, we know what our guests want. Allow us to take you on a truly
memorable experiance with world class service at your finger tips. Our experienced and
friendly staff know exactly how your trip is meant to go, making it the trip of a
lifetime.','14:00:00.000000','15:00:00.000000','E185pps',200,1,'2 rue Halevy 06000 NICE -
FRANCE','France',650,'AirCon,Internet,SkyTV',2,'Hotel');
/*!40000 ALTER TABLE `accommodation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `admin`
--
DROP TABLE IF EXISTS `admin`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `admin` (
`admin_name` varchar(50) NOT NULL,
`admin_password` varchar(50) NOT NULL,
PRIMARY KEY (`admin_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `admin`
8 | P a g e
--
LOCK TABLES `admin` WRITE;
/*!40000 ALTER TABLE `admin` DISABLE KEYS */;
INSERT INTO `admin` VALUES ('Claire','adminTest896'),('Pat','adminTest265');
/*!40000 ALTER TABLE `admin` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `booking`
--
DROP TABLE IF EXISTS `booking`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `booking` (
`booking_id` int(6) NOT NULL AUTO_INCREMENT,
`booking_arrival_date` datetime NOT NULL,
`booking_departure_date` datetime NOT NULL,
`booking_no_of_nights` int(12) NOT NULL,
`booking_no_in_party` int(10) NOT NULL,
`registrant_id` int(6) NOT NULL,
`accom_id` int(6) NOT NULL,
PRIMARY KEY (`booking_id`),
KEY `registrant_id_idx` (`registrant_id`),
CONSTRAINT `registrant_id` FOREIGN KEY (`registrant_id`) REFERENCES `registrant`
(`registrant_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `booking`
--
LOCK TABLES `booking` WRITE;
/*!40000 ALTER TABLE `booking` DISABLE KEYS */;
INSERT INTO `booking` VALUES (1,'2012-04-15 00:00:00','2016-04-15
00:00:00',4,3,1,1),(2,'2024-03-15 00:00:00','2030-03-15 00:00:00',7,2,2,2);
/*!40000 ALTER TABLE `booking` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `city`
--
DROP TABLE IF EXISTS `city`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `city` (
`city_id` int(10) NOT NULL AUTO_INCREMENT,
9 | P a g e
`country_id` int(6) NOTNULL,
`city_name` varchar(50) NOT NULL,
PRIMARY KEY (`city_id`),
KEY `country_id_idx` (`country_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `city`
--
LOCK TABLES `city` WRITE;
/*!40000 ALTER TABLE `city` DISABLE KEYS */;
INSERT INTO `city` VALUES (1,1,'Sicily'),(2,2,'Nice');
/*!40000 ALTER TABLE `city` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `country`
--
DROP TABLE IF EXISTS `country`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country` (
`country_id` int(6) NOTNULL AUTO_INCREMENT,
`Location` varchar(50) NOT NULL,
`Description` varchar(500) NOT NULL,
PRIMARY KEY (`country_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `country`
--
LOCK TABLES `country` WRITE;
/*!40000 ALTER TABLE `country` DISABLE KEYS */;
INSERT INTO `country` VALUES (1,'Italy','Stay in the amazing Excelsior Palace Hotel in
the renouned Italian Riviera for an experience of a lifetime. Situated overlooking the
coastline, Excelsior Palace Hotel is just 10 minutes to all local amenities such as bars, clubs,
shops and so on. Experience the breathtaking views across the Tyrrhenian Sea without
interruption from the comfort of the bedroom. Amenities include: Late bar, restaurant, luxury
spa, pool, jacuzzi, Twin / Double / King / Queen rooms as well as a honeymoon suite
'),(2,'France',' Here at The Mercure Nice Promenade des Anglais, we know what our guests
want. Allow us to take you on a truly memorable experiance with world class service at your
finger tips. Our experienced and friendly staff know exactly how your trip is meant to go,
making it the trip of a lifetime.');
/*!40000 ALTER TABLE `country` ENABLE KEYS */;
UNLOCK TABLES;
10 | P a g e
--
-- Table structure for table `owner`
--
DROP TABLE IF EXISTS `owner`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `owner` (
`Owner_ID` int(10) NOT NULL AUTO_INCREMENT,
`Owner_username` varchar(50) NOT NULL,
`Owner_full_Name` varchar(50) NOT NULL,
`Owner_Password` varchar(50) NOT NULL,
`Owner_Email` varchar(50) NOT NULL,
`Owner_Contact_Details` int(30) NOT NULL,
`review_id` varchar(15) NOT NULL,
`response_id` int(10) NOT NULL,
PRIMARY KEY (`Owner_ID`),
KEY `response_id_idx` (`response_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `owner`
--
LOCK TABLES `owner` WRITE;
/*!40000 ALTER TABLE `owner` DISABLE KEYS */;
INSERT INTO `owner` VALUES (1,'OW22356874','Michael
McCarthy','lightBug2016','m.mccarthy@gmail.com',895634527,'RE4653',1),(2,'OW7554579
82','Mary
Fitzpatrick','EmpireGreenland92','m.fitzpatrick@gmail.com',865439865,'RE8692',2);
/*!40000 ALTER TABLE `owner` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `registrant`
--
DROP TABLE IF EXISTS `registrant`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `registrant` (
`registrant_id` int(6) NOT NULL AUTO_INCREMENT,
`reg_username` varchar(50) NOT NULL,
`reg_full_name` tinytext NOT NULL,
`reg_contact_details` int(30) NOT NULL,
`reg_password` varchar(20) NOT NULL,
`reg_address` varchar(100) NOT NULL,
`reg_email` varchar(50) NOT NULL,
11 | P a g e
PRIMARY KEY (`registrant_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `registrant`
--
LOCK TABLES `registrant` WRITE;
/*!40000 ALTER TABLE `registrant` DISABLE KEYS */;
INSERT INTO `registrant` VALUES (1,'R23568420','Eoin
Murphy',856497253,'Yellowbutterfly56','23 oakfield drive
Dublin','e.murphy@gmail.com'),(2,'R36875429','Maria
Collins',872576981,'Giantbluecooper2013','7 courtyard newcastle
Sligo','m.collins@gmail.com');
/*!40000 ALTER TABLE `registrant` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `response`
--
DROP TABLE IF EXISTS `response`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `response` (
`response_id` int(10) NOT NULL AUTO_INCREMENT,
`owner_id` int(10) NOT NULL,
`date_of_response` varchar(45) NOT NULL,
`time_of_response` varchar(45) NOT NULL,
`response_description` varchar(500) NOT NULL,
PRIMARY KEY (`response_id`),
KEY `owner_id_idx` (`owner_id`),
CONSTRAINT `owner_id` FOREIGN KEY (`owner_id`) REFERENCES `owner`
(`Owner_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `response`
--
LOCK TABLES `response` WRITE;
/*!40000 ALTER TABLE `response` DISABLE KEYS */;
INSERT INTO `response` VALUES (1,1,'2012-03-15','13:13:00','Dear Customer, r Thank
you very much for your review. It is wonderful that you relish your junior suite and that our
services came to your satisfaction. Kindly be advised although our first class Hotel Excelsior
is not officially star rated we provide a four star service.We hope to welcome you back in the
near future.r Best regards.Michael McCarthy'),(2,2,'2016-03-15','18:34:00','We would like to
thank you for your kind comment about our hotel and service. We appreciate your
12 | P a g e
recommendation which helps us to build a better e-reputation among hotels in Nice. We are
very grateful for having this chance to receive you.r We welcome you to come back visiting
Nice and it would be an honour for us to give you warm reception.r Faithfully yours, Mary
Fitzpatrick');
/*!40000 ALTER TABLE `response` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `review`
--
DROP TABLE IF EXISTS `review`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `review` (
`review_id` int(10) NOT NULL AUTO_INCREMENT,
`review_description` varchar(500) NOT NULL,
`review_Experience_mark` varchar(50) NOT NULL,
`review_Date` date NOT NULL,
`review_Time` time(6) NOT NULL,
`accom_id` int(10) NOT NULL,
`registrant_id` int(10) NOT NULL,
`booking_id` int(10) DEFAULT NULL,
`Response-id` int(10) DEFAULT NULL,
PRIMARY KEY (`review_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `review`
--
LOCK TABLES `review` WRITE;
/*!40000 ALTER TABLE `review` DISABLE KEYS */;
INSERT INTO `review` VALUES (1,'I spent many hours researching Italian hotels, finally
opting for the 3 star Excelsior, even though 4 stars are my general preference. Junior suites
were good value and the overall hotel ambiance most attractive making it the final choice.
This is a great hotel. ','3','2012-03-15','13:13:00.000000',1,2,2,1),(2,'This Hotel exceeded my
expectations. Lovely room furnished to a high standard. Welcoming staff and a fabulous
location. I would definitely stay here again. Cheap and very cheerful . I am a very very happy
customer. I most certainly will be back. ','4','2016-03-15','18:34:00.000000',2,1,1,2);
/*!40000 ALTER TABLE `review` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping events for database 'refugio'
--
--
-- Dumping routines for database 'refugio'
13 | P a g e
--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2015-03-05 12:17:2
14 | P a g e
Declaration
Prepared by: KMDC2 Date: 11/03/2015
We as a group, KMDC2, declare that all work enclosed in this document is 100% our own.
We declare that each member has contributed equally to the workload and has participated
in accordance with the requirements of the project specification.
KimHornibrook
ConorMurphy
Daniel Murphy
ConorO’Callaghan
Meghan Walsh

More Related Content

What's hot

Informe Final Red de Area Comunal
Informe Final Red de Area ComunalInforme Final Red de Area Comunal
Informe Final Red de Area ComunalMaria Tobon
 
Get into the FLOW with Extbase
Get into the FLOW with ExtbaseGet into the FLOW with Extbase
Get into the FLOW with Extbase
Jochen Rau
 
IP project for class 12 cbse
IP project for class 12 cbseIP project for class 12 cbse
IP project for class 12 cbse
siddharthjha34
 
Microsoft Power Point Reliability2
Microsoft Power Point   Reliability2Microsoft Power Point   Reliability2
Microsoft Power Point Reliability2
Ajay Kumar Singh
 
Standford 2015 week6
Standford 2015 week6Standford 2015 week6
Standford 2015 week6
彼得潘 Pan
 
知っておきたいSpring Batch Tips
知っておきたいSpring Batch Tips知っておきたいSpring Batch Tips
知っておきたいSpring Batch Tips
ikeyat
 
Unit testing with zend framework PHPBenelux
Unit testing with zend framework PHPBeneluxUnit testing with zend framework PHPBenelux
Unit testing with zend framework PHPBenelux
Michelangelo van Dam
 
CakePHP workshop
CakePHP workshopCakePHP workshop
CakePHP workshop
Walther Lalk
 
Leveraging Symfony2 Forms
Leveraging Symfony2 FormsLeveraging Symfony2 Forms
Leveraging Symfony2 Forms
Bernhard Schussek
 
Unit testing with zend framework tek11
Unit testing with zend framework tek11Unit testing with zend framework tek11
Unit testing with zend framework tek11
Michelangelo van Dam
 
UITableView Pain Points
UITableView Pain PointsUITableView Pain Points
UITableView Pain Points
Ken Auer
 
Cpp11 multithreading and_simd_linux_code
Cpp11 multithreading and_simd_linux_codeCpp11 multithreading and_simd_linux_code
Cpp11 multithreading and_simd_linux_codeRussell Childs
 
IPC 2015 ZF2rapid
IPC 2015 ZF2rapidIPC 2015 ZF2rapid
IPC 2015 ZF2rapid
Ralf Eggert
 
Vivipos Order Schema Release 1 2 X Rev 1 2 1
Vivipos Order Schema Release 1 2 X Rev 1 2 1Vivipos Order Schema Release 1 2 X Rev 1 2 1
Vivipos Order Schema Release 1 2 X Rev 1 2 1
racklin
 
Mongo db m101j
Mongo db m101jMongo db m101j
Mongo db m101j
Jay Thakkar
 
Oracle helpdesk database shema
Oracle helpdesk database shemaOracle helpdesk database shema
Oracle helpdesk database shema
Murat Gülci
 
OSGI workshop - Become A Certified Bundle Manager
OSGI workshop - Become A Certified Bundle ManagerOSGI workshop - Become A Certified Bundle Manager
OSGI workshop - Become A Certified Bundle Manager
Skills Matter
 
Swiftとメソッドのアレコレ
SwiftとメソッドのアレコレSwiftとメソッドのアレコレ
Swiftとメソッドのアレコレ
Nobuo Saito
 
Samrt attendance system using fingerprint
Samrt attendance system using fingerprintSamrt attendance system using fingerprint
Samrt attendance system using fingerprint
praful borad
 

What's hot (20)

Informe Final Red de Area Comunal
Informe Final Red de Area ComunalInforme Final Red de Area Comunal
Informe Final Red de Area Comunal
 
Get into the FLOW with Extbase
Get into the FLOW with ExtbaseGet into the FLOW with Extbase
Get into the FLOW with Extbase
 
IP project for class 12 cbse
IP project for class 12 cbseIP project for class 12 cbse
IP project for class 12 cbse
 
Microsoft Power Point Reliability2
Microsoft Power Point   Reliability2Microsoft Power Point   Reliability2
Microsoft Power Point Reliability2
 
Standford 2015 week6
Standford 2015 week6Standford 2015 week6
Standford 2015 week6
 
知っておきたいSpring Batch Tips
知っておきたいSpring Batch Tips知っておきたいSpring Batch Tips
知っておきたいSpring Batch Tips
 
Unit testing with zend framework PHPBenelux
Unit testing with zend framework PHPBeneluxUnit testing with zend framework PHPBenelux
Unit testing with zend framework PHPBenelux
 
CakePHP workshop
CakePHP workshopCakePHP workshop
CakePHP workshop
 
Leveraging Symfony2 Forms
Leveraging Symfony2 FormsLeveraging Symfony2 Forms
Leveraging Symfony2 Forms
 
Unit testing with zend framework tek11
Unit testing with zend framework tek11Unit testing with zend framework tek11
Unit testing with zend framework tek11
 
UITableView Pain Points
UITableView Pain PointsUITableView Pain Points
UITableView Pain Points
 
Sql notes
Sql notesSql notes
Sql notes
 
Cpp11 multithreading and_simd_linux_code
Cpp11 multithreading and_simd_linux_codeCpp11 multithreading and_simd_linux_code
Cpp11 multithreading and_simd_linux_code
 
IPC 2015 ZF2rapid
IPC 2015 ZF2rapidIPC 2015 ZF2rapid
IPC 2015 ZF2rapid
 
Vivipos Order Schema Release 1 2 X Rev 1 2 1
Vivipos Order Schema Release 1 2 X Rev 1 2 1Vivipos Order Schema Release 1 2 X Rev 1 2 1
Vivipos Order Schema Release 1 2 X Rev 1 2 1
 
Mongo db m101j
Mongo db m101jMongo db m101j
Mongo db m101j
 
Oracle helpdesk database shema
Oracle helpdesk database shemaOracle helpdesk database shema
Oracle helpdesk database shema
 
OSGI workshop - Become A Certified Bundle Manager
OSGI workshop - Become A Certified Bundle ManagerOSGI workshop - Become A Certified Bundle Manager
OSGI workshop - Become A Certified Bundle Manager
 
Swiftとメソッドのアレコレ
SwiftとメソッドのアレコレSwiftとメソッドのアレコレ
Swiftとメソッドのアレコレ
 
Samrt attendance system using fingerprint
Samrt attendance system using fingerprintSamrt attendance system using fingerprint
Samrt attendance system using fingerprint
 

Similar to Database Implementation Final Document

- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
 - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
ssuserfa5723
 
CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013
CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013
CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013
MariaDB Corporation
 
MySQL under the siege
MySQL under the siegeMySQL under the siege
MySQL under the siege
Source Ministry
 
PHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the testsPHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the tests
Michelangelo van Dam
 
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project ADN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
Dataconomy Media
 
Sql Injection Myths and Fallacies
Sql Injection Myths and FallaciesSql Injection Myths and Fallacies
Sql Injection Myths and Fallacies
Karwin Software Solutions LLC
 
CakePHP
CakePHPCakePHP
Scott sql script as per exercise1
Scott sql script as per exercise1Scott sql script as per exercise1
Scott sql script as per exercise1
AjayMaheshwari17
 
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
PgDay.Seoul
 
[Pgday.Seoul 2021] 2. Porting Oracle UDF and Optimization
[Pgday.Seoul 2021] 2. Porting Oracle UDF and Optimization[Pgday.Seoul 2021] 2. Porting Oracle UDF and Optimization
[Pgday.Seoul 2021] 2. Porting Oracle UDF and Optimization
PgDay.Seoul
 
Doctrine on IBMi
Doctrine on IBMiDoctrine on IBMi
Doctrine on IBMi
GuidoFaecke1
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developers
Connor McDonald
 
Compare mysql5.1.50 mysql5.5.8
Compare mysql5.1.50 mysql5.5.8Compare mysql5.1.50 mysql5.5.8
Compare mysql5.1.50 mysql5.5.8
Philip Zhong
 
Triggers and Stored Procedures
Triggers and Stored ProceduresTriggers and Stored Procedures
Triggers and Stored Procedures
Tharindu Weerasinghe
 
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Altinity Ltd
 
Running Intelligent Applications inside a Database: Deep Learning with Python...
Running Intelligent Applications inside a Database: Deep Learning with Python...Running Intelligent Applications inside a Database: Deep Learning with Python...
Running Intelligent Applications inside a Database: Deep Learning with Python...
Miguel González-Fierro
 
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfJava Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
SudhanshiBakre1
 
Netezza technicaloverviewportugues
Netezza technicaloverviewportugues Netezza technicaloverviewportugues
Netezza technicaloverviewportugues hdkid82
 
Service discovery and configuration provisioning
Service discovery and configuration provisioningService discovery and configuration provisioning
Service discovery and configuration provisioning
Source Ministry
 

Similar to Database Implementation Final Document (20)

- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
 - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
 
CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013
CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013
CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013
 
Sql ejercicio 1
Sql ejercicio 1Sql ejercicio 1
Sql ejercicio 1
 
MySQL under the siege
MySQL under the siegeMySQL under the siege
MySQL under the siege
 
PHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the testsPHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the tests
 
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project ADN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
 
Sql Injection Myths and Fallacies
Sql Injection Myths and FallaciesSql Injection Myths and Fallacies
Sql Injection Myths and Fallacies
 
CakePHP
CakePHPCakePHP
CakePHP
 
Scott sql script as per exercise1
Scott sql script as per exercise1Scott sql script as per exercise1
Scott sql script as per exercise1
 
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
 
[Pgday.Seoul 2021] 2. Porting Oracle UDF and Optimization
[Pgday.Seoul 2021] 2. Porting Oracle UDF and Optimization[Pgday.Seoul 2021] 2. Porting Oracle UDF and Optimization
[Pgday.Seoul 2021] 2. Porting Oracle UDF and Optimization
 
Doctrine on IBMi
Doctrine on IBMiDoctrine on IBMi
Doctrine on IBMi
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developers
 
Compare mysql5.1.50 mysql5.5.8
Compare mysql5.1.50 mysql5.5.8Compare mysql5.1.50 mysql5.5.8
Compare mysql5.1.50 mysql5.5.8
 
Triggers and Stored Procedures
Triggers and Stored ProceduresTriggers and Stored Procedures
Triggers and Stored Procedures
 
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
 
Running Intelligent Applications inside a Database: Deep Learning with Python...
Running Intelligent Applications inside a Database: Deep Learning with Python...Running Intelligent Applications inside a Database: Deep Learning with Python...
Running Intelligent Applications inside a Database: Deep Learning with Python...
 
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfJava Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
 
Netezza technicaloverviewportugues
Netezza technicaloverviewportugues Netezza technicaloverviewportugues
Netezza technicaloverviewportugues
 
Service discovery and configuration provisioning
Service discovery and configuration provisioningService discovery and configuration provisioning
Service discovery and configuration provisioning
 

Database Implementation Final Document

  • 1. Database Implementation plan for Refugio Web System. Prepared and created by KMDC2
  • 2. i | P a g e Table of Contents Entity Relationship Diagram for Refugio Web System Project ..................................................1 Logical Database Model for Refugio Web System Project ........................................................2 Data Dictionary for Refugio Web System Project ......................................................................3 Functional Dependency Graph for Refugio Web System Project ..............................................5 SQL Script with Sample Data for Refugio Web System Project .................................................6 Declaration...............................................................................................................................14
  • 3. 1 | P a g e Entity Relationship Diagram for Refugio Web System Project Prepared by: KMDC2 Date: 16/01/2015
  • 4. 2 | P a g e Logical Database Model for Refugio Web System Project Prepared by: KMDC2 Date: 19/01/2015
  • 5. 3 | P a g e Data Dictionary for Refugio Web System Project Prepared by: KMDC2 Date: 16/01/2015 Owner 'Owner_ID'int(10) NOTNULL AUTO_INCREMENT, 'Owner_username'char(25) DEFAULT NOTNULL, 'Owner_full_name'varchar(50) DEFAULT NOT NULL, 'Owner_Password'varchar(50) DEFAULT NOT NULL, 'Owner_Email'varchar(50) DEFAULT NOT NULL, 'Contact_Details'int(30) DEFAULT NOTNULL, 'Responses_ID'int(10) NOTNULL AUTO_INCREMENT, Registrants 'Reg_id'int(10) NOT NULL AUTO_INCREMENT, 'Reg_UserName'varchar(50) DEFAULT NOT NULL, 'Reg_FullName'varchar(50) DEFAULT NOTNULL, 'Contact_Details'int(30) DEFAULT NOTNULL, 'Reg_Password'varchar (20) DEFAULT NOT NULL, 'Reg_Address'varchar(100) DEFAULT NOT NULL, Accommodation 'Accom_id' int(10) NOTNULL AUTO_INCREMENT, 'Accom_Description'varchar(500) DEFAULT NOT NULL, 'Accom_Type'varchar(50) DEFAULT NOTNULL, 'Accom_Check_in_Time'time(6)DEFAULTNOTNULL, 'Accom_Check_out_Time'time(6)DEFAULTNOTNULL, 'Accom_Price_Details'varchar(6) DEFAULTNOT NULL, 'Accom_No_Bedrooms'int(2) DEFAULTNOT NULL, 'Accom_No_Minimum_Nights'int(3) DEFAULTNOTNULL, 'Accom_Address'varchar(100) DEFAULT NOT NULL, 'Accom_Location'varchar(50) DEFAULT NOTNULL, 'Accom_Capacity'int(12) DEFAULT NOTNULL, 'Accom_Extra' varchar(45) DEFAULT NOT NULL, 'City_ID' int(10) DEFAULT NOT NULL Country 'Country_id'int(10) NOT NULL AUTO_INCREMENT, 'Location' varchar(50) DEFAULT NOT NULL, 'Description'varchar(500) DEFAULT NOTNULL, City 'City_id'int(10) NOT NULL AUTO_INCREMENT, 'Country_id'int(10) DEFAULT NULL, 'City_Name'varchar(50) DEFAULT NOTNULL,
  • 6. 4 | P a g e Review 'Review_ID'int(10) NOTNULL AUTO_INCREMENT, 'Review_Description'varchar(500) NULL DEFAULT NULL, 'Review_ExperienceMark'int(5) NULLDEFAULT NULL, 'Review_Date'date NULLDEFAULT NULL, 'Review_Time'time(6) NULLDEFAULT NULL, 'Accommodation_ID'int(10) NULL DEFAULT NULL, 'Registrant_ID'int(10) NULL DEFAULT NULL, 'Booking_ID'int(10) NULL DEFAULT NULL, 'Responses_ID'int(10) NULLDEFAULT NULL Response 'Response_id'int(10) NOTNULL AUTO_INCREMENT, 'Date_of_Response'date DEFAULTNOT NULL, 'Time_of_Response'time(6) DEFAULTNOT NULL, 'Owner_id'int(10) NOT NULL AUTO_INCREMENT, Booking 'Booking_id'int(10) NOTNULL AUTO_INCREMENT, 'Booking_Arrival_Date'date DEFAULTNOT NULL, 'Booking_Departure_Date'date DEFAULTNOT NULL, 'Booking_No_Nights'int(10) DEFAULTNOT NULL, 'Booking_No_In_Party'int(10) DEFAULTNOT NULL, 'Accom_id' int(10) DEFAULT NULL, 'Registrant_id'int(10) DEFAULT NULL, Admin 'Admin_Name'varchar(50) DEFAULT NOT NULL, 'Admin_Password'varchar(50) DEFAULT NOTNULL,
  • 7. 5 | P a g e Functional Dependency Graph for Refugio Web System Project Prepared by: KMDC2 Date: 16/01/2015 Registrants = 'Reg_id' , 'Reg_UserName','Reg_FullName','Contact_Details' 'Reg_Password', 'Reg_Address' Owner = 'Owner_ID','Owner_username',`Owner_full_name`'Owner_Password''Owner_Email', ‘Owner_Contact_Details’,‘Responses_ID’ Accommodation = 'Accom_id' ,'Accom_Description','Accom_Type','Accom_Check_in_Time', 'Accom_Check_out_Time','Accom_Price_Details','Accom_No_Bedrooms','Accom_No_Minimum_Nig hts' , 'Accom_Address','Accom_Location','Accom_Capacity','Accom_Extra' , 'City_ID' , Country = 'Country_id','Description' ,'Location' City = 'City_id','Country_id','City_Name' Review= 'Review_ID','Review_Description','Review_ExperienceMark','Review_Date' 'Review_Time','Accommodation_ID''Registrant_ID','Booking_ID','Responses_ID' Response = 'Response_id','Date_of_Response','Time_of_Response','Owner_id' Booking ='Booking_id','Booking_Arrival_Date','Booking_Departure_Date' ,'Booking_No_Nights', 'Booking_No_In_Party','Accom_id', 'Registrant_id' Admin= 'Admin_Name','Admin_Password'
  • 8. 6 | P a g e SQL Script with Sample Data for Refugio Web System Project Prepared by: KMDC2 Date: 05/03/2015 CREATE DATABASE IF NOT EXISTS `refugio` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `refugio`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: localhost Database: refugio -- ------------------------------------------------------ -- Server version 5.6.23-log /*!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 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `accommodation` -- DROP TABLE IF EXISTS `accommodation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `accommodation` ( `Accom_id` int(6) NOT NULL AUTO_INCREMENT, `Accom_description` varchar(500) NOT NULL, `Accom_check_in_time` time(6) NOT NULL, `Accom_check_out_time` time(6) NOT NULL, `Accom_price_details` varchar(50) NOT NULL, `Accom_no_bedrooms` int(12) NOT NULL, `Accom_minimun_no_nights` int(10) NOT NULL, `Accom_address` varchar(100) NOTNULL,
  • 9. 7 | P a g e `Accom_location` varchar(45) NOT NULL, `Accom_capacity` int(12) NOT NULL, `Accom_extras` varchar(45) NOT NULL, `city_id` int(6) NOT NULL, `Accom_Type` varchar(50) NOT NULL, PRIMARY KEY (`Accom_id`), KEY `city_id_idx` (`city_id`), CONSTRAINT `city_id` FOREIGN KEY (`city_id`) REFERENCES `city` (`city_id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `accommodation` -- LOCK TABLES `accommodation` WRITE; /*!40000 ALTER TABLE `accommodation` DISABLE KEYS */; INSERT INTO `accommodation` VALUES (1,'Stay in the amazing Excelsior Palace Hotel in the renouned Italian Riviera for an experience of a lifetime. Situated overlooking the coastline, Excelsior Palace Hotel is just 10 minutes to all local amenities such as bars, clubs, shops and so on. Experience the breathtaking views across the Tyrrhenian Sea without interruption from the comfort of the bedroom. Amenities include: Late bar, restaurant, luxury spa, pool, jacuzzi, Twin / Double / King / Queen rooms as well as a honeymoon suite ','14:00:00.000000','12:00:00.000000','E255pps',200,1,'Viale Pietro Toselli, 8, 98039 Taormina ME, Italy','Italy',650,'AirCon,Internet,SkyTV',1,'Hotel'),(2,'Here at The Mercure Nice Promenade des Anglais, we know what our guests want. Allow us to take you on a truly memorable experiance with world class service at your finger tips. Our experienced and friendly staff know exactly how your trip is meant to go, making it the trip of a lifetime.','14:00:00.000000','15:00:00.000000','E185pps',200,1,'2 rue Halevy 06000 NICE - FRANCE','France',650,'AirCon,Internet,SkyTV',2,'Hotel'); /*!40000 ALTER TABLE `accommodation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `admin` -- DROP TABLE IF EXISTS `admin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `admin` ( `admin_name` varchar(50) NOT NULL, `admin_password` varchar(50) NOT NULL, PRIMARY KEY (`admin_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `admin`
  • 10. 8 | P a g e -- LOCK TABLES `admin` WRITE; /*!40000 ALTER TABLE `admin` DISABLE KEYS */; INSERT INTO `admin` VALUES ('Claire','adminTest896'),('Pat','adminTest265'); /*!40000 ALTER TABLE `admin` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `booking` -- DROP TABLE IF EXISTS `booking`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `booking` ( `booking_id` int(6) NOT NULL AUTO_INCREMENT, `booking_arrival_date` datetime NOT NULL, `booking_departure_date` datetime NOT NULL, `booking_no_of_nights` int(12) NOT NULL, `booking_no_in_party` int(10) NOT NULL, `registrant_id` int(6) NOT NULL, `accom_id` int(6) NOT NULL, PRIMARY KEY (`booking_id`), KEY `registrant_id_idx` (`registrant_id`), CONSTRAINT `registrant_id` FOREIGN KEY (`registrant_id`) REFERENCES `registrant` (`registrant_id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `booking` -- LOCK TABLES `booking` WRITE; /*!40000 ALTER TABLE `booking` DISABLE KEYS */; INSERT INTO `booking` VALUES (1,'2012-04-15 00:00:00','2016-04-15 00:00:00',4,3,1,1),(2,'2024-03-15 00:00:00','2030-03-15 00:00:00',7,2,2,2); /*!40000 ALTER TABLE `booking` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `city` -- DROP TABLE IF EXISTS `city`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `city` ( `city_id` int(10) NOT NULL AUTO_INCREMENT,
  • 11. 9 | P a g e `country_id` int(6) NOTNULL, `city_name` varchar(50) NOT NULL, PRIMARY KEY (`city_id`), KEY `country_id_idx` (`country_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `city` -- LOCK TABLES `city` WRITE; /*!40000 ALTER TABLE `city` DISABLE KEYS */; INSERT INTO `city` VALUES (1,1,'Sicily'),(2,2,'Nice'); /*!40000 ALTER TABLE `city` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `country` -- DROP TABLE IF EXISTS `country`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `country` ( `country_id` int(6) NOTNULL AUTO_INCREMENT, `Location` varchar(50) NOT NULL, `Description` varchar(500) NOT NULL, PRIMARY KEY (`country_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `country` -- LOCK TABLES `country` WRITE; /*!40000 ALTER TABLE `country` DISABLE KEYS */; INSERT INTO `country` VALUES (1,'Italy','Stay in the amazing Excelsior Palace Hotel in the renouned Italian Riviera for an experience of a lifetime. Situated overlooking the coastline, Excelsior Palace Hotel is just 10 minutes to all local amenities such as bars, clubs, shops and so on. Experience the breathtaking views across the Tyrrhenian Sea without interruption from the comfort of the bedroom. Amenities include: Late bar, restaurant, luxury spa, pool, jacuzzi, Twin / Double / King / Queen rooms as well as a honeymoon suite '),(2,'France',' Here at The Mercure Nice Promenade des Anglais, we know what our guests want. Allow us to take you on a truly memorable experiance with world class service at your finger tips. Our experienced and friendly staff know exactly how your trip is meant to go, making it the trip of a lifetime.'); /*!40000 ALTER TABLE `country` ENABLE KEYS */; UNLOCK TABLES;
  • 12. 10 | P a g e -- -- Table structure for table `owner` -- DROP TABLE IF EXISTS `owner`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `owner` ( `Owner_ID` int(10) NOT NULL AUTO_INCREMENT, `Owner_username` varchar(50) NOT NULL, `Owner_full_Name` varchar(50) NOT NULL, `Owner_Password` varchar(50) NOT NULL, `Owner_Email` varchar(50) NOT NULL, `Owner_Contact_Details` int(30) NOT NULL, `review_id` varchar(15) NOT NULL, `response_id` int(10) NOT NULL, PRIMARY KEY (`Owner_ID`), KEY `response_id_idx` (`response_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `owner` -- LOCK TABLES `owner` WRITE; /*!40000 ALTER TABLE `owner` DISABLE KEYS */; INSERT INTO `owner` VALUES (1,'OW22356874','Michael McCarthy','lightBug2016','m.mccarthy@gmail.com',895634527,'RE4653',1),(2,'OW7554579 82','Mary Fitzpatrick','EmpireGreenland92','m.fitzpatrick@gmail.com',865439865,'RE8692',2); /*!40000 ALTER TABLE `owner` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `registrant` -- DROP TABLE IF EXISTS `registrant`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `registrant` ( `registrant_id` int(6) NOT NULL AUTO_INCREMENT, `reg_username` varchar(50) NOT NULL, `reg_full_name` tinytext NOT NULL, `reg_contact_details` int(30) NOT NULL, `reg_password` varchar(20) NOT NULL, `reg_address` varchar(100) NOT NULL, `reg_email` varchar(50) NOT NULL,
  • 13. 11 | P a g e PRIMARY KEY (`registrant_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `registrant` -- LOCK TABLES `registrant` WRITE; /*!40000 ALTER TABLE `registrant` DISABLE KEYS */; INSERT INTO `registrant` VALUES (1,'R23568420','Eoin Murphy',856497253,'Yellowbutterfly56','23 oakfield drive Dublin','e.murphy@gmail.com'),(2,'R36875429','Maria Collins',872576981,'Giantbluecooper2013','7 courtyard newcastle Sligo','m.collins@gmail.com'); /*!40000 ALTER TABLE `registrant` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `response` -- DROP TABLE IF EXISTS `response`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `response` ( `response_id` int(10) NOT NULL AUTO_INCREMENT, `owner_id` int(10) NOT NULL, `date_of_response` varchar(45) NOT NULL, `time_of_response` varchar(45) NOT NULL, `response_description` varchar(500) NOT NULL, PRIMARY KEY (`response_id`), KEY `owner_id_idx` (`owner_id`), CONSTRAINT `owner_id` FOREIGN KEY (`owner_id`) REFERENCES `owner` (`Owner_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `response` -- LOCK TABLES `response` WRITE; /*!40000 ALTER TABLE `response` DISABLE KEYS */; INSERT INTO `response` VALUES (1,1,'2012-03-15','13:13:00','Dear Customer, r Thank you very much for your review. It is wonderful that you relish your junior suite and that our services came to your satisfaction. Kindly be advised although our first class Hotel Excelsior is not officially star rated we provide a four star service.We hope to welcome you back in the near future.r Best regards.Michael McCarthy'),(2,2,'2016-03-15','18:34:00','We would like to thank you for your kind comment about our hotel and service. We appreciate your
  • 14. 12 | P a g e recommendation which helps us to build a better e-reputation among hotels in Nice. We are very grateful for having this chance to receive you.r We welcome you to come back visiting Nice and it would be an honour for us to give you warm reception.r Faithfully yours, Mary Fitzpatrick'); /*!40000 ALTER TABLE `response` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `review` -- DROP TABLE IF EXISTS `review`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `review` ( `review_id` int(10) NOT NULL AUTO_INCREMENT, `review_description` varchar(500) NOT NULL, `review_Experience_mark` varchar(50) NOT NULL, `review_Date` date NOT NULL, `review_Time` time(6) NOT NULL, `accom_id` int(10) NOT NULL, `registrant_id` int(10) NOT NULL, `booking_id` int(10) DEFAULT NULL, `Response-id` int(10) DEFAULT NULL, PRIMARY KEY (`review_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `review` -- LOCK TABLES `review` WRITE; /*!40000 ALTER TABLE `review` DISABLE KEYS */; INSERT INTO `review` VALUES (1,'I spent many hours researching Italian hotels, finally opting for the 3 star Excelsior, even though 4 stars are my general preference. Junior suites were good value and the overall hotel ambiance most attractive making it the final choice. This is a great hotel. ','3','2012-03-15','13:13:00.000000',1,2,2,1),(2,'This Hotel exceeded my expectations. Lovely room furnished to a high standard. Welcoming staff and a fabulous location. I would definitely stay here again. Cheap and very cheerful . I am a very very happy customer. I most certainly will be back. ','4','2016-03-15','18:34:00.000000',2,1,1,2); /*!40000 ALTER TABLE `review` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping events for database 'refugio' -- -- -- Dumping routines for database 'refugio'
  • 15. 13 | P a g e -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!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 */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2015-03-05 12:17:2
  • 16. 14 | P a g e Declaration Prepared by: KMDC2 Date: 11/03/2015 We as a group, KMDC2, declare that all work enclosed in this document is 100% our own. We declare that each member has contributed equally to the workload and has participated in accordance with the requirements of the project specification. KimHornibrook ConorMurphy Daniel Murphy ConorO’Callaghan Meghan Walsh