-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: db
-- Generation Time: Feb 15, 2019 at 06:59 AM
-- Server version: 5.6.41
-- PHP Version: 7.2.8

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

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

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

CREATE TABLE `booking` (
  `id` int(11) NOT NULL,
  `event_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL COMMENT 'Guest -  0',
  `bookId` varchar(45) DEFAULT NULL,
  `event_date_id` int(11) NOT NULL,
  `qrcode` varchar(100) DEFAULT NULL,
  `no_of_ticket` int(11) DEFAULT NULL,
  `ticket_details` varchar(255) NOT NULL,
  `amount` double DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `phone` varchar(25) DEFAULT NULL,
  `reserved_by` int(11) DEFAULT '3' COMMENT '1 - SuperAdmin\n2 - Provider\n3 - Customer',
  `status` int(11) DEFAULT '1' COMMENT '0 - Cancelled, 1 - Booked, 2 - Completed, 3 - Pending'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

INSERT INTO `booking` (`id`, `event_id`, `customer_id`, `bookId`, `event_date_id`, `qrcode`, `no_of_ticket`, `ticket_details`, `amount`, `email`, `phone`, `reserved_by`, `status`) VALUES
(1, 3, 3, 'BKD123987', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 'adarsh@gmail.com', '9847586912', 3, 1),
(2, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '{\"price\":\"250\",\"no_ticket\":\"2\",\"total_price\":\"500\"}', 125, 'adarsh@gmail.com', '9847586912', 3, 1),
(3, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 'adarsh@gmail.com', '9847586912', 3, 1),
(4, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 'adarsh@gmail.com', '9847586912', 3, 1),
(5, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 'adarsh@gmail.com', '9847586912', 3, 1),
(6, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 'adarsh@gmail.com', '9847586912', 3, 1),
(7, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 'adarsh@gmail.com', '9847586912', 3, 1),
(8, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 'adarsh@gmail.com', '9847586912', 3, 1),
(9, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 'adarsh@gmail.com', '9847586912', 3, 1),
(10, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 'adarsh@gmail.com', '9847586912', 3, 1),
(11, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 'adarsh@gmail.com', '9847586912', 3, 1),
(12, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 'adarsh@gmail.com', '9847586912', 3, 1),
(13, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 'adarsh@gmail.com', '9847586912', 3, 1),
(14, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 'adarsh@gmail.com', '9847586912', 3, 1),
(15, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 'adarsh@gmail.com', '9847586912', 3, 1),
(16, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 'adarsh@gmail.com', '9847586912', 3, 1),
(17, 3, 3, 'TO1902149151', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3),
(18, 3, 3, 'TO1902145194', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3),
(19, 3, 3, 'TO1902149856', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3);

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

--
-- Table structure for table `customer`
--

CREATE TABLE `customer` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `phone` varchar(25) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `gender` varchar(15) NOT NULL,
  `dob` varchar(50) NOT NULL,
  `city` varchar(255) NOT NULL,
  `reset_key` varchar(255) DEFAULT NULL,
  `social_id` varchar(250) DEFAULT NULL,
  `profile_image` varchar(250) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `customer`
--

INSERT INTO `customer` (`id`, `customer_id`, `name`, `phone`, `email`, `gender`, `dob`, `city`, `reset_key`, `social_id`, `profile_image`) VALUES
(1, 3, 'Tester', '9995559194', 'customer@gmail.com', '2', '31/07/1990', 'Tester City', NULL, NULL, 'assets/uploads/155016015727232.jpg'),
(3, 5, NULL, '9995559194e', 'customer_one@gmail.com', '', '', '', NULL, NULL, NULL),
(4, 6, NULL, '9999999998', 'customerone@gmail.com', '', '', '', NULL, NULL, NULL),
(5, 7, NULL, '1234567890', 'epocnova@gmail.com', '', '', '', '5c63ee6845d281550052968', NULL, NULL),
(6, 8, NULL, '1234567891', 'epocnova2@gmail.com', '', '', '', NULL, NULL, NULL),
(7, 9, NULL, NULL, 'eoicsadas@gmail.com', '', '', '', NULL, NULL, NULL);

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

--
-- Table structure for table `customer_auth`
--

CREATE TABLE `customer_auth` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `auth_token` varchar(255) NOT NULL,
  `sync_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `customer_auth`
--

INSERT INTO `customer_auth` (`id`, `user_id`, `auth_token`, `sync_time`) VALUES
(1, 3, 'ba436bc1b7881e14ee892b03210d5b54', '2019-02-12 13:44:16'),
(2, 4, '75d49c8766fd4901491055086d1d8243', '2019-02-13 09:22:42'),
(3, 4, '211d5241f4dec6974803ed373c935c2d', '2019-02-13 09:23:53'),
(4, 3, '2591e63438bc954dfcd34931b363d455', '2019-02-13 09:24:27'),
(5, 5, '7295010bd3934cb61acd8b44ec98da41', '2019-02-13 09:25:32'),
(6, 6, '94ddb63001d2500d156c313488ae1562', '2019-02-13 09:26:15'),
(7, 7, '34abdc1d3faad3ff72f907084ba53dbb', '2019-02-13 09:43:51'),
(8, 8, '85ac1894e482c039cbc7bc102c01b869', '2019-02-13 09:44:42'),
(9, 9, '1e914ac0f56d95fbe3c3d7e1151b7fd0', '2019-02-13 10:08:29'),
(10, 3, 'fd7b647d239e59e7090e7b7e95877c34', '2019-02-13 10:54:23'),
(11, 3, 'd4668b818afba5d6dee3dceed9fecafb', '2019-02-13 15:54:02'),
(12, 3, 'cb6ca5d535652207197800979e3ddd4a', '2019-02-13 15:54:57'),
(13, 3, '536b281d6ad31931818cc2b552dc2010', '2019-02-13 15:55:11'),
(14, 3, '7591c952051a7b910ab75f56822191f2', '2019-02-14 14:20:10'),
(15, 3, '33f6dc286585395be2c405cfb9674c07', '2019-02-14 14:22:46'),
(16, 3, '11866cec9dc42a8be5fdac02a464bfe5', '2019-02-14 15:18:29');

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

--
-- Table structure for table `events`
--

CREATE TABLE `events` (
  `event_id` int(11) NOT NULL,
  `venue_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `provider_id` int(11) DEFAULT NULL,
  `event_name` varchar(250) DEFAULT NULL,
  `event_discription` longtext,
  `seat_pricing` longtext,
  `custom_seat_layout` longtext,
  `status` tinyint(3) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `events`
--

INSERT INTO `events` (`event_id`, `venue_id`, `category_id`, `provider_id`, `event_name`, `event_discription`, `seat_pricing`, `custom_seat_layout`, `status`) VALUES
(2, 3, 2, 1, 'dfrgdrfg', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', '{\"price\":null,\"price_details\":null}', '', 1),
(3, 3, 1, 1, 'sdfg', 'dfgr', '{\"price\":\"\",\"price_details\":\"\"}', '[{\"color\":\"Red\",\"price\":\"11\"},{\"color\":\"Blue\",\"price\":\"256\"},{\"color\":\"Blue R\",\"price\":\"6385\"},{\"color\":\"Yellow\",\"price\":\"3258\"},{\"color\":\"Yellow Y\",\"price\":\"558\"}]', 1),
(4, 3, 1, 1, '111', '1111', '{\"price\":\"\",\"price_details\":\"\"}', '', 1),
(5, 2, 2, 1, 'szdf', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', '{\"price\":\"555\",\"price_details\":\"aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  aaaaaaa aaaaa aaaa  \"}', '', 1),
(6, 3, 1, 1, 'New Event', 'sdfgdrf', '', '[{\"color\":\"Red\",\"price\":\"100\"},{\"color\":\"Blue\",\"price\":\"120\"},{\"color\":\"Blue R\",\"price\":\"130\"},{\"color\":\"Yellow\",\"price\":\"140\"},{\"color\":\"Yellow Y\",\"price\":\"150\"}]', 1);

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

--
-- Table structure for table `event_category`
--

CREATE TABLE `event_category` (
  `cat_id` int(11) NOT NULL,
  `category` varchar(250) DEFAULT NULL,
  `category_description` longtext,
  `category_image` varchar(250) DEFAULT NULL,
  `status` tinyint(3) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `event_category`
--

INSERT INTO `event_category` (`cat_id`, `category`, `category_description`, `category_image`, `status`) VALUES
(1, 'Movies', 'Teste Description', 'assets/uploads/services/1550213061_giphy.gif', 1),
(2, '11111', '1111111', 'assets/uploads/services/1550139949_giphy.gif', 1);

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

--
-- Table structure for table `event_date_time`
--

CREATE TABLE `event_date_time` (
  `id` int(11) NOT NULL,
  `event_id` int(11) DEFAULT NULL,
  `date` varchar(150) DEFAULT NULL,
  `time` varchar(150) DEFAULT NULL,
  `status` tinyint(3) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `event_date_time`
--

INSERT INTO `event_date_time` (`id`, `event_id`, `date`, `time`, `status`) VALUES
(18, 3, '2019-02-18', '11:30', 1),
(19, 3, '2019-02-15', '11:30', 1),
(20, 4, '2019-02-16', '11:30', 1),
(61, 3, '2019-02-16', '12:00', 1),
(62, 3, '2019-02-16', '01:00', 1),
(63, 5, '2019-01-01', '02:00', 1),
(64, 5, '2019-01-01', '03:00', 1),
(65, 5, '2019-02-14', '12:00', 1),
(66, 5, '2019-02-15', '01:00', 1),
(67, 5, '2019-01-02', '02:00', 1),
(68, 5, '2019-01-02', '03:00', 1),
(69, 5, '2019-01-03', '12:00', 1),
(70, 5, '2019-01-03', '01:00', 1),
(71, 5, '2019-01-03', '02:00', 1),
(72, 5, '2019-01-03', '03:00', 1),
(73, 5, '2019-01-04', '12:00', 1),
(74, 5, '2019-01-04', '01:00', 1),
(75, 5, '2019-01-04', '02:00', 1),
(76, 5, '2019-01-04', '03:00', 1),
(77, 5, '2019-01-05', '12:00', 1),
(78, 5, '2019-01-05', '01:00', 1),
(79, 5, '2019-01-05', '02:00', 1),
(80, 5, '2019-01-05', '03:00', 1),
(105, 6, '2019-02-06', '01:05', 1),
(106, 2, '2019-02-05', '01:10', 1),
(107, 2, '2019-02-05', '01:05', 1),
(108, 2, '2019-02-05', '01:11', 1),
(109, 2, '2019-02-05', '01:07', 1),
(110, 2, '2019-02-05', '01:25', 1),
(111, 2, '2019-02-05', '01:22', 1),
(112, 2, '2019-02-05', '01:13', 1),
(113, 2, '2019-02-05', '01:14', 1);

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

--
-- Table structure for table `event_gallery`
--

CREATE TABLE `event_gallery` (
  `id` int(11) NOT NULL,
  `event_id` int(11) DEFAULT NULL,
  `media_type` tinyint(3) DEFAULT NULL COMMENT '0=>Primary, 1 => Photos, 2 => Videos, 3 => Youtube Link',
  `media_url` varchar(100) DEFAULT NULL,
  `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `event_gallery`
--

INSERT INTO `event_gallery` (`id`, `event_id`, `media_type`, `media_url`, `status`) VALUES
(1, 3, 0, 'assets/uploads/services/giphy9.gif', 1),
(2, 3, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-32.jpeg', 1),
(3, 3, 1, 'assets/uploads/services/giphy9.gif', 1),
(4, 3, 1, 'assets/uploads/services/giphy9.gif', 1),
(5, 3, 1, 'assets/uploads/services/giphy9.gif', 1),
(6, 3, 2, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-32.jpeg', 1),
(7, 3, 2, 'assets/uploads/services/giphy9.gif', 1),
(8, 3, 3, 'assets/uploads/services/giphy9.gif', 1),
(9, 3, 3, 'assets/uploads/services/giphy9.gif', 1),
(19, 4, 1, 'assets/uploads/services/giphy14.gif', 1),
(20, 5, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-328.jpeg', 1);

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

--
-- Table structure for table `event_tags`
--

CREATE TABLE `event_tags` (
  `id` int(11) NOT NULL,
  `event_id` int(11) DEFAULT NULL,
  `tag_id` int(11) DEFAULT NULL,
  `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '0 => Inactive 1 => Active 2 => Deleted'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `event_tags`
--

INSERT INTO `event_tags` (`id`, `event_id`, `tag_id`, `status`) VALUES
(1, 1, 2, 1),
(2, 1, 3, 1),
(5, 3, 3, 1),
(6, 3, 4, 1),
(124, 4, 6, 1),
(125, 4, 2, 1),
(139, 5, 2, 1),
(140, 5, 3, 1),
(141, 5, 4, 1),
(144, 6, 3, 1),
(145, 6, 4, 1),
(146, 2, 2, 1),
(147, 2, 3, 1);

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

--
-- Table structure for table `favourite`
--

CREATE TABLE `favourite` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `event_id` int(11) NOT NULL,
  `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `favourite`
--

INSERT INTO `favourite` (`id`, `user_id`, `event_id`, `create_date`, `status`) VALUES
(1, 3, 3, '2019-02-14 07:05:08', 0),
(2, 3, 3, '2019-02-14 07:06:25', 0),
(3, 3, 3, '2019-02-14 07:14:05', 1);

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

--
-- Table structure for table `host_categories`
--

CREATE TABLE `host_categories` (
  `host_cat_id` int(11) NOT NULL,
  `host_category` varchar(150) DEFAULT NULL,
  `show_layout` tinyint(3) DEFAULT NULL,
  `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '0 => Inactive 1 => Active 2 => Deleted'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `host_categories`
--

INSERT INTO `host_categories` (`host_cat_id`, `host_category`, `show_layout`, `status`) VALUES
(1, 'Stadium', 1, 1),
(2, 'Restaurant', 0, 1),
(3, 'Movie Theater', 1, 1),
(4, 'Auditorium', 1, 1),
(5, 'sdfg', 1, 2),
(6, 'fghcf', 1, 2),
(7, 'fghcf', 1, 2);

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

--
-- Table structure for table `locality`
--

CREATE TABLE `locality` (
  `id` int(11) NOT NULL,
  `venue_id` int(11) NOT NULL,
  `locality` varchar(255) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `locality`
--

INSERT INTO `locality` (`id`, `venue_id`, `locality`, `status`) VALUES
(1, 3, 'Kochi West', 1),
(2, 3, 'Kochi North', 1);

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

--
-- Table structure for table `provider`
--

CREATE TABLE `provider` (
  `id` int(11) NOT NULL,
  `provider_id` int(11) DEFAULT NULL,
  `name` varchar(55) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `phone` varchar(25) DEFAULT NULL,
  `profile_image` varchar(250) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `provider`
--

INSERT INTO `provider` (`id`, `provider_id`, `name`, `email`, `phone`, `profile_image`) VALUES
(3, 2, 'Provider User', 'provider@gmail.com', '9995559194', 'assets/uploads/services/1546851554_1523012036_hj.jpg'),
(4, 10, 'dertgfdsre', 'tobin.techware@gmail.com', '43534563453', 'assets/uploads/services/1550152192_image_(1).png'),
(5, 11, 'sderfg', 'sdefrgt@gmail.com', '345345345', 'assets/uploads/services/1550152924_giphy.gif');

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

--
-- Table structure for table `region`
--

CREATE TABLE `region` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `region_icon` varchar(250) DEFAULT NULL,
  `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `region`
--

INSERT INTO `region` (`id`, `name`, `region_icon`, `status`) VALUES
(1, 'Kochi', 'assets/uploads/services/1550213170_media-froala-description-0-2018-9-5-t-14-14-321.jpeg', 1),
(2, 'Kottayam', NULL, 1),
(3, 'Thrissur', NULL, 1),
(4, 'Bengaluru', NULL, 1),
(5, 'ddrfgt', NULL, 2),
(6, 'Thalayolaparambu', 'assets/uploads/services/1550212297_media-froala-description-0-2018-9-5-t-14-14-321.jpeg', 1);

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

--
-- Table structure for table `reservation`
--

CREATE TABLE `reservation` (
  `id` int(11) NOT NULL,
  `restaurant_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `date` date DEFAULT NULL,
  `time` varchar(45) DEFAULT NULL,
  `seats` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `review`
--

CREATE TABLE `review` (
  `id` int(11) NOT NULL,
  `event_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `rate` int(11) DEFAULT NULL COMMENT '1 - 5',
  `feedback` longtext
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `review`
--

INSERT INTO `review` (`id`, `event_id`, `customer_id`, `rate`, `feedback`) VALUES
(1, 3, 3, 4, 'Teste');

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

--
-- Table structure for table `setting`
--

CREATE TABLE `setting` (
  `id` int(11) NOT NULL,
  `title` varchar(250) NOT NULL,
  `title_short` varchar(250) NOT NULL,
  `site_logo` varchar(150) NOT NULL,
  `fav_icon` varchar(150) NOT NULL,
  `country_flag` varchar(10) NOT NULL DEFAULT 'US',
  `currency` varchar(10) NOT NULL,
  `smtp_host` varchar(150) NOT NULL,
  `smtp_username` varchar(150) NOT NULL,
  `smtp_password` varchar(150) NOT NULL,
  `google_api_key` varchar(500) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `setting`
--

INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`) VALUES
(1, 'Event - Time Out', 'TimeOut', 'assets/uploads/services/1549257477_Twitch_KingpinSkin_old2_HD.jpg', 'assets/uploads/services/1549257477_sniper.jpg', 'IN', 'INR', 'info@techlabz.in', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A');

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

--
-- Table structure for table `tags`
--

CREATE TABLE `tags` (
  `tag_id` int(11) NOT NULL,
  `tag_name` varchar(150) DEFAULT NULL,
  `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tags`
--

INSERT INTO `tags` (`tag_id`, `tag_name`, `status`) VALUES
(1, 'hggtss', 2),
(2, 'r5ydrt5y', 1),
(3, 'drtyudrtu', 1),
(4, 'ftydrt', 1),
(5, 'fdtydr', 1),
(6, 'fgytudt', 1);

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

--
-- Table structure for table `transaction`
--

CREATE TABLE `transaction` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `booking_id` int(11) NOT NULL,
  `datetime` datetime DEFAULT NULL,
  `transaction_id` varchar(45) DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `status` int(11) DEFAULT '1' COMMENT '1 - Completed, 0 - Failed'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `username` varchar(50) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `display_name` varchar(100) DEFAULT NULL,
  `profile_image` varchar(250) DEFAULT NULL,
  `user_type` tinyint(3) DEFAULT '3' COMMENT '1 - SuperAdmin 2 - Provider 3 - Customer ',
  `status` int(11) DEFAULT '1' COMMENT '0- Inactive 1-Active'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `username`, `password`, `display_name`, `profile_image`, `user_type`, `status`) VALUES
(1, 'admin', '202cb962ac59075b964b07152d234b70', 'Super Admin', 'assets/uploads/services/1549281365_car_ac.jpg', 1, 1),
(2, 'provider', '202cb962ac59075b964b07152d234b70', 'Provide', 'assets/uploads/services/1549342442_Audi-r8.jpg', 2, 1),
(3, 'customer', 'e10adc3949ba59abbe56e057f20f883e', 'Customer', NULL, 3, 1),
(10, 'xdcfg', '69879a49afe2a510237c11d0aa05a3fc', 'cdfgh', 'assets/uploads/services/1550152192_image_(1).png', 2, 1),
(11, 'sedrftg', '38d7355701b6f3760ee49852904319c1', 'dfrgdr', 'assets/uploads/services/1550152924_giphy.gif', 2, 1);

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

--
-- Table structure for table `venue`
--

CREATE TABLE `venue` (
  `id` int(11) NOT NULL,
  `venue_name` varchar(100) DEFAULT NULL,
  `venue_details` longtext,
  `region_id` int(11) DEFAULT NULL,
  `host_cat_id` int(11) DEFAULT NULL,
  `location` varchar(100) DEFAULT NULL,
  `location_lat` varchar(45) DEFAULT NULL,
  `location_lng` varchar(45) DEFAULT NULL,
  `layout` varchar(100) DEFAULT NULL COMMENT 'Layout Image',
  `layout_details` longtext COMMENT 'Layout Details (JSON data)',
  `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `venue`
--

INSERT INTO `venue` (`id`, `venue_name`, `venue_details`, `region_id`, `host_cat_id`, `location`, `location_lat`, `location_lng`, `layout`, `layout_details`, `status`) VALUES
(2, 'Empire Restaurant - Church Street', 'Empire Restaurant - Church Street', 4, 2, 'D-Wing, Western Express Highway, Miragaon, Mira Road East, Mira Bhayandar, Maharashtra, India', '19.2746336', '72.8786044', '', '', 1),
(3, 'PVR Koramangala', 'Cosmopolitan Koramangala is popular with young tech workers and students, due to the many IT companies and colleges in the area. Hip restaurants and rooftop bars cluster around 80 Feet Main Road, while the streets around Jyoti Nivas College are also known for trendy stores selling funky clothes and accessories. Upscale apartment complexes are interspersed with the commercial buildings on the tree-lined avenues.', 4, 3, 'DF Block, Sector 1, Salt Lake City, Kolkata, West Bengal, India', '22.5908767', '88.4170614', 'assets/uploads/services/1549456988_media-froala-description-0-2018-9-5-t-14-14-32.jpeg', '[{\"color\":\"Red\",\"price\":\"150\"},{\"color\":\"Blue\",\"price\":\"500\"},{\"color\":\"Blue R\",\"price\":\"450\"},{\"color\":\"Yellow\",\"price\":\"650\"},{\"color\":\"Yellow Y\",\"price\":\"800\"}]', 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `booking`
--
ALTER TABLE `booking`
  ADD PRIMARY KEY (`id`,`event_id`,`customer_id`),
  ADD KEY `fk_booking_event1_idx` (`event_id`),
  ADD KEY `fk_booking_customer1_idx` (`customer_id`);

--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `customer_auth`
--
ALTER TABLE `customer_auth`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `events`
--
ALTER TABLE `events`
  ADD PRIMARY KEY (`event_id`);

--
-- Indexes for table `event_category`
--
ALTER TABLE `event_category`
  ADD PRIMARY KEY (`cat_id`);

--
-- Indexes for table `event_date_time`
--
ALTER TABLE `event_date_time`
  ADD PRIMARY KEY (`id`),
  ADD KEY `event_id` (`event_id`,`date`);

--
-- Indexes for table `event_gallery`
--
ALTER TABLE `event_gallery`
  ADD PRIMARY KEY (`id`) USING BTREE,
  ADD KEY `event_id` (`event_id`,`media_type`);

--
-- Indexes for table `event_tags`
--
ALTER TABLE `event_tags`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `favourite`
--
ALTER TABLE `favourite`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `host_categories`
--
ALTER TABLE `host_categories`
  ADD PRIMARY KEY (`host_cat_id`);

--
-- Indexes for table `locality`
--
ALTER TABLE `locality`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `provider`
--
ALTER TABLE `provider`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `region`
--
ALTER TABLE `region`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `reservation`
--
ALTER TABLE `reservation`
  ADD PRIMARY KEY (`id`,`restaurant_id`,`customer_id`),
  ADD KEY `fk_reservation_restaurant1_idx` (`restaurant_id`),
  ADD KEY `fk_reservation_customer1_idx` (`customer_id`);

--
-- Indexes for table `review`
--
ALTER TABLE `review`
  ADD PRIMARY KEY (`id`,`event_id`,`customer_id`),
  ADD KEY `fk_review_event1_idx` (`event_id`),
  ADD KEY `fk_review_customer1_idx` (`customer_id`);

--
-- Indexes for table `setting`
--
ALTER TABLE `setting`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
  ADD PRIMARY KEY (`tag_id`);

--
-- Indexes for table `transaction`
--
ALTER TABLE `transaction`
  ADD PRIMARY KEY (`id`,`customer_id`,`booking_id`),
  ADD KEY `fk_transaction_customer1_idx` (`customer_id`),
  ADD KEY `fk_transaction_booking1_idx` (`booking_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `venue`
--
ALTER TABLE `venue`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `booking`
--
ALTER TABLE `booking`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `customer`
--
ALTER TABLE `customer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `customer_auth`
--
ALTER TABLE `customer_auth`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
  MODIFY `event_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

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

--
-- AUTO_INCREMENT for table `event_date_time`
--
ALTER TABLE `event_date_time`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=114;

--
-- AUTO_INCREMENT for table `event_gallery`
--
ALTER TABLE `event_gallery`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT for table `event_tags`
--
ALTER TABLE `event_tags`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=148;

--
-- AUTO_INCREMENT for table `favourite`
--
ALTER TABLE `favourite`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `host_categories`
--
ALTER TABLE `host_categories`
  MODIFY `host_cat_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

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

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

--
-- AUTO_INCREMENT for table `region`
--
ALTER TABLE `region`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `reservation`
--
ALTER TABLE `reservation`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `review`
--
ALTER TABLE `review`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
  MODIFY `tag_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `transaction`
--
ALTER TABLE `transaction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `venue`
--
ALTER TABLE `venue`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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 */;
