-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 21, 2018 at 02:41 PM
-- Server version: 5.5.27
-- PHP Version: 5.4.7

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;

--
-- Database: `construction`
--

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

--
-- Table structure for table `site`
--

CREATE TABLE IF NOT EXISTS `site` (
  `site_id` int(6) NOT NULL,
  `logo` varchar(100) NOT NULL,
  `title` varchar(100) NOT NULL,
  `address` varchar(255) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `color_scheme` enum('blue','red','green') NOT NULL,
  `content_html` varchar(4000) NOT NULL,
  `footer_html` varchar(4000) NOT NULL,
  `PageTitlePrefix` varchar(150) DEFAULT NULL,
  PRIMARY KEY (`site_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `site`
--

INSERT INTO `site` (`site_id`, `logo`, `title`, `address`, `phone`, `color_scheme`, `content_html`, `footer_html`, `PageTitlePrefix`) VALUES
(1, 'Lasercorp', 'Lasercorp', 'Kathmandu', '01-4343433', 'blue', '<p>This is site 1 content.</p><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>', '', 'Desco Construction');

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

--
-- Table structure for table `site_images`
--

CREATE TABLE IF NOT EXISTS `site_images` (
  `image_id` int(11) NOT NULL AUTO_INCREMENT,
  `site_id` varchar(50) NOT NULL,
  `image_url` varchar(1000) NOT NULL,
  PRIMARY KEY (`image_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `site_images`
--

INSERT INTO `site_images` (`image_id`, `site_id`, `image_url`) VALUES
(1, '1', 'image/img01.jpg'),
(2, '1', 'image/img02.jpg'),
(3, '1', 'image/img03.jpg'),
(4, '1', 'image/img07.jpg');

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

--
-- Table structure for table `site_menu`
--

CREATE TABLE IF NOT EXISTS `site_menu` (
  `menu_id` int(11) NOT NULL AUTO_INCREMENT,
  `site_id` varchar(50) NOT NULL,
  `parent_menu_id` int(11) DEFAULT NULL,
  `label` varchar(50) NOT NULL,
  `link` varchar(1000) NOT NULL,
  `PageTitleID` int(6) DEFAULT NULL,
  PRIMARY KEY (`menu_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `site_menu`
--

INSERT INTO `site_menu` (`menu_id`, `site_id`, `parent_menu_id`, `label`, `link`, `PageTitleID`) VALUES
(2, '1', NULL, 'About Us', '#about', NULL),
(3, '1', NULL, 'Services', '#services', NULL),
(4, '1', NULL, 'Contact Us', '#contact', NULL);

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

--
-- Table structure for table `tbl_logo`
--

CREATE TABLE IF NOT EXISTS `tbl_logo` (
  `SiteID` int(6) NOT NULL,
  `LogoUrl` varchar(1000) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tbl_logo`
--

INSERT INTO `tbl_logo` (`SiteID`, `LogoUrl`) VALUES
(1, 'https://www.ca.construction/logo/1.jpg');

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

--
-- Table structure for table `tbl_pagetitle`
--

CREATE TABLE IF NOT EXISTS `tbl_pagetitle` (
  `PageTitleID` int(6) NOT NULL AUTO_INCREMENT,
  `PageTitle` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`PageTitleID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;

--
-- Dumping data for table `tbl_pagetitle`
--

INSERT INTO `tbl_pagetitle` (`PageTitleID`, `PageTitle`) VALUES
(1, 'Home'),
(2, 'Services');

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

--
-- Table structure for table `tbl_serviceareas`
--

CREATE TABLE IF NOT EXISTS `tbl_serviceareas` (
  `ServiceAreasID` int(6) NOT NULL AUTO_INCREMENT,
  `ServiceAreas` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`ServiceAreasID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;

--
-- Dumping data for table `tbl_serviceareas`
--

INSERT INTO `tbl_serviceareas` (`ServiceAreasID`, `ServiceAreas`) VALUES
(1, 'Westmount'),
(2, 'Notre Dame de Grace');

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

--
-- Table structure for table `tbl_services`
--

CREATE TABLE IF NOT EXISTS `tbl_services` (
  `ServiceID` int(11) NOT NULL AUTO_INCREMENT,
  `Services` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`ServiceID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;

--
-- Dumping data for table `tbl_services`
--

INSERT INTO `tbl_services` (`ServiceID`, `Services`) VALUES
(1, 'Flooring'),
(2, 'Decks'),
(3, 'Windows'),
(4, 'Roofing');

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

--
-- Table structure for table `tbl_servicetext`
--

CREATE TABLE IF NOT EXISTS `tbl_servicetext` (
  `ServiceTextID` int(11) NOT NULL AUTO_INCREMENT,
  `ServiceText` varchar(2000) COLLATE utf8_unicode_ci NOT NULL,
  `Category` int(6) DEFAULT NULL,
  PRIMARY KEY (`ServiceTextID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;

--
-- Dumping data for table `tbl_servicetext`
--

INSERT INTO `tbl_servicetext` (`ServiceTextID`, `ServiceText`, `Category`) VALUES
(1, 'Metal Roof~Shingles~Tar and Gravel~Tin~Cooper ', 4),
(2, 'Tar and gravel is the ultimate classic. The original way to renovate a flat roof and still trusted today. It is however, becoming a less popular option to clients who want a more eco-friendly option. This hot application roofing system emits highly toxic smoke into the atmosphere as it is an oil by-product.', 4);

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

--
-- Table structure for table `tbl_siteservices`
--

CREATE TABLE IF NOT EXISTS `tbl_siteservices` (
  `SiteID` int(6) NOT NULL,
  `ServiceID` int(6) NOT NULL,
  `OrderSort` int(6) DEFAULT NULL,
  `Parent` int(6) DEFAULT NULL,
  `TextType` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `ServiceText` int(6) NOT NULL,
  KEY `SiteID` (`SiteID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tbl_siteservices`
--

INSERT INTO `tbl_siteservices` (`SiteID`, `ServiceID`, `OrderSort`, `Parent`, `TextType`, `ServiceText`) VALUES
(1, 4, 1, NULL, 'bullet', 1),
(1, 4, 2, NULL, 'text', 2);

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

--
-- Table structure for table `tbl_site_serviceareas`
--

CREATE TABLE IF NOT EXISTS `tbl_site_serviceareas` (
  `SiteID` int(6) NOT NULL,
  `ServiceAreaID` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tbl_site_serviceareas`
--

INSERT INTO `tbl_site_serviceareas` (`SiteID`, `ServiceAreaID`) VALUES
(1, 2),
(1, 1);

/*!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 */;
