📄 kadege.sql

Size: 12,110 bytes
Path: /home/islandholiday/public_html/admin/panel/OLD/kadege.sql
Modified: 2020-10-02 04:19:12
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 09, 2019 at 11:51 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0

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: `sipano`
--

-- --------------------------------------------------------

--
-- Table structure for table `booking`
--

CREATE TABLE `booking` (
  `bID` int(6) NOT NULL,
  `rID` int(6) NOT NULL,
  `numberRooms` int(6) NOT NULL,
  `adults` int(6) NOT NULL,
  `childs` int(6) NOT NULL,
  `checkinn` date NOT NULL,
  `checkout` date NOT NULL,
  `cID` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `booking`
--

INSERT INTO `booking` (`bID`, `rID`, `numberRooms`, `adults`, `childs`, `checkinn`, `checkout`, `cID`) VALUES
(1, 1, 1, 1, 1, '2019-04-05', '2019-04-09', 0),
(2, 1, 1, 1, 1, '2019-04-05', '2019-04-09', 0),
(3, 2, 1, 1, 1, '2019-04-10', '2019-04-11', 1);

-- --------------------------------------------------------

--
-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `cID` int(6) NOT NULL,
  `Name` varchar(200) NOT NULL,
  `Email` varchar(200) NOT NULL,
  `Phone` varchar(200) NOT NULL,
  `gender` varchar(200) NOT NULL,
  `country` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `contacts`
--

INSERT INTO `contacts` (`cID`, `Name`, `Email`, `Phone`, `gender`, `country`) VALUES
(1, 'Zahor Hassan', 'hassan@gmail.com', '087978764', 'Female', 'Tanzania'),
(2, 'hassan', 'hassan@gmail.com', '89658767', 'Male', 'Tanzania'),
(3, 'hassan', 'hassan@gmail.com', '34354', 'Male', ''),
(4, 'hassan', 'hassan@gmail.com', '', 'Male', ''),
(5, 'john', '', '', 'Male', ''),
(6, 'john', '', '', 'Male', ''),
(7, 'john', '', '', 'Male', ''),
(8, 'john', '', '', 'Male', ''),
(9, 'john', '', '', 'Male', ''),
(10, 'Sharif Assaaa', '', '', 'Male', ''),
(11, 'james', '', '', 'Male', ''),
(12, 'james', '', '', 'Male', ''),
(13, '', '', '', 'Male', ''),
(14, 'awadh', '', '', 'Male', ''),
(15, 'mohd', '', '', 'Male', '');

-- --------------------------------------------------------

--
-- Table structure for table `room`
--

CREATE TABLE `room` (
  `rID` int(6) NOT NULL,
  `roomName` varchar(200) NOT NULL,
  `rtID` int(6) NOT NULL,
  `numberOfRooms` int(6) NOT NULL,
  `cencelation` varchar(150) NOT NULL,
  `maxPeople` int(6) NOT NULL,
  `minPeople` int(6) NOT NULL,
  `star` int(6) NOT NULL,
  `roomDescription` longtext NOT NULL,
  `bedCapacity` varchar(200) NOT NULL,
  `meal` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `room`
--

INSERT INTO `room` (`rID`, `roomName`, `rtID`, `numberOfRooms`, `cencelation`, `maxPeople`, `minPeople`, `star`, `roomDescription`, `bedCapacity`, `meal`) VALUES
(1, 'Twin Swahili room', 4, 3, 'Free cancelation', 2, 1, 4, '', '1', 'Free Breakfast'),
(2, 'President Villa', 2, 2, 'Free cancelation', 2, 1, 4, '', '1', 'Free Breakfast'),
(3, 'test room', 4, 6, 'Free cancelation', 0, 0, 0, '', '1', 'Free Breakfast'),
(4, 'this is my room', 2, 10, 'Free cancelation', 1, 1, 1, '', '1', 'Free Breakfast');

-- --------------------------------------------------------

--
-- Table structure for table `room_discount`
--

CREATE TABLE `room_discount` (
  `discountID` int(11) NOT NULL,
  `rID` int(6) NOT NULL,
  `rate` int(6) NOT NULL,
  `nights` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `room_discount`
--

INSERT INTO `room_discount` (`discountID`, `rID`, `rate`, `nights`) VALUES
(1, 2, 3, 6),
(2, 4, 4, 4);

-- --------------------------------------------------------

--
-- Table structure for table `room_iclude`
--

CREATE TABLE `room_iclude` (
  `includeID` int(11) NOT NULL,
  `rID` int(6) NOT NULL,
  `Airconditioning` varchar(100) NOT NULL,
  `Terrace` varchar(100) NOT NULL,
  `TV` varchar(100) NOT NULL,
  `Hairdryer` varchar(100) NOT NULL,
  `Ensuitebathroom` varchar(100) NOT NULL,
  `parking` varchar(100) NOT NULL,
  `water` varchar(100) NOT NULL,
  `Telephone` varchar(100) NOT NULL,
  `closet` varchar(100) NOT NULL,
  `Refrigerator` varchar(100) NOT NULL,
  `net` varchar(100) NOT NULL,
  `Fan` varchar(100) NOT NULL,
  `Balcony` varchar(100) NOT NULL,
  `Safety` varchar(100) NOT NULL,
  `Towels` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `room_iclude`
--

INSERT INTO `room_iclude` (`includeID`, `rID`, `Airconditioning`, `Terrace`, `TV`, `Hairdryer`, `Ensuitebathroom`, `parking`, `water`, `Telephone`, `closet`, `Refrigerator`, `net`, `Fan`, `Balcony`, `Safety`, `Towels`) VALUES
(1, 1, 'Air conditioning', 'Terrace', 'Flat-screen TV', 'Hairdryer', 'Ensuite bathroom', 'FREE private parking', 'Free water bottles', 'Telephone', 'Wardrobe or closet', 'Refrigerator', '', '', '', '', ''),
(2, 2, 'Air conditioning', 'Terrace', 'Flat-screen TV', 'Hairdryer', 'Ensuite bathroom', '', '', '', '', '', '', '', '', '', ''),
(3, 3, 'Air conditioning', 'Terrace', 'Flat-screen TV', 'Hairdryer', 'Ensuite bathroom', '', '', '', '', '', '', '', '', '', ''),
(4, 4, 'Air conditioning', 'Terrace', 'Flat-screen TV', 'Hairdryer', 'Ensuite bathroom', '', '', '', '', '', '', '', '', '', '');

-- --------------------------------------------------------

--
-- Table structure for table `room_images`
--

CREATE TABLE `room_images` (
  `rimageID` int(11) NOT NULL,
  `rID` int(6) NOT NULL,
  `picOne` varchar(200) NOT NULL,
  `picTwo` varchar(200) NOT NULL,
  `picThree` varchar(200) NOT NULL,
  `picFour` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `room_images`
--

INSERT INTO `room_images` (`rimageID`, `rID`, `picOne`, `picTwo`, `picThree`, `picFour`) VALUES
(1, 1, 'IMG_20190313_163352.jpg', 'IMG_20190313_163406.jpg', 'IMG_20190313_163412.jpg', 'IMG_20190313_163419.jpg'),
(2, 2, 'IMG-20190303-WA0014.jpg', 'IMG-20190303-WA0015.jpg', 'IMG-20190303-WA0016.jpg', 'IMG-20190303-WA0017.jpg'),
(3, 3, 'IMG-20190303-WA0007.jpg', 'IMG-20190303-WA0008.jpg', 'IMG-20190303-WA0009.jpg', 'IMG-20190303-WA0010.jpg'),
(4, 4, 'IMG-20190303-WA0015.jpg', 'IMG-20190303-WA0016.jpg', 'IMG-20190303-WA0017.jpg', '');

-- --------------------------------------------------------

--
-- Table structure for table `room_offer`
--

CREATE TABLE `room_offer` (
  `roomOID` int(11) NOT NULL,
  `rID` int(6) NOT NULL,
  `OfferPrice` int(11) NOT NULL,
  `FromDate` date NOT NULL,
  `ToDate` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `room_price`
--

CREATE TABLE `room_price` (
  `roomPriceID` int(11) NOT NULL,
  `rID` int(6) NOT NULL,
  `pricerate` varchar(100) NOT NULL,
  `currency` varchar(100) NOT NULL,
  `price` int(11) NOT NULL,
  `discount_status` varchar(100) NOT NULL,
  `offer_status` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `room_price`
--

INSERT INTO `room_price` (`roomPriceID`, `rID`, `pricerate`, `currency`, `price`, `discount_status`, `offer_status`) VALUES
(1, 1, 'Per Person', 'USD', 600, 'NULL', 'NULL'),
(3, 2, 'Per Night', 'USD', 120, 'NULL', 'NULL'),
(4, 3, 'Per Night', 'USD', 100, 'NULL', 'NULL'),
(5, 4, 'Per Person', 'USD', 200, 'NULL', 'NULL');

-- --------------------------------------------------------

--
-- Table structure for table `room_type`
--

CREATE TABLE `room_type` (
  `rtID` int(6) NOT NULL,
  `roomTypeName` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `room_type`
--

INSERT INTO `room_type` (`rtID`, `roomTypeName`) VALUES
(2, 'Delux'),
(4, 'Beach size');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `booking`
--
ALTER TABLE `booking`
  ADD PRIMARY KEY (`bID`),
  ADD KEY `cID` (`cID`),
  ADD KEY `rID` (`rID`);

--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
  ADD PRIMARY KEY (`cID`);

--
-- Indexes for table `room`
--
ALTER TABLE `room`
  ADD PRIMARY KEY (`rID`),
  ADD KEY `rtID` (`rtID`);

--
-- Indexes for table `room_discount`
--
ALTER TABLE `room_discount`
  ADD PRIMARY KEY (`discountID`),
  ADD KEY `rID` (`rID`);

--
-- Indexes for table `room_iclude`
--
ALTER TABLE `room_iclude`
  ADD PRIMARY KEY (`includeID`),
  ADD KEY `rID` (`rID`);

--
-- Indexes for table `room_images`
--
ALTER TABLE `room_images`
  ADD PRIMARY KEY (`rimageID`),
  ADD KEY `rID` (`rID`);

--
-- Indexes for table `room_offer`
--
ALTER TABLE `room_offer`
  ADD PRIMARY KEY (`roomOID`),
  ADD KEY `rID` (`rID`);

--
-- Indexes for table `room_price`
--
ALTER TABLE `room_price`
  ADD PRIMARY KEY (`roomPriceID`),
  ADD KEY `rID` (`rID`);

--
-- Indexes for table `room_type`
--
ALTER TABLE `room_type`
  ADD PRIMARY KEY (`rtID`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `booking`
--
ALTER TABLE `booking`
  MODIFY `bID` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
  MODIFY `cID` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `room`
--
ALTER TABLE `room`
  MODIFY `rID` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `room_discount`
--
ALTER TABLE `room_discount`
  MODIFY `discountID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `room_iclude`
--
ALTER TABLE `room_iclude`
  MODIFY `includeID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `room_images`
--
ALTER TABLE `room_images`
  MODIFY `rimageID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `room_offer`
--
ALTER TABLE `room_offer`
  MODIFY `roomOID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `room_price`
--
ALTER TABLE `room_price`
  MODIFY `roomPriceID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `room_type`
--
ALTER TABLE `room_type`
  MODIFY `rtID` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `booking`
--
ALTER TABLE `booking`
  ADD CONSTRAINT `booking_ibfk_1` FOREIGN KEY (`rID`) REFERENCES `room` (`rID`);

--
-- Constraints for table `room`
--
ALTER TABLE `room`
  ADD CONSTRAINT `room_ibfk_1` FOREIGN KEY (`rtID`) REFERENCES `room_type` (`rtID`);

--
-- Constraints for table `room_discount`
--
ALTER TABLE `room_discount`
  ADD CONSTRAINT `room_discount_ibfk_1` FOREIGN KEY (`rID`) REFERENCES `room` (`rID`);

--
-- Constraints for table `room_iclude`
--
ALTER TABLE `room_iclude`
  ADD CONSTRAINT `room_iclude_ibfk_1` FOREIGN KEY (`rID`) REFERENCES `room` (`rID`);

--
-- Constraints for table `room_images`
--
ALTER TABLE `room_images`
  ADD CONSTRAINT `room_images_ibfk_1` FOREIGN KEY (`rID`) REFERENCES `room` (`rID`);

--
-- Constraints for table `room_offer`
--
ALTER TABLE `room_offer`
  ADD CONSTRAINT `room_offer_ibfk_1` FOREIGN KEY (`rID`) REFERENCES `room` (`rID`);

--
-- Constraints for table `room_price`
--
ALTER TABLE `room_price`
  ADD CONSTRAINT `room_price_ibfk_1` FOREIGN KEY (`rID`) REFERENCES `room` (`rID`);
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 */;